Forums › ProRealTime English forum › ProOrder support › Coding cross over problem › Reply To: Coding cross over problem
Nicolas,
According to the definition the Detrended Price Oscillator (DPO) measures the difference between a past price and a moving average. The detrended price oscillator is calculated and utilized from the variables shown below:
X is first determined by the number of periods; 20 day or 30 day periods are common. Simple moving average over an “n” day period is needed.
DPO = Closing price – Simple moving average [from (n / 2 + 1) days ago]. It is possible to displace the Detrended Price Oscillator (DPO) with a horizontal shift to the right. (see picture of the setting Prorealtime in attachment.)
So I do not understand what you mean by : ” the internal instruction make use of future datas” . Can you clarify ? Thank you for your efforts.
Brgds
J-P