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

Re: 2000i formula snidbit



PureBytes Links

Trading Reference Links


Inputs:Length1(5),Length2(65);

Vars:Test(0);

if(BarNumber>Length2)then begin
Test=absvalue(100*(average(close,Length1)-average(close,Length2))/average(close,Length2));
end;

If Test<>0 then begin
If Test>=Test[1]then Plot1(Test,"TrendUp");
If Test<=Test[1]then Plot2(Test,"TrendDn");
end;

{Plot1 histogram Green
  Plot 2 histogram magenta}