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
Check the name of the indicator - it tries to load "Spy Control panel MCM" with spaces, and uploaded "spy_control_panel_mcm" with underscores.
It's hard to understand without log and code why the indicator can't be created, especially if you have everything working. Double-check the path to the spy, maybe the path to the spy is wrong or something like that.
Thanks for your help, Renat is right, during uploading to the server mql5.com the file got underscores instead of spaces, I removed spaces in the name, in OnTick(string symbol).mqh I corrected the name, sent it for checking, waiting for the result....
Got it.
No errors! Thank you very much for the multicurrency mode, because I was struggling with OnTimer(). I don't know where the problem with spaces appeared, either in my Opera or on the server, but Renat has an excellent eye - he found the difference!
You're welcome. I like this scheme of work too.
Konstantin, hello. If you have some free time, please visit this topic - Results of testing of multicurrency Expert Advisors. Your word would be very useful. Thank you for your labours.
The code from the article is out of date. Lost half a day fighting windmills. In particular:
{
if(!testing) EventChartCustom(chart_id,custom_event_id,(long)event,price,_Symbol);
else
{
if(GlobalVariableSet(_Symbol+"_custom_id",custom_event_id)==0) return;
if(GlobalVariableSet(_Symbol+"_event",event)==0) return;
if(GlobalVariableSet(_Symbol+"_price",price)==0) return;
GlobalVariableSet(_Symbol+"_flag",2);
}
return;
}
{
if(_testing_)
{
for(int i=0;i<_symbols_total_;i++)
{
string __symbol__=_symbol_[i];
if(MathAbs(GlobalVariableGet(__symbol__+"_flag")-2)<0.1)
{
GlobalVariableSet(__symbol__+"_flag",1);
OnTick(__symbol__);
}
}
}
}
all this "shamanism" with global variables is unnecessary. OnCalculate is called perfectly well inside the tester.