OPEN-SOURCE SCRIPT
TradeGuard Full

Here's a description you can use:
TradeGuard — Full Trading System
A complete all-in-one trading indicator built for active intraday options traders. Replaces the need for multiple paid indicators by combining trend detection, key levels, entry signals, exit warnings, and expiry guidance in a single overlay.
What it does:
Automatically detects market trend state — Uptrend, Downtrend, or Choppy — using a triple EMA system (13/48/200) with Bollinger/Keltner squeeze filter. No manual inputs required. Just add it to your chart and it reads the market for you.
Entry signals fire automatically for:
13 EMA pullback entries (price touches EMA, closes back on trend side with volume)
Break and retest of Premarket High/Low (PMH/PML)
Break and retest of Previous Day High/Low (PDH/PDL)
Opening Range Breakout (ORB) retest
13 EMA reclaim after breakdown
All breakout entries require a confirmed retest — no chasing, no fakeouts.
Exit warnings fire once on state change:
BUY CALL or BUY PUT when all conditions align
CUT CALL or CUT PUT when EMA breaks on candle close
0DTE mode: exits after 3 bars with no bounce — no waiting for candle close
Time stop when trade stalls
2pm cutoff for 0DTE entries
Built-in levels drawn automatically:
PMH/PML — Premarket High/Low
PDH/PDL — Previous Day High/Low
ORB — Opening Range levels
Today's High/Low
Auto Supply and Demand zones
Auto Support and Resistance pivots
Additional features:
VWAP (session anchored)
Saty Volume Stack logic — buyers vs sellers confirmation on every signal
Multi-timeframe trend check (5min + 15min) for confluence
Expiry suggestion — tells you whether current conditions favour 0DTE, Weekly, or LEAPS based on timeframe alignment and trend strength
Bollinger/Keltner squeeze filter — suppresses signals during low volatility chop
One toggle only: 0DTE mode (tighter stops, 3-bar bounce rule, 2pm cutoff) or Weekly mode (candle close stops, more room).
Best used on the 2-minute chart for entries with 5-minute and 15-minute context visible in the table.
TradeGuard — Full Trading System
A complete all-in-one trading indicator built for active intraday options traders. Replaces the need for multiple paid indicators by combining trend detection, key levels, entry signals, exit warnings, and expiry guidance in a single overlay.
What it does:
Automatically detects market trend state — Uptrend, Downtrend, or Choppy — using a triple EMA system (13/48/200) with Bollinger/Keltner squeeze filter. No manual inputs required. Just add it to your chart and it reads the market for you.
Entry signals fire automatically for:
13 EMA pullback entries (price touches EMA, closes back on trend side with volume)
Break and retest of Premarket High/Low (PMH/PML)
Break and retest of Previous Day High/Low (PDH/PDL)
Opening Range Breakout (ORB) retest
13 EMA reclaim after breakdown
All breakout entries require a confirmed retest — no chasing, no fakeouts.
Exit warnings fire once on state change:
BUY CALL or BUY PUT when all conditions align
CUT CALL or CUT PUT when EMA breaks on candle close
0DTE mode: exits after 3 bars with no bounce — no waiting for candle close
Time stop when trade stalls
2pm cutoff for 0DTE entries
Built-in levels drawn automatically:
PMH/PML — Premarket High/Low
PDH/PDL — Previous Day High/Low
ORB — Opening Range levels
Today's High/Low
Auto Supply and Demand zones
Auto Support and Resistance pivots
Additional features:
VWAP (session anchored)
Saty Volume Stack logic — buyers vs sellers confirmation on every signal
Multi-timeframe trend check (5min + 15min) for confluence
Expiry suggestion — tells you whether current conditions favour 0DTE, Weekly, or LEAPS based on timeframe alignment and trend strength
Bollinger/Keltner squeeze filter — suppresses signals during low volatility chop
One toggle only: 0DTE mode (tighter stops, 3-bar bounce rule, 2pm cutoff) or Weekly mode (candle close stops, more room).
Best used on the 2-minute chart for entries with 5-minute and 15-minute context visible in the table.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.