This was a real eye-chart. Not sure I was able to copy that from the screenshot correctly. The crucial task was to get all the parentheses in the correct positions. So if there are any mistakes, it’s in the placement of parentheses. Give it shot and let me know if it works. Screenshots of code are not very easy to work with. Please provide text versions in the future.
input length = 14;
input averageType = AverageType.WILDERS;
def var1 = ADX(length, averageType).ADX > 30 and
DMI(length, averageType)."DI+" > DMI(length, averageType)."DI-" and
((low < low[1] and low[1] < low[2] and low[2] < low[3]) or
((low < low[1] and low[1] < low[2] and high[2] < high[3] and low[2] > low[3]) or
(low < low[1] and low[2] < low[3] and high[1] < high[2] and low[1] > low[2]) or
(low[1] < low[2] and low[2] < low[3] and high < high[1] and low > low[1])));
plot scan = var1 and close > Average(close, 50) and close > Average(close, 200);
It’s going to take me a while to get to this one. I’m working to publish a few new videos. I am also going to change the name and URL of this post. I think the title is too vague, and should definitely contain the phrase “Connors Pullback” so folks have a clear idea what it’s about.