I've been trying to translate the following Easy Language code into efs but can't get it right. I'm no programmer. Could someone please help? Thanks
Input: BarLength(16), ATRLength(9);
Vars: LowestLow(0), HighestHigh(0);
If CurrentBar > 1 Then Begin
LowestLow = Lowest (low, BarLength);
HighestHigh = Highest (High, BarLength);
If Close > LowestLow + AverageFC(AvgTrueRange(ATRLength), ATRLength) * 2.5 AND
Close > HighestHigh - AverageFC( AvgTrueRange(ATRLength), ATRLength) *2.5 then begin
PlotPaintBar(High, Low, Open, Close, "LongShort",Green);
End;
If Close < HighestHigh - AverageFC( AvgTrueRange(ATRLength), ATRLength) * 2.5 AND
Close < LowestLow + AverageFC(AvgTrueRange(ATRLength), ATRLength) * 2.5 then begin
PlotPaintBar (High, Low, Open, Close, "LongShort",Red);
End;
End;
Input: BarLength(16), ATRLength(9);
Vars: LowestLow(0), HighestHigh(0);
If CurrentBar > 1 Then Begin
LowestLow = Lowest (low, BarLength);
HighestHigh = Highest (High, BarLength);
If Close > LowestLow + AverageFC(AvgTrueRange(ATRLength), ATRLength) * 2.5 AND
Close > HighestHigh - AverageFC( AvgTrueRange(ATRLength), ATRLength) *2.5 then begin
PlotPaintBar(High, Low, Open, Close, "LongShort",Green);
End;
If Close < HighestHigh - AverageFC( AvgTrueRange(ATRLength), ATRLength) * 2.5 AND
Close < LowestLow + AverageFC(AvgTrueRange(ATRLength), ATRLength) * 2.5 then begin
PlotPaintBar (High, Low, Open, Close, "LongShort",Red);
End;
End;
Comment