I would like to get data from a custom indicator in mql4.
I know that how to do that in mql5 like this.
I search the document https://docs.mql4.com/indicators/icustom and find that I can get the value one by one. But this is too slow if I have asking for 1000 value. I would like to ask if there is a good method to get data from custom indicator in mql4 ?
Thank you very much.
It'll be one by one.
Depending on how you code, you need not call iCustom() 1000 times every tick (worst case - just call once when your program starts, then just update the latest value every tick/bar will do).
I would like to get data from a custom indicator in mql4.
I know that how to do that in mql5 like this.
I search the document https://docs.mql4.com/indicators/icustom and find that I can get the value one by one. But this is too slow if I have asking for 1000 value. I would like to ask if there is a good method to get data from custom indicator in mql4 ?
Thank you very much.
Hello,
try something this..
datetime LastTimeBar=0;//Put it outside of any function/class //Add it OnTick Function if(iTime(Symbol(),0,0)!=LastTimeBar) { double IndicatorBuffer_1=iCustom(NULL,0,"Indicator Name",IndicatorsParameter_1,IndicatorsParameter_2,NoOfIndicatorBufferGet,Shift); LastTimeBar=iTime(NameOfSymbol,0,0); }
Thank you.
I updated the indicator so that I can get 1 value instead of 1000 values.
Hi
I want to use an indicator which I don't have the source code.
How can I get the data from data window in mql4?
Thanks for your guides.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
I would like to get data from a custom indicator in mql4.
I know that how to do that in mql5 like this.
I search the document https://docs.mql4.com/indicators/icustom and find that I can get the value one by one. But this is too slow if I have asking for 1000 value. I would like to ask if there is a good method to get data from custom indicator in mql4 ?
Thank you very much.