- backtest and optimization from within an EA
- Strategy Tester Freezing Question
- How to Identify Arrows Plotted by Compiled Indicator (.ex5) on the Chart?
You have to create a time filter in your code. Strategy tester won't do that for you.
I know that I will have to create a filter, however, it is not very clear to me how this filter should be implemented, as the filter that I need to implement must jump to the following year at the end of the selected month. Any ideas on how I should do this implementation?
I know that I will have to create a filter, however, it is not very clear to me how this filter should be implemented, as the filter that I need to implement must jump to the following year at the end of the selected month. Any ideas on how I should do this implementation?
Just close all trades at the end of February after that skip all the activities within time period from March to end of January. Then start again on next February.
Just close all trades at the end of February after that skip all the activities within time period from March to end of January. Then start again on next February.
In order to speed things up, I would not like to go through the other months but rather skip to the following year. However, I don't know if this type of implementation is viable. It's viable?
It is not possible to skip over the date range to "speed things up".
The EA will need to simply keep ignoring the incoming OnTick events until it reaches the specified date or time to start processing and trading.
In other words, the first thing that the OnTick handler should do is check the current time, and if not within the specified period, immediately returns from the event handler.
It is not possible to skip over the date range to "speed things up".
The EA will need to simply keep ignoring the incoming OnTick events until it reaches the specified date or time to start processing and trading.
In other words, the first thing that the OnTick handler should do is check the current time, and if not within the specified period, immediately returns from the event handler.
Got it, thanks everyone for your contribution.
So the filter will be a simple IF checking the time and month.
Thanks again to all.
In order to speed things up, I would not like to go through the other months but rather skip to the following year. However, I don't know if this type of implementation is viable. It's viable?
Because EAs always call OnTick() function every time there is a price change (a tick), so there is no way just "skip through" a specified date in the future. Just using a time filter then skip the function (OnTick()) is already very fast. No other way as I know of.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use