Protecting expert advisors that i sell on the market - page 2

 
Tobias Michael Kerner:

yes i am calling the indicator in OnInit and it attaches itself to the chart

tried it with #resource but also didn't work

Perfect , so you only need to display it and nothing more .

are you calling #resource on the .ex5 indicator ? (when you call the iCustom then you use :: at the front of the name)

 
#resource                  "\\Include\\MM_gui_Market.ex5"
string Indicatorname = "::MM_gui_Market";
Gui = iCustom(_Symbol,_Period,Indicatorname);
like that? Doesn't seem to work
 
Tobias Michael Kerner:
like that? Doesn't seem to work
#resource                  "\\Indicators\\MM_gui_Market.ex5"
string Indicatorname = "::Indicators\\MM_gui_Market";
Gui = iCustom(_Symbol,_Period,Indicatorname);

try this

 
Lorentzos Roussos:

try this

That works, thank you very much!
Reason: