Keystone Retest | Flip Zone & Breakout Strategy by blitz_algo
By blitz_algo
Performance Metrics
- Author: blitz_algo
- Symbol: NASDAQ:NFLX
- Timeframe: 1 week
Description
Keystone Retest is a strategy that follows the trend and looks for entries around the 21 EMA and swing-based support and resistance.How it works1. Trend. A 21/55 EMA ribbon sets the direction: long when the 21 is at or above the 55, short when below. An optional higher-timeframe filter (weekly by default, switched off) requires the last closed candle on that timeframe to agree.2. Zones. Swing highs and lows create resistance and support zones. When price closes through one, it flips roles. A second break retires it.3. Entries. Any one of these can trigger a trade in the trend's direction:Zone reclaim: price touches a zone and closes back outside it.Ribbon bounce: price reaches the 21 EMA and closes back on the trend side.Zone breakout: a candle closes through an opposing zone.4. Risk. The stop sits beyond the last two bars, or the reclaimed zone, with padding. Trades needing a stop wider than 5 ATR are skipped, and the minimum stop is 1 ATR.5. Exits. The default target is 2R. After price moves 1R in favor, the stop moves to entry and can then trail the 55 EMA. An opposite signal can reverse the position.FeaturesLayered trend ribbon, gray when an enabled higher-timeframe filter disagreesZones that fade with repeated tests, with dashed borders after a flipRisk and reward boxes, plus active stop and target linesDiamond markers for standard entries and squares for engulfing candlesGray × on skipped setups, with the reason on hoverStatus line showing direction, open R and planned riskSeparate switches for each entry type, reversals and trade directionDefault backtest settingsInitial capital: 10,000Risk per trade: 20% of equity (target, subject to the position cap)Position cap: about 25x equity, with 2% marginCommission: 0.05% per orderSlippage: 2 ticksPyramiding: offTipsTest your chosen market and timeframe before relying on any setting.If you enable the higher-timeframe filter, set it above your chart's timeframe.Test each entry type alone before combining them.Match commission, slippage and margin to your broker.Test several symbols and separate time periods.Treat results from fewer than 100 trades with caution.Lower the risk setting before considering live use.WarningsThe default risk is extremely high. Three full losses in a row at 20% lose about 49% of equity, and five lose about 67%, before costs.Leverage can cause liquidation. Price gaps can produce losses far larger than planned.Shorter timeframes can increase the impact of commission and slippage.The backtest excludes funding and borrowing fees.Signals are evaluated at bar close and entries fill at the next open, so actual risk can differ from the plan.Swings are confirmed 3 bars late. Their zones are drawn back to the swing bar, but weren't known at that time.Past results do not predict future performance. This script is for research and education, not financial advice.