Breakeven with a technical indicator

Forums ProRealTime English forum ProOrder support Breakeven with a technical indicator

Viewing 6 posts - 1 through 6 (of 6 total)
  • #157735

    Hello,
    Is it possible to put the SL in Breakeven when it reaches a technical indicator?

    Example :
    – I buy when the price bounces on the lower bollinger band
    – I place my SL under the most recent low
    – I target as TP the upper bollinger band

    Is it possible to move the SL to breakeven when the price reaches the SMA20?

    #157737

    You can place orders to sell at any price using pending STOP and LIMIT orders. So just check if your SMA condition has been met and then set a flag and send a pending order to sell at TRADEPRICE for every bar while the flag is true. Reset the flag once NOT ONMARKET.

    2 users thanked author for this post.
    #157963

    Hello @vonasi, thank you, I tried to put a flag for the condition (close>=SMA20 ), in order to move the SL to breakeven.
    But I think there’s a mistake in my coding.
    Can you help me?

    #157978

    The “once” in line 8 is wrong. This calculation is done once at the start, not on every candle. Just remove it.

    1 user thanked author for this post.
    #157986

    LIMIT sells at a better price than the current close whereas STOP sells at an inferior price than the current close so you are using the wrong instruction.

    Also as said before ONCE is not neeeded.

    1 user thanked author for this post.
    #158012

    @ thank you very much 🙂

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

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