Hello,
I've attempted to locate a scan using the criteria Im looking for prior to posting. If I missed one, please forward me to the thread. If not, this is what I desire; I want a scan to trigger when price is near either .50% or full ADR. This will give me enough time to look at the charts for potential setups. I do have a study (code below) that I got off the site here
https://usethinkscript.com/threads/average-daily-range-indicator-for-thinkorswim.244/
and love it. I just want it to be able to be scanned with some lead time before price hits ADR levels. Can someone help me out?
Thanks,
Chris
#Average Daily Range Levels
#By Vah for TOS, based on cristian.d CD_Average Daily Range Zones - highs and lows of the day
#The number of days you'd like average
input lenght = 21;
def dayHigh = DailyHighLow(AggregationPeriod.DAY).Dailyhigh;
def dayLow = DailyHighLow(AggregationPeriod.DAY).DailyLow;
def dayrange = dayHigh - dayLow;
def AvgRange = average(DayRange, lenght);
plot ADR_H = open(period = AggregationPeriod.DAY) + (AvgRange/2);
plot ADR_L = open(period = AggregationPeriod.DAY) - (AvgRange/2);
plot ADR_H1 = open(period = AggregationPeriod.DAY) + (AvgRange);
plot ADR_L1 = open(period = AggregationPeriod.DAY) - (AvgRange);
I've attempted to locate a scan using the criteria Im looking for prior to posting. If I missed one, please forward me to the thread. If not, this is what I desire; I want a scan to trigger when price is near either .50% or full ADR. This will give me enough time to look at the charts for potential setups. I do have a study (code below) that I got off the site here
https://usethinkscript.com/threads/average-daily-range-indicator-for-thinkorswim.244/
and love it. I just want it to be able to be scanned with some lead time before price hits ADR levels. Can someone help me out?
Thanks,
Chris
#Average Daily Range Levels
#By Vah for TOS, based on cristian.d CD_Average Daily Range Zones - highs and lows of the day
#The number of days you'd like average
input lenght = 21;
def dayHigh = DailyHighLow(AggregationPeriod.DAY).Dailyhigh;
def dayLow = DailyHighLow(AggregationPeriod.DAY).DailyLow;
def dayrange = dayHigh - dayLow;
def AvgRange = average(DayRange, lenght);
plot ADR_H = open(period = AggregationPeriod.DAY) + (AvgRange/2);
plot ADR_L = open(period = AggregationPeriod.DAY) - (AvgRange/2);
plot ADR_H1 = open(period = AggregationPeriod.DAY) + (AvgRange);
plot ADR_L1 = open(period = AggregationPeriod.DAY) - (AvgRange);
Last edited by a moderator: