Difference between indicator and strategy
Forums › ProRealTime English forum › ProOrder support › Difference between indicator and strategy
- This topic has 11 replies, 3 voices, and was last updated 5 years ago by allmycrudgm.
-
-
07/13/2018 at 12:06 PM #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
1return open as "open", high as "high", low as "low", close as "close"test:__strategry_ohlc
12345678910// Conditions to enter long positionsc1=0IF c1 THENBUY 1 CONTRACTS AT MARKETENDIFgraph open as "open"graph high as "high"graph low as "low"graph close as "close"07/13/2018 at 12:43 PM #7591107/13/2018 at 12:46 PM #75913Your 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.
07/13/2018 at 1:01 PM #75914Hi,
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
07/13/2018 at 1:05 PM #7591507/13/2018 at 1:47 PM #75917Yes, on the 1 second for example.
07/13/2018 at 2:06 PM #75919Are 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.
07/13/2018 at 2:46 PM #75920Hi,
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
07/18/2018 at 7:16 PM #76265Any news on this? Thanks
07/18/2018 at 8:43 PM #76269When 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.
07/19/2018 at 3:48 PM #76338Hi,
That does make sense, so I can accept that. Cheers.
However, do you have any news regarding the original question?
Thanks
07/27/2018 at 6:15 PM #76919Any update on this?
Thanks
-
AuthorPosts
Find exclusive trading pro-tools on