Skip to content
All library documents

CCI, Williams %R, and Day Impulse Entry Rules for a Hedging Expert Advisor

Article MQL5 code base

Summary

This document describes an Expert Advisor that combines the Commodity Channel Index, Williams’ Percent Range, and a custom Day Impulse indicator. The three indicators share an averaging period. The illustrated sell rule requires no existing sell position, a Day Impulse reading above its threshold and rising from the prior reading, Williams %R above its upper level, and CCI above a positive threshold. The buy rule mirrors these conditions: no existing buy, Day Impulse below its threshold and falling, Williams %R below its lower level, and CCI below the negative threshold.

The advisor can hold opposing positions, and the page therefore recommends a hedging account. It identifies the signal conditions and configurable levels, but does not explain the Day Impulse calculation or provide exit rules, position-risk controls, test results, or evidence of profitability. The described entry logic is consequently incomplete as a standalone trading system, and its effectiveness cannot be assessed from the material provided.

Key ideas

  • The advisor combines CCI, Williams %R, and a custom Day Impulse indicator.
  • All three indicators use a shared averaging period.
  • Sell and buy entries require threshold conditions across all three indicators.
  • Opposing positions may be opened, so the page recommends a hedging account.
  • The excerpt provides no exit logic or performance evidence.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.