Exit not at the end of the bar

Forums ProRealTime English forum ProOrder support Exit not at the end of the bar

Viewing 3 posts - 1 through 3 (of 3 total)
  • #8885

    Hi, does anyone knows why my TS even if has not SL o TP it does some exit in the middle of the bar and not exactly at the start of it?

    Some example in the attached picture… I use IG Market demo account to test. 1-1

    The code is the supertrend that I have posted in the library:

     

     

    #8890

    It might be your stoploss that exit trades in a middle of a bar.

    Also you have set your stoploss with pLOSS which need “point” values and not real digit ones like your “stopprice” variable which is set among ATR.

    #8893

    I will try to change the pLOSS but the variable Stopprice cannot change in the middle of a bar. It is the ATR of Hour timeframe. The value of it change at every new bar. Cannot change in the middle of it. In the backtest it works properly…

     

    Thanks for help Nicolas! I always appriciate.

    David

     

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

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