Forum

EA that can open an order on a different chart with different timeframes

Hi, I would like to ask if is it possible to create an EA where if it makes an initial trade at higher timeframe (i.e., 4H), it will automatically open another chart (same symbol) but with different timeframe (i.e., 5M) and perform another trade automatically until SL or TP is hit

Need help in resolving this error code for EA: '{' - unbalanced parenthesis

// Define input parameters input int fastEMA = 12 ; input int slowEMA = 26 ; input int signalEMA = 9 ; input double lotSize = 0.1 ; input double riskPercentage = 2.0 ; // Percentage of capital risk per trade input int slippage = 3 ; // Define variables double macdCurrent, signalCurrent