I haven’t been using IndicatorCreate for a long time. Instead, I use "iCustom".
Here is what your example will look like (if directly on "Indicators")
//--- create handle of the indicator iCustom handle_iCustom=iCustom(Symbol(),Period(),"MyIndic"); //--- if the handle is not created if(handle_iCustom==INVALID_HANDLE) { //--- tell about the failure and output the error code PrintFormat("Failed to create handle of the iCustom indicator for the symbol %s/%s, error code %d", Symbol(), EnumToString(Period()), GetLastError()); //--- the indicator is stopped early return(INIT_FAILED); }
Hi,
I've founded my problem...
Metatrader shall be restarted in order to access new locations of indicators.
Thx,
Erwann Pannerec:
Hi,
I've founded my problem...
Metatrader shall be restarted in order to access new locations of indicators.
Thx,
When you move an indicator "manually", you can also update MT5 with Refresh command in the Navigator.
Oh Yes, It's working too :)
Thx !
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,
I get a bug regarding loading indicator on Metatrader 5.
If my indicator is located on "Examples" repertory, that works fine :
But if I move my indicator directly on "Indicators", the following code doesn't work :
I have a 4802 error returned...
Any idea ?