Skip to main content

Gann HiLo for Amibroker (AFL)

viplavmba about 16 years ago Amibroker (AFL)

  • Rating:
    4 / 5 (Votes 4)
  • Tags:
    amibroker

Indicator based on gann swing

Indicator / Formula

Copy & Paste Friendly
/*Gann HiLo*/

Hld = IIf(C > Ref(MA(H, 3), -1), 1, IIf(C < Ref(MA(L, 3), -1), -1, 0));
Hlv = ValueWhen(Hld != 0, Hld, 1);
Hilo = IIf(Hlv == -1, MA(H, 3), MA(L, 3));
Trigger = IIf(C>Hilo, colorGreen, colorRed);
Plot(Hilo,"HiLo",Trigger,styleStaircase);

1 comments

Leave Comment

Please login here to leave a comment.