Trading Signals generated using a Simple moving average

 

Hi there

Does anyone know to use either MT4 or MT5 to advise a signal when:

  1. The close of the moving average is above its previous close to generate a BUY signal (or to stay long if a Buy signal has already been given).
  2. The close of the moving average is below its previous close to generate a SELL signal (or to stay short if a Sell signal has already been given).

To be able to calculate actual profit and loses because the close of the Moving Average will relate back to actual market closes for the Moving Average closes in question.

To also show maximum profits and losses for each period in question after a signal has been given until a new signal is generated.

Thanking you.