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

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


  • To: <amibroker@xxxxxxxxxxxxxxx>
  • Subject: Re: [amibroker] Looking for PPO indicator- Help please
  • From: "m.smith" <ink@xxxxxxxxx>
  • Date: Fri, 26 Aug 2005 12:44:36 -0500 (Central Daylight Time)

PureBytes Links

Trading Reference Links

 This is the only price and volume oscillator I have for AB. Hope it helps some.  Marshall

/* Volume Oscillator */

/* Indicator, system, and exploration */

/* Steve Wiser slwiserr@xxxxxxxxx */

PlusDM= IIf(High>Ref(High,-1) AND Low>=Ref(Low,-1), High-Ref(High,-1),

IIf(High>Ref(High,-1) AND Low<Ref(Low,-1)

AND High-Ref(High,-1)>Ref(Low,-1)-Low,

High-Ref(High,-1),0));

Vm=log(EMA(V,3));

Buy= (C-L)*Vm+ (H-O)*Vm +

IIf(C>O,(C-O)*Vm,0) + PlusDM*Vm +

IIf(Ref(C,-1)<O,(O-Ref(C,-1))*Vm,0);

MinDM = IIf(Low<Ref(Low,-1) AND High<=Ref(High,-1), Ref(Low,-1)-Low,

IIf(High>Ref(High,-1) AND Low<Ref(Low,-1)

AND High-Ref(High,-1)<Ref(Low,-1)-Low, Ref(Low,-1)-Low, 0));

Sell= (H-C)*Vm + (O-L)*Vm +

IIf(C<O,(O-C)*Vm,0) + MinDM*Vm +

IIf(Ref(C,-1)>O,(Ref(C,-1)-O)*Vm,0);

Wm=Wilders(Wilders(Buy,3)-Wilders(Sell,3),3);

Buy=Cross(Wm,0);

Sell=Cross(0,Wm);

Graph1=Wm;

/*Graph2=Wilders(Wm,30);*/

Graph2=MA(Wm,8);

Graph0=0;

Graph0Style=Graph1Style=Graph2Style=5;

Graph2Color=6;

 

Filter= (Buy==1) ;

NumColumns = 6;

Column0 =Ref(C+0.065,-1);

Column0Format = 1.2;

Column0Name = "Trigger Price";WriteVal(C+0.065);

Column1 = C;

Column1Name = "Close ";WriteVal(C);

Column1Format = 1.2;

Column2 = MA(V,17);

Column2Name = "17 Ma Vol ";WriteVal(MA(V,17) );

Column2Format = 1.0;

Column3 = MA(C,17)/MA(C,50);

Column3Name = "% 17/50 ";WriteVal( MA(C,17)/MA(C,50) );

Column3Format = 1.2;

Column3Format = 1.2;

Column4= MA(C,17);

Column4Name="17 C ma"; WriteVal( MA(C,17) );

Column4Format = 1.2;

Column4= MA(C,50);

Column4Name="50 C ma"; WriteVal( MA(C,50) );

Column4Format = 1.2;

Column5=Wm;

Column5Name="Vol Osc"; WriteVal(Wm);

Column5Format=1.2;

/* End of Exploration Code. */

 

 
-------Original Message-------
 
From: mroman59
Date: 08/25/05 19:01:40
Subject: [amibroker] Looking for PPO indicator- Help please
 
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


 
Add FUN to your email - CLICK HERE!
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.15/82 - Release Date: 8/25/2005