- Please HELP with EA
- Strategy Tester
- Bug in MT4 software tester
I am looking for a way to get events from other charts during back testing and forward testing. Anyone have any ideas or run into this problem?
Backtesting and forward testing is really not the same.
You can't do that on backtest.
During forward testing you have to use OnChartEvent().
I have looked through the codebase and seen some examples but the indicator has to be attached to the chart in question for indicator to pass what has happened back. How is it possible in the forward test?
I have looked through the codebase and seen some examples but the indicator has to be attached to the chart in question for indicator to pass what has happened back. How is it possible in the forward test?
Just to be sure. What do you mean by a "forward test" ?
Ah ok, so it's still a backtest, you can't do what you want.
That narrows every thing down to csv file. There is an article about news trading that talks about using a csv while back testing. I will insert the singals from the charts into 2 or 3 csv file i think it may work whats your opinion on that kind of work around.Thank you angevoyageur
Why not. I don't really know what you are trying to achieve so it's a little difficult t give an advice.
Theoretically just for conversation sake my signal would be stochastic over bought and sold levels on 5 pairs i would use a custom indicator to log the time and date of the event port it over to a CSV file. While back testing I could take historical events already log with events that are happening with the test and trade based the on the information. Something like that i think is possible and i value your opinion due to past posts. You are in my view a straight forward person who know what he is talking about when it comes to coding and information regarding Mql5 coding
Unless I missed something, why do you want to create a CSV file ? With MT5 you can backtest on multiple pairs, you can even backtest indicator. So code your custom indicator if not already done, test it and create an EA base on it.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use