Which Trading Rule I have to choose, that EA opens Trades only between 8 a.m. to 9:30 p.m. and closes all open Trades at 9:30 p.m.?
could you tell me please which Trading Rule I have to choose, that the EA opens Trades only between the Trading Day Time 8:00 a.m. to 9:30 p.m. and close all open Trades at 9:30 p.m. for example?
it is between 8:00 a.m. to 9:30 p.m.
Thanks for feedback.
you have to specify two trading rules i this case:
Rule 1 – to open trades between 8:-00 and 9:30 pm
Time >= GetTime(8, 0, 0)
Time < GetTime(21, 30, 0)
some other entry conditions…
Enter at market
Rule 2 – to close all positions after 9:30 pm
Time >= GetTime(21, 30, 0)
Close all positions
Viewing 2 posts - 1 through 2 (of 2 total)