INVITE-ONLY SCRIPT

OptiRange | Fractalyst

By Fractalyst
Updated
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.
snapshot
----
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).
snapshot
----
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)
snapshot
----
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%
snapshot
----
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.
snapshot
----
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.
snapshot
----
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.
snapshot
----
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:
snapshot
----
User-input settings and customizations
snapshot
----
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.
Release Notes
- 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.
Release Notes
- 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.
Release Notes
- Optimized script for faster calculations.
Release Notes
- Optimized code to minimize calculations and improve performance.
Release Notes
- 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.
Release Notes
- Optimized Range Minimal Mode:
Previous break of structure lines and labels are now faded gray to improve clarity.
Release Notes
- Expanded the max available lines and labels on charts to 500

- Improved performance and efficiency of Minimal Range Mode.
Release Notes
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.
Release Notes
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.
Release Notes
- Added Buyside and Sellside liquidity labels for instant determination of range liquidity and invalidation price.
Release Notes
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.
Release Notes
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.
Release Notes
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.
Release Notes
- 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.
Release Notes
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.
Release Notes
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.
Release Notes
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.
Release Notes
Enhanced tooltips, allowing users to easily identify the highest probability setups, along with clear entry, stop-loss, and target levels.
Release Notes
- 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.
Release Notes
- Improved the logic for analyzing multi-timeframe ranges, resulting in faster opportunity detection.
Release Notes
- Improved tooltips for detailed exploration of hourly timeframes, helping traders identify optimal entry setups more effectively.

- Equilibrium alert bug fix
Release Notes
- Improved range probability calculation for increased accuracy.
Release Notes
- Added customizable bar colors to highlight price entries and liquidity taps (disabled by default).
- New tooltips on structure breaks showing historical probabilities.
Release Notes
- Enhanced text variations within labels to better reflect specific market conditions
Release Notes
- 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.
Release Notes
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.
Release Notes
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.

snapshot
Release Notes
- Minor visual improvements
Release Notes
- Enhanced Probabilities Table Tooltips: Users can now view higher hourly timeframes expected value and confidence level of current setup in tooltips.
Release Notes
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.
Release Notes
- Enhanced tooltips for clearer feature understanding
Release Notes
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.
Release Notes
- Improved range minimal mode to display the last oppposite BOS/X as "⏎" on charts.
Release Notes
- 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.
Release Notes
- Updated special characters to a readable format across all devices for improved visualization.
- Enhanced timeframe readability logic.
Release Notes
- Enhanced code logic for improved performance.
- Added new font customization options for better visual clarity.
Release Notes
- Quick label bug fix.
Release Notes
- Improved the functionality and aesthetics of the multi-timeframe table when the custom pivot level is selected.
Release Notes
Enhanced the range calculation logic to provide more precise measurements of probabilities.
liquiditymarketstructuremechanicaltradingsystemmulti-timeframemultitimeframePivot points and levelsprobabilitiesquantativestrategyrulesbasedtradingsystematictradingtopdownanalysisTrend Analysis
Fractalyst
📥┃𝐅𝐫𝐞𝐞 𝐎𝐮𝐭𝐥𝐨𝐨𝐤𝐬:
discord.gg/B2e52B3D7U

📥┃𝐒𝐰𝐢𝐧𝐠 𝐓𝐫𝐚𝐝𝐢𝐧𝐠 𝐒𝐭𝐫𝐚𝐭𝐞𝐠𝐲 + 𝐁𝐮𝐢𝐥𝐭-𝐢𝐧 𝐈𝐧𝐝𝐢𝐜𝐚𝐭𝐨𝐫:
fractalyst.net/

📥┃ 𝐅𝐫𝐞𝐞 𝐒𝐜𝐫𝐞𝐞𝐧𝐞𝐫:
fractalyst.net/screener

Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact Fractalyst for more information, or follow the author's instructions below.

Please note that this is a private, invite-only script that was not analyzed by script moderators. Its compliance to House Rules is undetermined. TradingView does not suggest paying for a script and using it unless you 100% trust its author and understand how the script works. In many cases, you can find a good open-source alternative for free in our Community Scripts.

Author's instructions

📥┃Get access here ➙ http://www.fractalyst.net

Want to use this script on a chart?

Warning: please read before requesting access.

Disclaimer