Re: Express Generator - Design
Hey sammjacks...
Though your question was addressed to Popov I can't help adding my two cents...
With regards to time settings and time zones, I would tread carefully. If your goal is to avoid trading at high spread times then the times to avoid must be based on your broker's server time. And this could become much more complicated than what appears on the surface.
The OHLC data that you fetch may come from Premium or some other source -- like MetaTrader. If it comes from MetaTrader it may come from the same broker that the portfolio EA trades on or, perhaps, another account. Timestamps are embedded in the OHLC data -- and you certainly don't want to change those. The military times that you wish to avoid will be different depending on whether you think in terms of the server's time, Premium Data's time, MetaTrader's terminal time.
My suggestion would be to **always** think in terms of the server's time. If the data comes from a source who's server time is different than the server's time where the portfolio EA executes then you will need to compensate for that -- and you really need to put on your thinking cap to figure out exactly how you will do that.
A better solution is to take advantage of the MaxSpread setting under Data / Symbol Settings -- e.g. 40 points is a reasonable value. If the current spread is greater than 40 points then a signal would be ignored. Easy-peasy -- no need to worry about converting from one time zone to another...
Great, cheers Popov.
I have a general question regarding time settings. They are not implemented in express gen yet, which would be really useful for me.
I usually set my time settings to 01:00 - 24:00 in order to avoid opening positions during the high spread time (where the spread can be around 100 which would destroy profits).
I am getting a lot of strategies that perform very well for when I let them trade 00:00 - 24:00 but then as soon as I change the settings 01:00 - 24:00 the equity curves change completely to usually perform very poorly.
It also obviously makes it much harder to find strategies with these time settings.
Any discussion on this topic or different perspective would be great as I am currently a bit unsure if my approach is sensible.