Forum

Muilti-Currency Backtesting

Trying to learn and develop an EA using MT5 Using this code I can load all the pairs in MarketWatch and it works fine. But everytime you visually backtest the EA it opens an H1 window and an M15. window. Even though the EA istelf is set to be trading M1. I would just like a M1 window for all

Alternatives to MarketInfo()

I developed my EA using MT4 on Alpari and have come to transfer it over onto my broker and found that MarketInfo(Symbol(),MODE_TICKVALUE) and MarketInfo(Symbol(),MODE_STOPLEVEL) both return a value of 0. I tried using DoubleToStr to see how many decimal places it could be but there is nothing up to

Help with some code - Stuck in a loop

Hey guys first post so hello to everyone. Long time lurker. Been trying to code my EA to place buystop and sellstop either side of the pivot when the price crosses it. However it occasionally gets stuck in a loop at R2 not every-time though. Saying Ordersend Error 130. As a sample the values it