Daily DSP (Detrended Synthetic Price) and a Daily ELI ( Leading
Indicator) using intraday data.
Detrended Synthetic Price is a function that is in phase with the dominant
cycle of real price data. This one is computed by subtracting a 3 pole Butterworth
filter from a 2 Pole Butterworth filter. Leading Indicator gives an advanced
indication of a cyclic turning point. It is computed by subtracting the simple
moving average of the detrended synthetic price from the detrended synthetic price.
Buy and Sell signals arise when the ELI indicator crosses over or under the detrended
See "MESA and Trading Market Cycles" by John pages 64 - 70.
pos = 0.0
pos := iff(nRes > 0, 1, iff(nRes < 0, -1, nz(pos, 0)))
could you explain what you mean more?? :)