CCI with alert when crossing levels for MT5

 
I need a CCI indicator that notifies me when it crosses a certain levels. I've been looking for this indicator for MT5 across the internet, forum, and codebase (maybe I missed it), but I can't find any. All I found is for MT4.
Can anyone help me find this simple indicator with alert?
 

Just to remind:

Coders (any coder) are coding for free:

  • if it is interesting for them personally, or
  • if it is interesting for many members of this forum.

----------------

and Freelance section of the forum should be used in most of the cases.

Trading applications for MetaTrader 5 to order
Trading applications for MetaTrader 5 to order
  • 2024.10.29
  • www.mql5.com
The largest freelance service with MQL5 application developers
 
Your topic has been moved to the section: Technical Indicators
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
 

Hi

You can try to code it by yourself by modification of available CCI indicator from Examples. Just add in the code a detection when CCI reach chosen level (include a condition that you only alert on the latest candles and that you have not already played the alert on this candle (hence this lastAlertTime variable)

     if(i >=rates_total-1  && lastAlertTime < time[rates_total-1] && ExtCCIBufer[i]>=level){
          Alert(“CCI Cross”);
          lastAlertTime = time[rates_total-1];
         }

Have a nice day👍📊