How Ma2CCI EA Works and can help In securing more profit in Forex Trading

The MA2CCI Expert Advisor is a powerful  script based on the commonly used trend following indicators, namely, Simple Moving Average (SMA), Commodity Channel Index (CCI) and Average True Range (ATR).

As the name suggests, it employs a strategy of two Simple Moving Averages crossing over each other, and using the Commodity Channel Index for confirmation of the breakout.

It uses the fast Simple Moving Average based on the FMa period value, and the slow Simple Moving Average based on the SMaperiod value, along with the Commodity Channel Index calculated using the PCCi period value. The Average True range using the pATRperiod value is used to calculate the stop-loss of the trade. It should be noted that the CCI is used only for entry rules.

 

Trade Entry Rules for Ma2CCI Expert

  1. Entry rule condition is evaluated at the close of each candle.
  2. Entry rule condition is evaluated only if there are no open positions.
  3. BUY when the fast SMA crosses above the slow SMA, and the CCI has crossed above the 0 level on the closed candle. Both conditions should be met on the closed candle for the BUY trade to be triggered. The stop-loss is placed at current Bid minus the ATR value.
  4. SELL when the fast SMA crosses below the slow SMA, and the CCI has crossed below the 0 level on the closed candle. Both conditions should be met on the closed candle for the SELL trade to be triggered. The stop-loss is placed at the current Ask plus the ATR value.
  5. The lot-size is calculated based on the stop-loss, and the risk per trade parameters.
  6. The Expert Advisor can open (and maintain) only one position at any given time.

 

Trade Exit Rules for Ma2CCI Expert Advisor

  1. Exit rule condition is evaluated at the close of each candle.
  2. Exit rule condition is evaluated only if a position is open.
  3. Exit BUY trade if the fast SMA crosses below the slow SMA on the last closed candle.
  4. Exit SELL trade if the fast SMA crosses above the slow SMA on the last closed candle.

 

Email Alert Notification Feature in Ma2CCI EA

If e-mail notification is enabled by setting SndMl to TRUE, then the Expert Advisor sends an e-mail notification whenever a trade is opened or closed by it.

 

How to Configure Ma2CCI Expert with its configurable Parameter

 

It can be configured using following configurable parameters;

  1. FMa – The period used to calculate the fast Simple Moving Average (SMA).
  2. SMa – The period used to calculate the slow Simple Moving Average (SMA).
  3. PCCi –The period used to calculate the Commodity Channel Index (CCI).
  4. pATR – The period used to calculate the Average True Range (ATR).
  5. Lots – The lot-size of each trade opened by the Expert Advisor.
  6. SndMl– Specifies whether to send an e-mail when a trade is opened or closed by the Expert Advisor. If TRUE, the Expert Advisor will send an e-mail as per the e-mail configuration whenever a trade is opened or closed.
  7. DcF– The optimization (smoothing) factor used to smooth the indicators used in the entry and exit calculations.
  8. MaxR– The maximum risk per trade used to calculate the stop-loss based on the account equity and lot-size. This value is expressed as a fraction of hundred. For example, 0.02 implies the maximum risk per trade of 2% of the account equity. The stop-loss is calculated based on the maximum risk per trade and the lot-size specified by Lots.
  9. EmailTo– The recipient e-mail address where the e-mail notification will be sent.
  10. EmailFrom– The sender e-mail address from which account the e-mail notification will be sent.
  11. EmailFromName– The display name of the sender e-mail address from which account the e-mail notification will be sent.
  12. SMTPServer– The address of the SMTP server of the sender’s e-mail account.
  13. SMTPLogon– The logon account credentials of the SMTP server of the sender’s e-mail account. This is typically same as EmailFrom
  14. SMTPPassword– The password of the sender’s e-mail account.
  15. SMTPSSL – Specifies whether to use Secure Sockets Layer (SSL) encryption to connect to the SMTP server.
  16. SMTPPort– The TCP/IP port of the the SMTP server to connect to the SMTP server.