INVITE-ONLY SCRIPT

OptiRange | Fractalyst

Aggiornato
What’s the purpose of this indicator?
This indicator is designed to integrate probabilities with liquidity levels, while also providing a mechanical method for identifying market structure by using Fractals by Williams.
istantanea
----
How does this indicator identify market structure?
This script identifies breaks of market structure by analyzing candle closures above or below swing levels.
As soon as a candle has closed above or below the initial swing on your charts, the script validates that there is at least one swing preceding the break before confirming it as a structural break.
Once a break is occured then it assigns a numeric ID to the break starting from 1 and draws two extremities: one as liquidity and the other as invalidation (LIQ/INV).
istantanea
----
What do the extremities show us on the charts?
you'll see two clear extremities on your charts:

1. The first extremity represents the structural liquidity level. (LIQ)
2. The other extremity indicates the level that, if price breaks through it, results in a structural shift to the opposite side. (INV)
istantanea
----
How does it calculate probabilities?
Each break of market structure, denoted as X, is assigned a unique ID, starting from X1 for the first break, X2 for the second, and so on.

The probabilities are calculated based on breaks holding, meaning price closing through the liquidity level, rather than invalidation. This probability is then divided by the total count of similar numeric breaks.

For example, if 75 out of 100 bullish X1s become X2, then the probability of X1 becoming X2 on your charts will be displayed as 80% in the following format: ⬆ 75%
istantanea
----
What are the Fractal blocks?
Fractal blocks refer to the most extreme swing candle within the latest break. They can serve as significant levels for price rejection and may guide movements toward the next break, often in confluence with probability analysis for added confirmation.

If the price retraces back to a bullish fractal block, we aim to look for buy/long positions. Conversely, if the price retraces back to a bearish fractal block, we aim to look for sell/short positions.
istantanea
----
What are mitigations?
Mitigations refer to specific price action occurrences identified by the script:

1- When the price reaches the most recent fractal block and confirms a swing candle, the script automatically draws a line from the swing to the fractal block bar and labels it with a checkmark.
1- If the price wicks through the invalidation level and then retraces back to the fractal block while forming a swing candle, the script labels this as a double mitigation on the chart.

This level will serve as the next potential invalidation level if a break occurs in the same direction.
istantanea
----
What does the bottom table display?
The bottom table presents numeric breaks across multiple timeframes, with the text color indicating the trend direction. Enabling traders to assess the higher timeframes market trend without needing to switch between timeframes manually.
istantanea
----
How to use the indicator?

1. Add "OptiRange | Fractalyst" to your TradingView chart.
2. Choose the pair you want to analyze or trade.
3. Start with the 12-month timeframe.
4. Use the table bias with the maximal settings to find the lowest timeframe that’s showing you the mitigation (✓)
5. Confirm that the probability of the current liquidity is higher than 50%.
6. Place your limit order at the Fibonacci level of 0.618 of the mitigation candle.
7. Set your stop-loss at the mitigation level.
8. Determine your take profit based on the liquidity of the current timeframe, or if possible, the liquidity of a higher timeframe in the same direction; otherwise, use the liquidity of the current timeframe.
9. Risk adjustment and Trade management based on your personal preferences.
Example:
istantanea
----
User-input settings and customizations
istantanea
----
What makes this indicator original?

- This script leverages Fractals, a fundamental concept in many trading methodologies.

- For a break to be considered valid, price must have at least two swings:
a swing high followed by a swing low for bullish breaks and a swing low follow by a swing high for bearish breaks.

- This means that each swing point is confirmed by the formation of two candles on its left and two candles on its right, totaling 5 candles for each swing high and swing low, thus requiring 10 candles overall. (This strict rule ensures a thorough assessment of market structure before confirming a break.)

- The script assigns a unique numerical ID to each break of structure, starting from 1.
This numbering system enables the script to calculate the probability of the most recent break becoming the next break, while also factoring in the trend direction.

- Additionally, this script provides insights into higher timeframes' break IDs in the bottom/top centre table, keeping traders informed about the overall higher timeframe picture.

- By integrating these methodologies, the script introduces a unique and systematic method for identifying market structure, thereby enhancing its originality in guiding trading decisions.

