Hello everyone! I am looking for thinkscript code to identify the 1st barnumber that went through a whole number on a 1 minute chart today.
def target = whole number; #need help here
def thru = high>target and low<target;
plot arrow = thru; #need way to plot arrow on 1st bar that crosses not everytime a bar goes through a whole number
arrow.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
arrow.AssignValueColor(Color.cyan);
arrow.SetLineWeight(1);
see example in pic attached
def target = whole number; #need help here
def thru = high>target and low<target;
plot arrow = thru; #need way to plot arrow on 1st bar that crosses not everytime a bar goes through a whole number
arrow.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
arrow.AssignValueColor(Color.cyan);
arrow.SetLineWeight(1);
see example in pic attached