Strong Levels (Safe Version)Strong Levels (Safe Version)
This indicator automatically detects and plots strong support and resistance levels based on pivot highs/lows and the number of touches. It’s designed to highlight only the most reliable levels by filtering with ATR tolerance and minimum touch requirements.
Features:
Detects pivot-based support and resistance zones
Adjustable left/right candles for pivot sensitivity
Minimum touches filter to confirm significant levels
ATR-based tolerance for flexible clustering of nearby levels
Maximum levels limit for cleaner charts
Automatic color coding (teal = support, red = resistance)
Safe version with optimized handling of line objects (up to 500 lines)
Parameters:
Left / Right candles – sensitivity of pivot detection
Min. touches – minimum confirmations required to display a level
ATR period & multiplier – tolerance range for grouping nearby levels
Max levels – limits the number of active levels
Colors – customize support and resistance lines
Usage:
This tool helps traders quickly identify the strongest price levels where market reactions are most likely. Use it to find high-probability entry, exit, or stop-loss zones in any market and timeframe.
Bandas y canales
SMC + FVG + EMA + TrendlinesSMC + FVG + EMA + Trendlines legRange = math.abs(structureHigh - structureLow) // <-- เปลี่ยนชื่อจาก range -> legRange
if showCurrentStruct and not na(structureHigh) and not na(structureLow)
if na(curHighLine) == false
line.delete(curHighLine)
if na(curLowLine) == false
line.delete(curLowLine)
curHighLine := line.new(sHighIdx, structureHigh, bar_index, structureHigh, xloc.bar_index, color=currentStructColor, style=currentStructStyle, width=currentStructWidth)
curLowLine := line.new(sLowIdx, structureLow, bar_index, structureLow, xloc.bar_index, color=currentStructColor, style=currentStructStyle, width=currentStructWidth)
// ---------- Fibonacci on current leg ----------
if showFibo and legRange > 0
for k = 0 to array.size(fLevels) - 1
lvl = array.get(fLevels, k)
price = sDir == 1 ? structureHigh - (legRange - legRange * lvl)
: structureLow + (legRange - legRange * lvl)
l = line.new(sDir == 1 ? sHighIdx : sLowIdx, price, bar_index, price, xloc.bar_index, color=fiboColorMain, style=fiboStyle, width=fiboWidth)
label.new(bar_index + 10, price, str.tostring(lvl) + " (" + str.tostring(price) + ")", style=label.style_none, textcolor=fiboColorMain)
LUCEO ENVLUCEO ENV — 순차 분할매수 & 타임아웃·익절 관리 인디케이터
개요
LUCEO ENV는 중심선(SMA) 기준 하단 엔벨로프(L1/L2/L3)에 닿을 때 1·2·3차 순차 분할매수를 가정하고, 체결마다 평단을 재계산하여 **평단대비 목표익절(TP)**을 제시합니다. 각 단계 진입 후에는 **타임아웃(예: 20시간)**이 독립적으로 적용되어, 목표가 도달 전 일정 시간이 지나면 강제 종료(타임아웃 청산) 신호를 제공합니다.
동일 봉에서 L1·L2·L3가 동시에 충족되면 동시에 모두 체결될 수 있도록 설계되어 있습니다.
핵심 기능
엔벨로프 기반 3단계 분할매수: L1/L2/L3(%)에 도달 시 단계별 가중치(w1/w2/w3)만큼 매수 가정
동일 봉 다중 체결 허용: L1·L2·L3가 한 캔들에서 동시에 충족되어도 순차/동시 체결 처리
평단/익절 자동 갱신: 체결마다 평단가 및 익절 목표가(평단 × (1+TP%)) 재계산
단계별 타임아웃 종료: 1·2·3차 각각의 마지막 진입 시각으로부터 설정 시간 경과 시 “타임아웃 종료”
리셋 조건 단순화: 익절 또는 타임아웃 시에만 상태·평단·TP 전부 초기화 (중심선 돌파 리셋 없음)
알림(Alerts): 1차/2차/3차 매수, 익절, 타임아웃에 대한 즉시 알림 제공
---------------------------------------------------------------------------------------------------------------------
LUCEO ENV — Sequential Scale-In & Timeout / Take-Profit Management Indicator
Overview
LUCEO ENV assumes 1st/2nd/3rd staged entries when price touches the lower envelopes (L1/L2/L3) built from an SMA baseline. After each fill, it recalculates the weighted average entry and projects a take-profit relative to the average entry (TP). An independent timeout (e.g., 20 hours) starts after each stage is filled; if price fails to hit the target before the timer expires, a forced exit (timeout close) signal is generated.
If L1/L2/L3 are all touched within the same candle, the script allows all stages to fill in that bar.
Key Features
Envelope-based 3-stage scale-in: When price reaches L1/L2/L3 (%), assumes a buy with the corresponding weights (w1/w2/w3).
Same-bar multi-fills allowed: If L1–L3 are met within a single candle, sequential/simultaneous fills are handled.
Auto average/TP updates: After each fill, recalculates the average entry and updates the TP (Average × (1 + TP%)).
Stage-specific timeouts: From the last fill time of each stage; once elapsed, emits a “Timeout Exit”.
Simplified reset logic: Fully resets state/average/TP only on take-profit or timeout (no SMA-cross reset).
Alerts: Instant alerts for 1st/2nd/3rd buy, take-profit, and timeout.
PCV (Darren.L-V2)Description:
This indicator combines Bollinger Bands, CCI, and RVI to help identify high-probability zones on M15 charts.
Features:
Bollinger Bands (BB) – displayed on the main chart in light gray. Helps visualize overbought and oversold price levels.
CCI ±100 levels + RVI – displayed in a separate sub-window:
CCI only shows the ±100 reference lines.
RVI displays a cyan main line and a red signal line.
Valid Zone Detection:
Candle closes outside the Bollinger Bands.
RVI crosses above +100 or below -100 (CCI level reference).
Candle closes back inside the BB, confirming a price rebound.
Requires two touches in the same direction to confirm the zone.
Only zones within 20–30 pips range are considered valid.
Usage:
Helps traders spot reversal or bounce zones with clear visual signals.
Suitable for all indices, Forex, and crypto on M15 timeframe.
VWAP Pro v6 (Color + Bands)AI helped me code VWAP
When price goes above VWAP line, VWAP line will turn green to indicate buyers are in control.
When price goes below VWAP line, VWAP line will turn red to indicate sellers are in control.
VWAP line stays blue when price is considered fair value.
Hilly's Advanced Crypto Scalping Strategy - 5 Min ChartTo determine the "best" input parameters for the Advanced Crypto Scalping Strategy on a 5-minute chart, we need to consider the goals of optimizing for profitability, minimizing false signals, and adapting to the volatile nature of cryptocurrencies. The default parameters in the script are a starting point, but the optimal values depend on the specific cryptocurrency pair, market conditions, and your risk tolerance. Below, I'll provide recommended input values based on common practices in crypto scalping, along with reasoning for each parameter. I’ll also suggest how to fine-tune them using TradingView’s backtesting and optimization tools.
Recommended Input Parameters
These values are tailored for a 5-minute chart for liquid cryptocurrencies like BTC/USD or ETH/USD on exchanges like Binance or Coinbase. They aim to balance signal frequency and accuracy for day trading.
Fast EMA Length (emaFastLen): 9
Reasoning: A 9-period EMA is commonly used in scalping to capture short-term price movements while remaining sensitive to recent price action. It reacts faster than the default 10, aligning with the 5-minute timeframe.
Slow EMA Length (emaSlowLen): 21
Reasoning: A 21-period EMA provides a good balance for identifying the broader trend on a 5-minute chart. It’s slightly longer than the default 20 to reduce noise while confirming the trend direction.
RSI Length (rsiLen): 14
Reasoning: The default 14-period RSI is a standard choice for momentum analysis. It works well for detecting overbought/oversold conditions without being too sensitive on short timeframes.
RSI Overbought (rsiOverbought): 75
Reasoning: Raising the overbought threshold to 75 (from 70) reduces false sell signals in strong bullish trends, which are common in crypto markets.
RSI Oversold (rsiOversold): 25
Reasoning: Lowering the oversold threshold to 25 (from 30) filters out weaker buy signals, ensuring entries occur during stronger reversals.
MACD Fast Length (macdFast): 12
Reasoning: The default 12-period fast EMA for MACD is effective for capturing short-term momentum shifts in crypto, aligning with scalping goals.
MACD Slow Length (macdSlow): 26
Reasoning: The default 26-period slow EMA is a standard setting that works well for confirming momentum trends without lagging too much.
MACD Signal Smoothing (macdSignal): 9
Reasoning: The default 9-period signal line is widely used and provides a good balance for smoothing MACD crossovers on a 5-minute chart.
Bollinger Bands Length (bbLen): 20
Reasoning: The default 20-period Bollinger Bands are effective for identifying volatility breakouts, which are key for scalping in crypto markets.
Bollinger Bands Multiplier (bbMult): 2.0
Reasoning: A 2.0 multiplier is standard and captures most price action within the bands. Increasing it to 2.5 could reduce signals but improve accuracy in highly volatile markets.
Stop Loss % (slPerc): 0.8%
Reasoning: A tighter stop loss of 0.8% (from 1.0%) suits the high volatility of crypto, helping to limit losses on false breakouts while keeping risk manageable.
Take Profit % (tpPerc): 1.5%
Reasoning: A 1.5% take-profit target (from 2.0%) aligns with scalping’s goal of capturing small, frequent gains. Crypto markets often see quick reversals, so a smaller target increases the likelihood of hitting profits.
Use Candlestick Patterns (useCandlePatterns): True
Reasoning: Enabling candlestick patterns (e.g., engulfing, hammer) adds confirmation to signals, reducing false entries in choppy markets.
Use Volume Filter (useVolumeFilter): True
Reasoning: The volume filter ensures signals occur during high-volume breakouts, which are more likely to sustain in crypto markets.
Signal Arrow Size (signalSize): 2.0
Reasoning: Increasing the arrow size to 2.0 (from 1.5) makes buy/sell signals more visible on the chart, especially on smaller screens or volatile price action.
Background Highlight Transparency (bgTransparency): 85
Reasoning: A slightly higher transparency (85 from 80) keeps the background highlights subtle but visible, avoiding chart clutter.
How to Apply These Parameters
Copy the Script: Use the Pine Script provided in the previous response.
Paste in TradingView: Open TradingView, go to the Pine Editor, paste the code, and click "Add to Chart."
Set Parameters: In the strategy settings, manually input the recommended values above or adjust them via the input fields.
Test on a 5-Minute Chart: Apply the strategy to a liquid crypto pair (e.g., BTC/USDT, ETH/USDT) on a 5-minute chart.
Fine-Tuning for Optimal Performance
To find the absolute best parameters for your specific trading pair and market conditions, use TradingView’s Strategy Tester and optimization features:
Backtesting:
Run the strategy on historical data for your chosen pair (e.g., BTC/USDT on Binance).
Check metrics like Net Profit, Profit Factor, Win Rate, and Max Drawdown in the Strategy Tester.
Focus on a sample period of at least 1–3 months to capture various market conditions (bull, bear, sideways).
Parameter Optimization:
In the Strategy Tester, click the settings gear next to the strategy name.
Enable optimization for key inputs like emaFastLen (test range: 7–12), emaSlowLen (15–25), slPerc (0.5–1.5), and tpPerc (1.0–3.0).
Run the optimization to find the combination with the highest net profit or best Sharpe ratio, but avoid over-optimization (curve-fitting) by testing on out-of-sample data.
Market-Specific Adjustments:
Volatile Pairs (e.g., DOGE/USDT): Use tighter stop losses (e.g., 0.5–0.7%) and smaller take-profit targets (e.g., 1.0–1.2%) to account for rapid price swings.
Stable Pairs (e.g., BTC/USDT): Slightly wider stop losses (e.g., 1.0–1.2%) and take-profit targets (e.g., 1.8–2.5%) may work better.
Trending Markets: Increase emaSlowLen (e.g., to 25–30) to follow stronger trends.
Choppy Markets: Tighten bbMult (e.g., to 1.8) and lower rsiOverbought/rsiOversold (e.g., to 70/30) to filter noise.
Forward Testing:
After backtesting, run the strategy in real-time on a demo account for 1–2 weeks to validate performance under current market conditions.
Important Notes
No Universal "Best" Numbers: Optimal parameters vary by crypto pair, exchange, and market conditions (e.g., bull vs. bear market). The suggested values are a starting point based on common scalping practices.
Risk Management: Never risk more than 1–2% of your account per trade. Adjust position sizing in TradingView’s strategy settings to align with your risk tolerance.
Market Volatility: Crypto markets are highly volatile. Test the strategy on your specific pair and adjust parameters if signals are too frequent or too rare.
Not Financial Advice: This is an educational tool. Backtest thoroughly and use a demo account before trading with real funds.
If you want me to generate a chart showing backtest performance for specific parameters or to tweak the script further (e.g., adding more indicators or adjusting signal logic), let me know!can you add clear buy ans sell signs above the candles in this codeTo add clear buy and sell signals above the candles in the provided Pine Script, I'll modify the existing code to include prominent text labels directly above (for sell signals) and below (for buy signals) the candles. These labels will be larger, color-coded, and positioned to avoid clutter, ensuring they are easily visible on the chart. The core strategy logic (EMA, RSI, MACD, Bollinger Bands, candlestick patterns, and volume filter) will remain unchanged, and I'll reuse the same artifact_id since this is an update to the previous script.AdvancedCryptoScalpingStrategy.pinex-pine
PCV Setup (By Darren.L)The PCV Setup is designed for M15 scalping trading.
It combines Bollinger Bands (volatility), CCI (momentum), and RVI (trend confirmation) to filter false signals and improve accuracy.
Most-Crossed Channels (FAST • Top-K • Flexible Window)//@version=5
indicator("Most-Crossed Channels (FAST • Top-K • Flexible Window)", overlay=true, max_boxes_count=60, max_labels_count=60)
// ---------- Inputs ----------
windowMode = input.string(defval="Last N Bars", title="Scan Window", options= )
barsLookback = input.int(defval=800, title="If Last N Bars → how many?", minval=100, maxval=5000)
sess = input.session(defval="0830-1500", title="Session (exchange tz)")
sessionsBack = input.int(defval=1, title="If Last N Sessions → how many?", minval=1, maxval=10)
minutesLookback = input.int(defval=120, title="If Last X Minutes → how many?", minval=5, maxval=24*60)
sinceTs = input.time(defval=timestamp("2024-01-01T09:30:00"), title="Since time (chart tz)")
channelsK = input.int(defval=3, title="How many channels (Top-K)?", minval=1, maxval=10)
binTicks = input.int(defval=8, title="Bin width (ticks)", minval=1, maxval=200) // NQ tick=0.25; 8 ticks = 2.0 pts
minSepTicks = input.int(defval=12, title="Min separation between channels (ticks)", minval=1, maxval=500)
countSource = input.string(defval="Wick (H-L)", title="Count bars using", options= )
drawMode = input.string(defval="Use Candle", title="Draw channel as", options= )
anchorPart = input.string(defval="Body", title="If Use Candle → part", options= )
fixedTicks = input.int(defval=8, title="If Fixed Thickness → thickness (ticks)", minval=1, maxval=200)
extendBars = input.int(defval=400, title="Extend to right (bars)", minval=50, maxval=5000)
showLabels = input.bool(defval=true, title="Show labels with counts")
// ---------- Colors ----------
colFill = color.new(color.blue, 78)
colEdge = color.new(color.blue, 0)
colTxt = color.white
// ---------- Draw caches (never empty) ----------
var box g_boxes = array.new_box()
var label g_lbls = array.new_label()
// ---------- Helpers ----------
barsFromMinutes(mins, avgBarMs) =>
ms = mins * 60000.0
int(math.max(2, math.round(ms / nz(avgBarMs, 60000.0))))
// First (oldest) candle in whose selected part contains `level`
anchorIndexForPrice(level, useBody, scanNLocal) =>
idx = -1
for m = 1 to scanNLocal - 1
k = scanNLocal - m // oldest → newest
o = open
c = close
h = high
l = low
topZ = useBody ? math.max(o, c) : h
botZ = useBody ? math.min(o, c) : l
if level >= botZ and level <= topZ
idx := k
break
idx
// ---------- Window depth ----------
inSess = not na(time(timeframe.period, sess))
sessStartIdx = ta.valuewhen(inSess and not inSess , bar_index, 0)
sessStartIdxN = ta.valuewhen(inSess and not inSess , bar_index, sessionsBack - 1)
sinceStartIdx = ta.valuewhen(time >= sinceTs and time < sinceTs, bar_index, 0)
avgBarMs = ta.sma(time - time , 50)
depthRaw = switch windowMode
"Last N Bars" => barsLookback
"Today (session)" => bar_index - nz(sessStartIdx, bar_index)
"Last N Sessions" => bar_index - nz(sessStartIdxN, bar_index)
"Last X Minutes" => barsFromMinutes(minutesLookback, avgBarMs)
"Since time" => bar_index - nz(sinceStartIdx, bar_index)
avail = bar_index + 1
scanN = math.min(avail, math.max(2, depthRaw))
scanN := math.min(scanN, 2000) // performance cap
// ---------- Early guard ----------
if scanN < 2
na
else
// ---------- Build price histogram (O(N + B)) ----------
priceMin = 10e10
priceMax = -10e10
for j = 0 to scanN - 1
loB = math.min(open , close )
hiB = math.max(open , close )
lo = (countSource == "Body only") ? loB : low
hi = (countSource == "Body only") ? hiB : high
priceMin := math.min(priceMin, nz(lo, priceMin))
priceMax := math.max(priceMax, nz(hi, priceMax))
rng = priceMax - priceMin
tick = syminfo.mintick
binSize = tick * binTicks
if na(rng) or rng <= 0 or binSize <= 0
na
else
// Pre-allocate fixed-size arrays (never size 0)
MAX_BINS = 600
var float diff = array.new_float(MAX_BINS + 2, 0.0) // +2 so iH+1 is safe
var float counts = array.new_float(MAX_BINS + 1, 0.0)
var int blocked = array.new_int(MAX_BINS + 1, 0)
var int topIdx = array.new_int()
binsN = math.max(1, math.min(MAX_BINS, int(math.ceil(rng / binSize)) + 1))
// reset slices
for i = 0 to binsN + 1
array.set(diff, i, 0.0)
for i = 0 to binsN
array.set(counts, i, 0.0)
array.set(blocked, i, 0)
array.clear(topIdx)
// Range adds
for j = 0 to scanN - 1
loB = math.min(open , close )
hiB = math.max(open , close )
lo = (countSource == "Body only") ? loB : low
hi = (countSource == "Body only") ? hiB : high
iL = int(math.floor((lo - priceMin) / binSize))
iH = int(math.floor((hi - priceMin) / binSize))
iL := math.max(0, math.min(binsN - 1, iL))
iH := math.max(0, math.min(binsN - 1, iH))
array.set(diff, iL, array.get(diff, iL) + 1.0)
array.set(diff, iH + 1, array.get(diff, iH + 1) - 1.0)
// Prefix sum → counts
run = 0.0
for b = 0 to binsN - 1
run += array.get(diff, b)
array.set(counts, b, run)
// Top-K with spacing
sepBins = math.max(1, int(math.ceil(minSepTicks / binTicks)))
picks = math.min(channelsK, binsN)
if picks > 0
for _ = 0 to picks - 1
bestVal = -1e9
bestBin = -1
for b = 0 to binsN - 1
if array.get(blocked, b) == 0
v = array.get(counts, b)
if v > bestVal
bestVal := v
bestBin := b
if bestBin >= 0
array.push(topIdx, bestBin)
lB = math.max(0, bestBin - sepBins)
rB = math.min(binsN - 1, bestBin + sepBins)
for bb = lB to rB
array.set(blocked, bb, 1)
// Clear old drawings safely
while array.size(g_boxes) > 0
box.delete(array.pop(g_boxes))
while array.size(g_lbls) > 0
label.delete(array.pop(g_lbls))
// Draw Top-K channels
sz = array.size(topIdx)
if sz > 0
for t = 0 to sz - 1
b = array.get(topIdx, t)
level = priceMin + (b + 0.5) * binSize
useBody = (drawMode == "Use Candle")
anc = anchorIndexForPrice(level, useBody, scanN)
anc := anc == -1 ? scanN - 1 : anc
oA = open
cA = close
hA = high
lA = low
float topV = na
float botV = na
if drawMode == "Use Candle"
topV := (anchorPart == "Body") ? math.max(oA, cA) : hA
botV := (anchorPart == "Body") ? math.min(oA, cA) : lA
else
half = (fixedTicks * tick) * 0.5
topV := level + half
botV := level - half
left = bar_index - anc
right = bar_index + extendBars
bx = box.new(left, topV, right, botV, xloc=xloc.bar_index, bgcolor=colFill, border_color=colEdge, border_width=2)
array.push(g_boxes, bx)
if showLabels
txt = str.tostring(int(array.get(counts, b))) + " crosses"
lb = label.new(left, topV, txt, xloc=xloc.bar_index, style=label.style_label_down, textcolor=colTxt, color=colEdge)
array.push(g_lbls, lb)
Sinyal Gabungan Lengkap (TWAP + Vol + Waktu)Sinyal Gabungan Lengkap (TWAP + Vol + Waktu) volume btc dan total3 dan ema
Order Blocks & FVG (Kostya)the indicator is the attempt to visualize the trading opportunities - price magnets and potential reversal zones for intraday and swing trading.
Playbook//@version=6
indicator('Playbook', overlay = true, scale = scale.right)
// === Inputs ===
useYesterdayPOC = input.bool(true, 'Use Yesterday\'s POC (else Today’s Developing)')
atrLength = input.int(14, 'ATR Length', minval = 1)
stretchMult = input.float(1.5, 'Stretch Threshold (in ATRs)', minval = 0.1, step = 0.1)
showBands = input.bool(true, "Show Stretch Bands")
useAnchoredVWAP = input.bool(true, "Show Anchored VWAP")
anchorDate = input.time(timestamp("01 Jan 2023 00:00 +0000"), "VWAP Anchor Date")
// === ATR ===
atr = ta.atr(atrLength)
isNewDay = ta.change(time('D')) != 0
// === VWAP as POC Approximation ===
todayVWAP = ta.vwap
var float yVWAP = na
if isNewDay
yVWAP := todayVWAP
activePOC = useYesterdayPOC and not na(yVWAP) ? yVWAP : todayVWAP
// === Stretch Bands ===
upperBand = activePOC + atr * stretchMult
lowerBand = activePOC - atr * stretchMult
// Plot stretch bands
pocColor = color.yellow
bandFill = plot(upperBand, "Upper Band", color=color.red, linewidth=1, display=showBands ? display.all : display.none)
bandFill2 = plot(lowerBand, "Lower Band", color=color.green, linewidth=1, display=showBands ? display.all : display.none)
pocLine = plot(activePOC, "POC Target", color=pocColor, linewidth=2)
fill(bandFill, bandFill2, color=color.new(color.gray, 90))
// === Anchored VWAP ===
anchoredVWAP = ta.vwap(ta.change(time) >= anchorDate ? close : na)
plot(useAnchoredVWAP ? anchoredVWAP : na, "Anchored VWAP", color=color.blue, linewidth=2)
// === STATUS TABLE ===
var table statusTable = table.new(position.bottom_right, 1, 1, border_width=1, border_color=color.gray)
insideBands = close <= upperBand and close >= lowerBand
statusText = insideBands ? "WAIT" : "TRADE AVAILABLE"
statusColor = insideBands ? color.orange : color.green
table.cell(statusTable, 0, 0, statusText, text_color=color.rgb(5, 4, 4), bgcolor=statusColor)
// === Heatmap ===
bgcolor(close > upperBand ? color.new(color.red, 80) : close < lowerBand ? color.new(color.green, 80) : color.new(color.orange, 90))
On-Chain Metrics & Z-Mode SelectionThis indicator provides an on-chain metric analysis framework for cryptocurrencies (currently limited to) BTC and ETH; allowing users to select from popular metrics such as SOPR, Profit Addresses %, NUPL, or MVRV.
It enables various analyses on the chosen metric to capture momentum and rate of change dynamics over time.
Analyses include:
Normalization techniques utilizing Mean or Median with standard deviation, as well as a 'Robust' method using interquartile range-based Z-scoring to accommodate skewed distributions, or raw values without normalization.
An optional differential calculation that highlights the rate of change (first derivative) of the metric.
Moving average smoothing with up to two passes, supporting EMA, SMA, or WMA types.
Optional sigmoid-based compression that scales and centers the indicator output, improving interpretability, mitigating extreme outliers, and allowing the user to scale the output so that the step size or increment of the long and short thresholds remains within a workable range.
Buy and sell signals are generated based on configurable long and short thresholds applied to the processed output.
Visual components such as trend colouring, threshold lines, background shading, and labels make it simple for traders to identify entry signals.
This indicator is suitable for those looking to integrate blockchain behavioral insights into their trading decisions.
Overall, this script transforms complex on-chain data into actionable trade signals by combining adaptive normalization and smoothing techniques. Its versatility and multi-metric support make it a valuable tool for both market monitoring and strategy development.
No financial decisions should be made based solely on this indicator. Always conduct your own research. .
Acknowledgements
Inspiration drawn from: CipherDecoded
IFVG Extended + Entry/TPs IFVG Extended + Entry/TPs this is high winrate hands free just follow the system
Trader Marks Trailing SL + TP (BE @ 66%)📌 Title
Trader Marks Trailing SL + TP (BE @ 66%)
📌 Description
This indicator combines Stop-Loss, Take-Profit, and Trailing Stop management into one tool.
It offers two different modes:
S/L+ EXACT → Reproduces the classic ATR Trailing Stop Indicator (by ZenAndTheArtOfTrading) with full accuracy.
Advanced (Delay + BE + Ratchet) →
Uses a fixed SL until X hours after entry
Then switches to ATR-based trailing stop (ratchet, never reverses)
Moves the stop to Break-Even once Y% of the distance to the target has been reached
📌 Features
✅ Two modes: Classic & Advanced
✅ Works for both Long & Short trades
✅ Manual entry, SL and TP levels
✅ Start delay for trailing (e.g. 12 hours)
✅ ATR-based ratcheting (never moves backwards)
✅ Automatic Break-Even stop at 66% of the way to TP (adjustable)
✅ Visual plots for Entry, SL, TP, current Stop, and 66%-threshold
✅ Alerts for Stop-Hit, TP-Hit, and BE activation
📌 Parameters
Setup
Direction: Long / Short
Entry Price
Stop-Loss
Take-Profit (manual)
Mode
S/L+ EXACT
Advanced (Delay+BE+Ratchet)
S/L+ Parameters
ATR Length (default 14)
High/Low lookback (default 7)
ATR Multiplier (default 1.0)
Basis: High/Low, Close, or Open
Advanced Parameters
ATR Length (e.g. 14)
ATR Multiplier (e.g. 1.0)
Update only on bar close (true/false)
Start delay in hours (e.g. 12)
BE Threshold in % of distance to TP (default 66%)
Option to stop trailing after BE
📌 Alerts
Stop Hit (Long)
Stop Hit (Short)
TP Reached (Long)
TP Reached (Short)
Break-Even Active
📌 Recommended Defaults
Mode: Advanced (Delay+BE+Ratchet)
ATR Length: 14
Lookback: 7
ATR Multiplier: 1.0
Start Delay: 12 hours
Break-Even Threshold: 66%
rockstarluvit's a stochastics and trend indicator, where rockstars csan trade like winnners and stay away from crazy divergewnces.
Adaptive Open InterestThis indicator analyzes Bitcoin open interest to identify overbought and oversold conditions that historically precede major price moves. Unlike static levels, it automatically adapts to current market conditions by analyzing the last 320 bars (user adjustable).
How It Works
Adaptive Algorithm:
-Analyzes the last 320 bars of open interest data
-Combines percentile analysis (90th, 80th, 20th, 10th percentiles) with statistical analysis (standard deviations)
-Creates dynamic zones that adjust as market conditions change
Four Key Zones:
🔴 Extreme Overbought (Red) - Major crash risk territory
🟠 Overbought (Orange) - Correction risk territory
🔵 Oversold (Blue) - Opportunity territory
🟢 Extreme Oversold (Green) - Major opportunity territory
For Risk Management:
-When OI enters red zones → Consider reducing long positions, major crash risk
-When OI enters orange zones → Caution, correction likely incoming
For Opportunities:
-When OI enters blue zones → Look for long opportunities
-When OI enters green zones → Strong buying opportunity, major bounce potential
The Table Shows:
-Current status (which zone OI is in)
-Range position (where current OI sits as % of 320-bar range)
-320-bar high/low levels for context
Why It's Effective:
-Adaptive Nature: What's "high" OI in a bear market differs from bull market - the indicator knows the difference and adjusts automatically.
-Proven Approach: Combines multiple statistical methods for robust signals that work across different market cycles.
-Alert System: Optional alerts notify you when OI crosses critical thresholds, so you don't miss important signals.
-The indicator essentially tells you when the futures market is getting "too crowded" (danger) or "too empty" (opportunity) relative to recent history.
QG_Trade SPOT freeQG Trade SPOT – Adaptive Support Line
An indicator for spot trading that helps identify reliable support levels, manage positions with ease, and build entries after significant market corrections. It adapts to market conditions and shows where to enter and exit more effectively.
Two modes:
• Standard (30m–2h) – frequent trades with equal position sizes when price touches the support line. Exits are made at predefined take-profits (TP1, TP2, TP3) with partial closing.
• Multiplier (4h) – allows position building after significant corrections, with each new entry increasing by x1 → x2 → x4, etc. The first exit is fixed at a set profit %, then the indicator waits for a minimum threshold and attempts to catch a trend reversal to exit closer to the market peak.
Smart position management: entry limits, average price calculation, real-time P&L tracking
Clear interface with entry/exit signals and profit targets
Who it’s for
Spot traders who want confidence in entries and position management
Suitable for both beginners and experienced traders: active intraday trading with Standard mode or patient accumulation with Multiplier mode
QG Trade SPOT – Adaptive Support Line
Индикатор для спотовой торговли, который помогает находить надёжные уровни поддержки, управлять сделками без лишней суеты и набирать позиции после значительных коррекций. Он адаптируется под рынок и показывает, где лучше входить и выходить.
Два режима:
• Стандартный (30m–2h) – частые сделки одинаковыми суммами при касании линии поддержки. Выход по заранее заданным тейкам (TP1, TP2, TP3) с частичной фиксацией.
• Мультипликатор (4h) – позволяет набирать позиции после значительных коррекций, при этом каждый новый вход увеличивается по схеме x1 → x2 → x4 и т.д. Первый выход фиксируется на заданном % прибыли, далее индикатор ждёт минимальный порог и старается поймать разворот тренда, чтобы выйти ближе к пику рынка.
Умное управление сделками: лимиты входов, средняя цена, P&L в реальном времени
Наглядный интерфейс с сигналами входа/выхода и целями по прибыли
Для кого
Для тех, кто торгует спот и хочет уверенности в точках входа и управлении позициями
Подходит и новичкам, и опытным трейдерам: можно активно торговать внутри дня в стандартном режиме или терпеливо накапливать позиции в мультипликаторе
Prophecy Orderflow – XAUUSD⚜️ Overview
Prophecy Orderflow is a clean, professional trading indicator built for serious day traders who demand precision. Designed around institutional concepts of bias, momentum, and orderflow alignment, this tool gives clear BUY/SELL signals, along with structured stop loss (SL) and take profit (TP1, TP2, TP3) levels—so you trade with confidence and discipline.
⚡ Core Features
✅ Automatic BUY & SELL signals with on-chart markers
✅ Dynamic Stop Loss & Target lines (SL / TP1 / TP2 / TP3)
✅ Bias confirmation using higher timeframe EMAs
✅ ATR-based volatility filter for cleaner entries
✅ Lightweight design – no clutter, only high-quality setups
✅ Built-in watermark branding: Prophecy Orderflow
📈 How to Use
Look for the BUY triangle (yellow) or SELL triangle (purple).
Trade only in alignment with the bias filter (higher timeframe EMA trend).
Follow the stop loss and TP lines automatically plotted.
TP2 and TP3 act as scaling or full exit zones for extended moves.
⚖️ Best For
Day Traders on XAUUSD (Gold), US30, and major Forex pairs
Scalpers seeking clear, structured exits
Swing traders using HTF bias for confirmation
💡 Note
This is not financial advice. Always backtest, paper trade, and manage risk responsibly.
👉 Built exclusively by 4x Prophet to help traders execute with clarity and confidence.
BB scalping1. Overview
The BB Scalping Strategy is a systematic trading approach designed for TradingView, implemented in Pine Script™ v5. It combines Bollinger Bands®, a fast-moving average, and the Awesome Oscillator to identify short-term (scalping) entry and exit opportunities in trending markets. The strategy includes configurable backtesting periods, trading time windows, and integrated risk management via stop-loss orders.
2. Core Trading Logic
The strategy generates signals based on the confluence of three technical indicators:
Bollinger Bands (BB): The core indicator. A crossover of a fast EMA above or below the BB middle line (basis) serves as the primary entry trigger.
Awesome Oscillator (AO): Used as a momentum filter. A buy signal requires bullish momentum (AO rising and above its midline), while a sell signal requires bearish momentum (AO falling and below its midline).
Fast Exponential Moving Average (EMA): A short-period EMA (default: 3) that quickly reacts to price changes, providing timely crossover signals with the BB basis.
3. Key Features
Dual Entry Signals:
Long Entry: Triggered when the Fast EMA crosses above the BB basis, price is above the basis, and the Awesome Oscillator confirms bullish momentum.
Short Entry: Triggered when the Fast EMA crosses below the BB basis, price is below the basis, and the Awesome Oscillator confirms bearish momentum.
Advanced Filtering Options:
BB Filter: When enabled, long entries are only valid if the price is below the BB upper band, and short entries are only valid if the price is above the BB lower band.
Squeeze Filter: When enabled, entries are only permitted during a "squeeze" (low volatility period), identified when the BB width is below a user-defined threshold percentage of its historical average.
Precise Backtesting Control:
Date Range Filter: Allows users to define a specific start and end date for historical backtesting.
Trading Time Window: Restricts trading activity to specific hours of the day (in 24h format), allowing simulation of a specific session (e.g., a market open session).
Integrated Risk Management:
Stop-Loss Orders: A fixed percentage-based stop-loss is automatically calculated and set for every trade upon entry (e.g., 1%). This is a critical feature for managing risk in a scalping strategy.
4. Chart Visualization
The script provides clear visual cues on the chart:
Plots the Bollinger Bands and the Fast EMA.
Colors the BB channel to indicate a "squeeze" (blue) or high-volatility (white) state.
Displays up/down arrow markers directly on the chart at the exact point where buy and sell signals are generated.
5. Usage Notes
Optimal Environment: This strategy is designed for trending markets and may generate false signals during sideways or choppy conditions, especially if the squeeze filter is disabled.
Parameter Tuning: Users are encouraged to optimize parameters (like BB length, multiplier, EMA length, and stop-loss percentage) for different instruments and timeframes.
Backtesting: Always conduct thorough backtesting over a significant period of data and different market conditions before deploying any strategy with real capital.
Disclaimer: This strategy is provided for educational and research purposes only. Past performance is not indicative of future results. Trading financial instruments carries a high level of risk and may not be suitable for all investors. 1. 策略概述
BB剥头皮策略是一款基于TradingView平台、使用Pine Script™ v5语言编写的自动化交易策略。该策略综合运用了布林带 (Bollinger Bands®)、快速指数移动平均线 (EMA) 和动量震荡指标 (Awesome Oscillator) 来捕捉市场短期的趋势性机会,旨在通过频繁的小额盈利(剥头皮)实现收益。策略内置了可定制的回测时间范围、交易时间窗口以及基于百分比的止损来管理风险。
2. 核心交易逻辑
策略的信号生成依赖于三个技术指标的共振:
布林带 (BB): 核心指标。当快速EMA上穿或下穿布林带中线(基准线)时,构成主要入场触发条件。
动量震荡指标 (AO): 用作动量过滤器。买入信号需要看涨动量(AO为正且在上升),卖出信号需要看跌动量(AO为负且在下降)。
快速指数移动平均线 (EMA): 一条短周期EMA(默认3),对价格变化反应灵敏,提供与布林带中线的及时交叉信号。
3. 策略功能特点
多空双向信号:
多头入场(买入): 当快速EMA上穿布林带中线、价格位于中线上方,且AO指标确认看涨动量时触发。
空头入场(卖出): 当快速EMA下穿布林带中线、价格位于中线下方,且AO指标确认看跌动量时触发。
高级过滤选项:
布林带过滤: 启用后,多头信号需价格低于布林带上轨,空头信号需价格高于布林带下轨,以提高信号质量。
收窄过滤 (Squeeze Filter): 启用后,仅在布林带“收窄”(低波动期)时才允许交易,此时布林带宽度低于其历史平均宽度的一定阈值(百分比),预示着潜在的趋势突破机会。
灵活的回测设置:
日期范围控制: 用户可以精确设置策略回测的起止年月日,用于检验特定历史时期的表现。
交易时间窗口: 可将交易活动限制在每天的特定时段(24小时制),例如只在北京时间上午或某个特定市场开盘时段进行交易,模拟实盘操作习惯。
严格的风险管理:
百分比止损: 每次入场后,策略会根据用户设定的百分比(例如1%)自动计算并设置止损单,这是控制剥头皮交易风险的关键功能。
4. 图表可视化
策略在图表上提供了清晰的视觉信号:
绘制布林带和快速EMA线。
根据布林带是否收窄,对通道进行不同颜色的填充(蓝色表示收窄,白色表示扩张)。
在生成买入和卖出信号的位置直接显示向上箭头和向下箭头标记,直观清晰。
5. 使用说明与风险提示
适用环境: 本策略在趋势性市场中表现更佳,在横盘震荡市中可能会产生连续假信号,尤其是在关闭收窄过滤功能时。
参数优化: 建议用户根据不同的交易品种和时间框架(如5分钟、15分钟图)对策略参数(如布林带周期、乘数、EMA长度、止损百分比)进行测试和优化。
风险警告: 该策略仅用于教育和研究目的。所有回测结果均代表历史表现,并不保证未来收益。金融市场交易存在高风险,可能导致本金损失,未必适合所有投资者。请在完全了解风险后,再谨慎使用。