Time Close
1 replies
AndreasArt
11 years ago #112918
Hi there,
I´d like to program a time close at the end of the trading day (e.g. for FDAX at 09:55 pm). The EA runs on the 1H timeframe. I tried to program the time close with a separate rule but for some reasons it doesn´t work on the 1H timeframe although the “evaluate rule on bar open only” is disabled.
Any ideas how to overcome the problem?
Thanks in advance!
Andreas
0
AndreasArt
11 years ago #127664
I just realized that
IF
TimeCurrent > GetTime(21,55,0)
THEN
Close all positions
works perfectly.
0
Viewing 1 replies (of 1 total)