stop loss 5 pips below or above the previous candle

Forums ProRealTime English forum ProOrder support stop loss 5 pips below or above the previous candle

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • #196995

    Hi Roberto,

    Many thanks for your trailing stop code.

    Just need some help – I would like to add in a hard stop loss in addition to these trailing stop codes.

    For example, when i have a long position, i want the stop to be 5 pips below the previous candle and for short positions, 5 pips above the previous candle, can i code it something like this and put it in addition to your codes?

    I’m new to PRT – any help would be greatly appreciated.

    Thanks!

    #196997

    Do NOT append your questions to unrelated exixting topic. Create a new one, instead.

    Thank you 🙂

    Your code looks is almost correct, just use ABS() to make sure you get positive values and remove SET STOP LOSS outside IF…ENDIF to make sure you don’t overwrite the previous one when OnMarket:

    You can append Nicolss’code to your code, for sure.

    1 user thanked author for this post.
Viewing 2 posts - 1 through 2 (of 2 total)

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