Forum

Code for one trade per candle

Hi all Please could someone assist with the code required to ensure that only one buy/sell order is executed per candle? Many thanks Sam

Help with code for pullback strategy EA - MQL4

Hi all I'm trying to code an EA for backtesting a fairly basic pullback trading strategy for EUR/USD. Basically, I wait for a trend to be identified by the 8,13,21 EMA on the 5 min timeframe and the 8,21 EMA on the 1H timeframe. Then wait for price to pullback and close inside the array of EMAs on