Forum

array function get "array out of range"

Please help. Thanks! double BandU[]; double BandL[]; for ( int i= 1 ;i< 5 ;i++) { BandU[i] = iBands ( NULL , 0 , 20 , 2 , 0 , PRICE_CLOSE ,MODE_UPPER,i); BandL[i] = iBands ( NULL , 0 , 20 , 2 , 0 , PRICE_CLOSE ,MODE_LOWER,i);

No trade on Monday 0:00-4:00

Hi, Please help. I wrote this : DayOfWeek()!= 0 && hour()> 3 This code cause no trades on Monday whole day and no trades 00:00-04:00 every day. Please help, thanks

MT5 sometimes lost account info after PC restart

Hi , I sometimes met a problem that my mt5 lost account info and history data for symbols, but ea and tester set files is still there. The mt5 build is 2007 and OS is windows 10 with latest update. And my another PC with AMD 2970x CPU and windows 10, I could not change my tester's setting for each

Non-indicator based EA open far more trades than setting in real account

My EA opening trades does not based on bars or other indicators. I just open trades which are in my EA settings, like : eurusd,usdjpy,audusd,usdcad,eurchf and trade direction for each. It should open 1 trade for each symbol I set. In the Demo account and backtesting (every tick and random delay

Is it possible that my EA works fine (open trades) on mt5 demo account, but it will open many more trades on real account?

My broker says the trading server setting is done by MT company. The code is too long. Just this open-more-trades-than-code, does anyone encounter