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