OPEN-SOURCE SCRIPT
TVS

#Overview
The TVS strategy looks for areas of low volatility or ‘squeezes’ and then relies on momentum to identify a breakout. This is intended to help a trader wait for a consolidation phase before entering a market when energy is released.
---
How It Works
TVS uses Bollinger Bandwidth as a measure of market compression to define the "squeeze" conditions of low volatility. When the distance between the upper and lower Bollinger Bands contracts below its own average, the indicator flags the market as compressed and color codes candles purple. Once volatility expands and the squeeze ends, TVS toggles on momentum confirmation via RSI: candles light green as bullish momentum is in control and red when bearish momentum takes over. The color system observes strict priority whereby volatility compression overrides all trend signals, with any consideration of direction being subject to the release of the squeeze.
Color Priority
• Deep Purple: Active squeeze (low volatility)
• Green / Red: Squeeze released
– Green: Bullish
– Red: Bearish
---
Trading Checklist
-Purple candles? → Market is compressing
-Purple ended?→ Breakout phase
-Green or Red? → Direction confirmed
-Near key structure? → Manual validation
Settings and Usage
Timeframes: 15m–Daily
Best Markets: Forex majors, liquid stocks
Inputs:
length
mult
Risk Notes:
Squeezes can fail and reverse
No built-in stop-loss
News reduces signal reliability
Risk Management is mandatory.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.