Building a Butterfly Oscillator and Trend-Filtered Trading Strategy
Summary
The article adapts the mathematical Butterfly Curve into a technical oscillator and outlines an automated strategy built around it. Its oscillator uses the curve’s x-component, advances its parameter with bar progression, and allows the step size to control how quickly the waveform cycles. An optional price-sensitive mode incorporates the candle’s open-to-close movement, combining a repeating timing pattern with a response to price changes.
For entries, the described system uses oscillator peaks or troughs together with moving-average trend direction and configurable threshold levels, with an Expert Advisor implementing the rules. The article presents mathematical construction and code structure, along with illustrative oscillator and strategy examples, but the provided text does not establish robust out-of-sample or live-trading performance. The approach is therefore best treated as an experimental indicator concept: parameter choices alter signal frequency, and the examples do not demonstrate that the curve predicts future prices reliably.
Key ideas
- The Butterfly Oscillator derives its values from the x-component of a periodic mathematical curve.
- Changing the parameter step size changes the oscillator's cycle length and signal frequency.
- An optional mode makes the oscillator responsive to the candle's open-to-close price movement.
- The proposed strategy combines oscillator peaks or troughs with moving-average trend direction.
- The examples describe implementation but do not establish reliable live or out-of-sample performance.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.