Consecutive bar count for DMI and ADX?


New member
I am trying to add a column on my watch list that will tell me how many bars in a row a specified condition has been meet
The condition is DMI+ is greater than or equal to 25 and DMI- is less than or equal to 20 and the ADX is greater than or = to 20
So when this first happens I would like the column to say the number 1 and if it happens for a second candle in a row I would like it to say the number 2 and so on until it doesn't happen than it would drop off my list

Similar threads