教学OPEN-SOURCE SCRIPT
Execution Discipline

EXECUTION DISCIPLINE – HOW TO USE (Jeff Sun Inspired)
This indicator is a real-time execution filter, not a buy/sell signal system. It is designed to help you decide when NOT to trade and when conditions are aligned for high-quality setups.
The table shows three columns:
RULE – the condition being checked
VALUE – the live market value of that condition
STATUS – whether the rule is satisfied (OK) or violated (NO)
The FINAL row is the most important:
If FINAL = VALID → all conditions are satisfied and trading is allowed
If FINAL = NO TRADE → even one rule is broken and you should not enter a trade
RULES EXPLAINED:
LoD Distance (Low of Day risk)
Measures how far price is from the intraday low in ATR terms.
Prevents buying weak or unstable price action.
Rule: must be within 0.6 ATR from Low of Day.
Distance from 50 Moving Average
Prevents chasing extended moves.
Rule: price must be within 4 ATR of the 50 MA.
RVOL (Relative Volume)
Measures institutional participation.
Higher RVOL = stronger conviction and breakout strength.
Rule: must be above the set threshold (default 1.5).
200 MA Trend Filter
Ensures trades are taken only in supportive higher timeframe trend.
Rule: 200 MA must be flat or rising.
Time Filter
Avoids early market noise and unstable opening volatility.
Rule: no trades in first 30 minutes after market open.
HOW TO USE IT:
Step 1: Scan your watchlist during the trading session
Step 2: Wait for FINAL = VALID
Step 3: Only consider entries when all rules are OK
Step 4: If any rule is NO, skip the trade completely
IMPORTANT:
This indicator does not predict direction. It only enforces discipline and filters low-quality trades. It is meant to improve consistency, not increase trade frequency.
CORE PRINCIPLE:
If it is not VALID, it is not a trade.
This indicator is a real-time execution filter, not a buy/sell signal system. It is designed to help you decide when NOT to trade and when conditions are aligned for high-quality setups.
The table shows three columns:
RULE – the condition being checked
VALUE – the live market value of that condition
STATUS – whether the rule is satisfied (OK) or violated (NO)
The FINAL row is the most important:
If FINAL = VALID → all conditions are satisfied and trading is allowed
If FINAL = NO TRADE → even one rule is broken and you should not enter a trade
RULES EXPLAINED:
LoD Distance (Low of Day risk)
Measures how far price is from the intraday low in ATR terms.
Prevents buying weak or unstable price action.
Rule: must be within 0.6 ATR from Low of Day.
Distance from 50 Moving Average
Prevents chasing extended moves.
Rule: price must be within 4 ATR of the 50 MA.
RVOL (Relative Volume)
Measures institutional participation.
Higher RVOL = stronger conviction and breakout strength.
Rule: must be above the set threshold (default 1.5).
200 MA Trend Filter
Ensures trades are taken only in supportive higher timeframe trend.
Rule: 200 MA must be flat or rising.
Time Filter
Avoids early market noise and unstable opening volatility.
Rule: no trades in first 30 minutes after market open.
HOW TO USE IT:
Step 1: Scan your watchlist during the trading session
Step 2: Wait for FINAL = VALID
Step 3: Only consider entries when all rules are OK
Step 4: If any rule is NO, skip the trade completely
IMPORTANT:
This indicator does not predict direction. It only enforces discipline and filters low-quality trades. It is meant to improve consistency, not increase trade frequency.
CORE PRINCIPLE:
If it is not VALID, it is not a trade.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。