tommy jake
New member
I want to be able to scan for the close above the high of the lowest low of a certain number of bars
Here is the code I came up with but it doesn't work yet. I assume you need the lowest low then get that bar to find its high but I could be totally wrong.
Here is the code I came up with but it doesn't work yet. I assume you need the lowest low then get that bar to find its high but I could be totally wrong.
Code:
input length = 5;
def LL = Lowest(low, length);
def LLbar = if LL then BarNumber() else double.nan;
def LLhigh = if LLbar then high else double.nan;
plot gainLL = close > LLhigh;
gainLL.SetPaintingStrategy(PaintingStrategy.ARROW_UP);
gainLL.SetDefaultColor(Color.UPTICK);
Attachments
Last edited by a moderator: