Difference between indicator and strategy

Forums ProRealTime English forum ProOrder support Difference between indicator and strategy

Viewing 12 posts - 1 through 12 (of 12 total)
  • #75906

    Hi

    What’s the differene between running a backtest and an indicator, i.e. should the ohlc be the same?

    I get different values between them on a tick chart. The indicator agrees with the chart but the graph function in the backtest has a different value, for ohlc. Can you explain why?

    Thanks

    Background info:

    indicator:__Indicator_ohlc

     

    test:__strategry_ohlc

     

     

    #75911

    Welcome to the forums. Please use the ‘Insert PRT Code’ button when putting code in your posts to make it more readable. I have tidied up your post for you on this occasion. 🙂

     

    #75913

    Your image is confusing the question as it appears to show identical values! The answer to your question might be because an indicator is showing the values of a still forming bar or candle and the GRAPH function in a strategy will be the values of the last closed bar or candle.

    #75914

    Hi,

    Thanks for the reply and tidy up,

    You are correct, it is true, the last values are the same, however, can you explain why the graphs are different?

    Many Thanks

    #75915

    Do you got the same behavior in other timeframe than the “tick by tick” one?

    #75917

    Yes, on the 1 second for example.

    #75919

    Are you sure? Because I can replicate the same as you for the tick by tick chart but not in the 1 second chart where OHLC is the same. Please note that there are a lot of candlesticks that don’t exist on a 1 second timeframe if no ticks are received from the market.

    For the tick by tick chart, I think the differences come from when the system is evaluated or not (code read and executed) .. but I can’t be sure, I’ll try to get a definitive answer for this. Bear in mind, that there are no OHLC values with a 1 tick chart, but only one price.

     

    #75920

    Hi,

    Ok thanks. I posted the 1 seocnd chart, it looks the same, except the last three data points are not displayed on the backtest graph.

    Cheers

    Nigel

    #76265

    Any news on this? Thanks

    #76269

    When you say last three you really mean last one. There were no trades for 14:42:51 and 14:42:52 but trades for 14:42:53. The backtest will not show this until that candle is closed and a new one opened. The indicator will show ‘on the fly’ so has a result to show you.

    #76338

    Hi,

    That does make sense, so I can accept that. Cheers.

    However, do you have any news regarding the original question?

    Thanks

     

    #76919

    Any update on this?

    Thanks

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

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