load custom indicator to chart via custom code/ function on init?
-
Hello guys,
i need help with this thing please:
i want to load an indicator to a chart when i attach the ea to a chart (oninit).
Any ideas how to do this? Because i dont find any function and also with custom code i dont have any look so far ;/thx for your help!
-
@bk7 After 4 years, did you get it?

-
@uriel-0
yes. the problem was the handle back then. once i saw it, it was done quickly -
@bk7 sorry, could you provide to me an example? Because I don't know how to do it. Thank You!!
-
string. lvl_indi_name. = sample_indicator_name;
string indicator_handle_01 = iCustom(NULL,0,lvl_indi_name) ;ChartIndicatorAdd( 0 , 0 ,indicator_handle_01 ) ;
in a custom mql block
-
@bk7 Thank you!! I'll try it
-
@bk7 Do you have an example project?