coding the stay on market into my cose

Forums ProRealTime English forum ProOrder support coding the stay on market into my cose

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

    When back testing I have a problem that i want my trade to stay on for at least one bar before it sells I have two programmes that I have written but dont know how to add the code or where inside the code to place it. Any help would be amazing, I have attached the robots below,

    #10490

    Are you talking about trade closure made my stoploss/takeprofit or made by your code’s conditions?

    #10505

    the stoploss/take profit

    #10516

    You can set your stoploss/takeprofit to 0 if your trade is less than 3 bars old (for example):

    Because PROFIT and LOSS must be set within the first bar, so you need to invalidate them before changing them (when it’s 3 bars old in this example).

     

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