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

Re: [amibroker] Re: Newbie here......Question about PPO



PureBytes Links

Trading Reference Links



Barry,
 
They are identical on my machine.
 
// PPO Percentage Price Osc from MS and AB
// Same as MACD

T1=
Param("Fast Periods",7,2,100,1
);
T2=
Param("Slow Periods",28,2,100,1
);

PPO =
100*(EMA(C,T1) - EMA(C,T2))/ EMA(C,T2); // MS

test=
OscP
( T1 , T2 ) ;

Plot(PPO," MS Percentage Price Osc ",2,1
);
//Plot(," AB Percentage Price Osc ",0,1);

Plot(OscP(T1,T2),"AB OscP",3,1); //AB


//======================================


// from http://www.amibroker.com/library/detail.php?id=1113

// PPO X 100

PPOShort = T1;
PPOLong = T2;
//PPOsignal = Param("PPOsignal", 9, 1, 150, 1);

PPO = (
EMA(C, PPOShort ) - EMA(C, PPOLong ))/ EMA(C
, PPOLong );
//PPOS = (EMA(ppo, PPOsignal ));

//Val=ppo-PPOS ;

Plot( PPO*100 , "ppo", colorGreen, styleLine| styleThick
);
//Plot ( PPOS ,"PPO Signal", colorOrange, styleLine| styleThick );

//dynamic_color = IIf( Val> 0, colorGreen, colorRed );
//Plot( Val, "PPO Histogram", dynamic_color, styleHistogram | styleThick );
 
 
-CS
 
 
 
 
----- Original Message -----
Sent: Friday, May 29, 2009 1:04 PM
Subject: [amibroker] Re: Newbie here......Question about PPO

But if you plot them both and look at the values there are off even when you multiply PPO by 100. There is something going on in OscP that makes the results different and I haven't a clue what it is. The small difference may not make any difference. Maybe OscP is not using EMAs. I don't know. I just know they do not return the same results. Maybe testing both will determine if either can be used.

Barry

--- In amibroker@xxxxxxxxxps.com, "wavemechanic" <fimdot@xxx> wrote:
>
> PPO = Percentage Price Oscillator. So, you want to deal in % and need to multiply the ema(fast) - ema(slow)/ema(slow) by 100. OscP() already does that. If you don't want the result in % then divide by 100. The key thing is that OscP() does the ema() calculation. The Users Guide should make that point.
>
> Bill
> ----- Original Message -----
> From: Barry Scarborough
> To: amibroker@xxxxxxxxxps.com
> Sent: May 29, 2009 12:36 PM
> Subject: [amibroker] Re: Newbie here......Question about PPO
>
>
> OSCP and PPO are not the same. I plotted them and they are similar but off by a factor of 100.
>
> Barry
>
> --- In amibroker@xxxxxxxxxps.com, "wavemechanic" <fimdot@> wrote:
> >
> > This is nothing but the built-in function OscP().
> >
> > Bill
> > ----- Original Message -----
> > From: Mubashar virk
> > To: amibroker@xxxxxxxxxps.com
> > Sent: May 26, 2009 5:07 PM
> > Subject: Re: [amibroker] Newbie here......Question about PPO
> >
> >
> >
> >
> >
> > please google for "PPO+Amibroker", you will find the code.
> >
> >
> > From: bretsmiles
> > Sent: Saturday, May 23, 2009 6:56 AM
> > To: amibroker@xxxxxxxxxps.com
> > Subject: [amibroker] Newbie here......Question about PPO
> >
> >
> > I do not see the PPO as an indicator in the AFL. Does it go by another name or is something we have to create ourselves.....Thanks in advance?
> >
>
>
>
>
> ------------------------------------
>
> **** IMPORTANT PLEASE READ ****
> This group is for the discussion between users only.
> This is *NOT* technical support channel.
>
> TO GET TECHNICAL SUPPORT send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> http://www.amibroker.com/feedback/
> (submissions sent via other channels won't be considered)
>
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> Yahoo! Groups Links
>



__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___