I was trying to set up a trading system based on ES tick data in an advanced chart.
However, I already ran into problems when I wanted to plot a simple moving average either directly as a basic study or called from an efs.
After a couple of seconds there is a drift between the tick data and the plotted MA.
The easiest way to check this is a setting the MA length to 1. This should give an MA plot connecting all marked ticks (if the advanced chart is set to candlestick) or two exactly overlapping plots (if the advanced chart is set to line). Instead, there are spikes in the MA line where none should be and vice versa. Further investigation reveals that the close or open values shown in the cursor window (which should be and acrtually are identical for tick data) also quite often differ from the return values of open() or close() when called from within an efs. The latter values are mostly in sync with the MA of period length 1.
What is going on? Any advice or ideas? Thanks in advance!
However, I already ran into problems when I wanted to plot a simple moving average either directly as a basic study or called from an efs.
After a couple of seconds there is a drift between the tick data and the plotted MA.
The easiest way to check this is a setting the MA length to 1. This should give an MA plot connecting all marked ticks (if the advanced chart is set to candlestick) or two exactly overlapping plots (if the advanced chart is set to line). Instead, there are spikes in the MA line where none should be and vice versa. Further investigation reveals that the close or open values shown in the cursor window (which should be and acrtually are identical for tick data) also quite often differ from the return values of open() or close() when called from within an efs. The latter values are mostly in sync with the MA of period length 1.
What is going on? Any advice or ideas? Thanks in advance!
Comment