Different stoploss first few bars

Forums ProRealTime English forum ProOrder support Different stoploss first few bars

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

    I am wondering how to code a system that allows me to set a stop loss tight in case market goes against me first 1-3 bars after i execute my order, then change it to a larger one after that. I am cureently using the excellent nicolas trailing stop – the MFE version.

     

    Although i didn’t write it obviously this seems to execute sell or sellshort rather than changing the stop ie it doesnt actually set a trailing or other stop.

     

    I have tried with a variable that resets as it cycles but im not sure this is the best way?

     

     

    #172886

    There you go. You need to set SL1 (tigther SL) and SL2 (the greater one) and the number of bars (N):

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