Terms and Conditions | Disclaimer
Our charting tools are provided for informational and educational purposes only and should not be construed as financial, investment, or trading advice. They are not intended to forecast market movements or offer specific recommendations. Users should understand that past performance does not guarantee future results and should not base financial decisions solely on historical data. By utilizing our charting tools, the buyer acknowledges that neither the seller nor the creator assumes responsibility for decisions made using the information provided. The buyer assumes full responsibility and liability for any actions taken and their consequences, including potential financial losses. Therefore, by purchasing these charting tools, the customer acknowledges that neither the seller nor the creator is liable for any unfavorable outcomes resulting from the development, sale, or use of the products.
The buyer is responsible for canceling their subscription if they no longer wish to continue at the full retail price. Our policy does not include reimbursement, refunds, or chargebacks once the Terms and Conditions are accepted before purchase.


  • By continuing to use our charting tools, the user acknowledges and accepts the Terms and Conditions outlined in this legal disclaimer.
Note di rilascio
- Decreased loading time by utilizing Pine Profiler.
- Added Minimal and Maximal options to Blocks, allowing customization within fractal blocks.
- Added Minimal and Maximal options to the bias table, allowing customization of the group of timeframes and their mitigations.
- Bug fixes.
Note di rilascio
- Improved code logic for faster range and block calculation, enhancing performance and responsiveness.

- Fixed a known issue where the liquidity line was being drawn too far to the left, resulting in incorrect visual representation.
Note di rilascio
- Optimized script for faster calculations.
Note di rilascio
- Optimized code to minimize calculations and improve performance.
Note di rilascio
- Added an option to switch between displaying break count/probabilities or BOS labels.
This enhancement allows for a cleaner chart view and improved customization to suit different trading strategies and preferences.

- Enhanced the overall performance and efficiency of the indicator by optimizing the underlying code logic.
This results in faster execution and more reliable outputs.
Note di rilascio
- Optimized Range Minimal Mode:
Previous break of structure lines and labels are now faded gray to improve clarity.
Note di rilascio
- Expanded the max available lines and labels on charts to 500

- Improved performance and efficiency of Minimal Range Mode.
Note di rilascio
Added a screener functionality:
- Provides instant market context and bias.
- Guides trading decisions based on a comprehensive, top-down analysis of multiple timeframes.
- Alerts users to suitable trading opportunities and advises when to avoid trading due to market conditions like low liquidity or overextension.
Note di rilascio
Improved Screener Accuracy:
Offers clearer guidance on which timeframe to use for entry or when to stay away.

- Specifies the exact hourly timeframe(s) to use for your entries.

- Instructs when to wait for the market structure to shift towards the higher timeframe (HTF) liquidity level before considering any entry.

- Added hourly timeframes to the bias table for more detailed analysis.
Note di rilascio
- Added Buyside and Sellside liquidity labels for instant determination of range liquidity and invalidation price.
Note di rilascio
Improved Table Logic:
- Added two new options for top-down market analysis:
⧉: Analyzes market structure and fractal blocks from a top-down perspective.
%: Analyzes market structure and orderflow (probabilities) from a top-down perspective.

Enhanced Screener Logic:
- Depending on your selected table type, the indicator now provides guidance on the exact timeframes and levels to use for entries.
Note di rilascio
New Feature:
- Added HTF functionality to display higher timeframe liquidity levels using lines and labels on your charts. Now, you can see HTF liquidity levels without switching between timeframes.

Improvement
- Enhanced screener accuracy for better trade identification and performance based on multi-timeframe probabilities.
Note di rilascio
Improved Higher Timeframe Calculation Efficiency: Optimized the security function for calculating higher timeframe data to enhance performance and accuracy.
Added Range Box: Implemented a range box feature allowing users to visualize the current range and equilibrium for entry using the probability (%) method.
Hourly Timeframes Added: Converted minute-based labels to hourly timeframes for better readability and user convenience.
New Alerts: Introduced alerts for Equilibrium and Buyside/Sellside level for entry notifications.
Note di rilascio
- Implemented comprehensive tooltips for each component of the indicator's user-input section to assist new users. These tooltips provide clear explanations of the settings and their functions, enhancing the user experience by making it easier to understand and customize the indicator.
Note di rilascio
Added tooltips to the bias table for hourly timeframes, allowing users to hover mouse over them to view higher hourly timeframe levels needed for setting orders. This enhancement streamlines the process by providing necessary information without the need to switch between timeframes.
Note di rilascio
Overlapped Ranges: Introduced overlapped ranges to the indicator, allowing it to calculate fractal ranges that overlap with each other. This enhancement provides a more accurate top-down analysis in the screener table, offering deeper insights into market structure and its context.

