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.
Скрипт с открытым кодом
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.
Скрипт с открытым кодом
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.