TheSlushFund
New member
I have the below code for an indicator to track the 20-day high low range on the chart. I've been trying to adjust this to use it as a scanner to trigger when the ask price of a stock is above the high of the 20 prior days but have been unsuccessful. Any input on how to accomplish that?
Code:
#set chart to day
input bars_back = 20;
plot h = highest(high, bars_back)[1];
plot l = lowest(low, bars_back)[1];
addlabel (1,h);
#