Durante il debug dello script, l'ultima mossa di F11 è uscire da OnStart. Ma dopo l'uscita da OnStart ci sono altri passi di esecuzione - i distruttori degli oggetti globali. Di conseguenza, F11 li salta - azione sbagliata.
Classico errore, e il compilatore dà chiaramente gli errori sbagliati
struct STRUCT
{
string Str;
voidoperator =( STRUCT& ) {}
voidoperator =( int& ) {}
};
STRUCT Func()
{
STRUCT Res = {0};
return(Res); // OKreturn(true ? Res : Res); // Неадекватные ошибки компилятора// 'operator=' - no one of the overloads can be applied to the function call// could be one of 2 function(s)// void STRUCT::operator=(int&)// void STRUCT::operator=(STRUCT&)// 'operator=' - structure have objects and cannot be copied
}
Consenti l'uso dei cookie per accedere al sito MQL5.com.
Abilita le impostazioni necessarie nel browser, altrimenti non sarà possibile accedere.
Hai effettuato l'accesso. L'autenticazione a due fattori è stata disattivata. Configurala di nuovo e scansiona un nuovo codice QR, oppure continua con l'autenticazione a due fattori disattivata.
2017.06.07 23:29:03.554 EURUSD : real ticks begin from 2017.04.10 00:00:00 2017.06.07 23:29:03.564 2017.04.10 00:00:00 instant buy 1.00 EURUSD at 1.05918 (1.05885 / 1.05918) 2017.06.07 23:29:03.564 2017.04.10 00:00:00 deal #2 buy 1.00 EURUSD at 1.05918 done (based on order #2) 2017.06.07 23:29:03.564 2017.04.10 00:00:00 deal performed [#2 buy 1.00 EURUSD at 1.05918] 2017.06.07 23:29:03.564 2017.04.10 00:00:00 order performed buy 1.00 at 1.05918 [#2 buy 1.00 EURUSD at 1.05918] 2017.06.07 23:29:03.566 2017.04.10 00:00:00 CTrade::OrderSend: instant buy 1.00 EURUSD at 1.05918 [done at 1.05918] 2017.06.07 23:29:03.569 2017.04.10 01:00:00 instant sell 1.00 EURUSD at 1.05833 (1.05833 / 1.05845 / 1.05831) 2017.06.07 23:29:03.569 2017.04.10 01:00:00 deal #3 sell 1.00 EURUSD at 1.05833 done (based on order #3) 2017.06.07 23:29:03.569 2017.04.10 01:00:00 deal performed [#3 sell 1.00 EURUSD at 1.05833] 2017.06.07 23:29:03.569 2017.04.10 01:00:00 order performed sell 1.00 at 1.05833 [#3 sell 1.00 EURUSD at 1.05833] 2017.06.07 23:29:03.570 2017.04.10 01:00:00 CTrade::OrderSend: instant sell 1.00 EURUSD at 1.05833 [done at 1.05833] 2017.06.07 23:29:03.570 2017.04.10 01:00:00 #3 sell 1.00 EURUSD at 1.05833 2017.06.07 23:29:03.570 2017.04.10 01:00:00 #2 buy 1.00 EURUSD at 1.05918 2017.06.07 23:29:03.570 2017.04.10 01:00:00 CSymbolInfo::CheckMarketWatch: Unknown symbol '' 2017.06.07 23:29:03.570 2017.04.10 01:00:00 #1 balance 100000.00 []ScreenshotL'ultima transazione non viene visualizzata nella GUI. Riprodotto al 1596-1606.
In kodobase, ai file sorgente è stato dato il postfix fuorviante __X.
Per esempio,TypeToBytes__10.mqh
CPositionInfo::Commission è scritto male.
Qual è?