Problem with timing position opening

Forums ProRealTime English forum ProOrder support Problem with timing position opening

Viewing 4 posts - 1 through 4 (of 4 total)
  • #200094

    Hello PRC Forum

    I have the following problem: my indicator signals me an entry point, but during the backtest the position is opened one bar later. Engulfing requires the evaluation of the 2 past candles, why is no position opened on the 3rd candle but on the 4th candle?

    Indicator:

    Strategy:

    I have added a picture: Yellow and turquoise arrows = Indicator, Green and red arrows = Strategy

    What is the problem?

    #200103
    JS

    This is the normal course of events, when a condition is true (in your indicator), then a position is opened on the Open of the next bar in your trading system.

    #200105

    It’s because your indicator is lagging by 1 candle.

    Replace all occurrences of [1] with [0], then [2]  with [1].

     

    #200459

    Thank you Roberto! It works

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

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