Forum

BT finishing earlier than it should

I noticed this behavior start once I restarted MT5. I don't think there was any updates when it restarted. I'm currently running MT5 Build 4831. Context: My EA will place a buy order every time the previous candle closed below the lower Bollinger band. So when there is a new bar I check if the

has SymbolInfoSessionTrade() behavior changed?

It seems like SymbolInfoSessionTrade() has changed recently. In my EA I check for the end of the session time, calling from OnTimer() and send a message at the end of the session. This has been working fine for more than a year. Recently, I'm receiving those messages on the weekend, when the server

Detecting new version/build available

Is there anyway I can detect a new stable version of the client metatrader is available? I'd like my EA notify me when the Live Update has found a new build and it's requesting to be installed. I had issues in the past where I failed to notice a new build available hence failed to install it and it

dumping inputs values oninit

Hey folks You know how in Strategy Mode MT will dump the values assigned to all inputs when it loads up(image attached)? I'm looking to get the same thing but when the EA is loaded on a chart(not in strategy mode). I basically want to be able to look at the experts logs and know which values were

Strategy tester and market close scenarios

I've been using an specific broker for not that long, like 5 months. I've developed my own EA and until a few weeks ago I noticed every now and then, not always, during my backtesting I would see ticks starting at 13:00 hours but the Symbol Specification in MT always showed quotes and trading

Changing timeframes in BT

Trying to develop a strategy that will change the timeframe(chart and symbols) when a certain triggers happens. Let's say I'm running my EA on M1 and after a certain number of operations I'd like to switch to M5 or M15 so it will have less signals and I'll be using that to control the number of