Im trying to create a custom column on my watch list that will tell me how many candles in a row meet a certain criteria The counter would naturally start at 1 and keep going every 2 hr candle close it keeps meeting the criteria
The criteria is: DMI+ > 25 DMI – < 20 and ADX is > 18
Any help on this would be appreciated
Marked as spam
The following will display the number of bars since condition was first true regardless of what time frame you select.
Marked as spam
that works great thank you so much is there a way that I can put the numbers over the candles and also make them stay there even if the count gets reset back to zero So for instance if there is a stock that has 7 bars in a row that meet the parameters those 7 candles in a row would be marked 1 2 3 4 5 6 7 and then it stopped and those numbers would still stay there and show up again if a new count starts
Did you try it yet? Just add it to a new custom chart study and adjust the style to "plot values at low". Should work fine but I haven't tried it.
i dont know how to adjust the style to "plot values at low"
Im trying to get the numbers over the candles on top of the chart
Sorry but that is not even an option. Best you can get is value at low or value at high. This is a setting available to all plot on all chart studies. You may want to view the following post for a clue: https://www.hahn-tech.com/ans/displaying-values-for-swing-high-and-low-pivots/
got it this is exactly what i wanted you a genius now for perfection how can I make the color turn green in my watch list if the number is 1 and 2
In the future you need to include the full set of specifications up front. I have a limited amount of time available for free solutions in the Q&A forum and going back to modify code to meet changing specifications requires more time than I allow myself to spend.
Please log in to post questions.