MACCDCCI - MetaTrader 5 Expert | Forex Indicator Download - MT4/MT5 Resources

The author of the idea — Hazem , the author of the MQL5 code — Barabashkakon .
Based on two indicators: iCCI (Commodity Channel Index, CCI) and iMACD (Moving Average Convergence/Divergence, MACD). OnTradeTransaction().
Since the CCI and MACD indicators have different measurement scales, a conversion ratio is introduced:
The values are aligned here:
Clear information about the obtained values is immediately displayed here - allowing for visual inspection.
In addition, an interesting idea was implemented - the EA (in the OnTradeTransaction() function) performs the summation of unprofitable and profitable trades (" Loss amount " variable). If the position is closed with a loss - the " Loss Quantity " increases by "1"; if the position is closed with a profit, the " Loss Quantity " decreases by "1". When opening a position, the lot size is calculated as follows: If " Loss Quantity " > "0" (which means there are currently more positions closed with losses than positions closed with profits) increase the lot size by the " Increase " factor. If " Loss Quantity " < "0" (this means that currently there are more positions closed with profit than positions closed with loss) - the lot size is taken from the coefficient:
2016.06.09 to 2016.12.04 EURUSD,M30 test results, initial deposit - 3000:
Attachment download
📎 macdcci.mq5 (22.19 KB)
Source: MQL5 #17115
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •