OPEN-SOURCE SCRIPT
15:50 Anticipe

This indicator is designed to anticipate the market behavior around a specific time of day (by default 15:50) by evaluating market conditions one minute before the target candle.
It is primarily intended for intraday trading on 1-minute charts, especially on index futures such as NQ / MNQ.
The logic combines trend, volatility compression, momentum, volume, and VWAP positioning, using a scoring system to determine whether a LONG, SHORT, or NEUTRAL bias is statistically favored before the target candle prints.
Core Concept
At the anticipation candle (15:49 by default), the indicator evaluates multiple technical conditions.
Each condition adds points to a LONG score or SHORT score.
If one side reaches the required score threshold and is stronger than the opposite side, a persistent signal is generated and held through the 15:50 candle.
The 15:50 candle is highlighted in yellow for visual reference.
Indicators Used
The system combines:
• Bollinger Bands to detect volatility compression
• EMA 9 / EMA 21 / EMA 89 for short-term and structural trend
• RSI for momentum confirmation
• Volume Spike Detection based on a volume SMA multiplier
• Anchored VWAP, reset daily and anchored at a configurable time
• Optional Reversal Mode for mean-reversion setups
Scoring Logic
Each side (LONG / SHORT) accumulates points based on conditions such as:
• Bollinger Band compression
• EMA 9 vs EMA 21 alignment
• Price location relative to EMA 9 and BB basis
• RSI above or below threshold
• Volume spike confirmation
• Price position relative to Anchored VWAP
If Reversal Mode is enabled, additional points are added when:
• Price touches or exceeds Bollinger extremes
• RSI divergence is detected
• Price deviates significantly from Anchored VWAP
Reversal conditions carry more weight, favoring exhaustion and snap-back setups.
Signal Generation
At the anticipation candle:
• LONG signal
Triggered when LONG score ≥ required threshold and stronger than SHORT score.
• SHORT signal
Triggered when SHORT score ≥ required threshold and stronger than LONG score.
• NEUTRAL signal
Displayed when neither side has a clear statistical edge.
Signals are displayed as labels above or below price, positioned dynamically using ATR to avoid candle overlap.
Once triggered, the signal remains active through the 15:50 candle and can be used for trade execution or confirmation.
Anchored VWAP
The Anchored VWAP:
• Resets automatically each trading day
• Starts calculating from a user-defined hour and minute
• Acts as a directional and mean-reversion reference
• Is fully integrated into both trend and reversal logic
Alerts
The indicator provides alert conditions for:
• Anticipated LONG setup
• Anticipated SHORT setup
• NEUTRAL condition
Alerts trigger when the anticipation signal becomes active, allowing automation or discretionary execution.
Intended Use
This indicator is best used as:
• A directional bias tool before a known time-based volatility event
• A confirmation layer, not a standalone entry system
• A way to structure disciplined trades instead of reacting emotionally to the 15:50 candle
It favors clarity, confluence, and probability, not prediction.
It is primarily intended for intraday trading on 1-minute charts, especially on index futures such as NQ / MNQ.
The logic combines trend, volatility compression, momentum, volume, and VWAP positioning, using a scoring system to determine whether a LONG, SHORT, or NEUTRAL bias is statistically favored before the target candle prints.
Core Concept
At the anticipation candle (15:49 by default), the indicator evaluates multiple technical conditions.
Each condition adds points to a LONG score or SHORT score.
If one side reaches the required score threshold and is stronger than the opposite side, a persistent signal is generated and held through the 15:50 candle.
The 15:50 candle is highlighted in yellow for visual reference.
Indicators Used
The system combines:
• Bollinger Bands to detect volatility compression
• EMA 9 / EMA 21 / EMA 89 for short-term and structural trend
• RSI for momentum confirmation
• Volume Spike Detection based on a volume SMA multiplier
• Anchored VWAP, reset daily and anchored at a configurable time
• Optional Reversal Mode for mean-reversion setups
Scoring Logic
Each side (LONG / SHORT) accumulates points based on conditions such as:
• Bollinger Band compression
• EMA 9 vs EMA 21 alignment
• Price location relative to EMA 9 and BB basis
• RSI above or below threshold
• Volume spike confirmation
• Price position relative to Anchored VWAP
If Reversal Mode is enabled, additional points are added when:
• Price touches or exceeds Bollinger extremes
• RSI divergence is detected
• Price deviates significantly from Anchored VWAP
Reversal conditions carry more weight, favoring exhaustion and snap-back setups.
Signal Generation
At the anticipation candle:
• LONG signal
Triggered when LONG score ≥ required threshold and stronger than SHORT score.
• SHORT signal
Triggered when SHORT score ≥ required threshold and stronger than LONG score.
• NEUTRAL signal
Displayed when neither side has a clear statistical edge.
Signals are displayed as labels above or below price, positioned dynamically using ATR to avoid candle overlap.
Once triggered, the signal remains active through the 15:50 candle and can be used for trade execution or confirmation.
Anchored VWAP
The Anchored VWAP:
• Resets automatically each trading day
• Starts calculating from a user-defined hour and minute
• Acts as a directional and mean-reversion reference
• Is fully integrated into both trend and reversal logic
Alerts
The indicator provides alert conditions for:
• Anticipated LONG setup
• Anticipated SHORT setup
• NEUTRAL condition
Alerts trigger when the anticipation signal becomes active, allowing automation or discretionary execution.
Intended Use
This indicator is best used as:
• A directional bias tool before a known time-based volatility event
• A confirmation layer, not a standalone entry system
• A way to structure disciplined trades instead of reacting emotionally to the 15:50 candle
It favors clarity, confluence, and probability, not prediction.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน