OPEN-SOURCE SCRIPT
Range Percentile Bias

Range Percentile Bias with Transition Highlights
Range Percentile Bias with Transition Highlights is designed to evaluate where current price sits within a historical price range and translate that positioning into an easy-to-read directional bias framework.
Rather than using traditional trend or momentum calculations, this indicator analyzes the current price location relative to the highest high and lowest low over a user-defined lookback period. The goal is to provide a quick assessment of whether price is trading near the lower, middle, or upper portions of its recent range and classify that positioning into market bias categories. Built from the functionality and logic contained within your indicator.
Features
• Configurable lookback range period
• Percentile-based bias classification
• Adjustable bullish and bearish threshold levels
• Neutral zone customization
• Transition highlight system
• Lookback high and low visual references
• Dynamic summary table
• Table position customization
• Table size customization
• Custom color settings
• Transition alerts
Bias States
🟢 Very Bullish
Price is positioned near the upper extreme of the recent range.
🟢 Bullish
Price is trading within stronger bullish territory.
🟢 Slightly Bullish
Price shows moderate bullish positioning.
⚪ Neutral
Price remains within the defined balanced range.
🔴 Slightly Bearish
Price begins showing weaker relative positioning.
🔴 Bearish
Price moves toward stronger bearish territory.
🔴 Very Bearish
Price is positioned near the lower extreme of the recent range.
Transition Highlights
The indicator can visually highlight changes between larger market states:
🟨 Bullish → Neutral
🟩 Neutral → Bullish
🟧 Bearish → Neutral
🟥 Neutral → Bearish
🟪 Bullish → Bearish
🟦 Bearish → Bullish
These transitions are intended to make shifts in market behavior easier to identify without constantly monitoring percentile values.
Summary Table Includes
• Current Bias
• Current Range Percentile
Potential Use Cases
• Identify relative market positioning
• Determine bullish or bearish context
• Monitor changing market conditions
• Filter trade setups
• Identify transition periods
• Add confluence to existing systems
• Study range behavior over time
Settings Guide
High/Low Lookback Period
Controls how many historical bars are used to define the current range.
Current Price Source
Determines which price value is used for calculations.
Bias Percentile Levels
Controls where bullish, bearish, and neutral zones begin and end.
Neutral Zone
Defines the balanced area between bullish and bearish conditions.
Transition Highlights
Displays visual highlights when larger market state changes occur.
Table Position / Text Size
Adjusts dashboard placement and readability.
Alerts Included
• Very Bullish Bias
• Bullish Bias
• Slightly Bullish Bias
• Neutral Bias
• Slightly Bearish Bias
• Bearish Bias
• Very Bearish Bias
• Bullish → Neutral Transition
• Neutral → Bullish Transition
• Bearish → Neutral Transition
• Neutral → Bearish Transition
• Bullish → Bearish Transition
• Bearish → Bullish Transition
About TrendGenY Indicators
TrendGenY indicators are built from market experience, creative concepts, and a constant pursuit of unique perspectives. Rather than following conventional ideas, the focus is on uncovering alternative insights and viewing market behavior through different angles to reveal information that traditional tools may overlook and help traders build a more meaningful edge in the market.
Range Percentile Bias with Transition Highlights is designed to evaluate where current price sits within a historical price range and translate that positioning into an easy-to-read directional bias framework.
Rather than using traditional trend or momentum calculations, this indicator analyzes the current price location relative to the highest high and lowest low over a user-defined lookback period. The goal is to provide a quick assessment of whether price is trading near the lower, middle, or upper portions of its recent range and classify that positioning into market bias categories. Built from the functionality and logic contained within your indicator.
Features
• Configurable lookback range period
• Percentile-based bias classification
• Adjustable bullish and bearish threshold levels
• Neutral zone customization
• Transition highlight system
• Lookback high and low visual references
• Dynamic summary table
• Table position customization
• Table size customization
• Custom color settings
• Transition alerts
Bias States
🟢 Very Bullish
Price is positioned near the upper extreme of the recent range.
🟢 Bullish
Price is trading within stronger bullish territory.
🟢 Slightly Bullish
Price shows moderate bullish positioning.
⚪ Neutral
Price remains within the defined balanced range.
🔴 Slightly Bearish
Price begins showing weaker relative positioning.
🔴 Bearish
Price moves toward stronger bearish territory.
🔴 Very Bearish
Price is positioned near the lower extreme of the recent range.
Transition Highlights
The indicator can visually highlight changes between larger market states:
🟨 Bullish → Neutral
🟩 Neutral → Bullish
🟧 Bearish → Neutral
🟥 Neutral → Bearish
🟪 Bullish → Bearish
🟦 Bearish → Bullish
These transitions are intended to make shifts in market behavior easier to identify without constantly monitoring percentile values.
Summary Table Includes
• Current Bias
• Current Range Percentile
Potential Use Cases
• Identify relative market positioning
• Determine bullish or bearish context
• Monitor changing market conditions
• Filter trade setups
• Identify transition periods
• Add confluence to existing systems
• Study range behavior over time
Settings Guide
High/Low Lookback Period
Controls how many historical bars are used to define the current range.
Current Price Source
Determines which price value is used for calculations.
Bias Percentile Levels
Controls where bullish, bearish, and neutral zones begin and end.
Neutral Zone
Defines the balanced area between bullish and bearish conditions.
Transition Highlights
Displays visual highlights when larger market state changes occur.
Table Position / Text Size
Adjusts dashboard placement and readability.
Alerts Included
• Very Bullish Bias
• Bullish Bias
• Slightly Bullish Bias
• Neutral Bias
• Slightly Bearish Bias
• Bearish Bias
• Very Bearish Bias
• Bullish → Neutral Transition
• Neutral → Bullish Transition
• Bearish → Neutral Transition
• Neutral → Bearish Transition
• Bullish → Bearish Transition
• Bearish → Bullish Transition
About TrendGenY Indicators
TrendGenY indicators are built from market experience, creative concepts, and a constant pursuit of unique perspectives. Rather than following conventional ideas, the focus is on uncovering alternative insights and viewing market behavior through different angles to reveal information that traditional tools may overlook and help traders build a more meaningful edge in the market.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน