Wissam Hussein:
Hi i have this problem that i have not found a solution for it in the forum
this is the example code to call indicator within the ea code : (using ChartIndicatorAdd)
if any one have a solution i would be glad to help me out.
Thanks
//indicator_handle = iMACD(symbol, period, fast_ema_period, slow_ema_period, signal_period, apr); indicator_handle = iCustom(Symbol(), PERIOD_CURRENT, "MACD.ex5"); //IndicatorSetString(INDICATOR_SHORTNAME, "New Name") ; // i have added this line for setting the indicator short name as it use to work in the indicator
Try this code.
Still not working , any ideas ?
Wissam Hussein #:
I have tried it the macd short name has not changed?? Still the default name , i want the indicator short name to be changed
I have tried it the macd short name has not changed?? Still the default name , i want the indicator short name to be changed
You can only change the indicator short name within the indicator itself. You cannot change it from outside.
Also you cannot change the name of an EA, Script or Service. IndicatorShortName is only effective in indicators, and only for itself.
Dominik Egert #:
Ok i see , i have been thinking about this lately and seems it's not possible only within the indicator code ,, thanks man
You can only change the indicator short name within the indicator itself. You cannot change it from outside.
Also you cannot change the name of an EA, Script or Service. IndicatorShortName is only effective in indicators, and only for itself.

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 have this problem that i have not found a solution for it in the forum
this is the example code to call indicator within the ea code : (using ChartIndicatorAdd)
if any one have a solution i would be glad to help me out.
Thanks