Hi dear members
Look at this code:
Once trigger is true, the formula will plot a vertical line 16 periods ago.
Now, I would like to replace REF() with a function that is able to find the previous lowest low over the preceding 16 periods , sothat I can sign it on the chart.
Can LLV() do anything like that?
Thanks :thumb:
Look at this code:
Code:
MA1 = MA(C, 32);
MA2 = MA(C, 16);
trigger = Cross(MA2, MA1);
vLINE = Ref(trigger, 16);
Plot(MA1, "MA1", colorYellow, styleLine);
Plot(MA2, "MA2", colorBlue, styleLine);
Plot(vLINE, "vLINE", colorWhite, styleHistogram|styleOwnScale);
Now, I would like to replace REF() with a function that is able to find the previous lowest low over the preceding 16 periods , sothat I can sign it on the chart.
Can LLV() do anything like that?
Thanks :thumb: