There is a difference between the "handle" and the actual indicator value. You are printing out the value of the handle.
Read the manual on how to use the handle to get access to the indicator data. It involves copying the indicator data to an array and then using the values in that array.
samuk1000 :
Read help: iCustom
Please note: in MQL5, the indicator handle is created once (in OnInit). Then, to obtain the values, use CopyBuffer

Documentation on MQL5: Technical Indicators / iCustom
- www.mql5.com
[in] The name of the custom indicator, with path relative to the root directory of indicators (MQL5/Indicators/). If an indicator is located in a subdirectory, for example, in MQL5/Indicators/ [in] input-parameters of a custom indicator, separated by commas. Type and order of parameters must match. If there is no parameters specified, then...

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 excellent people,
I am using this indicator (Kaufman MQ5) https://www.mql5.com/en/code/351
I tried this code to print the function to the chart but I only got
-1
-1
-1
0
do you know what I'm doing wrong? This would work in MT4...
Code is below and here is the chart and data window (which shows the indicator's value appropriately)