Screener: The updated top-down analysis now provides a clearer view of which timeframes are holding the market context. This helps traders identify the most relevant timeframe for entering the highest probability setups, enhancing strategy precision and effectiveness.

Enhanced Tooltips: Added more informative tooltips for tables and labels. Hover your mouse over these elements to explore additional details and guidance, enhancing user experience and understanding.
Note di rilascio
New Features
- The indicator now includes the 3-hour (3H) and 10-hour (10H) timeframes.
- These additions enhance the ability to identify high probability setups by providing more granular analysis amongst the existing 8 hourly timeframes.
- Supported timeframes now include: 12H, 10H, 8H, 6H, 4H, 3H, 2H, and 1H.
Improvements
- Improved the top-down analysis logic to provide more accurate and efficient multi-timeframe analysis.
- This enhancement ensures better alignment and synchronization across different timeframes.
Bug Fixes
- Minor bug fixes and performance improvements to ensure smooth operation and accurate data representation across all timeframes.
Note di rilascio
Enhanced tooltips, allowing users to easily identify the highest probability setups, along with clear entry, stop-loss, and target levels.
Note di rilascio
- Introduced new options for table size customization, allowing users to select their preferred display size.
- Implemented maximal and minimal modes to enhance user control over table appearance.
Note di rilascio
- Improved the logic for analyzing multi-timeframe ranges, resulting in faster opportunity detection.
Note di rilascio
- Improved tooltips for detailed exploration of hourly timeframes, helping traders identify optimal entry setups more effectively.

- Equilibrium alert bug fix
Note di rilascio
- Improved range probability calculation for increased accuracy.
Note di rilascio
- Added customizable bar colors to highlight price entries and liquidity taps (disabled by default).
- New tooltips on structure breaks showing historical probabilities.
Note di rilascio
- Enhanced text variations within labels to better reflect specific market conditions
Note di rilascio
- Added a font customization option. Users can now input their preferred font type, enhancing readability and aesthetic customization according to personal visibility needs.
- Refined the indicator for calculating range probabilities.
- Optimized the underlying code logic to reduce execution time.
- Labels now dynamically adjust based on contextual market bias.
Note di rilascio
Confidence Level Integration:
Introduced a confidence level feature that quantifies the reliability of the probabilities generated by the indicator.
Visual representation of confidence levels (★) for each probability, allowing traders to assess the strength and reliability of predictions.
Note di rilascio
New Features

- Custom Pivot with RR Adjustment: Introduced a custom pivot option that allows users to adopt a more aggressive trade entry. Leveraging real-time calculated positive expected values to confirm trading setups.

- Enhanced Screener Table: The screener table has been updated to compare all timeframes and their respective positive expected values. This enhancement guides users on which timeframes to focus on for optimal positioning, aligning with a multi-timeframe top-down approach facilitated by the indicator's engine.

Improvements

- Expected Value Labels: Added informative labels on charts displaying the expected value of every setup. This feature helps traders make more informed decisions based on the potential profitability of their setups.

- Overall Efficiency Enhancements: Improved the overall efficiency of the indicator, ensuring faster calculations and smoother user experience.

istantanea
Note di rilascio
- Minor visual improvements
Note di rilascio
- Enhanced Probabilities Table Tooltips: Users can now view higher hourly timeframes expected value and confidence level of current setup in tooltips.
Note di rilascio
New Features

Quantitative Mode: Provides a detailed numerical breakdown of Higher Time Frame (HTF) biases, Lower Time Frame (LTF) entries, and their probabilities. This mode is color-coded for quick visual analysis, enabling traders to identify potential setups efficiently.

Interpretive Mode: Introduces a narrative-based interpretation of the market. This mode translates the raw data into comprehensible insights, offering a story behind the numbers.
Note di rilascio
- Enhanced tooltips for clearer feature understanding
Note di rilascio
HTF Probability Table:
- Enhanced readability with a new layout and color scheme for better user experience.
- Optimized data presentation for higher time frames to provide clearer insights at a glance.
Note di rilascio
- Improved range minimal mode to display the last oppposite BOS/X as "⏎" on charts.
Note di rilascio
- Improved the Probability Table functionality to now display the expected value for all hourly timeframes directly on user charts.

