Forum

EA to trade on the current candle

Hi, Lets say I want to write an EA to trade SMA 21 as a baseline on a daily chart, whenever the price crosses the baseline, I want to open a position. I could easily create a Boolean condition and open a position based on that: bool buyCondition = (PriceInfo[ 1 ].close > BufferMA[ 1 ]) &&

open error [2] & error code 565 on EA optimization

Hello all I'm having a problem when running my optimization on MT5 V 5.00 built 2715 , during some runs everything works well, but other times i get this error which i cannot understand what it is!! OF 0 15 : 35 : 19.008 Core 8 pass 252 returned result 62622920.000000 in 0 : 00

Set Account Info in MetaEditor

Hi, I want to know whether is it possible to the set the default value for account info like Currency, Initial deposit, Leverage and custom Time period in the EA code for backtesting, instead of doing it manually in the Strategy Tester window Settings