When you post code please use the CODE button (Alt-S)!
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Hi
ChartGPT is not the best advisor here – it mixes up mql5 and mlq4 code (As it did in your case). Try to fix the code and we can try you with your mistakes.
Here there are multiple problems with this: you need to define Indicator_plot property. Then you need to set indicators type and styles for both buffers. Also you should define RSI and CCI handles (iRSI and iCCI) on the oninit function and then only get the proper values in the OnCalulcate using CopyBuffer function. Besides that – you don’t really need RSI here, because you want an alert where CCI value reach 90 or 10 level, so those are constant values (not related to RSI values at all) then it’s even simpler. But still you need to fix all those mistakes which ChatGpT has given you.
Have a nice day👍📊

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I Need assistant the indicator script thatni generated from chartgpt.. this are my values below.
Code me a RSI and CCI MT5 indicator with the following parameters.
RSI input 1color blue, Level 10. 90, 80, 20 and 50
CCI input 5000 with color red
Send a pop-up alert when CCI input 5000 touches RSI 1 level 90
Send a pop-up alert when CCI input 5000 touches RSI 1 level 10
After generating it, I load it but is still not working. see below.