Forum

MT5: How to limit the ticks passed to an EA to 1M OHLC only after 1M candle close

Hi, I am backtesting a EA purchased from marketplace which works very well during backtests with 1M OHLC data but not so well with Real Ticks. The EA puts pending orders quite far from current price so I know there's no catch in EA to overfit data but I just want to know if there's any way to call

Error "Corrupted history detected"

Hello Friends, I am new to MT5 and am learning to create EAs. I copied simple code to execute Ctrade.Buy but the backtest failed. Here's more info: 1) Account: Its a live account with base currency as NZD 2) MetaEditor settings for backtest: 3) Code: Copied from https://www.mql5.com/en/articles/481

Guidance for coding a simple indicator

Hi, I am new to MT5 and need some guidance to get started in programming MQL5. I am trying to write a simple indicator that: 1) Puts a Green Up arrow at the low of a bar when: the given bar's range (close - open) is more then that of bar 3 periods before 2) Puts a Red Down arrow at the high of a bar