PureBytes Links
Trading Reference Links
|
Hi,
this is the code for the advanced get style oscilator in easylanguage, can
someone translate into metastock? is it even posible?
bye
Inputs: Price1(SmoothPrice(0.5*(H+L)) - Trendline(0.5*(H+L));
K input sets the percent bands where 1 = 100%, 0.8 = 80% etc.
K2 input is a scale factor to make the bands have the same value as in AGet}
Inputs: Price1(Average(0.5*(H+L),5) -
Average(0.5*(H+L),35)),K(1),K2(0.0555),Len(3);
Vars: UpperBand(0),LowerBand(0),AvgP(0);
If Price1 >0 then begin
upperband=price1;
If barnumber>=2 then
UpperBand= upperband[1] + k2*(K*(Price1 - upperband[1]));
end;
If Price1 < 0 then begin
LowerBand = Price1;
If barnumber>=2 then
LowerBand=lowerband[1] + K2*(K*(Price1 - lowerband[1]));
end;
AvgP = XAverage(Price1,Len);
Plot1(Price1,"Osc535");
If Plot1>Plot1[1] then
SetPlotColor(1,green)
Else If Plot1<Plot1[1] then
SetPlotColor(1,red);
Plot2(AvgP,"AvgP");
Plot3(UpperBand,"upper");
Plot4(LowerBand,"lower");
To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|