Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Commodity Channel Index Automation Example - MetaTrader 4 Expert | MT4 EA Download - MetaTrader 4 Resources

author EAcpu | 3 reads | 0 comments |

Example of Commodity Channel Index Automated - expert for MetaTrader 4

Example of Commodity Channel Index Automated - expert for MetaTrader 4

Muhammad Subra

 Double CCI_Typical_Curr= iCCI ( invalid , 0 , CCIP period, price_TYPICAL , 0 ); Double CCI_Typical_Prev= iCCI ( invalid , 0 , CCIP period, price_TYPICAL , 1 ); // This is the opening and buying rule
If ((CCI_Typical_Prev<- 90 ) && CCI_Typical_Curr>- 80 ) // This is the opening and selling rule
if ((CCI_Typical_Prev> 90 ) && (CCI_Typical_Curr< 80 ))
  • Some wonderful entries are as follows:
 Enter string separator 1 = "-------------- Trade options---------------" ; //Trade input >> >> >> >>
Input integer Transaction Copier = 3 ; //Transaction Copier
Enter double lot size = 0.03 ; //Fixed lot size
Enter integer magic number = 1982 ; //Transaction ID
Enter double stop loss = 50 ; //Stop loss
Enter double profit = 200 ; // Take profit
Enter an integer Trailing Stop = 50 ; //Trailing Stop
Enter integer slippage = 3 ; enter string separator 2 = "---------------- CCI option --------------" ; //CCI input >> >> >> >>
Input integer CCIP period = 9 ; //CCI period
Enter string separator 3 = "-------------Chart color---------------" ; //Trading arrow color >> >> >> >>
Enter color Buy arrow open = clear blue ; //Buy arrow color
Input color sell arrow open = red blood cells ; // sell arrow color
Input color Modify arrow= innocent ; //Modify transaction arrow color 

Example of Commodity Channel Index Automated - expert for MetaTrader 4

Example of Commodity Channel Index Automated - expert for MetaTrader 4

suggestion:


Attachment download

📎 cci-automated.mq4 (5.07 KB)

Source: MQL5 #15213

Verification code Refresh