dpoMApers=Param("dpoMApers",8,1,100,1);
SMAN=MA(C,dpoMApers);
dpoLookback=(dpoMApers/2)+1;
DPO=C-Ref(SMAN,-dpoLookback);
Colorcode=IIf(dpo>=0,colorGreen,colorRed);
Plot(DPO,"Detrended Price Oscillator",Colorcode,styleArea);
Plot(0,"",colorYellow);
McGuyVr70 <driek@xxxxxxxxx> wrote:
Has anyone coded the DPO - Detrended Price Oscillator in Amibroker. I
have looked for this in the help menus and the groups but have not see
anything on this. Thanks
Dan
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html