- User Interface: The updated interface now seamlessly integrates the expected value data, allowing for instant visibility without the need for additional clicks or navigation.

- Performance: Optimized backend processing to ensure that the real-time data updates do not impact the overall performance of the charting tool.
Note di rilascio
- Updated special characters to a readable format across all devices for improved visualization.
- Enhanced timeframe readability logic.
Note di rilascio
- Enhanced code logic for improved performance.
- Added new font customization options for better visual clarity.
Note di rilascio
- Quick label bug fix.
Note di rilascio
- Improved the functionality and aesthetics of the multi-timeframe table when the custom pivot level is selected.
Note di rilascio
Enhanced the range calculation logic to provide more precise measurements of probabilities.
Note di rilascio
- Minor improvements
Note di rilascio
- Improved probability logic calculation for custom pivot levels.
- Prepared backend logic for the next coming update.
Note di rilascio
New Features:
Dynamic Pivot Detection Mechanism:
Introduced a sophisticated algorithm that dynamically identifies optimal trading setups across all displayed hourly timeframes within the multi-timeframe table.
When the dynamic pivot level option is selected, the script now compares probabilities and expected values to determine the best entry setups aligned with the HTF bias and the chosen RR within the settings.
Improvements:
Enhanced Expected Value Analysis:
The new mechanism allows for a more comprehensive evaluation of expected values.
Optimized Stop Loss Sizes:
By automatically detecting setups with the highest expected values, users can benefit from reduced stop loss sizes, enhancing potential returns over the long run.
Note di rilascio
Improved the multi-timeframe bias detection mechanism for better accuracy in identifying the overall market bias.
Note di rilascio
Improvements
- Enhanced HTF Bias Table Color Detection for improved visual clarity and accuracy.

Bug Fixes
- Resolved an issue with the hourly timeframes table size, ensuring proper display and functionality.
Note di rilascio
- Fixed a bug related to status label on hourly timeframes.
Note di rilascio
Enhanced Probability Calculation
- Introduced a condition to focus on the first tap of the Pivot Level (PVT) when calculating probabilities. This change aims to provide more accurate entry probabilities.
First Tap Focus
If the price is already within a range, the indicator will:
- Calculate probabilities and expected values based only on the first tap of the PVT.
This ensures that entries are based on initial market interactions.
Label Status Management
If the price has interacted with either side of the PVT and remains in the same range:
- The label status will change to IDLE | ●
In this state, new probability calculations will not start until price create a new range.
Note di rilascio
Improved Data Accuracy:
Adjusted the request security function to ensure more reliable data retrieval from higher time frames (HTF).
Label and Tooltip Synchronization:
Adjusted labels and tooltips to be synchronized with each other, enhancing user interface consistency and clarity.
Note di rilascio
Added Real-Time Optimal Risk Calculation:
Implemented the Kelly Criterion formula to calculate optimal risk per trade based on the user-defined maximum drawdown. This feature allows traders to risk more on high-probability setups and less on lower-probability setups, maximizing growth while minimizing drawdowns.

Real-Time Profit Factor Calculation:
Introduced real-time profit factor calculation alongside recommended risk-reward (RR) ratios for each setup. Aiming for a profit factor of 1.5 and above ensures that trading fees and commissions do not exceed profits, maintaining strategy profitability. This is particularly beneficial for users targeting a fixed RR per trade.

Improved Confidence Level Calculation:
Enhanced the confidence level calculation, incorporating principles from the Law of Large Numbers for more accurate assessments.

HTF Setup Rating Feature:
Added the ability to rate the overall higher time frame (HTF) setup by hovering the mouse over the respective areas, providing quick insights into setup quality.

Enhanced Probabilistic Table:
Improved the probabilistic table to include idle setups, allowing for better tracking and decision-making.
Note di rilascio
- The indicator now incorporates machine learning techniques (RL/BO) to study historical data and adapt to new trends in real time, automatically identifying optimal pivot levels for entries.

