Turn free indicator into EA I would like an EA coded with the following features: Use the output of the free indicator "MA Trend SG". https://www.mql5.com/en/market/product/7186 The EA would place buy / sell signals on the following conditions: BUY - when new arrow is BUY signal, and previous arrow was SELL signal SELL - when new arrow is SELL signal, and previous arrow was BUY signal. The indicator arrows repaint, so in order to decide whether we accept an arrow as valid we need to time how long it has been painted for, and if it exceeds a variable value ( e.g. 30 seconds) then we accept this as a valid arrow, even if it subsequently disappears. During the period when we are checking how long the arrow has been painted for, if the arrow disappears then the counter is reset. The counter is also reset if the arrow changes from buy to sell and vice versa. In addition the EA would have the following features. 1. Magic Number 2. Maximum number of open orders. 3. Stop Loss 4. Take Profit 5. Trailing Stop [Start point, offset, Step Size] 6. Lot Size 7. Trading Time [Start/End] 8. Enable Alert for buy/sell signal ( if EA only used as indicator ) 9. Enable Auto-Trading ( if EA used as full EA ) 10. Draw arrows when trades placed. 11. Display on screen the following values: a) The current arrow status. b) The previous arrow status. c) The timer current value ( i.e. how long the current arrow has been painted for )