OPEN-SOURCE SCRIPT
QuantLine Geometric Conflict Lite V2

QuantLine Geometric Conflict Lite asks one question: where is BTC inside its own range —
and where are the alts inside theirs?
If BTC sits near the TOP of its range while most alts sit near the BOTTOM of theirs,
"long the alt off support" setups can look valid but often rest on borrowed strength —
BTC simply has not rolled over yet.
How it is calculated:
For each asset, position inside its own range on a chosen timeframe (default 4H):
pos = (last - range_low) / (range_high - range_low)
• 0 = at support (floor) · 1 = at resistance (ceiling) · 0.5 = mid-range
Headline metric — gap in percentage points:
conflict = (btc_pos - median(alt_pos)) * 100
Verdict (default ±30 pp — user-adjustable hypothesis, not a validated signal):
• ≥ +threshold → CONFLICT: BTC near ceiling, alts near floor. Handle alt support longs
with care.
• ≤ -threshold → INVERSE: mirror — BTC low, alts high.
• between → AGREEMENT: same part of their ranges — no contradiction.
Details:
• Degenerate ranges dropped if width < min % of price (default 0.5%).
• "Alts at floor N/M" counts basket members with pos ≤ 0.33.
• Basket is a fixed set of major crypto pairs, editable in settings. Keep it crypto —
session-gapped stock tickers distort a 24/7 breadth read.
Why this is not just a mashup of unrelated plots:
It measures one breadth relationship (BTC range position vs median alt range position)
and turns it into a single readable gap + verdict. Teaching lens for "whose strength is
this move standing on?" — not an entry system.
No entries, stops, or targets. No liquidation/OI/on-chain data. Not financial advice.
and where are the alts inside theirs?
If BTC sits near the TOP of its range while most alts sit near the BOTTOM of theirs,
"long the alt off support" setups can look valid but often rest on borrowed strength —
BTC simply has not rolled over yet.
How it is calculated:
For each asset, position inside its own range on a chosen timeframe (default 4H):
pos = (last - range_low) / (range_high - range_low)
• 0 = at support (floor) · 1 = at resistance (ceiling) · 0.5 = mid-range
Headline metric — gap in percentage points:
conflict = (btc_pos - median(alt_pos)) * 100
Verdict (default ±30 pp — user-adjustable hypothesis, not a validated signal):
• ≥ +threshold → CONFLICT: BTC near ceiling, alts near floor. Handle alt support longs
with care.
• ≤ -threshold → INVERSE: mirror — BTC low, alts high.
• between → AGREEMENT: same part of their ranges — no contradiction.
Details:
• Degenerate ranges dropped if width < min % of price (default 0.5%).
• "Alts at floor N/M" counts basket members with pos ≤ 0.33.
• Basket is a fixed set of major crypto pairs, editable in settings. Keep it crypto —
session-gapped stock tickers distort a 24/7 breadth read.
Why this is not just a mashup of unrelated plots:
It measures one breadth relationship (BTC range position vs median alt range position)
and turns it into a single readable gap + verdict. Teaching lens for "whose strength is
this move standing on?" — not an entry system.
No entries, stops, or targets. No liquidation/OI/on-chain data. Not financial advice.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.