MOVING AVERAGE TRADING EA I nead a FOREX MT4 Expert Advisor, EA, that can trade strategy described below: The EA will be opening BUY trade(s) or BUY positions or SELL trade(s) based on two conditions: 1) closed candle type either bullish or bearish and 2)relative position of the closed candle to a specified moving average, MA, either above or below the moving average. For example, I can specify that the EA should be opening new BUY position each time a bullish candle closes above or below the specified MA or be opening new BUY position each time a bearish candle closes above or below the specified moving average, MA. Also for SELL trade(s) or position: I can specify that the EA should open sell trade(s) each time a bearish or bullish candle closes above or below a specified moving average,MA. The EA would continue to open new trades/position based on the conditions specified until either specified certain price levels ( called Take profit price level or stop loss price level)or specified total number of trades opened is reached. The EA should also be able to, automatically, close all the positions opened when a specified price levels is reached or specified total profit or total loss is reached. PARAMETERS I should be able to specify type of trade to open either: Buy only, sell only or Both I should, also be able to specify the type of moving average to apply either: exponential, simple, smoothed or linear weighted and also the MA period I should also be able to specify Lot size of each position opened, number of trades to open per signal i.e when the EA want to open position whether to open 1 or 2 or more at a time FILTERS I want to be able to specify maximum spread above which EA should not open trade even if conditions are met and time filter to specify time of the day the EA should not trade. See below summary of the EA parameters and filters S/N Parameters Value 1 Type of position: Buy only, sell only or Both 2 Moving Average Type exponential, simple, smoothed or linear weighted 3 Moving Average Period 0 4 Lot size: 0 5 No of trade to open per signal: 0 6 Total Number of Trades to open: 0 or Disabled 7 Stop loss SL / Take profit TP type to use: Price level SL and TP or Global Or Disabled SL and TP 8 Stop loss price level: 0 9 Take profit price level: 0 10 Total Stop loss: 0 (in points) 11 Total Take profit: 0 (in points) FILTERS 12 Max spread: 0 (in points) or DISABLED 13 Time ENABLED OR DISABLE 14 Time 0:00