anybody help me please , if price close above the gann(green line) line buy, and if price close below the gann(redline) line and sell with arrow
thanks a lot for advance
/*Gann HiLo*/
Hld = IIf(C > Ref(MA(H, 8), -1), 1, IIf(C < Ref(MA(L, 8), -1), -1, 0));
Hlv = ValueWhen(Hld != 0, Hld, 1);
Hilo = IIf(Hlv == -1, MA(H, 8), MA(L, 8));
Trigger = IIf(C>Hilo, colorCustom9, colorCustom5);
Plot(Hilo, _DEFAULT_NAME(), Trigger, styleStaircase);
thanks a lot for advance
/*Gann HiLo*/
Hld = IIf(C > Ref(MA(H, 8), -1), 1, IIf(C < Ref(MA(L, 8), -1), -1, 0));
Hlv = ValueWhen(Hld != 0, Hld, 1);
Hilo = IIf(Hlv == -1, MA(H, 8), MA(L, 8));
Trigger = IIf(C>Hilo, colorCustom9, colorCustom5);
Plot(Hilo, _DEFAULT_NAME(), Trigger, styleStaircase);