If this is mq5 – the iCustom cannot be used like that - it’s creating a handle to get the indicators values later from this handle. So, you must create this handle in the OnInit and in OnTick function you can use CopyBuffer to get values from the historical candles. Then you can read the values properly. Remember to set ArraySetAsSeries for used buffers.
If this is mq5 – the iCustom cannot be used like that - it’s creating a handle to get the indicators values later from this handle. So, you must create this handle in the OnInit and in OnTick function you can use CopyBuffer to get values from the historical candles. Then you can read the values properly. Remember to set ArraySetAsSeries for used buffers.
- 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 guys,
im trying to get a function that checks how many candles from the indicator were positive or negative in a row.
My problem is that it is somehow not working correctly. So lets say: 4 Candles have been positive but it shows only 3 sometimes.
Do you guys have a idea? Thank you!
My try: