I'm a newbie to MQL5 and I've tried to search on this forum but couldn't find a solution for my problem.
I'm coding an indicator which is used for my EA. The main purpose of this indicator is counting the number of bars of each peak or trough (in other words, it forms the highest or lowest in how many bars). If this number is between a range (Eg. 10-15), it will be shown at the top/bottom of the highest/lowest candle (as in the picture).
I hope an experienced programmer can help!
Please enable the necessary setting in your browser, otherwise you will not be able to log in.