Forum

Meta trader crashed on calculation

hi guys, may you help me on this code please : string total_modes() { string ret= "" ; int sum= 0 ; ulong i= 0 ; int interest= 1 ; bool allnotfull= false ; for ( int y= 1 ;y<=currencynumber;y++) currencyinerest[y]=interest; while (sum<currencynumber* 100 ) {

EA BUG

i'm trying to write an EA and i have little problem, the EA calculate some bar's data at the end of every bar i used code below: if (candle1!=iTime(Symbol(),PERIOD_M1,1)) {candle1=iTime(Symbol(),PERIOD_M1,1); ....} this code works perfectly every minutes; when i run the EA for first time, EA results