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.
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.
| Mode | How It Works | Use Case |
|---|---|---|
| Simple % of Equity | Uses a flat percentage of your balance. 90% = 0.9x leverage. | Conservative |
| Risk % of Equity | Sizes the position so your SL risk = X% of equity. Position gets smaller when volatility is high. | Recommended |
| Fixed Contract Size | Same 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.
- 01
Copy the Pine Script
Open TradingView Pine Editor, paste the AlphaGen PAR V1.0 script, hit "Add to Chart."
- 02
Configure Settings
Open strategy settings. Pick your exchange, set the passphrase to match your AlphaGen-AI webhook config, adjust sizing.
- 03
Set Up the Alert
Right-click the strategy → "Add Alert." Condition = "AlphaGen PAR V1.0", trigger = "Order fills only." Paste your webhook URL.
- 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.
| Parameter | Default | BTC/USDC 1m | Description |
|---|---|---|---|
| HTF Timeframe | 15 min | 2 hours | Higher timeframe for S/R zone detection |
| Swing Lookback | 10 bars | 10 bars | Bars to identify swing highs/lows on HTF |
| Zone Width | 0.3% | 0.15% | Width of support/resistance zones |
| Zone Touch Distance | 0.5% | 0.15% | Distance to consider price touching a zone |
| Structure Lookback | 5 bars | 5 bars | LTF bars for pivot detection |
| Unhealthy Move | 1.5x ATR | 2x ATR | Threshold for aggressive moves into zones |
| ATR Period | 14 | 15 | ATR calculation period |
| Pattern Lookback | 20 bars | 30 bars | Bars to detect reversal patterns |
| Min Pattern Bars | 3 | 5 | Minimum bars for pattern formation |
| Strong Candle % | 60% | 50% | Minimum body-to-range ratio for entry candle |
| Risk:Reward | 2.0 | 4.5 | Take profit target as multiple of risk |
| Trailing Stop | 1.5x ATR | 5x ATR | Dynamic trailing stop distance |
| Initial SL | 2.0x ATR | 5x ATR | Stop 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.