Back to User Guide

TradingView Strategy

Price Action Reversal V1.0

Catches reversals at key levels using higher-timeframe zones, structure breaks on the LTF, and pattern confirmation. Designed for BTC futures but works on anything with clean price action.

HTF + LTF dual timeframe|4-step entry filter|Up to 1:4.5 R:R|Hyperliquid + Bitget

How It Works

All 4 conditions have to line up before it takes a trade. If any one fails, it sits on its hands. That's the whole point — filter out the garbage and only fire on clean setups.

1.Key Reversal Zones (HTF)

Pulls swing highs and lows from the higher timeframe (default 15m, recommended 2H for BTC) and maps out S/R zones. These are the levels where price has actually reacted before — not random lines on a chart.

2.Structure Break + Unhealthy Move (LTF)

When price reaches a zone, the script looks at the 1m/5m for an overextended push (measured by ATR). Then it waits for a structure break — a higher high in a downtrend, or a lower low in an uptrend. That break is the first real sign the move is exhausting.

3.Reversal Pattern (LTF)

Not enough to just break structure — the script also needs a recognizable pattern on the LTF. Double bottoms, double tops, higher lows for longs, lower highs for shorts. No pattern = no trade, even if everything else checks out.

4.Entry + Risk Management

Final filter: the entry candle needs a real body (not a doji or wick mess). Stop loss uses ATR so it adjusts to current volatility. Trailing stop kicks in once you're in profit, and the R:R target is configurable — default 2:1, BTC recommended 4.5:1.


Webhook Integration

Same webhook setup as every other AlphaGen strategy. Point TradingView at your webhook URL and it handles execution on whichever exchange you're using.

Hyperliquid — Executes on Hyperliquid perps. Any coin pair, automatic ticker detection.

Bitget Futures — USDT-M, USDC-M, and Coin-M markets. Leverage from 1x to 50x, set right in the webhook.

Intent System — Three intents: entry opens, close exits with reduceOnly, flip reverses your position in one shot.

Hyperliquid Entry

{
  "passphrase": "YourSecret",
  "ticker": "BTC",
  "side": "buy",
  "size": "0.05",
  "intent": "entry",
  "strategy": "AlphaGen PAR V1.0"
}

Bitget Flip (Reverse Position)

{
  "passphrase": "YourSecret",
  "ticker": "BTC",
  "side": "sell",
  "size": "0.05",
  "intent": "flip",
  "strategy": "AlphaGen PAR V1.0",
  "marketType": "usdt",
  "leverage": 10
}

Position Sizing

Pick how you want to size your trades.

ModeHow It WorksUse Case
Simple % of EquityUses a flat percentage of your balance. 90% = 0.9x leverage.Conservative
Risk % of EquitySizes the position so your SL risk = X% of equity. Position gets smaller when volatility is high.Recommended
Fixed Contract SizeSame coin amount every time (e.g., 0.01 BTC). Doesn't care about account size.Testing

Setup

Takes about 5 minutes from start to live.

  1. 01

    Copy the Pine Script

    Open TradingView Pine Editor, paste the AlphaGen PAR V1.0 script, hit "Add to Chart."

  2. 02

    Configure Settings

    Open strategy settings. Pick your exchange, set the passphrase to match your AlphaGen-AI webhook config, adjust sizing.

  3. 03

    Set Up the Alert

    Right-click the strategy → "Add Alert." Condition = "AlphaGen PAR V1.0", trigger = "Order fills only." Paste your webhook URL.

  4. 04

    Go Live

    Apply to your chart (BTC, ETH, ES, NQ, Gold — whatever). Webhooks fire automatically when trades trigger.


Parameters

Everything is adjustable. Defaults work for most pairs, the BTC/USDC 1m column shows what we run on Bitcoin.

ParameterDefaultBTC/USDC 1mDescription
HTF Timeframe15 min2 hoursHigher timeframe for S/R zone detection
Swing Lookback10 bars10 barsBars to identify swing highs/lows on HTF
Zone Width0.3%0.15%Width of support/resistance zones
Zone Touch Distance0.5%0.15%Distance to consider price touching a zone
Structure Lookback5 bars5 barsLTF bars for pivot detection
Unhealthy Move1.5x ATR2x ATRThreshold for aggressive moves into zones
ATR Period1415ATR calculation period
Pattern Lookback20 bars30 barsBars to detect reversal patterns
Min Pattern Bars35Minimum bars for pattern formation
Strong Candle %60%50%Minimum body-to-range ratio for entry candle
Risk:Reward2.04.5Take profit target as multiple of risk
Trailing Stop1.5x ATR5x ATRDynamic trailing stop distance
Initial SL2.0x ATR5x ATRStop loss distance from entry

On-Chart Visuals

Everything gets drawn on the chart so you can see why a trade triggered.

  • S/R Zones — Green support and red resistance zones drawn from HTF swing points
  • Swing Points — Triangle markers on detected swing highs and swing lows
  • Trailing Stop — Step-line showing your trailing stop moving with the trade
  • Entry Labels — BUY/SELL labels at exact entry points with pattern confirmation
  • Status Table — Live table showing zone proximity and exchange info

Risk Disclaimer — Not financial advice. Backtest on your instrument before going live. Size positions for your account and don't risk money you can't lose.