The idea
This is a long-only price-action reversal system. It looks for a bullish reversal bar entirely below the Williams Alligator jaw, teeth and lips, then enters with a buy-stop one tick above that bar’s high while treating the bar’s low as structural invalidation. Exits use that stop, or a fractal-plus-teeth trend flip from up to down.
Optional AO or Bill Williams–style Market Facilitation filters (labeled MFI in the source, but computed as (high−low)/volume, not the classic Money Flow Index) can demand cleaner reversal bars. It is a Pine Script v6 strategy() for the Strategy Tester.

Indicators
- Bullish reversal bar: close above hl2, and the bar’s low equals the lowest low of the last 7 bars.
- Alligator: jaw SMMA(hl2,13) shifted 8, teeth SMMA(hl2,8) shifted 5, lips SMMA(hl2,5) shifted 3. A valid bar must have its high below all three.
- Williams fractals (2 bars each side) with teeth mark trend as +1 / −1 for trend-based exits.
- Optional AO: SMA(hl2,5) − SMA(hl2,34), requiring diff = AO − AO[1] < 0.
- Optional “MFI” filter: volume/range style squat detection; off by default.
Entry rules
- Long only; pyramiding = 1, so one position at a time.
- On a valid reversal bar, a buy-stop is placed at the bar high plus one minimum tick.
- Default size is 50% of equity, with 0.1% commission and slippage set to 5.
- Orders are only armed inside the trading window (default 2023-01-01 through 2026-01-01).
Exits and position sizing
- After a fill, the reversal bar’s low becomes stopLossLevel and is attached via strategy.exit.
- If stopLossLevel has been cleared while a position is open and trend flips from +1 to −1, strategy.close_all exits at market.
- There is no fixed take-profit multiple; the design holds while the trend stays intact and leaves on bar invalidation or a down flip.
- Bot alert placeholders are present in the source; Coinpred does not fill or store those tokens.
Inputs (source defaults)
| Input | Default | Purpose |
|---|---|---|
| Enable MFI | Off | Require squat-style confirmation |
| Enable AO | Off | Require AO difference still negative |
| Trade Start / Stop Date | 2023-01-01 / 2026-01-01 | Allowed trading window |
| sourceUuid / secretToken | placeholders | Bot alert placeholders |
| default_qty_value | 50 | 50% of equity per trade |
| pyramiding | 1 | One position at a time |
| commission_value | 0.1 | Commission percent |
| slippage | 5 | Slippage in ticks |
Things to know before using it
- It is long-only, and the default size is half of equity—reduce it before serious testing.
- Entry is a stop through the bar high, not a market order on the close; fake breaks get stopped quickly, and gaps can slip further.
- “MFI” here is not TradingView’s Money Flow Index; it is a Bill Williams–style facilitation ratio.
- Fractal trend marks lag; trend-flip exits can trail visible highs.
- The author chart is ETHUSDT on 4 hours. Validate separately before applying it to BTC or other timeframes.
Installing it on TradingView
- Download the .pine file from Coinpred (active membership required, see below), or check the original page for the latest version.
- Open the Pine Editor on TradingView, create a blank script, paste the full source and save.
- Click Add to chart and watch the stop entries and stop-loss line in the Strategy Tester.
- Check the defaults against the table; enabling AO/MFI filters will reduce signal count.
- Understand the fills before wiring alerts. Past results do not guarantee future returns.
About backtest figures
Source, license and version
- Author: Skyrexio. Original title: Bullish Reversal Bar Strategy [Skyrexio]. Version 1.0 (pine-facade).
- License: Mozilla Public License 2.0 (MPL 2.0). Coinpred provides the full, unmodified source.
- Original page: https://www.tradingview.com/script/3E33waKe-Bullish-Reversal-Bar-Strategy-Skyrexio/
- Pine version: v6; script type: strategy().
- Images come from the author’s publication page, are not covered by the MPL, and are captioned “Author showcase”.
- Downloads are subject to Coinpred membership terms. If you modify the source file, the modified file must remain under MPL 2.0.