Session Levels Predictor
By LuxAlgoJan 30, 2024

The "Session Levels Predictor" is a powerful trading indicator designed to forecast maximum and minimum price levels during a user-defined trading session. It provides valuable insights for setting take profit and stop loss levels by offering a visual representation of expected price extremities. By displaying hit rate percentages, traders can evaluate the accuracy of the predicted levels, making it an essential tool for effective trade management.
How to Trade with the Session Levels Predictor
The Session Levels Predictor enables traders to estimate expected highs and lows within their defined session, which is crucial for setting strategic take profits and stop losses. With projections displayed at the session's start, traders can gain clarity on potential price movements within the given timeframe, enhancing their trading strategy.
Up to three upper and lower extrema can be visualized on the trading chart, providing a detailed insight into market dynamics. Traders have the flexibility to adjust these levels based on their individualized percentile settings—the closer the percentile is to 100, the more distant these levels will appear from the session's opening price.
By effectively predicting these levels, traders identify robust support and resistance zones, crucial for breakout and reversal strategies. Furthermore, these levels can persist beyond the session timeframe, offering usefulness as potential support or resistance zones for subsequent sessions.
Insights into Prediction Mechanics
For accurate predictions, the indicator records the distance between session peaks and the opening price. This data-driven approach allows traders to spot where maximum and minimum occurrences align within a session's lifecycle.
Employing the percentile_nearest_rank() function, the indicator draws price levels from the session's opening snapshot. If these levels are reached, the event is logged for future accuracy assessments.
The indicator further illustrates a percentage-based hit rate at session openings—an informative statistic, guiding traders on the probability of these levels being achieved within forthcoming sessions.
Understanding array.percentile_nearest_rank()
The array.percentile_nearest_rank() function is pivotal, providing values where a specified percentage of array entries (percentile score) falls under or meets a criterion, all via the nearest-rank calculation.
For contextual clarity, invoking a 75th percentile from captured data—relating to the gap between peak session levels and the open price—pinpoints a threshold where 75% of the distances fall below.
The same applies to lower (green) session openings—providing traders a comprehensive view.
Configuring the Session Levels Predictor
- Session: Define your session's timeframe, with local timezone awareness to better align with trade objectives.
- Percentile (Levels 1-3): Configurable percentiles which assist in setting the distance of projected levels, where higher percentiles increase the projection distance.
- Max Population: Determines the sample size within which percentiles are calculated, influencing the precision of level predictions.
Enhancing Trade Visuals
- Extend Middle Line: A toggle feature to prolong the visibility of the blue middle line into subsequent sessions, although disabled by default.
Frequently Asked Questions (FAQ)
What is the Session Levels Predictor, and how can it improve my trading strategy? The Session Levels Predictor forecasts the maximum and minimum levels during user-defined trading sessions, assisting in determining take profit and stop loss zones.
How does the hit rate percentage assist me as a trader? It facilitates a statistical view of how often expected levels are met during a trading session, refining strategy accuracy.
How can I access the Session Levels Predictor? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.