Optimizing for highest Expected Value (EV), price tap frequency, and cumulative profit based on the Kelly Criterion, along with essential metrics like setup confidence level and standard deviation.
Note di rilascio
- Improved adaptive pivot level calculation technique.
Note di rilascio
- Fixed an error that caused the script to reference too many bars back in the historical data.
Note di rilascio
Excluded interbar conditions from probability calculations to improve accuracy.

This change focuses on direct price actions instead of fluctuations between tight ranges.
Note di rilascio
- Implemented ADLQ to dynamically calculate the optimal take profit level based on ML analysis of historical data.

ADLQ automatically factors in expected value E(X), confidence level C(%), and the frequency at which price levels are tapped, providing the most reliable liquidity level for a fixed profit-taking.
Note di rilascio
- Improved table functionality, allowing users to focus on valid hourly timeframes.
Note di rilascio
- Enhanced probability logic calculations to increase accuracy in predictive modeling.
Note di rilascio
- Converted to Pine Script v6, updating syntax, optimizing performance, and enhancing features for improved functionality.
Note di rilascio
- Simplified underlying logic, significantly reducing probability calculation time.

- 75% improvement in loading speed.
Note di rilascio
- Made adjustments to the ADLQ calculation for improved accuracy in reflecting market conditions.
istantanea
Note di rilascio
- Minor tweaks focused on enhancing efficiency.
Note di rilascio
- Minor improvements and bug fixes.
Note di rilascio
- Improved adaptive calculation logic, leading to more accurate detection of PVT levels.
- Minor UI refinements.
Note di rilascio
- Added range highlight feature to visualize the current price’s distance from liquidity levels (BSLQ/SSLQ) in percentage.
Note di rilascio
- Users can now select custom colors for lines, labels, and boxes, offering complete visual flexibility.
istantanea
Note di rilascio
- Minor box-color bugfix.
Note di rilascio
- Minor improvement to multi-timeframe bias detection.
Note di rilascio
- Added 2.0 block detection for HTF.
- Enables more accurate trend and structural analysis using higher timeframe contextual bias.
Note di rilascio
- Minor logical improvements.
Note di rilascio
- Added ADLQ (Adjusted Liquidity Level) to dynamically calculate extended liquidity levels based on average liquidity grab extensions for improved risk management.
Note di rilascio
- Enhanced ADLQ functionality with price extension levels to improve trade management and decision-making.
Note di rilascio
- Improved predictive modeling accuracy by refining bias detection criteria, resulting in more reliable and consistent predictions.
Note di rilascio
1. Built-In Trailing Stoploss:
• Added a dynamic trailing stoploss feature based on market structure.
• Automatically adjusts positions as new breaks of structure (BOS) occur, ensuring better risk management while capturing extended trends.

2. Multi-Timeframe Analysis:
• Custom timeframe selection for entries.
• Users can now analyze up to 8 timeframes to identify high-probability opportunities according to the HTF bias.
Note di rilascio
- Implemented dynamic request logic to reduce unnecessary script calculations, enhancing efficiency.
Note di rilascio
- Minor improvements and bug fixes.
marketstructuremulti-timeframemultitimeframePivot points and levelsprobabilitiesquantitativequanttradingrulesbasedtradingsystematictradingtopdownanalysisTrend Analysis

Script su invito

L'accesso a questo script è riservato agli utenti autorizzati dall'autore, solitamente dietro pagamento di una commissione. Puoi aggiungerlo ai preferiti, ma sarai in grado di utilizzarlo solo una volta ricevuto il via libera da parte dell'autore. Per ulteriori informazioni, contatta Fractalyst o segui le istruzioni dell'autore riportate di seguito.

TradingView non suggerisce di pagare per uno script e di utilizzarlo a meno che non ci si fidi al 100% del suo autore e non si comprenda il suo funzionamento. In molti casi, è possibile trovare gratuitamente una buona alternativa open-source nei nostri Script della comunità.

Istruzioni dell'autore

📥┃Request Access ➙ http://www.fractalyst.net/levelup

Vuoi usare questo script sui tuoi grafici?

Attenzione: leggi prima di richiedere l'accesso.

🎅 Machine Learning Entry Model: fractalyst.net/
   
🎁 Discord Community: discord.gg/rdbDX9m3dx

Declinazione di responsabilità