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
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
Anton Wibowo: With above code - it become EA (not indicator) when attached to chart - but works perfectly which print buffer values in MT5 Expert Tab
The OnTick() event handler is reserved for Expert Advisors (EAs). You should not be using it for Indicators.
For indicators, you should be using OnCalculate(), not OnTick(). If you are missing the OnCalculate() event handler, then it will not consider it an indicator.
Don't use OnTick() at all for Indicators, and don't use OnCalculate() at all for Expert Advisors (EAs). Don't mix them up.

Documentation on MQL5: Event Handling / OnCalculate
- www.mql5.com
The function is called in the indicators when the Calculate event occurs for processing price data changes. There are two function types. Only one...

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi there,
I am very new to MQL5 and trying to create custom indicator
With above code - it become EA (not indicator) when attached to chart - but works perfectly which print buffer values in MT5 Expert Tab
If changed with bellow code - it become indicator - but not working - nothing print
How to make it an indicator which print buffer values in MT5 Expert Tab?
Please help - thank you