Close position on difference from open to close of a candle of a certain size

Forums ProRealTime English forum ProOrder support Close position on difference from open to close of a candle of a certain size

Viewing 7 posts - 1 through 7 (of 7 total)
  • #20042

    Hi

    I would like to be able to close a position based on the closing size of a candle. So, if the candle closes X pips/points higher or lower than it opened then close the trade.

    Can anyone help with code for this condition please?

    Thanks

    Robert

    #20069

    Seems like an ordinary “takeprofit” to me?

     

    #20090

    Well, I only want it to occur should it happen during a trade. I don’t want to set a system wide takeprofit. Does that make sense?

    #20091

    Takeprofit are individual for each order with ProOrder IG.

    #20104

    Hi Nicolas

    So does this scenario make sense.

    I’m coding a system which has the default DEFPARAM CumulateOrders = False set. Therefore, my understanding is that I can only have one buy or sell order in the market at a time, correct?

    One position might hit a candle which goes up or down 30 points. Some may not hit such candles but over the position move 150 points.

    If I set a take profit of say 25 then both trades would be closed at 25 points, would they not?

    Thanks

    Robert

    #20106

     

    2 users thanked author for this post.
    #54867

    Thank you Elborg, I was looking for encoding the size of a candle For 3 days, thanks a lot !

     

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

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