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

[amibroker] Re: Looking for PPO indicator- Help please



PureBytes Links

Trading Reference Links

MR

>From the StockCharts web site it is:

{(10-period EMA minus 30-period EMA) divided by the 30-period EMA}

In AFL, with parameters, that would be something like:

//Percentage Price Oscillator (PPO)
//(EMA(C, 10) - EMA(C, 30))/ EMA(C, 30)

PPOShort = Param("PPO Short Period", 10, 1, 150, 1);
PPOLong = Param("PPO Long Period", 30, 1, 150, 1);

PPO = (EMA(C, PPOShort ) - EMA(C, PPOLong ))/ EMA(C, PPOLong );
Plot( PPO , _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), 
ParamStyle("Style")  ); 

Regards,

Dan.

--- In amibroker@xxxxxxxxxxxxxxx, "mroman59" <mroman59@xxxx> wrote:
> Hello,
> 
> I would like to use a popular indicator in Ambiroker but AB does not 
> come with it as standard. I checked the library and could not find 
it 
> either.  The indicator is called the Percentage Price Oscillator 
> (PPO). If you have used stock charts you will find that it there as 
a 
> standard indicator. If anyone has the code for this indicator, could 
> you please send it to me or post at this site.
> 
> Thank you
> MR





------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12ha3i9eh/M=362131.6882500.7825259.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1125022534/A=2889190/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Put more honey in your pocket. (money matters made easy) Welcome to the Sweet Life - brought to you by One Economy</a>.</font>
--------------------------------------------------------------------~-> 

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/