pdrhParticipant
Average
I have an algo that shorts the DJI but I do not want the trade to be open over the weekend .
I have this instruction to exit the trade on friday market close but it is not working .
Any advoce please
IF ONMARKET and OPENDAY=5 AND TIME =160000 THEN
EXITSHORT at MARKET
ENDIF
It should work on any timeframe whose candle closes at 160000.
If you use a TF not closing at that time it will be ignored.
Try replacing =160000 with >=160000.
pdrhParticipant
Average
I was using it on a 1 Hour TF .>= works