Announcement

Collapse
No announcement yet.

Help, I can't code this!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help, I can't code this!

    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;

  • #2
    Joseph:

    eSignal conversion attached.

    Chris
    Attached Files

    Comment


    • #3
      Chris,

      Fantastic! Thanks so much for your fast and competent help.

      Joseph

      Comment

      Working...
      X