IU VaR (Value at Risk) Historical MethodThis Pine Script indicator calculates the **Value at Risk (VaR)** using the **Historical Method** to help traders understand potential losses during a given period( Chart Timeframe) with a specific level of confidence.
What is Value at Risk (VaR) ?
Value at Risk (VaR) is a measure used in finance to estimate the potential loss in value of an asset, portfolio, or investment over a specific time period, given normal market conditions, and at a certain confidence level.
Example:
Suppose you invest ₹1,00,000 in stocks. A VaR of 5% at a 95% confidence level means:
- There is a **95% chance** that you won’t lose more than **₹5,000** in a day.
- Conversely, there is a **5% chance** that your loss could exceed ₹5,000 in a day.
VaR is a helpful tool for understanding risk and making informed investment decisions!
How It Works:
1. The indicator calculates the percentage difference between consecutive bars.
2. The differences are sorted, and the VaR is determined based on the assurance level you specify.
3. A label displays the VaR value on the chart, indicating the potential maximum loss with the selected assurance level within one period eg - ( 1h, 4h , 1D, 1W, 1M etc as per your chart timeframe )
Key Features:
- Customizable Assurance Level:
Set the confidence level (e.g., 95%) to determine the probability of loss.
-Historical Approach:
Uses the past percentage changes in price to calculate the risk.
-Clear Insights:
Displays the calculated VaR value on the chart with an informative tooltip explaining the risk.
Use this tool to better understand your market exposure and manage risk!
Educational
Volume Weighted TWAP (VW-TWAP)The Volume Weighted Time Weighted Average Price (VW-TWAP) is an indicator that combines the principles of price averaging with volume sensitivity. Unlike the traditional TWAP, which calculates a simple time-weighted average, VW-TWAP integrates volume into its computation, emphasizing price movements that occur during periods of higher trading activity. This makes it particularly effective for identifying realistic price levels influenced by significant market participation. It is computed by summing the volume-weighted prices over a specified period and dividing by the total volume, providing a more accurate reflection of the price participants value most.
The key benefits of VW-TWAP lie in its ability to guide both traders and investors with a data-driven perspective. By accounting for both time and volume, it highlights fair value zones where significant accumulation or distribution might occur. This can improve trade entries and exits by aligning decisions with zones of substantial market consensus. Furthermore, its adaptability to different timeframes enhances its utility in multi-timeframe analysis, making it suitable for intraday scalpers and long-term swing traders alike. The VW-TWAP's focus on volume sensitivity also minimizes noise from low-volume, erratic price movements, offering a clearer view of market dynamics.
Relative Price Strength (RPS)Relative Price Strength (RPS) is a technical analysis indicator that measures the performance of a specific symbol relative to a benchmark or "Base Symbol".
It's essentially a ratio that compares the price of the specific symbol to the price of the benchmark.
Rising RPS: Indicates that the symbol is outperforming the benchmark.
Falling RPS: Suggests that the symbol is underperforming the benchmark.
RSP is smoothed over a period for better visualization.
Leveraged Chart with Financing, Portfolio DCA & NormalizationLeveraged Investment Simulator with Portfolio DCA & Performance Metrics
Overview:
This indicator helps simulate leveraged investment strategies, incorporating financing costs, Dollar Cost Averaging (DCA), and performance metrics. Ideal for analyzing leveraged growth on price charts or managing portfolios with periodic contributions.
Key Features:
Dual Simulation Modes:
- Chart Mode: Simulate leveraged growth directly on the price chart.
- Portfolio Mode: Track portfolio performance with periodic DCA contributions.
Leverage & Financing Fees:
- Adjustable leverage multiplier.
- Annual financing fees to model borrowing costs.
Dollar Cost Averaging (DCA):
- Set an initial investment and recurring deposit amounts.
- Choose contribution frequency: Monthly, Quarterly, or Yearly.
Performance Metrics:
- Sharpe Ratio: Evaluate risk-adjusted returns.
- Sortino Ratio: Assess downside risk-adjusted performance.
- Maximum Drawdown: Measure the largest decline from a peak.
Customizable Labels:
- Enable or disable specific sections, such as portfolio details and risk metrics.
Inputs:
Symbol selection (default: AAPL).
Data timeframe (e.g., daily, weekly, monthly).
Leverage multiplier and annual financing fees.
Portfolio options: Initial investment, deposit amounts, and frequencies.
Performance analysis options, including a customizable risk-free rate for Sharpe/Sortino ratios.
Toggleable label sections for focused analysis.
How to Use:
Add the indicator to your chart.
Configure the inputs to match your strategy (e.g., leverage factor, financing rates, DCA settings).
Toggle on/off the label sections to display relevant metrics.
Analyze the results:
Chart Mode: Observe leveraged growth on the price chart.
Portfolio Mode: Track portfolio growth, contributions, and performance metrics.
Benefits:
Simulate realistic scenarios with leverage, financing costs, and periodic investments.
Assess performance with advanced metrics like Sharpe and Sortino Ratios.
Identify risk with Maximum Drawdown analysis.
Customize your view for clarity and focus.
This indicator is perfect for traders and investors looking to optimize leveraged strategies or manage portfolios with DCA contributions effectively.
ICTProTools | ICT Insight - Market Environment🚀 INTRODUCTION
The Market Environment Indicator provides traders with an essential contextual framework for analyzing price movements. Built on the principles of ICT (Inner Circle Trader) and Smart Money Concepts (SMC), this tool offers a structured view of how institutional players drive markets through liquidity manipulation and price level interactions. By defining the market environment, the indicator helps traders focus on the most relevant price zones, reducing distractions and enhancing decision-making.
At its core, the Interbank Dealing Range (IBDR) creates a clear structure of protected highs/lows and Premium/Discount zones , highlighting key areas for potential price reactions. This framework gives traders a lens to interpret market behavior and concentrate on meaningful liquidity zones and price action. The indicator helps traders navigate the market with precision, spotting significant opportunities while filtering out market noise. Indeed, the IBDR isn't always easily identifiable, and not every move will form a distinct dealing range.
This indicator goes beyond mere price levels… It reveals the larger market context in which prices evolve. By mastering this environment, traders can align their strategies with institutional logic and make well-informed decisions.
💎 FEATURES
The Interbank Dealing Range (IBDR) is a crucial concept within the ICT methodology that helps traders identify the market environment across multiple timeframes, specifically the premium and discount zones. The IBDR delineates areas where traders have the potential to buy low and sell high.
Its extremes are defined by the sweep of both buy-side and sell-side liquidity . These levels indicate the boundaries within which price is expected to evolve . Understanding these boundaries allows traders to determine where it is appropriate to enter or exit trades.
The primary goal of utilizing the IBDR is to capitalize on price movements by buying at discounted levels and selling at premium levels. This strategy aligns with the fundamental principle of trading: to buy at lower prices and sell at higher prices, maximizing profit potential.
By visualizing the IBDR on your charts, you can gain valuable insights into the prevailing market conditions and make informed trading decisions that align with the institutional approach to buying and selling.
This chart illustrates the Interbank Dealing Range (IBDR) applied to the US100 index, displaying two from different timeframes: a 1-hour (1h) IBDR on the left and a 30-minute (30m) IBDR on the right. This multi-timeframe view provides essential context for price action analysis.
The 1h IBDR could here function as the primary reference range, establishing key boundaries (High and Low) for price movement. Within this range, the Equilibrium (midpoint) separates the Premium zone (above) from the Discount zone (below). The 0.25 and 0.75 levels add further precision by subdividing these zones.
Price action then flows between these zones, creating and targeting liquidity at higher and lower levels through Relative Equal Highs and Lows. A strong upward movement into the deeper level of the Premium Zone captures high-side liquidity (with a notable reaction at the FVG on the left), forming a secondary 30m IBDR. After this liquidity sweep, the remaining liquidity is on the low side. Price then reverses downward toward it. Here, the 30m IBDR would suggest a confirmation for a potential sell entry by targeting the IBDR lows.
The relationship between the broader 1h IBDR, the more detailed 30m IBDR, and all related levels creates a powerful analytical framework. The larger timeframe provides context, while the smaller one reveals specific trading opportunities by providing entry confirmations.
✨ SETTINGS
IBDR Metrics: Adjust the timeframe and sensitivity for calculating the IBDR so traders can adapt the indicator to both short-term intraday movements and longer-term trends.
Premium/Discount Zones: Customize the levels such as 0, 0.5, 1, and other levels like 0.25 and 0.75 by default and their displayed colors and associated labels.
Alerts: Configure the alerts for Premium/Discount zones, High/Low breaks, and new IBDR, ensuring traders are kept up to date on key market events.
🎯 CONCLUSION
The Market Environment indicator serves as a powerful tool for analyzing and navigating market structure through liquidity zones. It helps identify optimal buy and sell areas while aligning with the institutional logic of major market players. While its features provide a valuable edge, it’s essential to remember that none should be used on its own, and many more factors go into being a profitable trader.
ICTProTools | ICT Insight - Momentum Structures🚀 INTRODUCTION
The Momentum Structures Indicator builds upon the principles of ICT (Inner Circle Trader) and Smart Money Concepts (SMC) to give traders a clearer view of market dynamics. These methods reveal how institutional trading activity shapes price movements, particularly through different types of market liquidity.
The indicator is designed to provide traders with advanced insights into market dynamics by focusing on key price imbalances and higher-timeframe structures . By combining these elements, the indicator allows users to analyze price behavior across multiple timeframes, helping them anticipate potential liquidity pools and price reversals. The emphasis on price imbalances and liquidity zones makes it a versatile tool for both intraday and longer-term strategies, providing critical insights for understanding market cycles and potential turning points.
💎 FEATURES
Imbalance Bar Colors / Zones
Imbalances are fundamental components of the ICT methodology, highlighting areas where price accelerates, creating gaps that may indicate a lack of liquidity . These voids often point to potential reversal or continuation zones in the price action.
An imbalance typically arises when supply and demand are out of balance, resulting in a gap between price levels. Traders keep a close eye on these gaps, as they could present opportunities to enter trades when the price revisits them , as they suggest a strong institutional interest.
We can notice two types of imbalances… A Fair Value Gap (FVG) usually forms from three consecutive candles, defining the space between the wicks of the first and last candle. Conversely, a Volume Imbalance (VI) occurs when a gap appears between the opening and closing prices of two consecutive candles. When these imbalances align with FVGs, they offer a well-rounded framework for assessing market strength.
By analyzing both FVGs and VIs together, traders can gain valuable insight into potential price movements and better evaluate the likelihood of continuation or reversal.
This chart illustrates the Fair Value Gaps (FVG) and Volume Imbalances (VI) within the GBPUSD price action. The FVG Bar Color and FVG Zone represent the same Fair Value Gaps, and similarly, the VI Bar Color and VI Zone display the same Volume Imbalances. They highlight areas where rapid price movements have created gaps in the market. These gaps indicate potential zones for trade entries or exits as the price may return to fill them. As we can see on the chart, the major part of imbalances created has already been filled. They constitute really interesting Point of Interest (POI).
The 50% FVG line marks the midpoint of the gap, which is often considered an important level for price action. A clear example appears in the Bearish FVG on the top left, where price first filled it below the midline, creating a small reaction. The price then liquidated this "fake mitigation" by moving just above the midline before beginning its significant downward movement. This demonstrates the crucial role of imbalances and how precisely price interacts with them.
Traders can use this information to identify potential buying or selling opportunities based on the interaction of price with these gaps and volume imbalances, aiding in the development of their trading strategies.
PO3 Candles (Power of Three)
The Power of Three is a critical concept in the ICT methodology that analyzes Higher Timeframe (HTF) candles focusing on the opening price, high wick, low wick, and closing price. This framework helps traders understand the current market cycle, in three phases , and its trading implications.
Accumulation Phase: In this initial phase, the price consolidates around the opening price as the market gathers liquidity. This often signals that larger players are positioning for the next move.
Manipulation Phase: Represented by the candle wicks, this phase indicates the extreme points where liquidity grabs often occur. Observing these wicks helps traders identify the end of the accumulation phase and potential turning points.
Distribution Phase: The candle body reflects a decisive price movement in one direction , following accumulation and manipulation. Traders align with the direction of this phase to capture the “real candle move”.
Our indicator provides you with the valuable capability to integrate the True Day Range, as defined by ICT. This concept, rooted in institutional logic, defines a trading day as starting at 00:00 New York time. You can customize it to match your trading style and analysis needs.
You can also overlay imbalances (FVG and VI) directly onto PO3 Candles, seamlessly combining imbalance detection with high-timeframe price action. This approach gives you a sharper market perspective, uncovering potential turning points with greater clarity.
In summary, PO3 Candles help traders assess the market structure and identify cycle positions on HTF candles, enabling them to make more strategic trading decisions, which allows for better entry and exit timing, avoiding traps, and seizing the best opportunities to capture significant market moves.
This chart illustrates the application of the Power of Three concept to EURUSD price action, highlighting key phases of market behavior.
In this example, we observe the Daily candles, where a significant Bullish imbalance appears from previous days, forming a Fair Value Gap (FVG). Additionally, there’s a small Volume Imbalance (VI) at the candle's opening, signaling liquidity that the price needs to fill.
Now, focusing on the Weekly candle, we can clearly identify its phases. First, there's an accumulation phase around the opening price, which, as shown by the Daily candles, took some time to develop. Then, the manipulation phase occurs, signaled by the upper wick of the Weekly candle, which liquidates the previously created accumulation. It’s time to look for a potential selling position... Finally, the price falls, beginning to form its bearish body and completing the real move of the week.
This framework allows traders to better understand the market structure and make informed decisions based on the current cycle.
Standard Deviation (STD)
The Standard Deviation (STD) is a concept within the ICT methodology that focuses on identifying periods of consolidation within the market. Specifically, it examines the Central Bank Dealers Range (CBDR) , which occurs between 13:00 and 23:00 New York time. During this period, the market often exhibits consolidation , creating an environment where price action stabilizes before making significant moves.
This consolidation forms the basis of the Standard Deviation (STD) concept. This is based on the idea that the volatility observed during this consolidation phase can be used to anticipate future market volatility. Once this consolidation is identified, the STD framework duplicates the established range both above and below the consolidation area.
As price approaches these duplicated levels, it offers traders critical information on where to anticipate potential reactions. If the price nears the upper boundary of the consolidation, it suggests a potential reversal point, indicating an opportunity to consider selling. Conversely, if the price approaches the lower boundary, it may signal an opportunity to look for buying positions . This duplication could enable traders to determine potential high and low points for the trading day or week for example.
Finally, the Standard Deviation (STD) concept provides a valuable framework for identifying potential key reaction points in the market by leveraging consolidation within the CBDR. By duplicating these ranges, traders can anticipate significant price movements and refine their strategies.
This chart illustrates the Standard Deviation (STD) concept applied to EURUSD price action. The highlighted areas in blue indicate high duplications and low duplications derived from the consolidation identified during the Central Bank Dealing Range (CBDR), marked by the dark gray rectangle.
The high duplications represent potential resistance levels, suggesting areas where the price may encounter selling pressure, while the low duplications signify potential support levels, indicating where buying interest could emerge.
The annotations emphasize how price reacts at these duplicated levels, showing the critical role of the STD in determining where price movements may stall or reverse. In this example, the price responded perfectly to both an upward and a downward duplication, confirming that these levels could represent the day's high and low, an observation validated here. This highlights the precision of price movements, with the price stopping exactly at the full duplication levels (but we can not that the price could also have paused at the midline levels, indicated by the dashed gray lines).
This visualization helps traders anticipate potential reactions and align their strategies with market dynamics, ensuring informed decision-making based on established price behavior.
✨ SETTINGS
Imbalance Bar Colors / Zones: Choose to display FVGs, VIs, or both, with customizable color settings. Choose to extend zones or set them to be removed when mitigated.
PO3 Candles: Customize the PO3 Candles for different timeframes (Daily, Weekly, Monthly), including the calculation Mode (Classic or True Day Range) and timezone associated, and set your body, border, and wick preferred colors. The Imbalance Bar Color and FVG Zones can also be displayed on these HTF candles, as they are configured in their settings.
STD: Select the timeframe on which to base it and configure the number of duplications and midline settings. You can also define the time range and timezone related to consolidation detection, giving you control over when and where the STD should apply.
🎯 CONCLUSION
The Momentum Structures Indicator combines the core principles of ICT and Smart Money Concepts to provide traders with advanced tools for understanding market dynamics. By focusing on key elements like imbalances and liquidity zones, it offers a comprehensive framework for analyzing price behavior. This indicator empowers traders to identify key market phases, anticipate potential reversals, and refine their entry and exit points with precision. While its features provide a valuable edge, it’s essential to remember that none should be used on its own and many more factors go into being a profitable trader.
ICTProTools | ICT Insight - Time & Price Zones🚀 INTRODUCTION
The Time and Price Zones indicator builds upon the foundational concepts of ICT (Inner Circle Trader) and Smart Money Concepts (SMC). These methodologies analyze the behavior of institutional traders (known as "smart money") by focusing on liquidity, key price levels, and market timing.
Liquidity refers to areas with high concentrations of pending orders (stops, take-profits, entries) in the market. Large institutions efficiently need to execute their massive orders without causing excessive slippage. To achieve this, they strategically create and exploit liquidity pools by driving the price toward areas where retail traders cluster their positions.
Then, through "liquidity grabs" or "stop hunts,” institutions accumulate or distribute positions at optimal prices . This strategy allows them to fill large orders with minimal market impact, typically clearing out retail traders' positions before the price reverses.
This indicator helps traders apply these principles by merging time-based and price-based analysis tools for better market understanding. By combining high-impact sessions like Kill Zones with pivotal price markers such as Previous Highs and Lows, traders can see where institutional activity intersects with liquidity pools, improving their decision-making.
This powerful combination allows users to monitor market dynamics in real time, helping them spot sentiment shifts and identify crucial turning points more effectively.
💎 FEATURES
Kill Zones
Kill Zones are critical periods of the trading day characterized by heightened institutional activity, resulting in increased liquidity and significant price movements. By recognizing these zones, you can strategically focus your efforts on the most advantageous moments for trading.
The Asian Session , which runs from 5 PM to 1 AM New York time, serves as an essential liquidity provider before the onset of more volatile trading periods. This session is intricately linked to the Smart Money Tool (SMT - See below), as the highs and lows established during this period provide foundational liquidity levels. You can set alerts when these levels are breached , allowing you to stay informed without constant chart monitoring and make timely trading decisions.
Transitioning into the London Kill Zone from 2 to 5 AM New York time marks the beginning of the European session, often associated with increased volatility. Following this, the New York Kill Zone , occurring from 7 to 10 AM , sees significant overlap between the London and New York sessions, where liquidity flows intensify and frequently correlate with notable price reversals. Finally, the London Close from 10 to 12 PM signifies the end of the European session, often ending the day with a retracement in the daily range.
Thanks to the timezone you can select relative to a region, Kill Zones will automatically adapt to time changes throughout the year and between different brokers , ensuring accurate Kill Zone timings without manual adjustments.
Incorporating our advanced Kill Zones indicator into your trading strategy gives you unparalleled insights and enhanced functionality. With integrated alerts for breaches of key levels, you can stay informed and ready to act without the need for constant chart monitoring, allowing you to focus on executing your trading strategies effectively.
We can see on this chart the identified Kill Zones during the trading day on EURUSD , including the Asian Session in gray, which tends to consolidate slightly (creating liquidity), the London Kill Zone in orange, which tends to move fast, often taking Asian quickly, the New York Kill Zone in green, with always a lot of movements, and the London Close in blue, seeming rather to retrace.
The midline indicates the 50% mark of the session, serving as a reference point for potential price reactions. Additionally, the highs and lows established during the Asian Session are linked to the Smart Money Tool (SMT) and can trigger alerts when breached. Here, you could have received an alert when Asian Low (marked AL) and Asian High (marked AH) were swept.
Previous & Open Levels
Previous and Open levels are key elements in ICT methodology, showing important price points from major timeframes (Daily, Weekly, Monthly). These levels (Previous High, Low, Open, and their separators) help traders understand price dynamics and anticipate market shifts.
The Previous levels connect directly to the Smart Money Tool (SMT - See below) as they provide foundational liquidity levels. In ICT methodology, previous are levels where many traders place their Stop Loss, thus creating liquidity. This helps you understand potential market reactions and whether prices will likely continue their trend or reverse.
You’ll be instantly notified whenever the price interacts with any of these Previous levels. This means you can stay informed about critical market movements without the need to monitor your charts constantly.
The indicator also displays Opening prices and includes separators for daily, weekly, and monthly levels, offering a clear market overview.
Open levels can act as simplified indicators of Premium and Discount Zones. To be above the opening price can be considered as the Premium Zone , where the market offers higher prices, typically suitable for selling opportunities. Conversely, to be below this price can be considered as the Discount Zone , where prices are relatively lower, offering potential buying opportunities.
These visual elements help you identify crucial market zones that reflect both past price action and current market dynamics.
Our indicator offers you the exclusive ability to integrate the True Day Range, as described by ICT. Based on institutional logic, this concept defines the trading day starting at 00:00 New York time. You can adapt this flexible feature to match your trading style and analysis needs.
By incorporating our advanced Previous levels indicator into your trading arsenal, you gain powerful insights and enhanced functionality.
The chart above displays key Previous and open levels on EURUSD , including the Month, Week, and Day lines, along with separators for enhanced clarity. All levels are based on the True Day Range Mode. The notes indicate significant price points, highlighting how the price interacts with these important levels, which helps us to understand it…
We can start with the biggest liquidity, the Previous Month. In this example, we can see the PMH, and the price seems to have used this level as a reversal point. The PM levels are indeed significant liquidity zones. We can observe the creation of wicks that interact with this level, signaling a liquidity grab.
Following this, the price drops quickly before rebounding, creating a liquidity range, that will probably be liquidated then… This is why it rises again to form what is now the PDH (Previous Day High), using it as liquidity (inducement) while using the PWH (Previous Week High) as a rebound level. The PWH is indeed a High Resistance (HR) area since there is only a few liquidity at this point thanks to the liquidity grab. The price has no reason to move higher.
Looking ahead, we can forecast that the price may continue its decline, potentially targeting lower liquidity levels. There is likely additional liquidity beneath the current range, particularly near the PDL (Previous Day Low) and PWL (Previous Week Low).
Additionally, we can note that at this point, the price was above the D.O.P (Daily Open) and W.O.P (Weekly Open), areas where selling would be more favorable. The price reacts significantly around these levels, creating large wicks, demonstrating their importance.
SMT Dashboard (Smart Money Tool)
The Smart Money Tool (SMT) is a powerful concept within the ICT methodology that enables you to compare various assets based on liquidity uptake from significant price levels.
By utilizing the SMT, you can analyze any asset , whether it’s a currency pair, stock, cryptocurrency, or other financial instruments. The dashboard helps you identify the strongest and weakest assets by analyzing their interactions with critical liquidity levels and identifying divergences , including those related to the Previous Month, Previous Week, Previous Day, and Asian Session Highs and Lows. By doing so, he identifies the most bullish symbol. It will therefore tend to rise more easily, or at least fall less, than the other one.
The SMT includes alert functionality that notifies you whenever a new SMT is created or has changed , allowing you to stay informed about which asset is currently the strongest. This means you can react promptly to market changes without constantly monitoring your charts.
Additionally, since the SMT relies on the Previous levels, it is influenced by the selected mode, whether based on traditional Previous levels or the True Day Range . This flexibility ensures that you are using the most relevant information available for your trading decisions. Asian High and Asian Low levels are also calculated according to the schedules configured in the Kill Zones section.
In summary, the Smart Money Tool displays the strongest and weakest assets based on liquidity uptake, providing you with clear information on which asset to prioritize, so you can maximize your potential profits. By incorporating this concept into your approach, you align your decisions with prevailing market dynamics, offering you unparalleled insights and features tailored to enhance your trading strategy.
This chart displays the Smart Money Tool (SMT) dashboard on the GBPUSD symbol, which compares the liquidity uptake for EURUSD and GBPUSD pairs. The indicator shows that both Previous Month's and Week's High and Low were taken for both pairs. However, the Asian High (AH) has been breached on GBPUSD but not on EURUSD, while the Asian Low (AL) has been taken by EURUSD. As a result, GBPUSD is identified as the stronger asset, indicating that traders should focus on buying opportunities with GBPUSD rather than EURUSD. This analysis helps traders prioritize the best symbol for their strategies based on the most relevant liquidity divergences.
✨ SETTINGS
Kill Zones: Customize the display options for the Asian (with lines), London, New York, and London Close Kill Zones. Configure timezone options, midlines, and color preferences.
Previous & Open Levels: Adjust how Previous High/Low levels, Open and separators are displayed. Select between Classic or True Day Range Mode based on your trading preferences.
SMT: Choose the correlated assets for the SMT comparison and select which liquidity (Monthly, Weekly, Daily, Asian) to use and display. Configure settings like liquidity sweeps and strongest pair emojis.
Alerts: Configure alerts for key events such as the Asian High/Low or Previous Levels liquidity sweep, and SMT divergences.
🎯 CONCLUSION
The Time and Price Zones indicator offers a practical and insightful approach to market analysis by combining major principles of ICT and Smart Money Concepts into a cohesive tool. It empowers traders to understand key price levels, liquidity dynamics, and institutional activity with ease. By helping traders avoid being the liquidity of the market and instead align with institutional flows, the indicator can significantly enhance performances. While its features provide a valuable edge, it’s essential to remember that none should be used on its own and many more factors go into being a profitable trader.
Bitcoin Events HistoryWith this tool, you can travel back to Bitcoin’s very first price quote and retrace its entire history directly on your chart. Major events are plotted as labels or markers, providing context for how significant moments shaped Bitcoin’s journey.
Key Features
Comprehensive Event Coverage: From Bitcoin’s inception to the most recent updates.
Custom View: Change label colors, styles, sizes, and fonts using the script’s settings.
Regular Updates: New events are added regularly to keep the history current.
Replay History
Use Bar Replay Mode to step through Bitcoin’s price history and see events unfold in sequence.
Follow the on-screen instructions for a more immersive experience.
Community Contributions
If you notice a significant event missing or misplaced on a particular date, feel free to leave a comment! Your suggestions will be considered for the next update.
To all Bitcoin enthusiasts, traders, and anyone eager to explore the history of cryptocurrency from its inception, I hope you enjoy this indicator :)
ETF-Benchmark AnalyzerHave you ever wondered which ETF performs the best? Which one is the most volatile, or which one has the smallest drawdown?
This Pine Script™ "ETF-Benchmark Analyzer" compares the performance of an ETF (such as SPY, the S&P 500 ETF) against a benchmark, which can also be adjusted by the user. It provides several key financial metrics, such as:
Performance (%): Displays the total return over a specified lookback period (e.g., 1 year). It compares the performance of the ETF against the benchmark and shows the difference.
Alpha (%): Measures the excess return of the ETF over the expected return, which is calculated using the benchmark’s return. Positive alpha indicates that the ETF has outperformed the benchmark, while negative alpha suggests underperformance. This metric is important because it isolates performance that cannot be explained by exposure to the benchmark's movements.
Sharpe Ratio: A risk-adjusted measure of return. It is calculated by dividing the excess return of the ETF (above the risk-free rate) by its standard deviation (volatility). A higher Sharpe ratio indicates better risk-adjusted returns. The Sharpe ratio is calculated for both the ETF and the benchmark, and their difference is displayed as well.
Drawdown: The percentage decrease from the highest price to the lowest price over the lookback period. This is a critical measure of risk, as it shows the largest potential loss an investor might face during a specific period.
Beta: Measures the ETF’s sensitivity to movements in the benchmark. A beta of 1 means the ETF moves in line with the benchmark; greater than 1 means it is more volatile, while less than 1 means it is less volatile.
These metrics provide a holistic view of the ETF’s performance compared to the benchmark, allowing traders to assess the risk and return profile more effectively.
Scientific Sources
Sharpe Ratio: Sharpe, W. F. (1994). The Sharpe Ratio. Journal of Portfolio Management, 21(1), 49-58. This paper defines and develops the Sharpe ratio as a measure of risk-adjusted return.
Alpha and Beta: Jensen, M. C. (1968). The Performance of Mutual Funds in the Period 1945–1964. The Journal of Finance, 23(2), 389-416. This paper discusses the concepts of alpha and beta in the context of mutual fund performance.
SMT Divergence ICT 01 [TradingFinder] Smart Money Technique🔵 Introduction
SMT Divergence (short for Smart Money Technique Divergence) is a trading technique in the ICT Concepts methodology that focuses on identifying divergences between two positively correlated assets in financial markets.
These divergences occur when two assets that should move in the same direction move in opposite directions. Identifying these divergences can help traders spot potential reversal points and trend changes.
Bullish and Bearish divergences are clearly visible when an asset forms a new high or low, and the correlated asset fails to do so. This technique is applicable in markets like Forex, stocks, and cryptocurrencies, and can be used as a valid signal for deciding when to enter or exit trades.
Bullish SMT Divergence : This type of divergence occurs when one asset forms a higher low while the correlated asset forms a lower low. This divergence is typically a sign of weakness in the downtrend and can act as a signal for a trend reversal to the upside.
Bearish SMT Divergence : This type of divergence occurs when one asset forms a higher high while the correlated asset forms a lower high. This divergence usually indicates weakness in the uptrend and can act as a signal for a trend reversal to the downside.
🔵 How to Use
SMT Divergence is an analytical technique that identifies divergences between two correlated assets in financial markets.
This technique is used when two assets that should move in the same direction move in opposite directions.
Identifying these divergences can help you pinpoint reversal points and trend changes in the market.
🟣 Bullish SMT Divergence
This divergence occurs when one asset forms a higher low while the correlated asset forms a lower low. This divergence indicates weakness in the downtrend and can signal a potential price reversal to the upside.
In this case, when the correlated asset is forming a lower low, and the main asset is moving lower but the correlated asset fails to continue the downward trend, there is a high probability of a trend reversal to the upside.
🟣 Bearish SMT Divergence
Bearish divergence occurs when one asset forms a higher high while the correlated asset forms a lower high. This type of divergence indicates weakness in the uptrend and can signal a potential trend reversal to the downside.
When the correlated asset fails to make a new high, this divergence may be a sign of a trend reversal to the downside.
🟣 Confirming Signals with Correlation
To improve the accuracy of the signals, use assets with strong correlation. Forex pairs like OANDA:EURUSD and OANDA:GBPUSD , or cryptocurrencies like COINBASE:BTCUSD and COINBASE:ETHUSD , or commodities such as gold ( FX:XAUUSD ) and silver ( FX:XAGUSD ) typically have significant correlation. Identifying divergences between these assets can provide a strong signal for a trend change.
🔵 Settings
Second Symbol : This setting allows you to select another asset for comparison with the primary asset. By default, "XAUUSD" (Gold) is set as the second symbol, but you can change it to any currency pair, stock, or cryptocurrency. For example, you can choose currency pairs like EUR/USD or GBP/USD to identify divergences between these two assets.
Divergence Fractal Periods : This parameter defines the number of past candles to consider when identifying divergences. The default value is 2, but you can change it to suit your preferences. This setting allows you to detect divergences more accurately by selecting a greater number of candles.
Bullish Divergence Line : Displays a line showing bullish divergence from the lows.
Bearish Divergence Line : Displays a line showing bearish divergence from the highs.
Bullish Divergence Label : Displays the "+SMT" label for bullish divergences.
Bearish Divergence Label : Displays the "-SMT" label for bearish divergences.
🔵 Conclusion
SMT Divergence is an effective tool for identifying trend changes and reversal points in financial markets based on identifying divergences between two correlated assets. This technique helps traders receive more accurate signals for market entry and exit by analyzing bullish and bearish divergences.
Identifying these divergences can provide opportunities to capitalize on trend changes in Forex, stocks, and cryptocurrency markets. Using SMT Divergence along with risk management and confirming signals with other technical analysis tools can improve the accuracy of trading decisions and reduce risks from sudden market changes.
Pine Script Boilerplate ExampleI frequently receive questions about my coding style and logic, so I decided to publish a simple indicator that draws the OHLC of a higher timeframe as an example of my coding style. This example will also explain my approach to writing indicators.
This indicator showcases how I use Types and Methods to structure my code and maintain clarity in logic. It demonstrates how I collect input data, organize the flow of the code, and utilize the TradingView method feature.
The example illustrates:
1. The use of input settings within a settings object to keep configurations grouped together.
2. The use of Types to create an object that consolidates relevant data.
3. The collection of objects to create, update, and render elements on the chart.
MktCumTickThis script is a market sentiment indicator that calculates the cumulative TICK (Trade Imbalance Sentiment) for four major markets: NYSE (New York Stock Exchange), NASDAQ (National Association of Securities Dealers Automated Quotations), Dow Jones, and AMEX (American Stock Exchange).
Here's a breakdown of the script:
1. Market data requests: The script requests data for the four markets, including:
- TICK (Trade Imbalance Sentiment) data
- HLC3 (High, Low, Close) data
- ADVN (Advancing issues), DECL (Declining issues), and UNCH (Unchanged issues) data
2. Cumulative TICK calculation: The script calculates the cumulative TICK for each market by dividing the TICK data by the maximum TICK value for each market.
3. Plotting: The script plots the cumulative TICK values for each market as separate lines on the chart.
4. Background color: The script changes the background color of the chart based on the cumulative TICK values. If all four markets have decreasing cumulative TICK values, the background color turns red. If all four markets have increasing cumulative TICK values, the background color turns green.
The purpose of this indicator is to provide a visual representation of market sentiment across multiple markets. By analyzing the cumulative TICK values, traders can gain insights into market trends and make more informed trading decisions.
Some possible uses of this indicator include:
- Identifying market trends and sentiment
- Confirming trade entries and exits
- Monitoring market conditions and adjusting trading strategies accordingly
RagiBaba's 3:1 Risk-to-Reward Tool with LeverageThis indicator allows you to visualize a 3:1 risk-to-reward ratio for your trades on the chart. It automatically calculates and displays the Stop Loss and Take Profit levels based on your input for:
Entry Price
Trade Amount ($)
Risk Amount ($)
Leverage (x)
You can adjust the following settings:
Trade Direction: Choose between a Long or Short position.
Leverage: Enter the leverage value (e.g., 25x).
Entry Price: Set the price at which you plan to enter the trade.
Risk and Reward: Input the amount of money you're willing to risk and the desired reward (automatically calculated as 3 times your risk).
Label Position: Choose the label position for Entry, Stop, and Target (left, center, or right on the chart).
Each line has a corresponding label showing the price for Entry, Stop Loss, and Take Profit. The labels can be positioned on the left, center, or right side of the chart for better readability.
This tool helps you manage your trades by giving you clear visual cues for your entry, stop loss, and take profit levels with the option to adjust for leverage.
Trading SessionsTrading Sessions Indicator
Overview
Trading Sessions is a visually displays major trading sessions worldwide. It overlays the trading hours of four major markets - Sydney, Tokyo, London, and New York - on your chart.
Key Features
Simultaneous display of 4 trading sessions
Visual session dividers
Customizable session boxes
Session status display in top-right corner
Session Settings
Configuration Options per Session
Toggle visibility
Timezone configuration
Trading hours setting (Default: 08:00-17:00)
Background color setting (95% transparency)
Default Session Configuration
Sydney Session (Yellow)
Tokyo Session (Red)
London Session (Blue)
New York Session (Lime)
Session Divider Settings
Toggle divider visibility
Divider line position (top/bottom)
Session emoji position (top/bottom)
Customizable emoji per session
Sydney: 🦘
Tokyo: 🗼
London: 🚇
New York: 🗽
Overlay Settings
Force Overlay
When enabled: Forces session backgrounds behind candles
When disabled: Standard overlay display
Box Overlay
When enabled: Displays price range boxes during sessions
Shows session name at box top
Individual color settings per session
Display Features
1. Background Color Distinction
Each session shown in configured color
Visibility adjusted through transparency
2. Session Divider Display
Vertical line (|): Session start/end
Upper line (¯)/lower line (_): During session
Emoji: Session start
3. Status Display
Session status shown in top-right
Active sessions highlighted in corresponding colors
Inactive sessions shown in gray
Limitations
Timezones must conform to IANA Time Zone Database format
Gold Friday Anomaly StrategyThis script implements the " Gold Friday Anomaly Strategy ," a well-known historical trading strategy that leverages the gold market's behavior from Thursday evening to Friday close. It is a backtesting-focused strategy designed to assess the historical performance of this pattern. Traders use this anomaly as it captures a recurring market tendency observed over the years.
What It Does:
Entry Condition: The strategy enters a long position at the beginning of the Friday trading session (Thursday evening close) within the defined backtesting period.
Exit Condition: Friday evening close.
Backtesting Controls: Allows users to set custom backtesting periods to evaluate strategy performance over specific date ranges.
Key Features:
Custom Backtest Periods: Easily configurable inputs to set the start and end date of the backtesting range.
Fixed Slippage and Commission Settings: Ensures realistic simulation of trading conditions.
Process Orders on Close: Backtesting is optimized by processing orders at the bar's close.
Important Notes:
Backtesting Only: This script is intended purely for backtesting purposes. Past performance is not indicative of future results.
Live Trading Recommendations: For live trading, it is highly recommended to use limit orders instead of market orders, especially during evening sessions, as market order slippage can be significant.
Default Settings:
Entry size: 10% of equity per trade.
Slippage: 1 tick.
Commission: 0.05% per trade.
Volatility and Tick Size DataThis indicator, titled "Tick Information & Standard Deviation Table," provides detailed insights into market microstructure, including tick size, point value, and standard deviation values calculated based on the True Range. It helps visualize essential trading parameters that influence transaction costs, risk management, and portfolio performance, including volatility measures that can guide investment strategies.
Why These Data Points Are Important for Portfolio Management
Tick Size and Point Value:
Tick size refers to the smallest possible price movement in a given asset. It defines the granularity of the price changes, affecting how precise the market price can be at any moment. Point value reflects the monetary value of a single price movement (one tick). These two data points are essential for understanding transaction costs and for evaluating how much capital is at risk per price movement. Smaller tick sizes may lead to more efficient pricing in high-frequency trading strategies (Hasbrouck, 2009).
Reference: Hasbrouck, J. (2009). Empirical Market Microstructure. Foundations and Trends® in Finance, 3(4), 169-272.
Standard Deviations and Volatility:
Standard deviation measures the variability or volatility of an asset's price over a set period. This data point is critical for portfolio management, as it helps to quantify risk and predict potential price movements. True Range and its standard deviations provide a more comprehensive measure of market volatility than just price fluctuations, as they include gaps and extreme price changes. Investors use volatility data to assess the potential risk and adjust portfolio allocations accordingly (Ang, 2006).
Reference: Ang, A. (2006). Asset Management: A Systematic Approach to Factor Investing. Oxford University Press.
Risk Management:
The ability to quantify risk through metrics like the 1st, 2nd, and 3rd standard deviations of the true range is essential for implementing risk controls within a portfolio. By incorporating volatility data, portfolio managers can adjust their strategies for different market conditions, potentially reducing exposure to high-risk environments. These volatility measures help in setting stop-loss levels, optimizing position sizes, and managing the portfolio’s overall risk-return profile (Black & Scholes, 1973).
Reference: Black, F., & Scholes, M. (1973). The Pricing of Options and Corporate Liabilities. Journal of Political Economy, 81(3), 637-654.
Portfolio Diversification and Hedging:
Understanding asset volatility and transaction costs is critical when constructing a diversified portfolio. By using the standard deviations from this indicator, investors can better identify assets that may provide diversification benefits, potentially reducing the overall portfolio risk. Moreover, the point values and tick sizes help assess the cost-effectiveness of various assets, enabling portfolio managers to implement more efficient hedging strategies (Markowitz, 1952).
Reference: Markowitz, H. (1952). Portfolio Selection. The Journal of Finance, 7(1), 77-91.
Conclusion
The Tick Information & Standard Deviation Table provides critical market data that informs the risk management, diversification, and pricing strategies used in portfolio management. By incorporating tick size, point value, and volatility metrics, investors can make more informed decisions, better manage risk, and optimize the returns on their portfolios. The data serves as an essential tool for aligning asset selection and portfolio allocations with the investor's risk tolerance and market conditions.
Gap Marker (>5%)This TradingView script identifies and highlights price gaps of more than 5% between consecutive candles. It is a valuable tool for traders to quickly spot significant price movements and take action accordingly.
Features:
Gap-Up Detection: Marks green triangles when a candle’s opening price is more than 5% higher than the previous candle’s closing price.
Gap-Down Detection: Marks red triangles when a candle’s opening price is more than 5% lower than the previous candle’s closing price.
Percentage Display: Shows the percentage change next to the marker for added clarity.
This script is especially useful for identifying potential trading opportunities triggered by substantial market moves.
Dieses TradingView-Skript identifiziert und markiert Kurslücken (Gaps) von mehr als 5 % zwischen aufeinanderfolgenden Kerzen. Es ist ein hilfreiches Tool für Trader, um bedeutende Kursbewegungen sofort zu erkennen und darauf zu reagieren.
Funktionen:
Gap-Up-Erkennung: Markiert grüne Dreiecke, wenn der Eröffnungskurs einer Kerze mehr als 5 % über dem Schlusskurs der vorherigen Kerze liegt.
Gap-Down-Erkennung: Markiert rote Dreiecke, wenn der Eröffnungskurs einer Kerze mehr als 5 % unter dem Schlusskurs der vorherigen Kerze liegt.
Prozentanzeige: Zeigt die prozentuale Veränderung direkt neben der Markierung an.
Das Skript ist besonders nützlich, um potenzielle Handelsmöglichkeiten zu identifizieren, die durch signifikante Marktbewegungen ausgelöst werden.
AlgoMaxx Prev OHLCThe AlgoMaxx Prev OHLC indicator provides a clear visualization of the previous day's Open, High, Low, and Close (OHLC) levels. These levels are crucial for understanding market structure, identifying support and resistance zones, and making informed trading decisions. The indicator is fully customizable and dynamically updates to ensure accuracy and clarity.
Key Features:
Prev. Day High/Low and Open/Close Levels:
Plots previous day's High/Low and Open/Close levels.
Toggle each level (lines and labels) on/off independently.
Customizable Lines and Labels:
Adjust line colors, styles (Solid, Dashed, Dotted), and widths.
Enable or disable labels for each level with customizable label colors.
Dynamic Updates:
Automatically updates levels daily.
Deletes old lines and labels to maintain a clean chart.
Efficient and Intuitive:
Designed to integrate seamlessly into any trading strategy with user-friendly customization options.
Indicator Logic:
Previous Day Levels Calculation:
The indicator uses Pine Script’s request.security function to fetch the previous day’s OHLC data from the daily timeframe ('D').
Dynamic Line and Label Management:
Persistent variables (var) store line and label references.
Old lines and labels are deleted and recreated at the start of each new day, ensuring a clutter-free chart.
Customizable Line Styles and Colors:
A mapping function (f_map_line_style) dynamically assigns line styles based on user input (Solid, Dashed, Dotted).
Separate inputs allow users to define distinct colors and styles for each level.
Independent Toggles:
Separate ON/OFF controls for High/Low and Open/Close lines and labels for maximum flexibility.
Clean Design:
The script ensures all plotted elements are dynamically adjusted to keep the chart clean and focused on actionable data.
How to Use:
Add the indicator to your chart.
Customize levels, colors, and styles via the "Inputs" and "Style" settings.
Analyze the plotted levels to identify key price zones for potential support, resistance, or breakout areas.
[w3ss1] Colored candlesA simple script that colors the candles in a color of choise on specific times of choice.
You can use it if you want to color like Asia session, or if you want to focus on specific times of day.
This keeps the chart clean, it just colors the candles in the choosen timings.
Daily Directional Bias Indicator (S&P 500)This indicator is designed to help you be on the right side of the trade.
Most traders who struggle to know which way price may move are only looking at part of the picture. This Directional Bias Indicator uses both the Accumulation/Distribution Line and VIX for directional confirmation.
The Accumulation/Distribution Line
The Accumulation/Distribution (ACC) line helps us gauge market momentum by showing the cumulative flow of money into or out of an asset. When the ACC line is rising, it suggests that buying pressure is dominating, indicating a bullish market. Conversely, when the ACC line is falling, it suggests that selling pressure is stronger, indicating a bearish market. By comparing the ACC line with the VWAP, traders can see if the price is moving in line with the overall market sentiment. If the ACC line is above the VWAP, it suggests the market is in a bullish phase; if it's below, it indicates a bearish phase.
The VIX
The VIX (Volatility Index) is often referred to as the "fear gauge" of the market. When the VIX is rising, it typically signals increased market fear and higher volatility, which can be a sign of bearish market conditions. Conversely, when the VIX is falling, it suggests lower volatility and a more stable, bullish market. Using the VIX with the VWAP helps us confirm market direction, particularly in relation to the S&P 500.
VWAP
For both the ACC Line and VIX, we use a VWAP line to gauge whether the ACC line or the VIX is above or below the average. When the ACC line is above the VWAP, we view it as a sign that price will go up. However, because the VIX has an inverse relationship, when the VIX falls below the VWAP, we take that as a sign to go long.
How to use
The yellow line represents the ACC Line.
The red line represents the VWAP based on the ACC line.
The triangles at the bottom simply show when the ACC line is above or below the VWAP.
The triangles at the top show whether the VIX is bullish or bearish.
If both triangles (top or bottom) are bullish, this confirms that the price of an asset like the S&P 500 will likely go up. If both triangles are pointing down, it suggests that price will fall.
As always, test for yourself.
Happy trading!
2.5% Risk High Reward Strategy with DebuggingKey Features:
Loosened RSI Conditions: Adjusted to allow trades when RSI is below 50 (long) or above 50 (short).
Buy/Sell Labels: Visual labels added for buy and sell signals.
Stop-Loss (SL) and Take-Profit (TP): Dotted lines displayed for SL and TP levels.
Account Balance: Plots account balance over time for backtesting purposes.
Debugging Visuals: EMA, RSI, and volume threshold plotted to validate entry conditions.
Data extraction to clipboardHow to extract data from indicators/stratagies to clipbaord
///// Educational purpose only /////
This could be useful to store the best parameters for a strategy for instance...
to store and reuse them, to build some code in automatic , to transfer...
using the " log.info() " function ...