I have an expert advisor that works on related pairs, monitoring the spread between two pairs.
Once reached a spread level specified in the settings, two trades are open, one for each pair, in opposite directions, if the correlation is positive, or in the same direction, if the correlation is negative.
I noticed that the expert advisor, used with certain pairs gives excellent results in the afternoon and evening hours (CET) and then loses much of the profits accumulated in the following 8-10 hours.
I would then need to integrate the expert with these settings:
1. Start trading hour (at what time allow the opening of new trades)
2. Do not open trades after hour (not open more trades after a certain time)
3. Close all trades hour (closing time of all open trades)
all expressed in CET
If, for example, the following parameters are respectively:
1. 09:00
2. 22:00
3. 23:00
it means that after 22.00 will no longer be open trades, at 23.00
still open trades will be closed and no trades will be open until
9:00 am of the following day (or the following Monday).
At 9:00 am, when it will be possible to reopen trades, the spread between the
two pairs (which regulates the opening of trades) will restart from zero.