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


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


suggestion:
Attachment download
📎 cci-automated.mq4 (5.07 KB)
Source: MQL5 #15213
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •