OPEN-SOURCE SCRIPT
מעודכן CCI ±100 Price Deviation with SMA & VWAP Trend Color

Indicator Synopsis: CCI ±100 Price Deviation with SMA & VWAP
Purpose:
This indicator combines trend filtering, momentum smoothing, and dynamic price bands to help identify intraday trading opportunities. It’s designed for:
15-minute chart → trend identification
1–2 minute chart → precise entries based on dynamic bands
Components:
SMA of Typical Price (smaTP)
Smooth average of the current bar’s typical price (hlc3).
Acts as a dynamic midpoint for the ±100 deviation bands.
±100 Deviation Bands
Calculated using a modified CCI formula:
Upper = SMA TP + 0.015 × MAD × 100
Lower = SMA TP - 0.015 × MAD × 100
Works as dynamic support/resistance and potential reversal zones.
SMA of CCI length (scaled to price)
Smooths the CCI momentum signal to the price scale.
Acts as a confirmation filter for trade direction near bands.
Optional toggle and customizable color/line width.
VWAP (Volume Weighted Average Price)
Optional overlay with trend-based coloring:
Price above VWAP → bullish → green
Price below VWAP → bearish → red
Acts as primary trend filter.
How to Use the Indicator
Step 1: Determine Trend (15-minute chart)
Check VWAP trend:
Price > VWAP → bullish trend → only consider long trades
Price < VWAP → bearish trend → only consider short trades
Confirm with SMA TP slope:
Rising SMA → bullish bias
Falling SMA → bearish bias
This ensures you only trade in the direction of the intraday trend.
Purpose:
This indicator combines trend filtering, momentum smoothing, and dynamic price bands to help identify intraday trading opportunities. It’s designed for:
15-minute chart → trend identification
1–2 minute chart → precise entries based on dynamic bands
Components:
SMA of Typical Price (smaTP)
Smooth average of the current bar’s typical price (hlc3).
Acts as a dynamic midpoint for the ±100 deviation bands.
±100 Deviation Bands
Calculated using a modified CCI formula:
Upper = SMA TP + 0.015 × MAD × 100
Lower = SMA TP - 0.015 × MAD × 100
Works as dynamic support/resistance and potential reversal zones.
SMA of CCI length (scaled to price)
Smooths the CCI momentum signal to the price scale.
Acts as a confirmation filter for trade direction near bands.
Optional toggle and customizable color/line width.
VWAP (Volume Weighted Average Price)
Optional overlay with trend-based coloring:
Price above VWAP → bullish → green
Price below VWAP → bearish → red
Acts as primary trend filter.
How to Use the Indicator
Step 1: Determine Trend (15-minute chart)
Check VWAP trend:
Price > VWAP → bullish trend → only consider long trades
Price < VWAP → bearish trend → only consider short trades
Confirm with SMA TP slope:
Rising SMA → bullish bias
Falling SMA → bearish bias
This ensures you only trade in the direction of the intraday trend.
הערות שחרור
Added two moving averages, EMA/SMAסקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.