SharelineCore_LibraryLibrary "SharelineCore_Library"
funding_premium(premiumSym, funding_period, plot_type, interest_rate, fundScale)
Parameters:
premiumSym (string)
funding_period (string)
plot_type (string)
interest_rate (float)
fundScale (float)
cvd_vwap_delta(spotSym, perpSym, normLen, resetCVD)
Parameters:
spotSym (string)
perpSym (string)
normLen (int)
resetCVD (bool)
cvd_trend_norm(spotSymbol, perpSymbol, normLen, resetOnSession)
Parameters:
spotSymbol (string)
perpSymbol (string)
normLen (int)
resetOnSession (bool)
trend_strength_engine(cvdSpot, cvdPerp)
Parameters:
cvdSpot (float)
cvdPerp (float)
bias_engine(plot_value, spotTrendVal, perpTrendVal, spotStrength, perpStrength)
Parameters:
plot_value (float)
spotTrendVal (float)
perpTrendVal (float)
spotStrength (float)
perpStrength (float)
smc_engine(h, l, c, v, ms_len, bos_len, vol_filter, scale_factor, smooth_len, signal_len)
Parameters:
h (float)
l (float)
c (float)
v (float)
ms_len (int)
bos_len (int)
vol_filter (bool)
scale_factor (float)
smooth_len (simple int)
signal_len (simple int)
momentum_engine(o, c, v, fast, slow, signal, rsiLen, normLen, smaShort, smaLong, wMacd, wRsi, wCvd, wVpi)
Parameters:
o (float)
c (float)
v (float)
fast (simple int)
slow (simple int)
signal (simple int)
rsiLen (simple int)
normLen (int)
smaShort (int)
smaLong (int)
wMacd (float)
wRsi (float)
wCvd (float)
wVpi (float)
oi_engine(quotecur, useBinance, useBinance2, useBinance3, useBitmex, useBitmex2, useKraken, d_mult, strength1_mult, strength2_mult)
Parameters:
quotecur (string)
useBinance (bool)
useBinance2 (bool)
useBinance3 (bool)
useBitmex (bool)
useBitmex2 (bool)
useKraken (bool)
d_mult (float)
strength1_mult (float)
strength2_mult (float)
指標和策略
BALA'S Indicator - Dynamic + 5-Min + Pre-Market LevelsINTRADAY Strategy on Nifty with 15min Candle Setup.
Miela Labs | John Dee's Watchtower [257-463]Bridging the gap between 16th-century esoteric mathematics and modern algorithmic trading.
The Enochian Watchtower is not merely a trend indicator; it is a computational artifact developed by Miela Labs LLC. This script translates Dr. John Dee’s "Great Table of the Watchtowers" and the "Sigil Dei Aemeth" into actionable financial data points.
Using our proprietary Occultator V2.0 Engine, we have derived specific mathematical constants that resonate with the current market structure.
🏛️ The Algorithmic Logic
This indicator utilizes three sacred numbers to construct a "Future Vision" of the market:
1. The Axis Mundi (Vector 257): derived from Fermat Primes and John Dee’s Grid coordinates. This Weighted Moving Average (WMA) acts as the spinal cord of the trend.
2. The Gates (Cipher 463): A prime number derived from the "Galethog" cipher stride. These bands define the absolute volatility limits (Heaven & Earth Gates).
3. Future Vision (Offset 21): Utilizing Fibonacci time sequences, the indicator projects Support and Resistance levels 21 bars into the future, allowing traders to anticipate market movements before they occur.
⚡ How to Use
• The Trend: If price is above the Purple Axis (257), the market is in a bullish phase.
• The Entry: Look for "L" (Long) and "S" (Short) signals. These are confirmed when the signal path crosses the Axis.
• The Future: Watch the projected lines on the right side of the chart to identify upcoming resistance zones.
About Miela Labs
Miela Labs is a Technomancy Research Institute based in McKinney, Texas. We specialize in building open-source esoteric trading tools and the Magic Programming Language (MPL).
🌐 Official Hub: Visit Miela Labs
💻 Source Code & Research: GitHub Repository
Disclaimer: This tool is for educational and research purposes only. It demonstrates the application of esoteric mathematics in financial analysis. Trade responsibly.
CloudScore by ExitAnt [Upgrade]📘 CloudScore PRO by ExitAnt (v13)
CloudScore PRO는 일목균형표(REAL Ichimoku Cloud)의 ‘진짜 상방 돌파’만을 감지하고,
여기에 총 10가지 추세·모멘텀·패턴·거래량 요소를 점수화하여 (0~9점)
현재 추세 전환의 강도를 직관적으로 알려주는 고급 추세 분석 지표입니다.
일목 구름은 본래 강력한 추세 전환 신호를 제공하지만
“위→안→위” 또는 “부분 돌파” 같은 왜곡 신호가 매우 많습니다.
v13은 이를 완전히 제거하고,
오직 아래→안→위 또는 아래→위(직통) 형태의 ‘진짜 돌파’에서만 점수를 계산합니다.
🎯 지표 목적
* 진짜 일목구름 돌파만 필터링하여 신뢰도 상승
* 10개 기술 요소의 점수화(0~9점)로 한눈에 추세 강도 판단
* 거짓 진입 신호(위→안→위) 완전 제거
* 점수 0일 때도 ‘🔴’로 명확하게 무효 신호 표시
* 초보자부터 숙련자까지 모두 활용 가능한 추세 진입 필터링 지표
🧠 점수 계산 방식 (가중치 기반)
구름 돌파가 유효하게 발생하면,
아래 10가지 조건을 체크하여 각 항목별 가중치 점수가 합산됩니다.
▶ 기존 +1 점 항목 (5개)
1. 골든 크로스 발생
Fast MA가 Slow MA를 최근 N봉 내 상향 돌파
2. RSI 과매도 구간
RSI < 설정값 → 반등 가능성 증가
3. MACD 강세 전환
MACD < 0 & 시그널 상향 돌파
4. RSI 상승 다이버전스
가격 하락, RSI 상승 → 바닥 가능성
5. 종가 > MA200
장기 추세와 일치하는 경우만 점수 강화
▶ 신규 +1 점 항목 (추가 5개)
6. ADX > 20 (추세 강도)
추세가 실제로 형성되고 있을 때
7. 거래량 스파이크 발생
거래량이 평균 대비 일정 배수 이상 증가 → 큰 매수 유입
8. Stochastic Oversold Cross
%K < 30에서 골든크로스 → 저점 반등 신호
9. Bollinger Band Rebound
이전 봉이 하단 밴드를 이탈하고, 현재 봉이 중심선을 회복한 경우
10. 강세 캔들 패턴 (Bullish Engulfing / Hammer 등)
강한 반전 패턴 발생 시
> 점수는 단순 +1 합산이 아니라
> 각 요소의 중요도에 따른 가중치 합산 방식으로 계산됩니다.
📊 점수별 이모지 (8단계)
| 점수 구간 | 이모지 | 의미 |
| -------- | ------ | -------------- |
| ≤ 0 | 🔴 | 무효 신호 |
| 0 ~ 1 | ⚪ | 매우 약함 |
| 1 ~ 2 | 🟡 | 약함 |
| 2 ~ 3 | 🟢 | 관찰 필요 |
| 3 ~ 4 | 🔵 | 양호 |
| 4 ~ 5 | 📈 | 추세 형성 |
| 5 ~ 6.5 | 🚀 | 매우 강함 |
| **6.5+** | **👑** | **최상급 고신뢰 구간** |
> 👑 이모지는 6.5점 초과에서만 표시되며,
> 여러 핵심 조건이 동시에 충족된 극소수 구간에서만 나타납니다.
🖥 차트 표시 요소
* REAL Ichimoku Cloud(미래 이동 없는 실제 구름)을 기반으로 계산
* TRUE breakout(아래 → 위 돌파) 시 캔들 위에 점수 이모지 표시
* 최근 N개의 캔들만 표시 가능
* 우측 상단에 현재 점수 요소 설명 패널 표시
* 점수 0점일 때도 🔴 표시하여 신호의 부재를 명확히 표현
* 위→안→위처럼 잘못된 돌파는 완전히 제외됨
🔧 사용자 설정
* Tenkan / Kijun / SenkouB 기간 설정
* 점수 요소 개별 활성화/비활성화
* 이모지 커스터마이즈
* 최근 몇 개의 캔들까지 표시할지 설정
* MA, RSI, MACD, ADX, Bollinger 등 점수 요소 사용자 정의 가능
⚠️ 유의사항
이 지표는 일목구름 돌파 기반의 확률적 보조 도구이며,
단독으로 매수·매도 결정을 내리는 용도로 사용해서는 안 됩니다.
* 시장 변동성
* 시간 프레임
* 거래량 환경
에 따라 신호 강도는 달라질 수 있습니다.
실제 매매 적용 전 반드시 백테스트 및 시뮬레이션을 권장합니다.
오케이. 그럼 **지금 네 코드(v13, 가중치 + 8단계 이모지 기준)** 와
**완전히 1:1로 맞는 영어 설명 최종본**을 줄게.
(퍼블릭 배포용으로 그대로 써도 되는 수준)
# 📘 **CloudScore PRO by ExitAnt (v13)**
CloudScore PRO is an advanced **Ichimoku-based trend scoring indicator**
that detects only **true, valid Ichimoku Cloud breakouts** and evaluates the
strength of the trend using a **weighted score system built from 10 technical components**.
Unlike standard Ichimoku signals — which often generate distorted breakouts such as
**“above → inside → above”** —
CloudScore PRO v13 **filters these out completely** and only accepts the following structures as valid breakouts:
* **below → inside → above**
* **below → above (direct breakout)**
This ensures that scoring is applied **only when a genuine trend transition occurs**.
## 🎯 Purpose of the Indicator
* Filter out false Ichimoku Cloud breakouts
* Evaluate trend strength using **10 weighted confirmation signals**
* Visualize trend quality instantly using **8-stage emoji scoring**
* Clearly mark invalid signals (score ≤ 0)
* Serve as a robust **entry filter** for both beginners and advanced traders
## 🧠 Scoring Logic (Weighted System)
When a valid cloud breakout occurs, CloudScore PRO evaluates the following
10 components and **adds weighted scores based on their importance**.
### ▶ Core Trend & Momentum Components (5)
1. **Golden Cross**
* Fast MA crosses above Slow MA within the defined lookback period
2. **RSI Oversold Condition**
* RSI below threshold, indicating potential reversal
3. **MACD Bullish Shift**
* MACD below zero with bullish signal-line crossover
4. **RSI Bullish Divergence**
* Price makes a lower low while RSI makes a higher low
5. **Close Above MA200**
* Price aligned with the long-term trend direction
### ▶ Additional Confirmation Components (5)
6. **ADX Trend Strength**
* Confirms that a real trend is forming
7. **Volume Spike**
* Significant increase in trading volume vs average
8. **Stochastic Oversold Cross**
* %K crosses upward below the 30 level
9. **Bollinger Band Rebound**
* Price recovers after breaking below the lower band
10. **Bullish Candlestick Pattern**
* Engulfing, Hammer, or similar reversal patterns
> Scores are **not simple +1 increments**.
> Each component contributes a **weighted value**, reflecting its real-world importance.
## 📊 Emoji Score System (8 Levels)
| Score Range | Emoji | Meaning |
| ----------- | ------ | ---------------------------------- |
| ≤ 0 | 🔴 | Invalid / no signal |
| 0 ~ 1 | ⚪ | Very weak |
| 1 ~ 2 | 🟡 | Weak |
| 2 ~ 3 | 🟢 | Moderate |
| 3 ~ 4 | 🔵 | Decent |
| 4 ~ 5 | 📈 | Trend forming |
| 5 ~ 6.5 | 🚀 | Very strong |
| **6.5+** | **👑** | **Premium, high-confidence setup** |
👑 **The crown emoji appears only when the total weighted score exceeds 6.5**,
meaning multiple high-importance conditions are aligned simultaneously.
This prevents “emoji inflation” and ensures that premium signals remain rare and meaningful.
## 🖥 Chart Features
* Uses **REAL Ichimoku Cloud** (no future displacement)
* Displays score emojis directly on breakout candles
* Supports LONG / SHORT / BOTH modes
* Optional display limited to the most recent N bars
* Top-right panel explains scoring structure and logic
* Completely ignores false breakouts (above → inside → above)
## 🔧 User Options
* Adjust Ichimoku, MA, RSI, MACD, ADX parameters
* Enable or disable individual scoring components
* Fully customize emoji symbols
* **Display only signals above a chosen minimum score**
* e.g. show only 👑 setups by setting minimum score to 6.5
## ⚠️ Disclaimer
CloudScore PRO is a **probability-based trend evaluation tool**,
not a standalone buy or sell signal.
Signal strength may vary depending on:
* Market volatility
* Timeframe
* Volume environment
Always perform proper backtesting and apply sound risk management
before using this indicator in live trading.
Fusion Reversion Meter LiteFusion Reversion Meter Lite™
Market Energy & Exhaustion Gauge
Fusion Reversion Meter Lite shows whether market conditions support your next trade — not direction, but energy state.
It answers a critical question:
Does price have fuel to continue… or is it running out of steam?
METER STATES
🟢 GO → Energy depleted
→ Reversion behavior favored
🟡 CAUTION → Energy transitioning
→ Expect chop or mixed conditions
🔴 STOP → Energy expanding
→ Continuation behavior favored
HOW TO USE
GO → Favor reversion trades
CAUTION → Reduce size or wait for clarity
STOP → Favor continuation trades; avoid fading price
This allows you to trade with confidence, knowing whether retracements are likely or not.
WHAT THIS MEASURES
A composite of:
Oscillator intensity
Volume energy
Volatility expansion
Combined into a single, real-time energy gauge.
It tells you whether the market has fuel — not which way it’s going.
PAIRS WELL WITH
FusionPredict Lite™ — shows where price may want to go.
Used together:
FusionPredict target + Meter GO → Wait for pullback / reversion
FusionPredict target + Meter STOP → Continuation may run clean
FULL VERSION
The full Fusion Reversion Meter™ includes:
Directional awareness
Multi-timeframe energy analysis
Smart alerts and automation hooks
Available at fusionpredictor.com
FusionPredict LiteFusionPredict Lite
Single-Timeframe Reversion Target Indicator
FusionPredict Lite highlights where price is statistically likely to revert toward equilibrium after momentum displacement.
Rather than chasing candles, this tool helps you see where price may want to go next — allowing for cleaner entries, better patience, and reduced emotional trading.
LINE COLORS
🟢 Green Line → Reversion target above current price (bullish bias)
🔴 Red Line → Reversion target below current price (bearish bias)
WHY THIS MATTERS
Knowing the reversion level helps you:
Avoid entering directly into a pullback
Anticipate where momentum may pause or unwind
Decide whether to wait for price to come to you or trade continuation confidently
This is useful not only for scalping, but also for timing cleaner entries during strong moves.
HOW TO USE
Watch how price approaches and reacts to the reversion line
Use it to plan entries without chasing price
Best on 1–5 minute charts, but works on all timeframes
Compatible with crypto, forex, futures, indices, and metals
WHAT THIS IS
FusionPredict Lite is the single-timeframe version of the FusionPredict engine.
It measures:
Momentum displacement
Oscillator imbalance
Volatility structure
…and projects where price may revert as energy normalizes.
PAIRS WELL WITH
Fusion Reversion Meter Lite™ — helps determine whether market conditions favor:
A clean move toward the target
Or a continuation without retracement
FULL VERSION
The full FusionPredict™ includes:
Multi-timeframe alignment (up to 6 timeframes)
Smart alerts and confluence logic
Advanced energy-aware projections
Available at fusionpredictor.com
ETH UU Reversion Strategy [Limit]Strategy Overview
The "ETH UU Reversion Strategy" is a sophisticated mean-reversion trading system designed to capture price reversals at standard deviation extremes. Unlike typical strategies that enter trades immediately at market price, this script employs a proprietary **Limit Order Execution Mechanism** combined with volatility filtering to optimize entry prices and reduce slippage.
Originality & Key Features
This script addresses the common pitfalls of standard Bollinger Band strategies by introducing advanced order management logic:
1. Limit Order Execution:** Instead of market orders, the strategy calculates an optimal entry price based on ATR offsets. This allows traders to capitalize on "wicks" and secure better risk-reward ratios.
2. Smart Timeout Logic:To prevent "catching a falling knife," pending orders are automatically cancelled if not filled within a customizable number of bars (default: 15). This ensures orders do not remain active when market structure shifts.
3. Dynamic Risk Recalculation:** Stop Loss (SL) and Take Profit (TP) levels are recalculated at the exact moment of execution using the real-time ATR, ensuring risk parameters adapt to current market volatility.
How to Use
1. Setup: Apply the strategy to ETH/USDT (or other crypto pairs) on 15m or 1h timeframes.
2. Configuration:
* Adjust `BB Length` and `RSI Length` to fit your timeframe.
* Set `Order Timeout` to define how long a pending order should remain active.
* Toggle `Use ADX Filter` to avoid trading against strong trends.
3. *Visuals: The chart displays distinct labels for pending orders (Gray), active entries (Blue/Red), and cancellations, providing full transparency of the strategy's logic.
Risk Disclaimer
This script is for educational and quantitative analysis purposes only. Past performance regarding backtesting or live trading does not guarantee future results. Cryptocurrency trading involves high risk and high volatility. Please use proper risk management and trade at your own discretion.
-------------------------------------------------------------
Chinese Translation (中文说明)
策略概述
“ETH UU 均值回归策略”是一个旨在捕捉标准差极端位置价格反转的交易系统。与立即以市价入场的典型策略不同,本策略采用独特的**挂单执行机制**结合波动率过滤,以优化入场价格并减少滑点。
原创性与核心功能
本脚本通过引入高级订单管理逻辑,解决了普通布林带策略的常见缺陷:
1. 挂单交易模式: 策略不使用市价单,而是根据 ATR 偏移计算最佳入场价(Limit Orders)。这允许交易者捕捉K线的“影线”,获得更好的盈亏比。
2. 智能超时撤单: 为了防止“接飞刀”,如果挂单在指定K线数内(默认15根)未成交,系统会自动撤单。这确保了当市场结构发生变化时,旧的挂单不会被错误触发。
3. 动态风控重算: 止损和止盈在成交的瞬间根据实时 ATR 重新计算,确保风控参数始终适应当前的市场波动率。
风险提示
本脚本仅供教育和量化分析使用。回测或实盘的过往表现并不预示未来结果。加密货币交易具有极高的风险和波动性,请务必做好仓位管理,并自行承担使用本策略的风险。
Daily Close Breakout 20/10 + 200 (Signals)Daily Close Breakout 20/10 + 200 (Signals)
A simple “check once per day” breakout signal tool designed for the Daily (1D) chart.
Quickstart:
* Signals are confirmed at the daily candle close.
* If a triangle prints today, the earliest you act is the next day’s open (not the same candle).
* Green triangle = consider entering long.
* Red triangle = consider exiting.
* Long-only (no shorts).
How to use:
* Use on the Daily (1D) timeframe.
* Check the chart once per day after the daily candle closes.
* Do not act intraday on signals.
Rules (default settings 20 / 10 / 200):
* BUY: A green up triangle prints when the daily close is above the prior 20-day high and above the 200-day Simple Moving Average.
* SELL: A red down triangle prints when the daily close is below the prior 10-day low.
Lines and colors:
* Prior 20-day high (entry level): red
* Prior 10-day low (exit level): yellow
* 200-day Simple Moving Average: aqua
Notes:
* Best used on the Daily (1D) timeframe. Other timeframes may behave differently.
* This script plots signals and reference levels only. For performance metrics, use a matching strategy/backtest script.
* Educational use only. Not financial advice.
Gold Flow Indicator (5-Min Model)MST XAU Hybrid 5M is a confluence-based technical indicator built specifically for XAUUSD on the 5-minute timeframe.
It uses a combination of exponential moving averages (EMA crossovers), RSI trend strength, and MACD momentum direction to filter out weak signals and highlight only the highest-quality setups.
The tool is designed for scalpers and short-term intraday traders who want clarity in fast market conditions.
No repainting, clean visuals, and easy-to-interpret signals make it suitable for both beginners and advanced traders.
Developer: MST (Maa Sharda Trading)
takeshi_2Step_Screener_MOU_KAKU_FIXED3//@version=5
indicator("MNO_2Step_Screener_MOU_KAKU_FIXED3", overlay=true, max_labels_count=500)
// =========================
// Inputs
// =========================
emaSLen = input.int(5, "EMA Short (5)")
emaMLen = input.int(13, "EMA Mid (13)")
emaLLen = input.int(26, "EMA Long (26)")
macdFast = input.int(12, "MACD Fast")
macdSlow = input.int(26, "MACD Slow")
macdSignal = input.int(9, "MACD Signal")
macdZeroTh = input.float(0.2, "MOU: MACD near-zero threshold", step=0.05)
volLookback = input.int(5, "Volume MA days", minval=1)
volMinRatio = input.float(1.3, "MOU: Volume ratio min", step=0.1)
volStrong = input.float(1.5, "Strong volume ratio (Breakout/KAKU)", step=0.1)
volMaxRatio = input.float(3.0, "Volume ratio max (filter)", step=0.1)
wickBodyMult = input.float(2.0, "Pinbar: lowerWick >= body*x", step=0.1)
pivotLen = input.int(20, "Resistance lookback", minval=5)
pullMinPct = input.float(5.0, "Pullback min (%)", step=0.1)
pullMaxPct = input.float(15.0, "Pullback max (%)", step=0.1)
breakLookbackBars = input.int(5, "Pullback route: valid bars after break", minval=1)
// --- Breakout route (押し目なし初動ブレイク) ---
useBreakoutRoute = input.bool(true, "Enable MOU Breakout Route (no pullback)")
breakConfirmPct = input.float(0.3, "Break confirm: close > R*(1+%)", step=0.1)
bigBodyLookback = input.int(20, "Break candle body MA length", minval=5)
bigBodyMult = input.float(1.2, "Break candle: body >= MA*mult", step=0.1)
requireCloseNearHigh = input.bool(true, "Break candle: close near high")
closeNearHighPct = input.float(25.0, "Close near high threshold (% of range)", step=1.0)
allowMACDAboveZeroInstead = input.bool(true, "Breakout route: allow MACD GC above zero instead")
// 表示
showEMA = input.bool(true, "Plot EMAs")
showMou = input.bool(true, "Show MOU label")
showKaku = input.bool(true, "Show KAKU label")
showDebugTbl = input.bool(false, "Show debug table (last bar)")
locChoice = input.string("Below Bar", "Label location", options= )
lblLoc = locChoice == "Below Bar" ? location.belowbar : location.abovebar
// =========================
// EMA
// =========================
emaS = ta.ema(close, emaSLen)
emaM = ta.ema(close, emaMLen)
emaL = ta.ema(close, emaLLen)
// plot は if の中に入れない(naで制御)
plot(showEMA ? emaS : na, color=color.new(color.yellow, 0), title="EMA 5")
plot(showEMA ? emaM : na, color=color.new(color.blue, 0), title="EMA 13")
plot(showEMA ? emaL : na, color=color.new(color.orange, 0), title="EMA 26")
emaUpS = emaS > emaS
emaUpM = emaM > emaM
emaUpL = emaL > emaL
goldenOrder = emaS > emaM and emaM > emaL
above26_2days = close > emaL and close > emaL
// 勝率維持の土台(緩めない)
baseTrendOK = (emaUpS and emaUpM and emaUpL) and goldenOrder and above26_2days
// =========================
// MACD
// =========================
= ta.macd(close, macdFast, macdSlow, macdSignal)
macdGC = ta.crossover(macdLine, macdSig)
macdUp = macdLine > macdLine
macdNearZero = math.abs(macdLine) <= macdZeroTh
macdGCAboveZero = macdGC and macdLine > 0 and macdSig > 0
macdMouOK = macdGC and macdNearZero and macdUp
macdBreakOK = allowMACDAboveZeroInstead ? (macdMouOK or macdGCAboveZero) : macdMouOK
// =========================
// Volume
// =========================
volMA = ta.sma(volume, volLookback)
volRatio = volMA > 0 ? (volume / volMA) : na
volumeMouOK = volRatio >= volMinRatio and volRatio <= volMaxRatio
volumeStrongOK = volRatio >= volStrong and volRatio <= volMaxRatio
// =========================
// Candle patterns
// =========================
body = math.abs(close - open)
upperWick = high - math.max(open, close)
lowerWick = math.min(open, close) - low
pinbar = (lowerWick >= wickBodyMult * body) and (lowerWick > upperWick) and (close >= open)
bullEngulf =
close > open and close < open and
close >= open and open <= close
bigBull =
close > open and
open < emaM and close > emaS and
(body > ta.sma(body, 20))
candleOK = pinbar or bullEngulf or bigBull
// =========================
// Resistance / Pullback route
// =========================
res = ta.highest(high, pivotLen)
pullbackPct = res > 0 ? (res - close) / res * 100.0 : na
pullbackOK = pullbackPct >= pullMinPct and pullbackPct <= pullMaxPct
brokeRes = ta.crossover(close, res )
barsSinceBreak = ta.barssince(brokeRes)
afterBreakZone = (barsSinceBreak >= 0) and (barsSinceBreak <= breakLookbackBars)
pullbackRouteOK = afterBreakZone and pullbackOK
// =========================
// Breakout route (押し目なし初動ブレイク)
// =========================
breakConfirm = close > res * (1.0 + breakConfirmPct / 100.0)
bullBreak = close > open
bodyMA = ta.sma(body, bigBodyLookback)
bigBodyOK = bodyMA > 0 ? (body >= bodyMA * bigBodyMult) : false
rng = math.max(high - low, syminfo.mintick)
closeNearHighOK = not requireCloseNearHigh ? true : ((high - close) / rng * 100.0 <= closeNearHighPct)
mou_breakout =
useBreakoutRoute and
baseTrendOK and
breakConfirm and
bullBreak and
bigBodyOK and
closeNearHighOK and
volumeStrongOK and
macdBreakOK
mou_pullback = baseTrendOK and volumeMouOK and candleOK and macdMouOK and pullbackRouteOK
mou = mou_pullback or mou_breakout
// =========================
// KAKU (Strict): 8条件 + 最終三点
// =========================
cond1 = emaUpS and emaUpM and emaUpL
cond2 = goldenOrder
cond3 = above26_2days
cond4 = macdGCAboveZero
cond5 = volumeMouOK
cond6 = candleOK
cond7 = pullbackOK
cond8 = pullbackRouteOK
all8_strict = cond1 and cond2 and cond3 and cond4 and cond5 and cond6 and cond7 and cond8
final3 = pinbar and macdGCAboveZero and volumeStrongOK
kaku = all8_strict and final3
// =========================
// Display (統一ラベル)
// =========================
showKakuNow = showKaku and kaku
showMouPull = showMou and mou_pullback and not kaku
showMouBrk = showMou and mou_breakout and not kaku
plotshape(showMouPull, title="MOU_PULLBACK", style=shape.labelup, text="猛",
color=color.new(color.lime, 0), textcolor=color.black, location=lblLoc, size=size.tiny)
plotshape(showMouBrk, title="MOU_BREAKOUT", style=shape.labelup, text="猛B",
color=color.new(color.lime, 0), textcolor=color.black, location=lblLoc, size=size.tiny)
plotshape(showKakuNow, title="KAKU", style=shape.labelup, text="確",
color=color.new(color.yellow, 0), textcolor=color.black, location=lblLoc, size=size.small)
// =========================
// Alerts
// =========================
alertcondition(mou, title="MNO_MOU", message="MNO: MOU triggered")
alertcondition(mou_breakout, title="MNO_MOU_BREAKOUT", message="MNO: MOU Breakout triggered")
alertcondition(mou_pullback, title="MNO_MOU_PULLBACK", message="MNO: MOU Pullback triggered")
alertcondition(kaku, title="MNO_KAKU", message="MNO: KAKU triggered")
// =========================
// Debug table (optional)
// =========================
var table t = table.new(position.top_right, 2, 14, border_width=1, border_color=color.new(color.white, 60))
fRow(_name, _cond, _r) =>
bg = _cond ? color.new(color.lime, 70) : color.new(color.red, 80)
tx = _cond ? "OK" : "NO"
table.cell(t, 0, _r, _name, text_color=color.white, bgcolor=color.new(color.black, 0))
table.cell(t, 1, _r, tx, text_color=color.white, bgcolor=bg)
if showDebugTbl and barstate.islast
// ❗ colspanは使えないので2セルでヘッダーを作る
table.cell(t, 0, 0, "MNO Debug", text_color=color.white, bgcolor=color.new(color.black, 0))
table.cell(t, 1, 0, "", text_color=color.white, bgcolor=color.new(color.black, 0))
fRow("BaseTrend", baseTrendOK, 1)
fRow("MOU Pullback", mou_pullback, 2)
fRow("MOU Breakout", mou_breakout, 3)
fRow("Break confirm", breakConfirm, 4)
fRow("Break big body", bigBodyOK, 5)
fRow("Break close high", closeNearHighOK, 6)
fRow("Break vol strong", volumeStrongOK, 7)
fRow("Break MACD", macdBreakOK, 8)
fRow("KAKU all8", all8_strict, 9)
fRow("KAKU final3", final3, 10)
fRow("MOU any", mou, 11)
fRow("KAKU", kaku, 12)
Dynamic Pivot PointDynamic Pivot Points
Description
Concept This script provides a comprehensive support and resistance system by calculating Dynamic Pivot Points based on a user-defined timeframe and lookback period. Unlike static pivot tools that only look at the previous candle, this indicator allows traders to customize the "Pivot Period" (defaulting to 5), offering a more flexible approach to identifying market structure across different resolutions.
How It Works The indicator calculates a central Pivot Point (P) alongside three levels of Support (S1, S2, S3) and three levels of Resistance (R1, R2, R3).
Calculation Logic: The central pivot is derived from the average price (High, Low, and Close) over the selected timeframe and period.
Support & Resistance: These levels are projected above and below the central pivot, calculated based on the volatility (price range) of the selected period.
Multi-Timeframe (DPP) Capability: The script allows you to view higher-timeframe levels (e.g., Weekly or Monthly) while trading on a lower-timeframe chart (e.g., 15-minute or 1-hour), ensuring you are always aware of the macro trend levels.
How to Use Traders can use this tool to identify potential reversal zones, breakout levels, and the general trend bias.
Trend Confirmation:
Bullish Bias: If the price is sustaining above the central Pivot Line (White), the market is generally considered to be in an uptrend.
Bearish Bias: If the price remains below the central Pivot Line, the market is likely in a downtrend.
Reversal Trading:
Support Levels (Green): Look for bullish reversal signals (such as hammer candles or divergence) near S1, S2, or S3. These are potential "Buy" zones.
Resistance Levels (Red): Look for bearish rejection signals near R1, R2, or R3. These are potential "Sell" zones.
Breakout Trading:
A strong volume push above Resistance (R1-R3) may indicate a bullish breakout.
A breakdown below Support (S1-S3) may signal a bearish continuation.
Settings
Pivot Timeframe: Select the specific resolution for the calculation (e.g., Daily, Weekly).
Defined Period: Adjust the lookback length for the calculation (Default: 5).
Visibility: Toggles to show/hide specific levels based on your chart cleanliness preference.
Note: This script does not guarantee future performance. Pivot points are lagging indicators derived from historical price action and should be used in conjunction with other forms of analysis.
Prime -Hub Prime -Hub is a comprehensive, all-in-one technical analysis toolkit designed for professional Intraday and Swing traders on Nifty, BankNifty, and Stocks. This script consolidates three powerful institutional logic systems into a single, clean interface, replacing the need for multiple indicators.
Disclaimer: This tool is for educational and analytical purposes only. Past performance does not guarantee future results. Trading involves substantial risk.
MADD Monkey Pro DMCx Directional Momentum and Confluence EngineMadd Monkey Pro DMCx is a bias and momentum indicator that helps intraday traders read short-term direction and the strength of current moves. It is designed to provide structured context so you can decide when conditions support your ideas and when they do not.
Purpose
DMCx is built to help you answer:
What is the current directional bias on this chart?
Is momentum supporting that direction or fading?
Does the current environment meet the confluence conditions you have defined?
Core components (high-level logic)
DMCx combines several elements:
Directional engine – evaluates recent price behavior to classify conditions as bullish, bearish or neutral.
Momentum and volatility engine – distinguishes between stronger impulsive moves and slower or less convincing movement.
Confluence layer – optional filters requiring agreement between direction, momentum and other conditions before highlighting a setup.
Signal quality tagging – internal tagging that lets you treat some conditions as higher or lower quality, depending on your configuration.
These components are presented through chart markers and a compact status panel summarizing the current bias and momentum state.
Key features
Clear bias / regime read to show whether price is trending up, trending down or in more neutral conditions.
Momentum and volatility context to help distinguish between strong pushes and weaker phases.
Optional confluence filters so only aligned conditions are highlighted.
A status panel that provides a high-level snapshot of bias, momentum and simple tallies based on how you interpret the output.
Modular controls allowing you to toggle key visuals (signals, labels, panel) on or off to match your preferred chart layout.
Suggested usage
Symbols and timeframes: Can be used on XAUUSD, FX pairs, indices and other liquid instruments. Intraday frames like 15m, 5m or 1h are common use cases, but you may explore higher or lower timeframes according to your own testing.
Define your higher timeframe bias and important price levels using your own methods.
Use DMCx to check:
Whether short-term direction is aligned with your idea.
Whether momentum supports that view or suggests caution.
Consider taking trades only when your setup and the DMCx context agree, and you have clear rules for entry, stop loss and target.
Treat the readings as context, not as standalone entry or exit signals.
Notes and limitations
DMCx does not repaint closed bars, but its bias and momentum states update as new data appears. This is normal for any real-time context tool.
Any performance-style interpretation of the output depends completely on how you choose to use it. The script does not guarantee results.
Risk disclaimer
This script is provided for informational and educational purposes only. It does not constitute financial advice, investment advice or a solicitation to buy or sell any financial instrument. Trading and investing in financial markets involve significant risk, and you can lose more than your initial investment. Past performance and historical behavior do not guarantee future results.
By using Madd Monkey Pro DMCx, you accept full responsibility for your own trading decisions and outcomes. The author is not liable for any loss or damage arising from the use of this script.
Madd Monkey Pro MKDx Leg and Zone Mapping EngineMadd Monkey Pro MKDx is a structure and zone mapping tool for intraday traders who prefer clear, rule-based legs and focused entry areas instead of constantly redrawing levels by hand.
The script was developed and tested mainly on XAUUSD (Gold) using 15-minute and 5-minute charts. You can apply it to other symbols and timeframes at your own discretion, but you should always test and adapt settings for each market.
Purpose
MKDx is designed to help answer three practical questions:
Where is the current impulsive leg in price?
Where is the main pullback or entry zone inside that leg?
How do trades taken from those zones behave over time, according to your own rules?
Core components (high-level logic)
MKDx combines several modules:
Leg detection engine – tracks clear bullish and bearish displacement moves and maintains the currently active leg as new bars confirm structure.
Zone engine – defines a focused “entry band” within each leg, using a premium/discount style layout rather than shading the entire range.
Trend and momentum filters – optional filters to help you stay aligned with broader direction and avoid trading every leg blindly.
Confluence checks – additional conditions that a leg must pass before being considered valid by the indicator.
Optional SL / TP references – tools that can mark guideline stop and target areas relative to each leg and zone.
These components are displayed as leg markers, shaded or outlined zones, optional horizontal reference lines, and simple long/short markers where your chosen filters agree.
Key features
Automatic mapping of bullish and bearish legs that updates as new highs or lows are confirmed.
Highlighted entry zones inside each active leg, instead of persistent bands that cover the entire chart.
Configurable filters for trend, momentum and confluence so you can adjust how selective or permissive the signals are.
Optional status panel showing approximate counts of outcomes (for example, how many legs would have reached a rough target or stop under your interpretation).
Independent toggles for leg lines, zones, markers, labels and the panel so you can keep charts clean.
Suggested usage
Timeframes: Originally tuned for XAUUSD on the 15m and 5m charts. Other timeframes and instruments require your own forward testing.
Use MKDx to:
Identify the current active leg and its direction.
Watch for price returning into the mapped zone.
Combine that context with your own entry logic (price action, candlestick patterns, sessions, etc.) and risk rules.
MKDx does not open or manage trades. Position sizing, stop placement, targets and daily limits are entirely your responsibility.
Notes and limitations
Closed bars are not repainted, but leg and zone definitions can change as structure develops. This is expected behavior for any structure-based approach.
All arrows, zones and counts are context tools only. They are not trade recommendations or performance guarantees.
Past behavior of any configuration does not imply similar results in the future.
Risk disclaimer
This script is provided for informational and educational purposes only. It does not constitute financial advice or a recommendation to buy or sell any financial instrument. Trading and investing involve significant risk, and you can lose more than your initial investment. Past performance and historical behavior do not guarantee future results.
By using Madd Monkey Pro MKDx, you accept full responsibility for your own trading decisions and outcomes. The author is not liable for any loss or damage arising from the use of this script.
NeoChartLabs McGinley DynamicOne of our Favorite Indicators - the McGinley Dynamic
The MGD is adaptive, it speeds up for crypto and slows down for stocks, this version turns green when bullish and red when bearish - this is a fast indicator so the colors are more reliable on higher time frames.
The McGinley Dynamic is a smart, adaptive moving average technical indicator created by John R. McGinley, designed to overcome the lag and whipsaw issues of traditional moving averages (MAs) by automatically adjusting to varying market speeds, resulting in a smoother, more responsive line that tracks price action better, acting as a reliable trend-following tool or baseline in financial charts.
Shout out to LOXX for the original script, updated to v6.
NeoChartLabs EMAsOne of our Favorite Indicators - the NeoChart Labs 20/50/100/200 EMAs
20 = Blue and very thin
50 = Orange and thin
100 = Purple and thick
200 = White and very thick
When 20 Crosses above and below any other expect action.
50 crossing 200 on the 1D is the death cross.
Shout out to drsweets for the original script
Delbert SetupDelbert Setup is a clean, time-based session framework designed for traders who follow PNY, NYO, and evening market structure in IST (Asia/Kolkata) time.
It highlights key intra-day timing, PNY/NYO session highs/lows, and important schedule-based vertical markers for structured intraday planning.
🔍 What This Indicator Shows
1. PNY Session (09:30–18:55 IST)
Automatically draws:
PNY High (PNYH)
PNY Low (PNYL)
Thin solid levels from session start to session end
Vertical dotted lines at PNY open & close with timestamp labels
2. NYO Session (19:00–19:55 IST)
Displays:
NYOH / NYOL levels
NYO open/close vertical dotted lines
Session-only range levels (thin solid 1px)
3. 00:30 IST Marker
A dedicated vertical dotted line at 00:30 IST, useful for:
Timing bias
Session transitions
Trade management cutoffs
4. Optional NQ Reference Levels
If enabled, the script plots:
NQ open price at NYO start
Adjustable ± offset bands (default 100 points)
These assist traders correlating NQ behavior with their instrument.
🎨 Visual Style
All vertical lines → thinnest dotted black
PNY / NYO highs & lows → thin solid levels (1px)
Time labels → red, size-small, placed above chart structure
Designed for clean visual structure without clutter
🕒 Why IST Timing?
This indicator is tailored for traders who operate in India Standard Time, aligning PNY/NYO with local clock time without mental conversion.
All calculations use Asia/Kolkata timezone internally.
⚠ Notes
This indicator does not generate buy/sell signals.
It is meant as a market structure & session map, helping traders reference key liquidity and timing zones.
Works on any timeframe and across all assets.
✔ Ideal For Traders Who Use:
Session-based models (PNY, NYO, Pre-New York)
Liquidity sweeps near session highs/lows
Timing-based bias
Correlation models with NQ
MTF Dashboard Pro v4 Institutional EditionMTF Dashboard Pro v4 – 2026
Institutional Multi-Timeframe Bias Engine
A high-performance, professional-grade multi-timeframe dashboard designed for scalpers, intraday traders, and institutional smart-money practitioners.
Version 4 introduces a cleaner architecture, faster execution, and improved signal alignment across all major trend, momentum, and confirmation tools.
Core Features
Multi-Timeframe EMA Trend (9/21) – Fast intraday trend detection
200-MA System with Threshold Logic – Dynamic positional bias
Daily VWAP Engine (Optional Reset)
SuperTrend Engine with Corrected Direction Model
RSI, MACD, ADX, Alligator, Stochastic – Momentum + Confirmation suite
PH/PL Bias (Previous Day High/Low) – Institutional liquidity context
11-Signal Institutional Bias Score
Bias Classification: Strong Bull → Strong Bear
Multi-TF Alerts for Strong Bull / Strong Bear
Optimized HUD Table – Lightweight, fast, and resource-efficient
Who Is This For?
Scalpers, intraday traders, swing traders, and SMC/ICT-based traders who need:
Clear multi-timeframe alignment
Instant trend + momentum confirmation
Market structure bias
Liquidity context (PH/PL)
A single, clean, real-time dashboard
The indicator is designed to support high-speed decision making in volatile conditions and institutional trading environments.
Developed by - Sachin Yashwant Thakare
Author: Sachin Yashwant Thakare
Edition: 2026 Premium Release
Rights: © 2026 All Rights Reserved
Customer Short strategy A5.1 + Session + CBL SLFor my customer.
HalfTrend Directional Framework (A5.1)
Used for primary trend recognition and breakout validation.
Session-Based Volatility Windows
Trades only occur within specific high-liquidity windows (e.g., 08:30–12:30 and 12:30–16:30), improving fill quality and reducing noise.
Three-Bar Opening Range Model
The first three 5-minute bars define:
session high
session low
These become structural breakout levels:
price > range high → long-bias
price < range low → short-bias
CBL (Guppy Count-Back Line) Stop-Loss
Instead of using ATR or static percentage stops, Libra_S relies on CBL to:
avoid premature exits during healthy pullbacks
capture trend persistence
provide structure-based invalidation
The5erThe5er is a money making tool
Wick trading is a price-action strategy that uses the shape and length of candlestick wicks to interpret market behavior and decide trades.
BTC Macro Regime & Stoch RSI SignalThis script is designed for traders who want to combine macro context with precise momentum timing on Bitcoin.
Instead of looking at isolated indicators, it aggregates several independent data streams into a single bias score and then uses a stochastic RSI engine to time entries and exits.
The goal is simple:
Filter the market into long / neutral / short regimes,
Only act when momentum aligns with the current regime,
Avoid overtrading in noisy or highly leveraged conditions.
What the indicator does (conceptually)
The script builds an internal “macro + momentum score” for BTC by combining:
Cycle / valuation regime
Tracks where BTC sits in the broader cycle (discount vs overheating) and whether conditions are favorable for medium-term upside or downside.
Network & miner trend regime
Monitors the health and trend of network activity / miners to detect stress, capitulation and recovery phases.
Derivatives / leverage regime
Looks at futures positioning to identify when leverage is excessive or has been flushed out, acting as a risk filter rather than a standalone entry trigger.
Price momentum (Stochastic RSI)
Uses a Stochastic RSI engine on price to capture short-term swings and turning points, especially at extremes.
All of this is compressed into a single score between −1 and +1, where:
Values near +1 indicate a supportive macro environment with bullish momentum,
Values near −1 indicate a risk-off / bearish environment,
Values around 0 indicate indecision or transition.
The exact construction, weights and thresholds are handled internally by the script.
Signals & visuals
The indicator provides:
A Total Score line:
Above a configurable upper level → long bias
Below a configurable lower level → short bias
In between → neutral / low conviction
Background shading:
Green tint when the regime favors long setups
Red tint when the regime favors short setups
Stochastic RSI panel:
K and D lines plotted on a 0–100 scale
The 0–10 zone is highlighted in green (deep oversold)
The 90–100 zone is highlighted in red (deep overbought)
Extreme cross markers:
A green marker when Stoch RSI crosses up in the lower extreme zone
A red marker when Stoch RSI crosses down in the upper extreme zone
Entry / exit markers (optional visual guide):
Long entry markers appear when:
The macro score is in long-bias territory, and
Stoch RSI confirms an upward cross from oversold conditions.
Short entry markers appear when:
The macro score is in short-bias territory, and
Stoch RSI confirms a downward cross from overbought conditions.
Exit markers appear when momentum flips against the active bias or the macro score degrades.
These markers are guides, not mechanical trading rules.
How to use it
Typical workflow:
Start with the Total Score
Use it as a regime filter:
Only look for longs when the score shows a sustained positive bias.
Only look for shorts when the score shows a sustained negative bias.
Then look at Stoch RSI
Use it to time pullbacks and reversals within the current bias:
In a long bias → favor bullish crosses from low levels.
In a short bias → favor bearish crosses from high levels.
Respect leverage conditions
When the internal risk engine flags crowded leverage, treat signals more conservatively:
Reduce size,
Tighten risk,
Or skip trades entirely if conditions look unstable.
This script is not meant to create a high-frequency scalping system. It is a context + timing framework for swing and positional trades on BTC.
Timeframes
The macro components are designed with higher-timeframe logic in mind.
Recommended:
Use 1D as the primary perspective for the bias,
Optionally refine entries on 4H if you want more precise timing.
Important notes & disclaimer
This tool is specifically tuned for Bitcoin, not for altcoins.
The internal logic, data processing and weighting are intentionally abstracted to keep the focus on the final score and signals rather than on raw formulas.
As with any indicator, it can produce false signals and whipsaws, especially during violent news events or regime shifts.
This is not financial advice. Always combine the script with your own analysis, sound risk management and position sizing. Use at your own risk.
MACD ultimate with EMA overrideOverview
This Pine Script v5 indicator combines MACD zero-cross signals, SuperTrend trend validation, an EMA(50/200) trend filter and an EMA-crossover override to produce clean, session-constrained entry signals and robust exit logic. It draws labels and lines on the chart (entries, exits, SL lines) and supports alerts. Stop-losses use percentage-based sizing and are evaluated on bar close only to avoid intrabar noise.
Key features
Primary entry rule (MACD zero-cross):
Buy when MACD line crosses above zero (current bar MACD > 0 and previous bar MACD < 0).
Sell when MACD line crosses below zero (current bar MACD < 0 and previous bar MACD > 0).
Session-only entries: Entries are generated only inside a user-defined session (e.g., 09:30-11:30). Exits are evaluated at all times.
SuperTrend validation: Optional SuperTrend filter for entries and exits. Can be configured so exits require both MACD exit and SuperTrend flip (AND mode) or use OR mode.
EMA trend filter for entries: Optional EMA(50) vs EMA(200) filter — when enabled the indicator will only open buys in EMA-up trend and sells in EMA-down trend.
EMA crossover override (priority rule): If EMA fast crosses the slow:
EMA50 crosses above EMA200 → forced BUY override (bypasses session, SuperTrend, MACD). Exits any active short and opens long.
EMA50 crosses below EMA200 → forced SELL override (bypasses other validations). Exits any active long and opens short.
Overrides respect same-direction protection (won’t reopen an existing same-side position).
Opposite-entry immediate exit: When an opposite-direction raw entry (MACD zero-cross) occurs, any active opposite trade is exited immediately (then the script may open the opposite entry subject to entry validation). Same-direction repeated signals do not force an exit.
Stop-Loss (percentage): Parameterized SL (%) applied at entry; SL is checked and triggered only on bar close (e.g., long SL triggers if barstate.isconfirmed and close <= SL).
Labels & SL lines: Single-line, non-repainting labels for entries/exits; SL horizontal line drawn on open positions and greys out after closing.
Plots & visuals:
MACD panel (histogram, MACD, signal) optional.
SuperTrend plotted as a single color-coded line: green for bullish, red for bearish (no dots).
Optional EMA( fast / slow ) plots.
Entry markers (triangles) shown only for session-filtered entries.
Alerts: Entry and exit alerts are included and can be toggled on/off.
Inputs (high level)
MACD: fast, slow, signal lengths.
SL (%) and toggle to enable/disable SL.
SuperTrend: ATR length, multiplier; toggles: require for entry, allow/require for exit, show/hide.
EMA trend: enable/disable filter; fast/slow lengths; show/hide EMAs.
EMA override (built-in) — crossover detection triggers forced entry/exit.
Session: time range (HHMM-HHMM) — applies to entry generation only.
Misc: allow multiple entries flag, enable alerts, show/hide MACD panel.
Behavioral notes & caveats
The indicator is an overlay indicator (not a strategy()), so it draws visual signals and alerts but does not place real trades — use strategy() conversion to backtest trade P&L.
EMA override bypasses all validations by design — it forcibly exits the opposite side and opens the override side immediately (on the same bar). This is intentional to capture major trend flips.
SL is checked on bar close only. That reduces false SL triggers from intrabar spikes but means realized fills can differ in live trading depending on execution and slippage.
Opposite-entry exits are immediate (no SuperTrend/MACD requirement) except when a crossover override is the cause — the script guards so EMA overrides take precedence.
Pine Script runs on bar close for most accurate signals; intrabar behavior depends on your chart settings (realtime vs historical) — expect small differences between indicator labels and broker fills.
Plot/label density: many labels and SL lines can clutter the chart on lower timeframes. Consider hiding SL lines after N bars (optional enhancement) or use higher timeframe charts for less clutter.
Suggested default settings
MACD: 12, 26, 9
SL: 1.0 (%) with Use SL = on
SuperTrend: ATR 10, Multiplier 3.0, require for entry = true, require for exit = true (AND mode)
EMA trend filter: enabled (50/200)
Session: 0930-1130 (adjust to your exchange/timezone)
Alerts: on
How to use
Paste the full Pine v5 script into TradingView’s Pine Editor and add to chart.
Set the trade_session to the market hours you want entries in (chart timezone should match your intended exchange).
Toggle Use EMA trend / Require SuperTrend / Require ST for exit depending on how tight you want validation.
Use strategy() conversion before backtesting to verify the rules produce acceptable historical returns (indicator-only won’t generate P&L).
Recommended next steps
Convert to a strategy() script to backtest and measure win rate, drawdown, profit factor, and to validate the SL-on-close logic with realistic fills.
Add an input to auto-hide SL lines after N bars or compress labels to a compact trade status box.
Consider adding ATR- or volatility-based SL as an alternative to percentage SL.






















