I want the expert to analyze two Simple Moving Average indicators (SMA1 and SMA2)
(1) If Bid_Price is greater than SMA1 and the closing price of the last closed candle is less than SMA1, then the expert must first Close Sell_Position (if any exist) and then Open Buy_Position (if none exist already).
(2) If Bid_Price is less than SMA2 and the closing price of the last closed candle is more than SMA2, then the expert must first Close Buy_Position (if any exist) and then Open_Sell Position (if none exist already)
(3) Attach Stop_Loss Order to all Positions
(4) If possible – allow for choice/ selection whether the expert to do Buy_Only, Sell_Only or both Buy&Sell