Skip to content
All library documents

Williams Fractal Entries with EMA Trend and Optional Filters

Article TradingView scripts

Summary

This short timeframe strategy enters long after a down fractal and short after an up fractal, subject to a fast and slow EMA trend filter. The EMA relationship sets the allowed direction, while the fractal bar’s close is checked against both averages. Optional filters include a minimum EMA gap, RSI range and direction, and a count of opposing candles during a pullback. Settings also allow long-only or short-only trading and a chosen date window.

The stop is tied to the slow EMA, and the profit target is set as a multiple of the stop distance. The script includes a custom balance and win-rate table and fields for 3Commas bot messages. These are implementation features rather than evidence of performance: no strategy results or market-specific validation are provided. Fractals require later bars to confirm a pivot, and the code’s intrabar handling and configurable filters can affect signals and historical simulation, so results require careful evaluation on the intended market and timeframe.

Key ideas

  • A down fractal can trigger a long entry when the EMA trend and other enabled filters agree.
  • An up fractal can trigger a short entry under the corresponding bearish conditions.
  • The slow EMA supplies the stop reference, while the profit target scales the stop distance.
  • RSI bounds, RSI direction, EMA separation, and pullback candle counts are optional filters.
  • The included tester table and bot message fields do not establish that the strategy is profitable.

Tags

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