Instruction to exit trade not working

Forums ProRealTime English forum ProOrder support Instruction to exit trade not working

  • This topic has 2 replies, 2 voices, and was last updated 2 years ago by avatarpdrh.
Viewing 3 posts - 1 through 3 (of 3 total)
  • #190120

    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

    #190121

    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.

    1 user thanked author for this post.
    #190123

    I was using it on a 1 Hour TF .>= works

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login