השכלה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. קרא עוד ב־תנאי השימוש.