Your input is much appreciated.
Many thanks.
Variables calculated elsewhere: AVG,SRATR,SRAVG,UpperZone,LowerZone;
"tick" function is used in Tradestation but not sure of its equivalent in Ninja.
"Xaverage" is exponential mov. avg.
Need help converting the following portion of the easylanguage code:
if Close>AVG and Close>UpperZone then
begin
X=xaverage(high-(tick*6),SRAVG);
If (X<X[1] or (X< (X[1]+SRATR*(AvgTrueRange(10))))) then
X=X[1] else X=X;
end Else
if Close<AVG and Close<LowerZone then
begin
X=XAverage (low+(tick*6),SRavg);
If (X>X[1] or (X> (X[1]-SRATR*(AvgTrueRange(10))))) then
X=X[1] else X=X;
end else X=X[1];
Comment