Time limit for an order

Forums ProRealTime English forum ProOrder support Time limit for an order

  • This topic has 7 replies, 2 voices, and was last updated 7 years ago by avatarWing.
Viewing 8 posts - 1 through 8 (of 8 total)
  • #25620

    Want to have a time limit how long a position may be open.

    How does such a code look like?

     

    Barney

    #25624

    ’10’ in this case is the amount of bars that the trade will stay open.

    #25625

    “Error in line 9 character  18

    Please complete the syntax of the line”

    When i past your code.

    Perhaps i paste the code in wrong place?

    Here is my code!

    OMX30 15 min and 0,5p spread.

    It don’t work good in downtrend, therefore i must have something that stops algon in long term downtrend.

     

    #25628

    The last four lines of my code represent your own buy conditions, so you need to put this right after you buy the contracts.

    #25646

    I have to be sluggish in the head.

    Can you post the code where it should be. 🙂

    I am new to coding…

    #25665

    Does that work?

    #25784

    Yes, it works fine.

    But my system did not like it.

    It works well but in downtrend it don’t work so good.

    What can i do to fix my problem…….

     

    #25975

    A stop loss maybe? Seeing as you have a a very low take profit, on relatively high time frame, make sure your system does not trick you because of the ‘zero bar issue’ though.

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

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