http://www.multicharts.com/trading-soft ... y_Matching
The sentence as follows is from the above link:
"When using several data series calculation on historical data may differ from real-time calculation Realtime-history matching option makes historical calculation results closer to real-time."
If I use multiple data series on the same symbol, why can calculation on historical data differ from real-time calculation?
Or is it only occurs with multiple data series of different symbols?
Calculation difference wrt realtime-history matching [SOLVED]
- TJ
- Posts: 7746
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2225 times
Re: Calculation difference wrt realtime-history matching
Have you read the whole article?http://www.multicharts.com/trading-soft ... y_Matching
The sentence as follows is from the above link:
"When using several data series calculation on historical data may differ from real-time calculation Realtime-history matching option makes historical calculation results closer to real-time."
If I use multiple data series on the same symbol, why can calculation on historical data differ from real-time calculation?
Or is it only occurs with multiple data series of different symbols?
Re: Calculation difference wrt realtime-history matching
Thanks for your rely!
Yes, I have.
The main points with respect to enabled realtime-history matching option are:
(1)With realtime-history matching option enabled,
the "COMPLETED" bar (not the latest uncompleted bar) of the auxiliary data series is used.
(2)With realtime-history matching option enabled,
the main data series (even with new ticks) will not be calculated
before new ticks come in on the auxiliary data series.
So, when I use the main data series for ES 1-minute bar and the auxiliary data series for ES 5-minute bar, why can calculation on historical data differ from real-time calculation?
Precisely put, why can the signals triggered by the real-time trading calculation differ from the signals simulated by backtest?
Yes, I have.
The main points with respect to enabled realtime-history matching option are:
(1)With realtime-history matching option enabled,
the "COMPLETED" bar (not the latest uncompleted bar) of the auxiliary data series is used.
(2)With realtime-history matching option enabled,
the main data series (even with new ticks) will not be calculated
before new ticks come in on the auxiliary data series.
So, when I use the main data series for ES 1-minute bar and the auxiliary data series for ES 5-minute bar, why can calculation on historical data differ from real-time calculation?
Precisely put, why can the signals triggered by the real-time trading calculation differ from the signals simulated by backtest?
- TJ
- Posts: 7746
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2225 times
Re: Calculation difference wrt realtime-history matching
Because...Thanks for your rely!
... why can calculation on historical data differ from real-time calculation?
Precisely put, why can the signals triggered by the real-time trading calculation differ from the signals simulated by backtest?
as explained in the examples.
Re: Calculation difference wrt realtime-history matching
Example 1:
“Real-Time History Matching” is turned off (the box is cleared), the data series 1 continues updating, the data series 2 stopped updating:
a script will be calculated on data series 1 using the updating values from data series 1 and the latest static available values from data series 2.
Do you mean that the latest static available values from data series 2 can be different in real-time trading and back test?
“Real-Time History Matching” is turned off (the box is cleared), the data series 1 continues updating, the data series 2 stopped updating:
a script will be calculated on data series 1 using the updating values from data series 1 and the latest static available values from data series 2.
Do you mean that the latest static available values from data series 2 can be different in real-time trading and back test?
- TJ
- Posts: 7746
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2225 times
Re: Calculation difference wrt realtime-history matching [SOLVED]
That's exactly what is in the real world.Example 1:
::
Do you mean that the latest static available values from data series 2 can be different in real-time trading and back test?
Many scenarios can cause the data to not be in sync during backtest.
You can do a search in this forum for "realtime history matching" to see some real life situations.
-
- Posts: 401
- Joined: 19 Jan 2011
- Location: Netherlands
- Has thanked: 85 times
- Been thanked: 125 times
Re: Calculation difference wrt realtime-history matching
Hello Scotthkao,
Just as TJ says, there are many scenarios that can cause sync issues. Some expected and some unexpected within MC itself.
Hopefully to save you some time, check out these links:
These are about how MC is working with multiple datastreams. One caveat is that MC with multiple datastreams takes the future close of unfinished bars on other datastreams than data1 with backtesting. Depending on the RTHM setting. With barstatus in your code it is possible to deal with this sometimes. But also you have to be aware of functions that will use dataN. These will also use the unfinished bars and you have to rewrite the functions also to get the backtest results as close to realtime as possible.
http://www.multicharts.com/discussion/v ... 32#p115466
example of a barstatus to use:
http://www.multicharts.com/discussion/v ... 508#p99210
There are more posts on the forum about this.
Just as TJ says, there are many scenarios that can cause sync issues. Some expected and some unexpected within MC itself.
Hopefully to save you some time, check out these links:
These are about how MC is working with multiple datastreams. One caveat is that MC with multiple datastreams takes the future close of unfinished bars on other datastreams than data1 with backtesting. Depending on the RTHM setting. With barstatus in your code it is possible to deal with this sometimes. But also you have to be aware of functions that will use dataN. These will also use the unfinished bars and you have to rewrite the functions also to get the backtest results as close to realtime as possible.
http://www.multicharts.com/discussion/v ... 32#p115466
example of a barstatus to use:
http://www.multicharts.com/discussion/v ... 508#p99210
There are more posts on the forum about this.
Re: Calculation difference wrt realtime-history matching
Thanks for your reply!
Do you mean dataN by datastream?
Or do you mean a data feed that provides dataN?
Do you mean dataN by datastream?
Or do you mean a data feed that provides dataN?
Re: Calculation difference wrt realtime-history matching
Your explanation is very clear and well understood.
Thank you!
Thank you!