I need a MQL4 script for saving the turning points of the well known ZigZag indicator into a txt/csv file, going through the entire chart history data stored on which the indicator is applied to.
I then need an MT4 EA that will generate "optimal" trades based on that data extracted from the script. In other words, the EA should buy where the ZigZag turns up, and switch positions (close the Buy position and open a Sell position) where the ZigZag turns down.
This EA will essentially be always profitable, it will "foresee" the future by taking buy/sell signals from the txt/csv file generated by the script over the same currency pair/time-frame.
The first back-testing position to be open will use the signal in the txt/csv file with date closest to and immediately after the start date defined in the MT4 Tester "Use Date" area. The last open position should be closed at the end date defined in the same area.
I believe both the script and EA should be easy to program, and anyone with a solid knowledge of MQL4 won't have much difficulty developing them.
I've attached a sample currency pair history data to import into MT4, as well as the ZigZag indicator mentioned above.
I would appreciate if any bidder could send me the resulting txt/csv for this history data (say for M15 and M30 for example), as well as the back-testing report of the EA for the corresponding time-frames.