Indicatori di ampiezza
Fibonacci Blended and Volume Flow (VFI) by富东 Fibonacci times period claude atr /etc
new blend between fibonacci vfi
Quantum Range Filter by MRKcoin### Quantum Range Filter by MRKcoin
**Overview**
This indicator is a sophisticated range detection tool designed based on the principles of quantitative multi-factor models. Instead of relying on a single condition, it assesses the market from three different dimensions to provide a more robust and reliable identification of range-bound (sideways) markets.
When the background is highlighted in red, it indicates that the market is likely in a range phase, suggesting that trend-following strategies may be less effective, and mean-reversion (range trading) strategies could be more suitable.
---
**Core Logic: A Multi-Factor Approach**
The filter evaluates the market state using the following three independent factors:
1. **Momentum Volatility (RSI Bollinger Bandwidth):**
* **Question:** Is the momentum of the market contracting?
* **Method:** It measures the width of the Bollinger Bands applied to the RSI. A narrow bandwidth suggests that momentum is consolidating, which is a common characteristic of a range market.
2. **Price Volatility (ATR Ratio):**
* **Question:** Is the actual price movement shrinking?
* **Method:** It calculates the Average True Range (ATR) as a percentage of the closing price. A low ratio indicates that the price volatility itself is low, reinforcing the case for a range environment.
3. **Absence of Trend (ADX):**
* **Question:** Is there a lack of a clear directional trend?
* **Method:** It uses the Average Directional Index (ADX), a standard tool for measuring trend strength. A low ADX value provides active confirmation that the market is not in a trending phase.
---
**How to Use**
1. **Range Detection:** The primary use is to identify ranging markets. The red highlighted background serves as a visual cue.
2. **Strategy Selection:**
* **Inside the Red Zone:** Consider using range-trading strategies (e.g., buying at support, selling at resistance, using oscillators like RSI or Stochastics for overbought/oversold signals). Avoid using trend-following indicators like moving average crossovers, as they are prone to generating false signals in these conditions.
* **Outside the Red Zone:** The market is likely trending. Trend-following strategies are more appropriate.
3. **Parameter Tuning (In Settings):**
* **This is the key to adapting the filter to any market or timeframe.** Different assets (like BTC vs. ETH) and different timeframes have unique volatility characteristics. Don't hesitate to adjust the parameters to fit the specific chart you are analyzing.
* **Range Detection Score:** This is the most important setting. It determines how many of the three factors must agree to classify the market as a range. The default is `2`, which provides a good balance.
* If the filter seems **too sensitive** (highlighting too often), increase the score to `3`.
* If the filter seems **not sensitive enough** (missing obvious ranges), decrease the score to `1`.
* **Factor Thresholds:** For fine-tuning, adjust the thresholds for each factor.
* **`RSI BB Width Threshold`:** If you want to detect even tighter momentum consolidations, *decrease* this value.
* **`ATR Ratio Threshold`:** If you want to be stricter about price volatility, *decrease* this value.
* **`ADX Threshold`:** To be more lenient on what constitutes a "trendless" market, *increase* this value (e.g., to 30). To be stricter, *decrease* it (e.g., to 20).
* **Pro Tip:** Use the Debug Table (uncomment it in the script's code) to see the live values of each factor. This will give you a clear idea of how to set the thresholds for the specific asset you are trading.
**Disclaimer**
This indicator is a tool to assist in market analysis and should not be used as a standalone signal for making financial decisions. Always use it in conjunction with your own trading strategy, risk management, and analysis. Past performance is not indicative of future results.
**Credits**
* **Concept & Vision:** MRKcoin
Custom 2 EMA Crossover Candle ColorIn this indicator you can change the moving averages according to you usage.
Intraday High/Low BandPlots an intraday high low band showing when the stock hits a new daily high/low.
Band can be defined as percentage of the daily range.
Price Line Indicator
This indicator plots evenly spaced horizontal lines on the price chart starting from a user-defined price. You can customize:
Starting Price
Price Spacing (supports decimals)
Number of Lines
Line Color & Width
Each line is extended across the chart with a label showing its precise price level (up to 4 decimal places). Ideal for marking psychological levels, support/resistance zones, or custom grid setups.
Bollinger Band Touch with EMA Filter (Inverted, Alerts)Bollinger Band Touch with EMA Filter above or below the 100 nd 200 emas
Signal Strength Technical AnalysisSignal Strength Technical Analysis – Study Material & Usage Guide
Overview:
This tool is a multi-layered TradingView indicator developed to help traders identify high-probability trade setups using order block detection, dynamic trendlines, volume and volatility filters, and ATR-based target projections. This guide outlines each feature, its formulaic foundation, and how to use the tool effectively in live markets.
________________________________________
Key Features and How to Use Them
1. Order Block Detection:
The script identifies institutional-level buying/selling zones using sequences of directional candles.
• You define the number of consecutive candles to qualify an order block.
• A move qualifies as an order block if:
• Price Move % = |Close(n) - Close(1)| / Close(n) × 100 ≥ Threshold
• Bullish Order Block: A down candle followed by multiple up candles.
• Bearish Order Block: An up candle followed by multiple down candles.
These blocks are plotted and used for trade entry confirmation and support/resistance analysis.
________________________________________
2. Trendline Logic:
Support and resistance lines are drawn dynamically using pivots.
• Pivot highs/lows are identified over a user-defined period (e.g., 10 bars).
• Trendline slope is calculated using:
• Slope = (Pivot_new - Pivot_old) / (Time_new - Time_old)
• Current projected support or resistance:
• Price = StartPrice + Slope × (CurrentTime - StartTime)
Breakouts beyond these levels are interpreted as potential trade signals when confirmed by other filters.
________________________________________
3. Volume and ATR Filters:
These filters help eliminate weak or low-conviction signals.
• Average Volume:
• AvgVol = SMA(Volume, 20)
• Volume Spike Detection:
• Volume > AvgVol × VolumeThreshold
• ATR Volatility Filter (ATR over 14 bars):
• (High - Low) > ATR × ATRMultiplier
If both filters pass, the market is considered active and eligible for trade setup.
________________________________________
4. Signal Generation Logic:
• Bullish Signal: Triggered when:
o Price breaks above resistance or a bullish order block
o Volume and ATR filters are passed
o Trend is confirmed: EMA9 > EMA21 > EMA50
• Bearish Signal: Triggered when:
o Price breaks below support or a bearish order block
o Volume and ATR filters are passed
o Trend is confirmed: EMA9 < EMA21 < EMA50
________________________________________
5. Target and Stop Loss Projection:
Based on the Average True Range (ATR):
• For Long Trades:
• TP = High + (ATR × 2)
• SL = Low - (ATR × 1)
• For Short Trades:
• TP = Low - (ATR × 2)
• SL = High + (ATR × 1)
Targets and stops are plotted on the chart and update dynamically.
________________________________________
6. Trade Management and Win Rate Calculation:
• Once in a trade, the script monitors price:
o Hits TP → Recorded as win
o Hits SL → Recorded as loss
• Win Rate Calculation:
• Win Rate = (Wins / Total Signals) × 100%
This helps track the strategy's live effectiveness and improve decision-making.
________________________________________
How to Use the Indicator – Practical Steps
1. Setup
o Add the indicator to your TradingView chart
o Configure OB periods, trendline pivots, volume and ATR multipliers
o Adjust display preferences
2. Wait for Signal
o Look for a “BUY” or “SELL” label to appear
o Confirm with:
EMA trend alignment
RSI and MACD momentum
Volume and ATR filters
3. Execute Trade
o Enter on the next bar after confirmation
o Use the plotted TP/SL levels as risk management
o Adjust position sizing according to your trading rules
4. Manage Trade
o Monitor PnL and win rate live
o Exit manually or let price hit TP/SL
o Respect the indicator’s environment reading (avoid trading in low-volatility or sideways zones)
________________________________________
Alerts and Automation
• The script includes built-in alert conditions for:
o Buy/Sell signal confirmation
o Take-profit level reached
o Stop-loss triggered
Enable alerts in TradingView to receive real-time notifications to your mobile, email, or connected services.
________________________________________
Disclaimer from aiTrendview
This tool is provided for educational and research purposes only. It is not intended as financial advice or an investment recommendation. Trading in financial markets involves substantial risk. Past performance does not guarantee future results. The user alone is responsible for all trading decisions, including risk management and strategy selection. We strongly recommend testing this tool on a demo account before applying it to real capital and consulting a licensed financial advisor where necessary.
EMAs 7EMAS Seven exponential moving averages with greater weight on the last close of each candle ideal for visualizing support and registration
TR37This indicator plots a 377-day Exponential Moving Average (EMA) based on the closing price, ideal for long-term trend analysis. The EMA emphasizes recent price movements while smoothing out short-term fluctuations. A label "TR37" with white text is displayed at the end of the line for clear identification.
EMAs SixSix exponential moving averages with greater weight on the last close of each candle ideal for visualizing support and registration
Extreme Overbought/Oversold Indicator test trail for D to SEE RIGHT NOW , using oversold and overbought extremes , with buy and sell arrows on the chart.
SMC Structures and FVGสวัสดีครับ! ผมจะอธิบายอินดิเคเตอร์ "SMC Structures and FVG + MACD" ที่คุณให้มาอย่างละเอียดในแต่ละส่วน เพื่อให้คุณเข้าใจการทำงานของมันอย่างถ่องแท้ครับ
อินดิเคเตอร์นี้เป็นการผสมผสานแนวคิดของ Smart Money Concept (SMC) ซึ่งเน้นการวิเคราะห์โครงสร้างตลาด (Market Structure) และ Fair Value Gap (FVG) เข้ากับอินดิเคเตอร์ MACD เพื่อใช้เป็นตัวกรองหรือตัวยืนยันสัญญาณ Choch/BoS (Change of Character / Break of Structure)
1. ภาพรวมอินดิเคเตอร์ (Overall Purpose)
อินดิเคเตอร์นี้มีจุดประสงค์หลักคือ:
ระบุโครงสร้างตลาด: ตีเส้นและป้ายกำกับ Choch (Change of Character) และ BoS (Break of Structure) บนกราฟโดยอัตโนมัติ
ผสานการยืนยันด้วย MACD: สัญญาณ Choch/BoS จะถูกพิจารณาก็ต่อเมื่อ MACD Histogram เกิดการตัดขึ้นหรือลง (Zero Cross) ในทิศทางที่สอดคล้องกัน
แสดง Fair Value Gap (FVG): หากเปิดใช้งาน จะมีการตีกล่อง FVG บนกราฟ
แสดงระดับ Fibonacci: คำนวณและแสดงระดับ Fibonacci ที่สำคัญตามโครงสร้างตลาดปัจจุบัน
ปรับตาม Timeframe: การคำนวณและการแสดงผลทั้งหมดจะปรับตาม Timeframe ที่คุณกำลังใช้งานอยู่โดยอัตโนมัติ
2. ส่วนประกอบหลักของโค้ด (Code Breakdown)
โค้ดนี้สามารถแบ่งออกเป็นส่วนหลัก ๆ ได้ดังนี้:
2.1 Inputs (การตั้งค่า)
ส่วนนี้คือตัวแปรที่คุณสามารถปรับแต่งได้ในหน้าต่างการตั้งค่าของอินดิเคเตอร์ (คลิกที่รูปฟันเฟืองข้างชื่ออินดิเคเตอร์บนกราฟ)
MACD Settings (ตั้งค่า MACD):
fast_len: ความยาวของ Fast EMA สำหรับ MACD (ค่าเริ่มต้น 12)
slow_len: ความยาวของ Slow EMA สำหรับ MACD (ค่าเริ่มต้น 26)
signal_len: ความยาวของ Signal Line สำหรับ MACD (ค่าเริ่มต้น 9)
= ta.macd(close, fast_len, slow_len, signal_len): คำนวณค่า MACD Line, Signal Line และ Histogram โดยใช้ราคาปิด (close) และค่าความยาวที่กำหนด
is_bullish_macd_cross: ตรวจสอบว่า MACD Histogram ตัดขึ้นเหนือเส้น 0 (จากค่าลบเป็นบวก)
is_bearish_macd_cross: ตรวจสอบว่า MACD Histogram ตัดลงใต้เส้น 0 (จากค่าบวกเป็นลบ)
Fear Value Gap (FVG) Settings:
isFvgToShow: (Boolean) เปิด/ปิดการแสดง FVG บนกราฟ
bullishFvgColor: สีสำหรับ Bullish FVG
bearishFvgColor: สีสำหรับ Bearish FVG
mitigatedFvgColor: สีสำหรับ FVG ที่ถูก Mitigate (ลดทอน) แล้ว
fvgHistoryNbr: จำนวน FVG ย้อนหลังที่จะแสดง
isMitigatedFvgToReduce: (Boolean) เปิด/ปิดการลดขนาด FVG เมื่อถูก Mitigate
Structures (โครงสร้างตลาด) Settings:
isStructBodyCandleBreak: (Boolean) หากเป็น true การ Break จะต้องเกิดขึ้นด้วย เนื้อเทียน ที่ปิดเหนือ/ใต้ Swing High/Low หากเป็น false แค่ไส้เทียนทะลุก็ถือว่า Break
isCurrentStructToShow: (Boolean) เปิด/ปิดการแสดงเส้นโครงสร้างตลาดปัจจุบัน (เส้นสีน้ำเงินในภาพตัวอย่าง)
pivot_len: ความยาวของแท่งเทียนที่ใช้ในการมองหาจุด Pivot (Swing High/Low) ยิ่งค่าน้อยยิ่งจับ Swing เล็กๆ ได้, ยิ่งค่ามากยิ่งจับ Swing ใหญ่ๆ ได้
bullishBosColor, bearishBosColor: สีสำหรับเส้นและป้าย BOS ขาขึ้น/ขาลง
bosLineStyleOption, bosLineWidth: สไตล์ (Solid, Dotted, Dashed) และความหนาของเส้น BOS
bullishChochColor, bearishChochColor: สีสำหรับเส้นและป้าย CHoCH ขาขึ้น/ขาลง
chochLineStyleOption, chochLineWidth: สไตล์ (Solid, Dotted, Dashed) และความหนาของเส้น CHoCH
currentStructColor, currentStructLineStyleOption, currentStructLineWidth: สี, สไตล์ และความหนาของเส้นโครงสร้างตลาดปัจจุบัน
structHistoryNbr: จำนวนการ Break (Choch/BoS) ย้อนหลังที่จะแสดง
Structure Fibonacci (จากโค้ดต้นฉบับ):
เป็นชุด Input สำหรับเปิด/ปิด, กำหนดค่า, สี, สไตล์ และความหนาของเส้น Fibonacci Levels ต่างๆ (0.786, 0.705, 0.618, 0.5, 0.382) ที่จะถูกคำนวณจากโครงสร้างตลาดปัจจุบัน
2.2 Helper Functions (ฟังก์ชันช่วยทำงาน)
getLineStyle(lineOption): ฟังก์ชันนี้ใช้แปลงค่า String ที่เลือกจาก Input (เช่น "─", "┈", "╌") ให้เป็นรูปแบบ line.style_ ที่ Pine Script เข้าใจ
get_structure_highest_bar(lookback): ฟังก์ชันนี้พยายามหา Bar Index ของแท่งเทียนที่ทำ Swing High ภายในช่วง lookback ที่กำหนด
get_structure_lowest_bar(lookback): ฟังก์ชันนี้พยายามหา Bar Index ของแท่งเทียนที่ทำ Swing Low ภายในช่วง lookback ที่กำหนด
is_structure_high_broken(...): ฟังก์ชันนี้ตรวจสอบว่าราคาปัจจุบันได้ Break เหนือ _structureHigh (Swing High) หรือไม่ โดยพิจารณาจาก _highStructBreakPrice (ราคาปิดหรือราคา High ขึ้นอยู่กับการตั้งค่า isStructBodyCandleBreak)
FVGDraw(...): ฟังก์ชันนี้รับ Arrays ของ FVG Boxes, Types, Mitigation Status และ Labels มาประมวลผล เพื่ออัปเดตสถานะของ FVG (เช่น ถูก Mitigate หรือไม่) และปรับขนาด/ตำแหน่งของ FVG Box และ Label บนกราฟ
2.3 Global Variables (ตัวแปรทั่วทั้งอินดิเคเตอร์)
เป็นตัวแปรที่ประกาศด้วย var ซึ่งหมายความว่าค่าของมันจะถูกเก็บไว้และอัปเดตในแต่ละแท่งเทียน (persists across bars)
structureLines, structureLabels: Arrays สำหรับเก็บอ็อบเจกต์ line และ label ของเส้น Choch/BoS ที่วาดบนกราฟ
fvgBoxes, fvgTypes, fvgLabels, isFvgMitigated: Arrays สำหรับเก็บข้อมูลของ FVG Boxes และสถานะต่างๆ
structureHigh, structureLow: เก็บราคาของ Swing High/Low ที่สำคัญของโครงสร้างตลาดปัจจุบัน
structureHighStartIndex, structureLowStartIndex: เก็บ Bar Index ของจุดเริ่มต้นของ Swing High/Low ที่สำคัญ
structureDirection: เก็บสถานะของทิศทางโครงสร้างตลาด (1 = Bullish, 2 = Bearish, 0 = Undefined)
fiboXPrice, fiboXStartIndex, fiboXLine, fiboXLabel: ตัวแปรสำหรับเก็บข้อมูลและอ็อบเจกต์ของเส้น Fibonacci Levels
isBOSAlert, isCHOCHAlert: (Boolean) ใช้สำหรับส่งสัญญาณ Alert (หากมีการตั้งค่า Alert ไว้)
2.4 FVG Processing (การประมวลผล FVG)
ส่วนนี้จะตรวจสอบเงื่อนไขการเกิด FVG (Bullish FVG: high < low , Bearish FVG: low > high )
หากเกิด FVG และ isFvgToShow เป็น true จะมีการสร้าง box และ label ใหม่เพื่อแสดง FVG บนกราฟ
มีการจัดการ fvgBoxes และ fvgLabels เพื่อจำกัดจำนวน FVG ที่แสดงตาม fvgHistoryNbr และลบ FVG เก่าออก
ฟังก์ชัน FVGDraw จะถูกเรียกเพื่ออัปเดตสถานะของ FVG (เช่น การถูก Mitigate) และปรับการแสดงผล
2.5 Structures Processing (การประมวลผลโครงสร้างตลาด)
Initialization: ที่ bar_index == 0 (แท่งเทียนแรกของกราฟ) จะมีการกำหนดค่าเริ่มต้นให้กับ structureHigh, structureLow, structureHighStartIndex, structureLowStartIndex
Finding Current High/Low: highest, highestBar, lowest, lowestBar ถูกใช้เพื่อหา High/Low ที่สุดและ Bar Index ของมันใน 10 แท่งล่าสุด (หรือทั้งหมดหากกราฟสั้นกว่า 10 แท่ง)
Calculating Structure Max/Min Bar: structureMaxBar และ structureMinBar ใช้ฟังก์ชัน get_structure_highest_bar และ get_structure_lowest_bar เพื่อหา Bar Index ของ Swing High/Low ที่แท้จริง (ไม่ใช่แค่ High/Low ที่สุดใน lookback แต่เป็นจุด Pivot ที่สมบูรณ์)
Break Price: lowStructBreakPrice และ highStructBreakPrice จะเป็นราคาปิด (close) หรือราคา Low/High ขึ้นอยู่กับ isStructBodyCandleBreak
isStuctureLowBroken / isStructureHighBroken: เงื่อนไขเหล่านี้ตรวจสอบว่าราคาได้ทำลาย structureLow หรือ structureHigh หรือไม่ โดยพิจารณาจากราคา Break, ราคาแท่งก่อนหน้า และ Bar Index ของจุดเริ่มต้นโครงสร้าง
Choch/BoS Logic (ส่วนสำคัญที่ถูกผสานกับ MACD):
if(isStuctureLowBroken and is_bearish_macd_cross): นี่คือจุดที่ MACD เข้ามามีบทบาท หากราคาทำลาย structureLow (สัญญาณขาลง) และ MACD Histogram เกิด Bearish Zero Cross (is_bearish_macd_cross เป็น true) อินดิเคเตอร์จะพิจารณาว่าเป็น Choch หรือ BoS
หาก structureDirection == 1 (เดิมเป็นขาขึ้น) หรือ 0 (ยังไม่กำหนด) จะตีเป็น "CHoCH" (เปลี่ยนทิศทางโครงสร้างเป็นขาลง)
หาก structureDirection == 2 (เดิมเป็นขาลง) จะตีเป็น "BOS" (ยืนยันโครงสร้างขาลง)
มีการสร้าง line.new และ label.new เพื่อวาดเส้นและป้ายกำกับ
structureDirection จะถูกอัปเดตเป็น 1 (Bullish)
structureHighStartIndex, structureLowStartIndex, structureHigh, structureLow จะถูกอัปเดตเพื่อกำหนดโครงสร้างใหม่
else if(isStructureHighBroken and is_bullish_macd_cross): เช่นกันสำหรับขาขึ้น หากราคาทำลาย structureHigh (สัญญาณขาขึ้น) และ MACD Histogram เกิด Bullish Zero Cross (is_bullish_macd_cross เป็น true) อินดิเคเตอร์จะพิจารณาว่าเป็น Choch หรือ BoS
หาก structureDirection == 2 (เดิมเป็นขาลง) หรือ 0 (ยังไม่กำหนด) จะตีเป็น "CHoCH" (เปลี่ยนทิศทางโครงสร้างเป็นขาขึ้น)
หาก structureDirection == 1 (เดิมเป็นขาขึ้น) จะตีเป็น "BOS" (ยืนยันโครงสร้างขาขึ้น)
มีการสร้าง line.new และ label.new เพื่อวาดเส้นและป้ายกำกับ
structureDirection จะถูกอัปเดตเป็น 2 (Bearish)
structureHighStartIndex, structureLowStartIndex, structureHigh, structureLow จะถูกอัปเดตเพื่อกำหนดโครงสร้างใหม่
การลบเส้นเก่า: d.delete_line (หากไลบรารีทำงาน) จะถูกเรียกเพื่อลบเส้นและป้ายกำกับเก่าออกเมื่อจำนวนเกิน structHistoryNbr
Updating Structure High/Low (else block): หากไม่มีการ Break เกิดขึ้น แต่ราคาปัจจุบันสูงกว่า structureHigh หรือต่ำกว่า structureLow ในทิศทางที่สอดคล้องกัน (เช่น ยังคงเป็นขาขึ้นและทำ High ใหม่) structureHigh หรือ structureLow จะถูกอัปเดตเพื่อติดตาม High/Low ที่สุดของโครงสร้างปัจจุบัน
Current Structure Display:
หาก isCurrentStructToShow เป็น true อินดิเคเตอร์จะวาดเส้น structureHighLine และ structureLowLine เพื่อแสดงขอบเขตของโครงสร้างตลาดปัจจุบัน
Fibonacci Display:
หาก isFiboXToShow เป็น true อินดิเคเตอร์จะคำนวณและวาดเส้น Fibonacci Levels ต่างๆ (0.786, 0.705, 0.618, 0.5, 0.382) โดยอิงจาก structureHigh และ structureLow ของโครงสร้างตลาดปัจจุบัน
Alerts:
alertcondition: ใช้สำหรับตั้งค่า Alert ใน TradingView เมื่อเกิดสัญญาณ BOS หรือ CHOCH
plot(na):
plot(na) เป็นคำสั่งที่สำคัญในอินดิเคเตอร์ที่ไม่ได้ต้องการพล็อต Series ของข้อมูลบนกราฟ (เช่น ไม่ได้พล็อตเส้น EMA หรือ RSI) แต่ใช้วาดอ็อบเจกต์ (Line, Label, Box) โดยตรง
การมี plot(na) ช่วยให้ Pine Script รู้ว่าอินดิเคเตอร์นี้มีเอาต์พุตที่แสดงผลบนกราฟ แม้ว่าจะไม่ได้เป็น Series ที่พล็อตตามปกติก็ตาม
3. วิธีใช้งาน
คัดลอกโค้ดทั้งหมด ที่อยู่ในบล็อก immersive ด้านบน
ไปที่ TradingView และเปิดกราฟที่คุณต้องการ
คลิกที่เมนู "Pine Editor" ที่อยู่ด้านล่างของหน้าจอ
ลบโค้ดเดิมที่มีอยู่ และ วางโค้ดที่คัดลอกมา ลงไปแทน
คลิกที่ปุ่ม "Add to Chart"
อินดิเคเตอร์จะถูกเพิ่มลงในกราฟของคุณโดยอัตโนมัติ คุณสามารถคลิกที่รูปฟันเฟืองข้างชื่ออินดิเคเตอร์บนกราฟเพื่อเข้าถึงหน้าต่างการตั้งค่าและปรับแต่งตามความต้องการของคุณได้
Hello! I will explain the "SMC Structures and FVG + MACD" indicator you provided in detail, section by section, so you can fully understand how it works.This indicator combines the concepts of Smart Money Concept (SMC), which focuses on analyzing Market Structure and Fair Value Gaps (FVG), with the MACD indicator to serve as a filter or confirmation for Choch (Change of Character) and BoS (Break of Structure) signals.1. Overall PurposeThe main purposes of this indicator are:Identify Market Structure: Automatically draw lines and label Choch (Change of Character) and BoS (Break of Structure) on the chart.Integrate MACD Confirmation: Choch/BoS signals will only be considered when the MACD Histogram performs a cross (Zero Cross) in the corresponding direction.Display Fair Value Gap (FVG): If enabled, FVG boxes will be drawn on the chart.Display Fibonacci Levels: Calculate and display important Fibonacci levels based on the current market structure.Adapt to Timeframe: All calculations and displays will automatically adjust to the timeframe you are currently using.2. Code BreakdownThis code can be divided into the following main sections:2.1 Inputs (Settings)This section contains variables that you can adjust in the indicator's settings window (click the gear icon next to the indicator's name on the chart).MACD Settings:fast_len: Length of the Fast EMA for MACD (default 12)slow_len: Length of the Slow EMA for MACD (default 26)signal_len: Length of the Signal Line for MACD (default 9) = ta.macd(close, fast_len, slow_len, signal_len): Calculates the MACD Line, Signal Line, and Histogram using the closing price (close) and the specified lengths.is_bullish_macd_cross: Checks if the MACD Histogram crosses above the 0 line (from negative to positive).is_bearish_macd_cross: Checks if the MACD Histogram crosses below the 0 line (from positive to negative).Fear Value Gap (FVG) Settings:isFvgToShow: (Boolean) Enables/disables the display of FVG on the chart.bullishFvgColor: Color for Bullish FVG.bearishFvgColor: Color for Bearish FVG.mitigatedFvgColor: Color for FVG that has been mitigated.fvgHistoryNbr: Number of historical FVG to display.isMitigatedFvgToReduce: (Boolean) Enables/disables reducing the size of FVG when mitigated.Structures (โครงสร้างตลาด) Settings:isStructBodyCandleBreak: (Boolean) If true, the break must occur with the candle body closing above/below the Swing High/Low. If false, a wick break is sufficient.isCurrentStructToShow: (Boolean) Enables/disables the display of the current market structure lines (blue lines in the example image).pivot_len: Lookback length for identifying Pivot points (Swing High/Low). A smaller value captures smaller, more frequent swings; a larger value captures larger, more significant swings.bullishBosColor, bearishBosColor: Colors for bullish/bearish BOS lines and labels.bosLineStyleOption, bosLineWidth: Style (Solid, Dotted, Dashed) and width of BOS lines.bullishChochColor, bearishChochColor: Colors for bullish/bearish CHoCH lines and labels.chochLineStyleOption, chochLineWidth: Style (Solid, Dotted, Dashed) and width of CHoCH lines.currentStructColor, currentStructLineStyleOption, currentStructLineWidth: Color, style, and width of the current market structure lines.structHistoryNbr: Number of historical breaks (Choch/BoS) to display.Structure Fibonacci (from original code):A set of inputs to enable/disable, define values, colors, styles, and widths for various Fibonacci Levels (0.786, 0.705, 0.618, 0.5, 0.382) that will be calculated from the current market structure.2.2 Helper FunctionsgetLineStyle(lineOption): This function converts the selected string input (e.g., "─", "┈", "╌") into a line.style_ format understood by Pine Script.get_structure_highest_bar(lookback): This function attempts to find the Bar Index of the Swing High within the specified lookback period.get_structure_lowest_bar(lookback): This function attempts to find the Bar Index of the Swing Low within the specified lookback period.is_structure_high_broken(...): This function checks if the current price has broken above _structureHigh (Swing High), considering _highStructBreakPrice (closing price or high price depending on isStructBodyCandleBreak setting).FVGDraw(...): This function takes arrays of FVG Boxes, Types, Mitigation Status, and Labels to process and update the status of FVG (e.g., whether it's mitigated) and adjust the size/position of FVG Boxes and Labels on the chart.2.3 Global VariablesThese are variables declared with var, meaning their values are stored and updated on each bar (persists across bars).structureLines, structureLabels: Arrays to store line and label objects for Choch/BoS lines drawn on the chart.fvgBoxes, fvgTypes, fvgLabels, isFvgMitigated: Arrays to store FVG box data and their respective statuses.structureHigh, structureLow: Stores the price of the significant Swing High/Low of the current market structure.structureHighStartIndex, structureLowStartIndex: Stores the Bar Index of the start point of the significant Swing High/Low.structureDirection: Stores the status of the market structure direction (1 = Bullish, 2 = Bearish, 0 = Undefined).fiboXPrice, fiboXStartIndex, fiboXLine, fiboXLabel: Variables to store data and objects for Fibonacci Levels.isBOSAlert, isCHOCHAlert: (Boolean) Used to trigger alerts in TradingView (if alerts are configured).2.4 FVG ProcessingThis section checks the conditions for FVG formation (Bullish FVG: high < low , Bearish FVG: low > high ).If FVG occurs and isFvgToShow is true, a new box and label are created to display the FVG on the chart.fvgBoxes and fvgLabels are managed to limit the number of FVG displayed according to fvgHistoryNbr and remove older FVG.The FVGDraw function is called to update the FVG status (e.g., whether it's mitigated) and adjust its display.2.5 Structures ProcessingInitialization: At bar_index == 0 (the first bar of the chart), structureHigh, structureLow, structureHighStartIndex, and structureLowStartIndex are initialized.Finding Current High/Low: highest, highestBar, lowest, lowestBar are used to find the highest/lowest price and its Bar Index of it in the last 10 bars (or all bars if the chart is shorter than 10 bars).Calculating Structure Max/Min Bar: structureMaxBar and structureMinBar use get_structure_highest_bar and get_structure_lowest_bar functions to find the Bar Index of the true Swing High/Low (not just the highest/lowest in the lookback but a complete Pivot point).Break Price: lowStructBreakPrice and highStructBreakPrice will be the closing price (close) or the Low/High price, depending on the isStructBodyCandleBreak setting.isStuctureLowBroken / isStructureHighBroken: These conditions check if the price has broken structureLow or structureHigh, considering the break price, previous bar prices, and the Bar Index of the structure's starting point.Choch/BoS Logic (Key Integration with MACD):if(isStuctureLowBroken and is_bearish_macd_cross): This is where MACD plays a role. If the price breaks structureLow (bearish signal) AND the MACD Histogram performs a Bearish Zero Cross (is_bearish_macd_cross is true), the indicator will consider it a Choch or BoS.If structureDirection == 1 (previously bullish) or 0 (undefined), it will be labeled "CHoCH" (changing structure direction to bearish).If structureDirection == 2 (already bearish), it will be labeled "BOS" (confirming bearish structure).line.new and label.new are used to draw the line and label.structureDirection will be updated to 1 (Bullish).structureHighStartIndex, structureLowStartIndex, structureHigh, structureLow will be updated to define the new structure.else if(isStructureHighBroken and is_bullish_macd_cross): Similarly for bullish breaks. If the price breaks structureHigh (bullish signal) AND the MACD Histogram performs a Bullish Zero Cross (is_bullish_macd_cross is true), the indicator will consider it a Choch or BoS.If structureDirection == 2 (previously bearish) or 0 (undefined), it will be labeled "CHoCH" (changing structure direction to bullish).If structureDirection == 1 (already bullish), it will be labeled "BOS" (confirming bullish structure).line.new and label.new are used to draw the line and label.structureDirection will be updated to 2 (Bearish).structureHighStartIndex, structureLowStartIndex, structureHigh, structureLow will be updated to define the new structure.Deleting Old Lines: d.delete_line (if the library works) will be called to delete old lines and labels when their number exceeds structHistoryNbr.Updating Structure High/Low (else block): If no break occurs, but the current price is higher than structureHigh or lower than structureLow in the corresponding direction (e.g., still bullish and making a new high), structureHigh or structureLow will be updated to track the highest/lowest point of the current structure.Current Structure Display:If isCurrentStructToShow is true, the indicator draws structureHighLine and structureLowLine to show the boundaries of the current market structure.Fibonacci Display:If isFiboXToShow is true, the indicator calculates and draws various Fibonacci Levels (0.786, 0.705, 0.618, 0.5, 0.382) based on the structureHigh and structureLow of the current market structure.Alerts:alertcondition: Used to set up alerts in TradingView when BOS or CHOCH signals occur.plot(na):plot(na) is an important statement in indicators that do not plot data series directly on the chart (e.g., not plotting EMA or RSI lines) but instead draw objects (Line, Label, Box).Having plot(na) helps Pine Script recognize that this indicator has an output displayed on the chart, even if it's not a regularly plotted series.3. How to UseCopy all the code in the immersive block above.Go to TradingView and open your desired chart.Click on the "Pine Editor" menu at the bottom of the screen.Delete any existing code and paste the copied code in its place.Click the "Add to Chart" button.The indicator will be added to your chart automatically. You can click the gear icon next to the indicator's name on the chart to access the settings window and customize it to your needs.I hope this explanation helps you understand this indicator in detail. If anything is unclear, or you need further adjustments, please let me know.
Volume Pressure Analysis - Live DataVolume Pressure Gauge and Volume Percentage Indicator – Pine Script Guide
This indicator provides a simplified, real-time visualization of both volume pressure (buy vs. sell activity) and today’s trading volume in comparison to historical averages. It is designed to help traders assess whether buyers or sellers dominate the current session and whether today’s volume is significant relative to recent behaviour.
________________________________________
Key Functional Segments
1. Inputs and Configuration
Users can configure the length of the Simple Moving Average (SMA) used to calculate average volume, set the position of the gauge table on the chart, and toggle the visibility of the volume pressure display. This allows flexibility in integrating the tool with various trading styles and chart layouts.
2. Volume Data Calculations
The indicator calculates three key volume metrics:
• volToday: The current day’s volume.
• volAvg: The average volume over the user-defined SMA period (default is 20 bars).
• volPct: The current volume as a percentage of the average.
This enables traders to quickly recognize whether current trading activity is above or below normal, which can be a precursor to potential trend strength or weakness.
3. Volume Pressure Calculation
The script estimates buying and selling pressure based on price movement and volume. It distributes volume into upward (buy) and downward (sell) segments and expresses them as percentages of the total volume. This gives an immediate sense of whether bulls or bears are more active in the current session.
4. Visual Representation (Progress Bars)
The indicator renders a simplified visual gauge using horizontal bar segments (pseudo-bars) to reflect the proportion of buy and sell pressure. The length of each bar correlates with the strength of pressure from buyers or sellers, helping users assess dominance without analyzing candlestick behavior in depth.
5. Table Display
A compact table is drawn on the chart showing:
• Buy pressure percentage and corresponding bar.
• Sell pressure percentage and corresponding bar.
• Volume percentage compared to the recent average.
This format makes it easy to evaluate volume dynamics at a glance, without cluttering the price chart or relying on separate overlays.
________________________________________
How Traders Benefit from This Indicator
• Momentum Shift Detection: Early signs of trend reversal can be observed when volume pressure flips direction.
• Breakout Validation: High volume combined with dominant pressure supports the credibility of breakout moves.
• False Move Avoidance: If price moves on low volume or mixed pressure, traders can avoid low-probability entries.
• Market Context Awareness: Users can assess whether a day is behaving normally in terms of participation or is unusually quiet or aggressive.
________________________________________
Basic Usage Guide
1. Add the script to your TradingView chart and set your preferred SMA length for volume comparison.
2. Customize the table’s position using the X and Y settings for clarity and alignment.
3. Interpret the outputs:
o A higher red bar indicates dominant sell pressure.
o A higher green bar indicates dominant buy pressure.
o Volume % above 100% suggests above-average activity, while values below 100% may imply low conviction.
4. Apply to trading decisions:
o High buy pressure and high volume may indicate a strong long opportunity.
o High sell pressure and high volume may support short setups.
o Low volume or conflicting signals may call for caution.
5. Combine with other tools such as trend indicators, support/resistance zones, or price action patterns for more reliable trade setups.
________________________________________
Practical Example
• Sell Pressure: 70% → Suggests strong seller control; potential for short setups.
• Buy Pressure: 30% → Weak buying interest; long trades may carry risk.
• Volume Percentage: 120% → Indicates a surge in participation; movement may have greater validity.
________________________________________
Tips for New Traders
• Use this indicator as a confirmation tool rather than a standalone strategy.
• Begin on higher timeframes (4-hour or daily) to develop familiarity.
• Compare multiple examples to identify reliable patterns over time.
• Always incorporate proper risk management, including stop losses.
________________________________________
Disclaimer from aiTrendview
This indicator is intended solely for educational and informational use. It does not constitute investment advice, trade signals, or financial recommendations. aiTrendview and its affiliates are not liable for any trading losses incurred through use of this tool. All trading involves risk. Past performance of any indicator does not guarantee future results. Users should conduct independent research and consult with a certified financial advisor before making any trading decisions.
Volume Pressure Gauge + Volume %Volume Pressure Gauge and Volume Percentage Indicator – Pine Script Guide
This indicator provides a simplified, real-time visualization of both volume pressure (buy vs. sell activity) and today’s trading volume in comparison to historical averages. It is designed to help traders assess whether buyers or sellers dominate the current session and whether today’s volume is significant relative to recent behaviour.
________________________________________
Key Functional Segments
1. Inputs and Configuration
Users can configure the length of the Simple Moving Average (SMA) used to calculate average volume, set the position of the gauge table on the chart, and toggle the visibility of the volume pressure display. This allows flexibility in integrating the tool with various trading styles and chart layouts.
2. Volume Data Calculations
The indicator calculates three key volume metrics:
• volToday: The current day’s volume.
• volAvg: The average volume over the user-defined SMA period (default is 20 bars).
• volPct: The current volume as a percentage of the average.
This enables traders to quickly recognize whether current trading activity is above or below normal, which can be a precursor to potential trend strength or weakness.
3. Volume Pressure Calculation
The script estimates buying and selling pressure based on price movement and volume. It distributes volume into upward (buy) and downward (sell) segments and expresses them as percentages of the total volume. This gives an immediate sense of whether bulls or bears are more active in the current session.
4. Visual Representation (Progress Bars)
The indicator renders a simplified visual gauge using horizontal bar segments (pseudo-bars) to reflect the proportion of buy and sell pressure. The length of each bar correlates with the strength of pressure from buyers or sellers, helping users assess dominance without analyzing candlestick behavior in depth.
5. Table Display
A compact table is drawn on the chart showing:
• Buy pressure percentage and corresponding bar.
• Sell pressure percentage and corresponding bar.
• Volume percentage compared to the recent average.
This format makes it easy to evaluate volume dynamics at a glance, without cluttering the price chart or relying on separate overlays.
________________________________________
How Traders Benefit from This Indicator
• Momentum Shift Detection: Early signs of trend reversal can be observed when volume pressure flips direction.
• Breakout Validation: High volume combined with dominant pressure supports the credibility of breakout moves.
• False Move Avoidance: If price moves on low volume or mixed pressure, traders can avoid low-probability entries.
• Market Context Awareness: Users can assess whether a day is behaving normally in terms of participation or is unusually quiet or aggressive.
________________________________________
Basic Usage Guide
1. Add the script to your TradingView chart and set your preferred SMA length for volume comparison.
2. Customize the table’s position using the X and Y settings for clarity and alignment.
3. Interpret the outputs:
o A higher red bar indicates dominant sell pressure.
o A higher green bar indicates dominant buy pressure.
o Volume % above 100% suggests above-average activity, while values below 100% may imply low conviction.
4. Apply to trading decisions:
o High buy pressure and high volume may indicate a strong long opportunity.
o High sell pressure and high volume may support short setups.
o Low volume or conflicting signals may call for caution.
5. Combine with other tools such as trend indicators, support/resistance zones, or price action patterns for more reliable trade setups.
________________________________________
Practical Example
• Sell Pressure: 70% → Suggests strong seller control; potential for short setups.
• Buy Pressure: 30% → Weak buying interest; long trades may carry risk.
• Volume Percentage: 120% → Indicates a surge in participation; movement may have greater validity.
________________________________________
Tips for New Traders
• Use this indicator as a confirmation tool rather than a standalone strategy.
• Begin on higher timeframes (4-hour or daily) to develop familiarity.
• Compare multiple examples to identify reliable patterns over time.
• Always incorporate proper risk management, including stop losses.
________________________________________
Disclaimer from aiTrendview
This indicator is intended solely for educational and informational use. It does not constitute investment advice, trade signals, or financial recommendations. aiTrendview and its affiliates are not liable for any trading losses incurred through use of this tool. All trading involves risk. Past performance of any indicator does not guarantee future results. Users should conduct independent research and consult with a certified financial advisor before making any trading decisions.
Professional Technical Analysis DashboardProfessional Technical Analysis Dashboard – Complete Guide
This script is an advanced technical analysis dashboard built in Pine Script v5. It integrates 16 widely used technical indicators into a single, structured display designed for traders who need a consolidated view of market sentiment. The dashboard is divided into three key sections – Summary, Oscillators, and Moving Averages – enabling users to assess momentum, trends, and overall market bias in real-time.
________________________________________
Technical Foundation and Methodology
Summary Section – Combined Market Signal
The Summary section aggregates all 16 indicators (8 oscillators and 8 moving averages) to generate a combined score that reflects market sentiment. Each indicator contributes equally to the score. The combined signal ranges from -16 (strong sell) to +16 (strong buy), with thresholds defining zones such as Strong Buy, Buy, Neutral, Sell, and Strong Sell. This approach allows traders to quickly interpret overall market conditions without analyzing each indicator individually.
Oscillators Section – Momentum Analysis
This section tracks short-term momentum and overbought/oversold conditions using eight oscillators: RSI, Stochastic Oscillator, CCI, Williams %R, MACD, Momentum, Rate of Change (ROC), and Bollinger Bands. Each oscillator follows its conventional logic (e.g., RSI > 70 indicating overbought conditions) and is displayed alongside a visual indicator for quick assessment. This section is particularly effective for identifying potential reversals or timing short-term trades in range-bound markets.
Moving Averages Section – Trend Analysis
The trend analysis section uses five Simple Moving Averages (SMA 10, 20, 50, 100, 200) and three Exponential Moving Averages (EMA 10, 20, 50) to assess trend direction and strength across multiple timeframes. Price is compared to each moving average to determine a bullish, neutral, or bearish signal. For example, a price well above the 200-day SMA indicates a strong long-term uptrend.
________________________________________
How to Use the Dashboard
Setup:
1. Paste the script into TradingView’s Pine Editor.
2. Add it to your chart.
3. Choose a timeframe suited to your strategy (e.g., 5–15 minutes for scalping, 1 hour for day trading, daily for long-term analysis).
4. Configure visual preferences such as table size and color scheme from the settings menu.
Signal Interpretation:
• A "Strong Buy" in the Summary combined with bullish Oscillators and Moving Averages suggests a high-probability long setup.
• Conflicting signals (e.g., bullish Summary but bearish Oscillators) may warrant waiting for alignment before taking a position.
• Position sizing can be adjusted based on the intensity of the combined signals.
Trading Strategies:
• Confirmation Trading: Enter trades only when all three sections align in the same direction.
• Scalping: Use oscillators for overbought/oversold setups, combined with short-term moving averages for trend confirmation.
• Trend Following: Use the Moving Averages section to identify sustained directional bias and follow pullbacks signaled by oscillators.
________________________________________
Risk Management Guidelines
The dashboard is not a trading system but an analytical tool. Users can enhance their risk management by:
• Allocating capital based on signal strength (e.g., stronger signals justify slightly larger positions).
• Using stop losses tied to volatility or moving averages.
• Reducing position size during conflicting signals or low-confidence readings.
• Avoiding trades when signals are below 50% strength or in mixed zones.
________________________________________
Best Practices and Common Pitfalls
• Always wait for confirmation across sections before entering trades.
• Avoid over-leveraging based on a single signal.
• Use appropriate timeframes – intraday traders should rely on shorter timeframes, while swing traders may focus on hourly or daily charts.
• Keep a trading journal to monitor the effectiveness of signals and refine strategies over time.
________________________________________
Disclaimer from aiTrendview
This script is intended solely for educational and informational purposes. It does not provide investment advice, trading signals, or guaranteed outcomes. aiTrendview and its affiliates are not liable for any financial losses incurred while using this script. All trading involves risk, and past performance of any technical indicator does not guarantee future results. Users are strongly advised to conduct independent research or consult with a licensed financial advisor before making any trading decisions.
WaveTrend LazyBear + BUY/SELL Labels (Custom Color)WaveTrend LazyBear + BUY/SELL Labels (Custom Color)
UT Bot Confirmed Edition by 相棒This is a high-precision indicator combining UT Bot and QQE MOD, designed for trend detection and confirmed logic.
It is optimized for Gold and USDJPY on the 5-minute and 1-minute timeframes.
Also compatible with other pairs and timeframes.
The Buy/Sell signals use Confirmed Logic to filter out noise and assist with reliable and practical entry decisions.
This is an invite-only script.
To use this script, authorization from the author is required.
Weekly + Daily Levels, Asia Range, US Settle This Pine Script—"Weekly Daily Levels Asia Range US Settle"—was originally designed for Forex trading, and has since been successfully adapted to Bitcoin and crypto markets. It maps out institutional key levels and session-based price zones, providing a clean, structured framework for intraday and swing trading.
🔧 Key Levels & Logic
🟢 1. Weekly Levels
Captures High, Low, and Midpoint (50%) of the previous trading week
Reset every Sunday at 5:00 PM New York time (17:00 ET)
Helps identify macro structure, liquidity zones, and weekly bias
🟠 2. Daily Levels
Captures High, Low, and Midpoint (50%) of the previous trading day
Resets daily at 5:00 PM New York time (17:00 ET)
Ideal for short-term support/resistance and mean-reversion zones
🔵 3. Asia Session Range
Captures High, Low, and Midpoint from 8:00 PM to 3:00 AM NY time (20:00–03:00 ET)
Frequently acts as a pre-breakout base for London or US session volatility
🔷 4. US Settle (Friday Only)
Captures the midpoint of the final 15-minute candle on Friday at 4:45 PM New York time (16:45 ET)
Draws a box (high-low) and midline to mark this institutional closing price
Useful for gap-fills, mean-reversion, and weekend-to-Monday setups
📊 Recommended Pairing for Trend Trading
To reduce noise and filter false signals, it’s highly advised to combine this level-based framework with:
✅ Exponential Moving Averages (EMA)
Use the 20, 50, 200, and 800 EMAs
For trend following:
Price above 20/50/200 = bullish alignment
Price below 20/50/200 = bearish alignment
800 EMA can act as macro-level magnet/support
✅ PVRSA Volume (Price-Volume-Support-Analysis)
Helps detect volume anomalies and distinguish real breakouts from false moves
Pay attention to climactic volume, stopping volume, and smart money footprints during key level interactions
Combining EMA structure and PVRSA volume with this script’s levels provides a robust trend-trading strategy, avoiding common traps from random level retests or low-volume breakouts.
🚀 Why This Works for Bitcoin
BTC respects session-defined highs/lows similar to forex
Price reacts strongly to Asia range breaks, NY opens, and weekly levels
The US settle level on Friday adds institutional context often ignored in crypto
Pairing it with volume + trend structure improves timing and accuracy
⚙️ Technical Features
Uses request.security() to pull data from a configurable low timeframe (default: 1m)
Fully customizable: colors, line widths, extension lengths
Intelligent label grouping for overlapping levels
Designed for precision on 15-minute or lower timeframes
✅ Best Used For
Intraday reversals and breakouts
Trend trading with EMA alignment
London and NY session range plays
Weekend price planning using US settle mid
Volume confirmation using PVRSA
Accumulation Phase DetectorClean Accumulation Phase Indicator — Description
This TradingView indicator visually identifies the Accumulation Phase in price action, based on the Wyckoff methodology and volume-price analysis. The Accumulation Phase is where insiders or "smart money" gradually build positions before a significant price breakout.
Key Features:
Range Detection: The indicator calculates a price range over a configurable period (Range Length). It marks this range on the chart with red horizontal lines representing support and resistance.
Volume Spike Identification: It detects unusually high volume relative to the average volume over the same period (Volume Spike Multiplier). These spikes highlight potential insider buying activity.
Accumulation Phase Highlighting: When price action remains within the detected range and volume spikes occur, the indicator considers the market to be in an accumulation phase. Volume bars during this phase are colored blue for easy visualization.
Campaign Start & End Labels: The indicator places a "Campaign starts" label at the beginning of the accumulation phase and a "Campaign ends - warehouse full" label when the accumulation ends. This mimics the idea that insiders fill their “warehouses” before a breakout.
Breakout Detection: Once accumulation ends, the indicator monitors for a price breakout above the resistance level and places a "Breakout" label at the breakout bar.
How to Use:
Adjust the Range Length and Volume Spike Multiplier inputs to suit the timeframe and instrument you’re analyzing.
Watch for the blue volume bars within the red range lines to identify the accumulation phase.
Use the campaign labels to identify when the phase starts and ends.
Watch for the breakout label as a potential entry signal.
Composite Sentiment Extremes OscillatorComposite Sentiment Extremes Oscillator (CSEO)
Created by MonkeyPhone
The Composite Sentiment Extremes Oscillator (CSEO) is a sophisticated market sentiment indicator designed to identify optimal entry and exit points by leveraging a composite of six key market data points. I developed this indicator to pinpoint moments where the risk-to-reward ratio for entering or exiting trades reaches its peak, helping traders capitalize on potential reversals. The oscillator aggregates data from the CBOE Volatility Index (VIX), CBOE Equity Put/Call Ratio (PCCE), NYSE TRIN, Net New 52-Week Highs/Lows, ICE BofA US High Yield Bond Spread (BAMLH0A0HYM2), and the percentage of S&P 500 stocks above their 200-day moving average (S5TH). Each component is normalized using a 252-bar percentrank to reflect greed (high values) or fear (low values), creating a unified 0-100 sentiment score.
The oscillator's line color reflects market conditions: red when above 60 (indicating a trending up market), gray between 40 and 60 (suggesting chop or consolidation), and green below 40 (indicating a trending down market). Notably, the higher or lower the line moves toward the extremes (88 for greed, 12 for fear), the more likely a pullback or retracement becomes, offering strategic opportunities for reversals. Given the long-term upward trend in legacy markets over decades, long signals (buy at extreme fear) tend to carry more weight than short signals (sell at extreme greed), though this dynamic may shift if markets experience a significant rollover.
This indicator performs best on the weekly timeframe, where its accuracy in identifying sentiment extremes shines, making it ideal for swing or position trading. It supports any timeframe daily or above, but lower timeframes (e.g., daily) may produce increased false signals due to data resolution limitations. Alerts can be configured for both long and short entries, allowing traders to receive notifications when the oscillator crosses the 12 (buy) or 88 (sell) thresholds—accessible via the TradingView alert interface for customized monitoring.
Use this tool to enhance your market timing, but always combine it with other analysis for confirmation. Feedback and suggestions are welcome as I continue to refine this indicator!