OPEN-SOURCE SCRIPT
Master Grader v2.4.2

Master Scalp Trade Grader (v2.4.2 – Final Tweaks)
What it does
A lightweight scalp framework that grades trade quality in real time and marks entries / exits for you. The core bias is built from 8/21/50 EMAs (stack & slope), momentum is gated by RSI bands (bull ≥ rsiBull, bear ≤ rsiBear), and breakouts use a short lookback high/low. Optional volume filter requires volume ≥ its SMA(volLen). Trend strength is quantified with ADX, and risk is managed by an ATR×mult trailing stop. The on-chart Info Box shows Bias, Grade, Trend Strength, Exit Level, and % of Avg Volume.
How it works (signal logic)
Bias: Bull if 8>21>50 and 21/50 sloping up; Bear if 8<21<50 and sloping down; else Neutral.
Entries:
Long: new Bull bias + breakout above highest-high(breakLook) + RSI ≥ rsiBull (+ optional vol filter).
Short: new Bear bias + breakdown below lowest-low(breakLook) + RSI ≤ rsiBear (+ optional vol filter).
Trailing stop: ATR(atrLen) × atrMult, flips to the favorable side and trails with trend.
Exits:
Stop exit: price crosses the ATR trail.
Weak exit: ADX < adxStrong and 8/21 cross against you.
Grading
A: Strong Hold → Bias active and (ADX > adxStrong) and RSI in the correct zone.
B: Moderate Hold → Bias active and ADX > 20.
C: Weakening → Bias active but strength fading.
EXIT SIGNAL → Stop/weak exit triggered.
D: No Trend → No bias.
Visuals & Alerts
Colored bars: Bull = green, Bear = red.
Plots: 8/21/50 EMAs (custom colors), ATR trail, and entry/exit markers.
Info Box (top-right): Bias • Grade • ADX (Strong/Weak) • Exit Level • Volume vs Avg.
Alerts: Long Entry, Short Entry, Exit Signal (ready for webhooks).
Inputs (quick)
EMAs: 8/21/50 • RSI: rsiLen, rsiBull, rsiBear • Breakout lookback • Volume SMA + toggle • ADX length/threshold • ATR length/multiplier • Colors/toggles for EMAs, ATR trail, Info Box.
Notes
Designed for scalps / fast swings; works on 1–15m and up.
Best results when bias + breakout + RSI + (optional) volume all agree.
Use the ATR trail for mechanical exits; downgrade to B/C as early caution.
What it does
A lightweight scalp framework that grades trade quality in real time and marks entries / exits for you. The core bias is built from 8/21/50 EMAs (stack & slope), momentum is gated by RSI bands (bull ≥ rsiBull, bear ≤ rsiBear), and breakouts use a short lookback high/low. Optional volume filter requires volume ≥ its SMA(volLen). Trend strength is quantified with ADX, and risk is managed by an ATR×mult trailing stop. The on-chart Info Box shows Bias, Grade, Trend Strength, Exit Level, and % of Avg Volume.
How it works (signal logic)
Bias: Bull if 8>21>50 and 21/50 sloping up; Bear if 8<21<50 and sloping down; else Neutral.
Entries:
Long: new Bull bias + breakout above highest-high(breakLook) + RSI ≥ rsiBull (+ optional vol filter).
Short: new Bear bias + breakdown below lowest-low(breakLook) + RSI ≤ rsiBear (+ optional vol filter).
Trailing stop: ATR(atrLen) × atrMult, flips to the favorable side and trails with trend.
Exits:
Stop exit: price crosses the ATR trail.
Weak exit: ADX < adxStrong and 8/21 cross against you.
Grading
A: Strong Hold → Bias active and (ADX > adxStrong) and RSI in the correct zone.
B: Moderate Hold → Bias active and ADX > 20.
C: Weakening → Bias active but strength fading.
EXIT SIGNAL → Stop/weak exit triggered.
D: No Trend → No bias.
Visuals & Alerts
Colored bars: Bull = green, Bear = red.
Plots: 8/21/50 EMAs (custom colors), ATR trail, and entry/exit markers.
Info Box (top-right): Bias • Grade • ADX (Strong/Weak) • Exit Level • Volume vs Avg.
Alerts: Long Entry, Short Entry, Exit Signal (ready for webhooks).
Inputs (quick)
EMAs: 8/21/50 • RSI: rsiLen, rsiBull, rsiBear • Breakout lookback • Volume SMA + toggle • ADX length/threshold • ATR length/multiplier • Colors/toggles for EMAs, ATR trail, Info Box.
Notes
Designed for scalps / fast swings; works on 1–15m and up.
Best results when bias + breakout + RSI + (optional) volume all agree.
Use the ATR trail for mechanical exits; downgrade to B/C as early caution.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.