timed closure of a trade

Forums ProRealTime English forum ProOrder support timed closure of a trade

Viewing 4 posts - 1 through 4 (of 4 total)
  • #19272

    Hi

    Can anyone help me to make a trading system close all trades at 210000 on a Friday. I can use the defparam command to close at a set time each day but I don’t want a trade left open over the weekend I’m happy for trades to remain open overnight during the week?

    dymjohn

    #19290

    Hi John.

    Try this

     

    Cheers Kasper

    #19372

    Hi Casper,

    Thanks Casper, I thought the following might work but opens and closes all trades on Friday for a loss of the spread on test so not right.

     

    #19373

    Hello

    >> For clarity of messages on ProRealCode’s forums, please use the “insert code PRT” button to separate the text of the code part! Thank you! <<

    Be careful with use of combinations of “and” and “or”, you might want to use parenthesis to make sure the logic you really want is applied, for example : c2 and (c6 or c7) is not the same as (c2 and c6) or c7

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

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