[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: DPO - Detrended Price Oscillator



PureBytes Links

Trading Reference Links


Dan,

Try this:

// DPO = Close - Simple moving average [from (n / 2 + 1) days ago] 



n = Optimize ("n",12, 20,30,5);

Days = Optimize ("Days",7, 4,20,4);



dpo = C - MA(C,n);

mavg = MA(dpo,Days);



Plot(dpo,"dpo",5,1);

Plot (mavg, "MA DPO", 7,1);


John


--- In amibroker@xxxxxxxxxxxxxxx, "McGuyVr70" <driek@xxxx> 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





------------------------ Yahoo! Groups Sponsor --------------------~--> 
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/