3% Above and Below Previous Day Close (Stable)This indictor will mark intraday levels. Levels will be marked by calculating 3% up and 3% down from previous day close.
This indicator calculates 3% levels above and below the previous day's close. These levels can be used to track potential support or resistance levels throughout the trading day.
This script helps plot 3% above and below the previous day's close price. It allows you to toggle historical levels and can be useful for monitoring potential intraday price action around these key levels.
Educational
ADX Trend Strength Analyzer█ OVERVIEW
This script implements the Average Directional Index (ADX), a powerful tool used to measure the strength of market trends. It works alongside the Directional Movement Index (DMI), which breaks down the directional market pressure into bullish (+DI) and bearish (-DI) components. The purpose of the ADX is to indicate when the market is in a strong trend, without specifying the direction. This indicator can be especially useful for identifying market trends early and validating trading strategies based on trend-following systems.
The ADX component in this script is based on two key parameters:
ADX Smoothing Length (adxlen), which determines the degree of smoothing for the trend strength.
DI Length (dilen), which defines the look-back period for calculating the directional index values.
Additionally, a horizontal line is plotted at the 30 level, providing a widely used threshold that signifies when a trend is considered strong (above 30).
█ CONCEPTS
Directional Movement (DM): The core idea behind this indicator is the calculation of price movement in terms of bullish and bearish forces. By evaluating the change in highs and lows, the script distinguishes between bullish movement (+DM) and bearish movement (-DM). These values are normalized by dividing them by the True Range (TR), creating the +DI and -DI values.
True Range (TR): The True Range is calculated using the Average True Range (ATR) formula, and it serves to smooth out volatility, ensuring that short-term fluctuations don't distort the long-term trend signal.
ADX Calculation: The ADX is derived from the absolute difference between the +DI and -DI. By smoothing this difference and normalizing it, the ADX is able to measure the overall strength of the trend without regard to whether the market is moving up or down. A rising ADX indicates increasing trend strength, while a falling ADX signals weakening trends.
█ METHODOLOGY
Directional Movement Calculation: The script first determines the upward and downward price movement by comparing changes in the high and low prices. If the upward movement is greater than the downward movement, it registers a bullish signal and vice versa for bearish movement.
True Range Adjustment: The script then applies a smoothing function to normalize these movements by dividing them by the True Range (ATR). This ensures that the trend signal is based on relative, rather than absolute, price movements.
ADX Signal Generation: The final step is to calculate the ADX by applying the Relative Moving Average (RMA) to the difference between +DI and -DI. This produces the ADX value, which is plotted in red, making it easy to visualize shifts in market momentum.
Threshold Line: A blue horizontal line is plotted at 30, which serves as a key reference point. When the ADX is above this line, it indicates a strong trend, whether bullish or bearish.
█ HOW TO USE
Trend Strength: Traders typically use the 30 level as a critical threshold. When the ADX is above 30, it signifies a strong trend, making it a favorable environment for trend-following strategies. Conversely, ADX values below 30 suggest a weak or non-trending market.
+DI and -DI Relationship: The indicator also provides insight into whether the trend is bullish or bearish. When +DI is greater than -DI, the market is considered bullish. When -DI is greater than +DI, the market is considered bearish. While this script focuses on the ADX value itself, the underlying +DI and -DI help interpret the trend direction.
Market Conditions: This indicator is effective in trending markets, but not ideal for choppy or sideways conditions. Traders can use it to determine the best entry and exit points when trends are strong, or to avoid trading in periods of low volatility.
Combining with Other Indicators: The ADX is commonly used in conjunction with oscillators like RSI or moving averages, to confirm the trend strength and avoid false signals.
█ METHOD VARIANTS
This script applies the standard approach for calculating the ADX, but could be adapted with the following variants:
Different Timeframes: The script could be modified to calculate ADX values across higher or lower timeframes, depending on the trader's strategy.
Custom Thresholds: Instead of using the default 30 threshold, traders could adjust the horizontal line to suit their own risk tolerance or market conditions.
Candle Low Offset [QuadzCrypto]==== Candle Low Offset Indicator ====
==== Overview ====
The "Candle Low Offset" indicator offers a method for tracking a price point that sit below the low of each candle by a percentage offset.
It was originally intended to provide a price point with flexibility for setting a stop loss below the entry candle low, however, it could be used for other applications.
==== Definitions ====
- Offset Percentage: The % below the low you wish the trend line to follow configurable to 0.01 increments
==== Plots ====
- Offset: Plots a trend line below the candle lows
==== Style ====
- Offset: Allows users to configure the colour and thickness of the offset plot line
==== Application ====
This has been coded to be used with the Max StopLoss function on the Krown Quant SKX indicator to provide an alternative stop loss location on the entry candle.
==== Disclaimer ====
This indicator is for educational purposes only and should not be construed as financial advice. Trading involves risk, and you should consult with a qualified financial advisor before making any trading decisions.
Upper Shadow Percentage - Latest CandleThe objective of this script is to automatically calculate the upper shadow % of the latest candle in any timeframe i.e. Daily, Weekly, Monthly etc.
Please note that: This indicator shows upper shadow percent only when the following 2 conditions are satisfied:
1. The candle is latest
2. The candle's Close Price (or, Current Price in case of Market Open) > Open Price
Formula Used:
Upper Shadow Percentage = (High-Close)/(High-Low)*100
When this indicator is added to the chart, it shows a % value which represents the upper shadow % in either a Green background or Red background.
Green background shows up when the upper shadow % is less than the user provided value in the "Upper Shadow Percentage Threshold" field in the settings > Inputs tab, otherwise it shows up in Red background. Please note that the default Upper Shadow Percentage Threshold is set to be 15. User can go to Settings to change it as per their needs.
Example of how it appears in the chart
Custom Pattern DetectionOverview
Chart Patterns is a major tool for many traders. Pattern formation at specific location on the chart is used for investment/trading decisions.
This indicator is designed in a way to allow investors/traders to define patterns of their choice based on certain input parameters and then detect defined pattern on the chart.
Investors/traders can use their own creativity to create and detect patterns.
This indicator works in 2 modes
Create Pattern: One can define a pattern and verify sample pattern formation visually
Detect Pattern: Detect and mark patterns on the chart
Settings
Create Custom Pattern:
Show Custom Pattern – This will mark the pattern lines on the chart so that one can verify how pattern appears based on the input’s parameters provided for lines XA, AB, BC, CD, DE, EF
Offset – Used while pattern creation. Offset is horizonal distance between 2 lines.
XA Points – Used to draw XA line when sample pattern is drawn. XA points can be a negative or position number.
XA line is drawn based on Offset and XA Points. E.g. Offset = 5 and XA Points = -20. In this line would be drawn from last candle high to high – 20 (these are y1 and y2 points of a line). While drawing line distance of 5 candles would be placed between 2 line points (these are x1 and x2 points of a line). In XA line X forms start point and A forms end point of the line.
Line AB – Line AB is drawn from point X. To derive the end point of AB, average Fib% is derived based on From Fib% and To Fib% parameters. Finally end point is derived by applying Fib Retracement on Line XA based on average Fib%.
Line AB to Line EF – These points are derived as explained in Line AB.
The indicator can be used to define/create patterns up to 6 legs/lines. The line would be named as XA -> AB -> BC -> CD -> DE -> EF.
If one wish to create pattern consisting 3 legs then it can be achieved by unchecking/deselecting Line CD, DE and EF or by checking only Line AB and BC.
Based on the parameters above indicator draws a sample pattern after last candle/bar on the chart. Sample pattern helps to visually see how pattern will appear on the chart.
Pattern Identification
Indicator derive the swing high/low points based on the Pivot lookback and use as reference points while detecting patterns.
Use of From Fib% and To Fib% - While detecting pattern, retracement price points are derived for From Fib% and To Fib%. Price points between from Fib% and To Fib% are treated as valid retracement points.
How to configure and use indicator for detecting patterns
Sample Pattern 1
Sample Pattern 2
Sample Pattern 3
Sample Pattern 4
Supply Demand by WowTradingInfoThis indicator identifies supply and demand zones based on price action, which is a crucial concept for technical analysis. Supply zones represent areas where the price has historically shown selling pressure, while demand zones show areas with strong buying interest.
Explanation:
Rally-Base-Rally (RBR):
A rally is defined as a price movement where the percentage increase between the current high and the previous low.
A base is defined as a period of consolidation where price stays within a narrow range, with low volatility.
A RBR pattern is detected when a rally occurs, followed by a base, and then another rally.
Drop-Base-Drop (DBD):
A drop is identified when the price decrease between the current low and the previous high.
A DBD pattern is detected when a drop occurs, followed by a base, and then another drop.
Zone Marking:
RBR Zones are drawn with repaint the candles color as yellow (where buyers are likely to step in).
DBD Zones are drawn with repaint the candles color as pink (where sellers are likely to step in).
Example Use Case:
Rally-Base-Rally: When you see a yellow zone, it suggests that price rallied, consolidated, and is likely to rally again. It can be used as a potential demand zone.
Drop-Base-Drop: pink zones indicate that price dropped, consolidated, and may drop again. It can be used as a potential supply zone.
This script will help you automatically detect and visualize RBR and DBD patterns on your TradingView chart. These zones can provide valuable insights into areas where price may react due to past buying or selling pressure.
Elite By Ashu4750Inside Bar Detection:
The script identifies inside bars, which are candles where the high is lower and the low is higher than the previous bar. It tracks the high and low of the mother candle (the candle preceding the inside bars) and plots the ranges on the chart using lines and labels.
Exponential Moving Averages (EMA):
Three EMAs are calculated and plotted (with default periods of 9, 21, and 50). This is a classic trend-following technique used to smooth price data and identify the direction of the market.
Bollinger Bands (BB):
The script includes a Bollinger Band calculation using the simple moving average (SMA) with a standard deviation multiplier. The bands help visualize volatility and potential overbought or oversold conditions.
The user can configure settings like the length of the SMA and the multiplier for the upper and lower bands.
Volume Weighted Average Price (VWAP):
The VWAP is plotted on the chart and reset based on user-defined timeframes (e.g., session, week, month). VWAP is a popular indicator for institutional trading, as it shows the average price weighted by volume and can act as support or resistance.
Crossover Signals (Buy/Sell):
A combination of crossovers between VWAP, EMAs, and Bollinger Bands triggers buy and sell signals. Specifically:
Buy signal is generated when VWAP crosses over the 9 EMA, the close crosses over the Bollinger Band line, and VWAP crosses over the Bollinger Band.
Sell signal is triggered when VWAP crosses under the 9 EMA, and similar conditions exist for the other indicators.
These signals are plotted with a green "Buy" or red "Sell" marker below the bars, and alerts are set up for both buying and selling.
Additional Bollinger Band Configuration:
The script provides more flexibility in Bollinger Bands by allowing the user to select between SMA, EMA, or SMMA for the moving average.
The user can also choose the standard deviation multiplier and whether to display the bands.
Alerts:
Buy and sell conditions are linked to alert conditions, allowing the user to be notified when a signal is triggered, based on the defined crossover logic.
Technical Breakdown:
Inside Bar Logic: Tracks inside bars and plots lines representing the high and low of the mother candle. The line and label functions are used to draw these on the chart, which provides a visual representation of the range.
EMA and VWAP Crossovers:
The 9, 21, and 50-period EMAs are calculated and used in crossover logic with VWAP. Crossovers between VWAP and EMAs are a common method for identifying potential trend changes.
Bollinger Bands:
The Bollinger Band component allows for volatility analysis by calculating the upper and lower bands based on the moving average's standard deviation.
Alert System:
Alerts are set for crossover signals, allowing for real-time notifications of potential buy and sell opportunities.
Visualization:
The script plots the EMAs, VWAP, and Bollinger Bands on the price chart. It highlights inside bar patterns and displays buy/sell markers on the chart when the specified conditions are met. These visual cues make it easier to follow the market’s movements and spot trading opportunities.
Customizability:
The script is highly customizable with inputs for:
EMA periods.
VWAP settings.
Bollinger Band parameters (moving average type, length, standard deviation).
Candle color options for inside bars.
In this traders looking for multiple indicators to analyze market trends, volatility, and price action.
Shifted Symbol Overlay with OffsetThe Shifted Symbol Overlay Indicator is a custom TradingView indicator designed to overlay the price data of one stock or asset over another, allowing for direct visual comparison. This is particularly useful for comparing the performance of two assets over different time periods. The indicator enables you to shift the data from one asset either forward or backward in time, making it easier to compare historical data from one stock with more recent data from another. The indicator supports shifting both to the right (future periods) and to the left (earlier periods), helping traders and analysts explore correlations or divergences between two financial instruments.
The indicator also includes a normalization option that adjusts the scale of the two assets, so you can compare them even if they have vastly different price levels. This is useful when you're interested in relative performance rather than the absolute price values.
Cumulative Volume Delta Divergence [TradingFinder] Periodic EMA🔵 Introduction
The Cumulative Volume Delta (CVD) is a powerful tool in technical analysis that is derived from market volume or trading activity. The Cumulative Volume Delta Divergence Detector Indicator helps traders identify Cumulative Volume Delta Divergences (CVD Divergence), which can provide reliable trading signals.
These divergences, such as bullish and bearish CVD divergences, act as key indicators of potential trend reversals in financial markets. By analyzing CVD divergences, traders can gain insights into the strength of buying and selling pressure and make more informed predictions about price trends.
The CVD indicator is particularly effective for traders who engage in day trading and scalping, as it helps identify price reversal points by analyzing volume and price behavior.
Using the CVD indicator in combination with other technical tools such as support and resistance levels and candlestick patterns allows for a more accurate market analysis.
🔵 How to Use
Divergences are one of the most important technical analysis signals that indicate the current strength of a price move may not be sustainable.
Cumulative Volume Delta Divergence helps traders identify potential trading opportunities that may not be visible on the price chart alone.
This type of divergence examines the relationship between buying and selling volume and price, enabling traders to better understand price trends.
🟣 Bullish CVD Divergence
A bullish CVD divergence occurs when the price makes a lower low, but the CVD indicator shows a higher low. This indicates increasing buying pressure in the market, even though the price is declining. In other words, despite the price dropping, buyers are gradually gaining strength, which could signal a price reversal and the start of a bullish trend.
How to use this signal : In this scenario, traders looking to go long can use this signal as a favorable opportunity to enter the market. After a bullish divergence, the market typically tends to move upward.
To reduce risk, traders can wait for further confirmation from the price chart. For example, if the price breaks through the previous high after the divergence or breaks a resistance level, this could be a more reliable signal for entering the market.
🟣 Bearish CVD Divergence
A bearish CVD divergence is the opposite of a bullish divergence. In this type of divergence, the price makes a higher high, but the CVD indicator shows a lower high. This indicates decreasing buying pressure and weakening momentum in the current bullish trend. A bearish divergence often serves as a warning of a potential market reversal to the downside.
How to use this signal : Traders can use this divergence as an opportunity to exit long positions or enter short positions. When the CVD indicator makes a lower high compared to the price, it signals weakness in buyer strength.
If traders receive further confirmation from the price chart, such as a break of key support levels or an increase in selling volume, this can serve as a stronger signal for the beginning of a bearish trend.
🟣 How to Build a Trading Strategy with Cumulative Volume Delta Divergence
Using CVD divergence alone may not be sufficient. Traders should combine this tool with other technical analysis techniques and indicators to have more confidence in their decisions. For example, when observing a CVD divergence, traders can also analyze volume, trend lines, or candlestick patterns to get a more accurate market analysis.
Additionally, risk management should always be a priority. Using stop-loss orders and properly sizing trades can help traders minimize their losses if they make a mistake.
🔵 Setting
Divergence Fractal Period : Determines the period of swings. The minimum and default value is 2.
CVD Period : You can set the period of " Periodic " and " EMA " modes.
Cumulative Mode : It has three modes "Periodic" and "EMA". In "Periodic" mode, it accumulates the volume periodically and in "EMA" mode, it calculates the moving average of the volume.
Market Ultra Data : If you turn on this feature, 26 large brokers will be included in the calculation of the trading volume. The advantage of this capability is to have more reliable volume data. You should be careful to specify the market you are in, FOREX brokers and Crypto brokers are different.
🔵 Conclusion
The Cumulative Volume Delta (CVD) indicator is a powerful tool in technical analysis, helping traders better identify price trends and make more accurate market predictions. By identifying CVD divergences, traders can anticipate price reversals and time their market entries and exits accordingly.
Bullish and bearish CVD divergences each provide valuable signals that can help traders identify the best entry and exit points in the market. A bullish CVD divergence signals strength in buying that will likely lead to a price increase, while a bearish CVD divergence indicates weakness in the bullish trend and the potential for the beginning of a bearish trend.
Overall, combining CVD with other technical analysis tools and employing risk management strategies can help traders make better trading decisions and capitalize on available market opportunities.
Stock Info By IT Wala
Purpose of the Indicator
The "Stock Info by IT Wala" indicator was created to display essential stock-related information directly on the chart in a clear and concise manner. This is helpful for traders who want to quickly access details about a stock without having to look them up separately. It is useful for all types of market participants, whether trading stocks, indices, or other financial instruments, and provides an overview of the stock’s attributes such as its country, exchange, industry, and more.
Key Features
Displays a table containing key stock data, such as the stock’s name, country of origin, exchange, industry, sector, and type.
Shows additional details such as stock description, currency, and time zone, all sourced directly from syminfo.
Overlay feature allows the table to appear on the chart itself, making the information easily accessible while analyzing price action.
The table is customizable for style, with a navy blue background, white text, and border customization to match different charting themes.
Inputs (User Parameters)
This indicator doesn't offer customizable user inputs since it automatically pulls stock information from TradingView’s syminfo system. It ensures simplicity in use, allowing traders to focus on the provided data.
Output (How to Read the Indicator)
The output of the "Stock Info by IT Wala" indicator is a table that appears on the chart, showing:
Stock: The stock’s root symbol, such as AAPL for Apple or TSLA for Tesla.
Country: The country where the stock is listed or operates primarily.
Exchange: The prefix of the stock's exchange (e.g., NASDAQ, NYSE).
Industry: The industry to which the stock belongs, such as Technology, Healthcare, or Finance.
Sector: The broader sector, like Consumer Goods or Energy.
Type: Indicates whether the asset is a stock, index, or another type of financial asset.
Description: A brief description of the company or asset.
Currency: The currency in which the stock is traded (e.g., USD, EUR).
Timezone: The timezone of the exchange where the stock is listed.
Best Practices for Usage
Timeframes: This indicator works well across all timeframes, as it only displays stock-related data and is not affected by time-based analysis.
Asset Classes: It’s best suited for use with stocks but can also be applied to other types of assets (such as indices or commodities) where syminfo data is available.
Usage: Use this indicator to quickly review stock information while analyzing price action or planning trades. It is particularly helpful for traders who want quick access to contextual information without switching between different tools.
Limitations and Disclaimers:
The information is sourced directly from TradingView's syminfo and is limited to the data provided by TradingView. If any information is missing or incorrect, it will reflect in the table.
The indicator is purely informational and does not provide any buy or sell signals. Traders should not rely solely on this indicator for decision-making.
Limitations: This indicator does not work for every asset class. For example, it may not display detailed information for cryptocurrencies or certain less common instruments.
Alerts:
This indicator does not include any alert functionality since it is meant to display static stock data, not trigger trading signals.
Customization Options:
Table Styling: While users can't adjust the data displayed, the indicator automatically applies a styled table with a navy blue background and white borders to ensure readability. Users can modify this part of the code if needed for better chart integration.
Backtesting and Performance:
Backtesting is not applicable here as the indicator provides static information about the stock rather than dynamic data or signals. Performance is based on the data retrieval capabilities of TradingView's syminfo feature.
Conclusion:
The "Stock Info by IT Wala" indicator provides traders with instant access to crucial stock-related data, allowing them to review key details about the asset they are analyzing without leaving the chart. By offering details such as stock name, exchange, sector, and more, it makes fundamental information conveniently accessible, enhancing the charting experience.
Disclaimer:
This indicator is for informational purposes only and does not provide trading advice or recommendations. The stock data is sourced from TradingView’s systems and should be cross-verified if used for making trading decisions. Always conduct your own research and consult financial experts before executing any trades.
Importance of Clarity and Transparency:
When publishing a script, especially one like this that provides essential stock information, it's important to clearly explain its purpose, limitations, and intended usage. A transparent description ensures users understand what the indicator does and how to use it effectively in their analysis, preventing confusion or misuse. Clear communication builds trust with your audience and encourages responsible use of the tool.
Nifty Dashboard//@version=5
//Author @GODvMarkets
indicator("GOD NSE Nifty Dashboard", "Nifty Dashboard")
i_timeframe = input.timeframe("D", "Timeframe")
// if not timeframe.isdaily
// runtime.error("Please switch timeframe to Daily")
i_text_size = input.string(size.auto, "Text Size", )
//-----------------------Functions-----------------------------------------------------
f_oi_buildup(price_chg_, oi_chg_) =>
switch
price_chg_ > 0 and oi_chg_ > 0 =>
price_chg_ > 0 and oi_chg_ < 0 =>
price_chg_ < 0 and oi_chg_ > 0 =>
price_chg_ < 0 and oi_chg_ < 0 =>
=>
f_color(val_) => val_ > 0 ? color.green : val_ < 0 ? color.red : color.gray
f_bg_color(val_) => val_ > 0 ? color.new(color.green,80) : val_ < 0 ? color.new(color.red,80) : color.new(color.black,80)
f_bg_color_price(val_) =>
fg_color_ = f_color(val_)
abs_val_ = math.abs(val_)
transp_ = switch
abs_val_ > .03 => 40
abs_val_ > .02 => 50
abs_val_ > .01 => 60
=> 80
color.new(fg_color_, transp_)
f_bg_color_oi(val_) =>
fg_color_ = f_color(val_)
abs_val_ = math.abs(val_)
transp_ = switch
abs_val_ > .10 => 40
abs_val_ > .05 => 50
abs_val_ > .025 => 60
=> 80
color.new(fg_color_, transp_)
f_day_of_week(time_=time) =>
switch dayofweek(time_)
1 => "Sun"
2 => "Mon"
3 => "Tue"
4 => "Wed"
5 => "Thu"
6 => "Fri"
7 => "Sat"
//-------------------------------------------------------------------------------------
var table table_ = table.new(position.middle_center, 22, 20, border_width = 1)
var cols_ = 0
var text_color_ = color.white
var bg_color_ = color.rgb(1, 5, 19)
f_symbol(idx_, symbol_) =>
symbol_nse_ = "NSE" + ":" + symbol_
fut_cur_ = "NSE" + ":" + symbol_ + "1!"
fut_next_ = "NSE" + ":" + symbol_ + "2!"
= request.security(symbol_nse_, i_timeframe, [close, close-close , close/close -1, volume], ignore_invalid_symbol = true, lookahead = barmerge.lookahead_on)
= request.security(fut_cur_, i_timeframe, , ignore_invalid_symbol = true, lookahead = barmerge.lookahead_on)
= request.security(fut_next_, i_timeframe, , ignore_invalid_symbol = true, lookahead = barmerge.lookahead_on)
= request.security(fut_cur_ + "_OI", i_timeframe, [close, close-close ], ignore_invalid_symbol = true, lookahead = barmerge.lookahead_on)
= request.security(fut_next_ + "_OI", i_timeframe, [close, close-close ], ignore_invalid_symbol = true, lookahead = barmerge.lookahead_on)
stk_vol_ = stk_vol_nse_
fut_vol_ = fut_cur_vol_ + fut_next_vol_
fut_oi_ = fut_cur_oi_ + fut_next_oi_
fut_oi_chg_ = fut_cur_oi_chg_ + fut_next_oi_chg_
fut_oi_chg_pct_ = fut_oi_chg_ / fut_oi_
fut_stk_vol_x_ = fut_vol_ / stk_vol_
fut_vol_oi_action_ = fut_vol_ / math.abs(fut_oi_chg_)
= f_oi_buildup(chg_pct_, fut_oi_chg_pct_)
close_color_ = fut_cur_close_ > fut_vwap_ ? color.green : fut_cur_close_ < fut_vwap_ ? color.red : text_color_
if barstate.isfirst
row_ = 0, col_ = 0
table.cell(table_, col_, row_, "Symbol", text_color = text_color_, bgcolor = bg_color_, text_size = i_text_size), col_ += 1
table.cell(table_, col_, row_, "Close", text_color = text_color_, bgcolor = bg_color_, text_size = i_text_size), col_ += 1
table.cell(table_, col_, row_, "VWAP", text_color = text_color_, bgcolor = bg_color_, text_size = i_text_size), col_ += 1
table.cell(table_, col_, row_, "Pts", text_color = text_color_, bgcolor = bg_color_, text_size = i_text_size), col_ += 1
table.cell(table_, col_, row_, "Stk Vol", text_color = text_color_, bgcolor = bg_color_, text_size = i_text_size), col_ += 1
table.cell(table_, col_, row_, "Fut Vol", text_color = text_color_, bgcolor = bg_color_, text_size = i_text_size), col_ += 1
table.cell(table_, col_, row_, "Fut/Stk Vol", text_color = text_color_, bgcolor = bg_color_, text_size = i_text_size), col_ += 1
table.cell(table_, col_, row_, "OI Cur", text_color = text_color_, bgcolor = bg_color_, text_size = i_text_size), col_ += 1
table.cell(table_, col_, row_, "OI Next", text_color = text_color_, bgcolor = bg_color_, text_size = i_text_size), col_ += 1
table.cell(table_, col_, row_, "OI Cur Chg", text_color = text_color_, bgcolor = bg_color_, text_size = i_text_size), col_ += 1
table.cell(table_, col_, row_, "OI Next Chg", text_color = text_color_, bgcolor = bg_color_, text_size = i_text_size), col_ += 1
table.cell(table_, col_, row_, "COI ", text_color = text_color_, bgcolor = bg_color_, text_size = i_text_size), col_ += 1
table.cell(table_, col_, row_, "COI Chg", text_color = text_color_, bgcolor = bg_color_, text_size = i_text_size), col_ += 1
table.cell(table_, col_, row_, "Vol/OI Chg", text_color = text_color_, bgcolor = bg_color_, text_size = i_text_size), col_ += 1
table.cell(table_, col_, row_, "COI Chg%", text_color = text_color_, bgcolor = bg_color_, text_size = i_text_size), col_ += 1
table.cell(table_, col_, row_, "Pr.Chg%", text_color = text_color_, bgcolor = bg_color_, text_size = i_text_size), col_ += 1
table.cell(table_, col_, row_, "OI Buildup", text_color = text_color_, bgcolor = bg_color_, text_size = i_text_size), col_ += 1
cell_color_ = color.white
cell_bg_color_ = color.rgb(1, 7, 24)
if barstate.islast
row_ = idx_, col_ = 0
table.cell(table_, col_, row_, str.format("{0}", symbol_), text_color = f_color(chg_pct_), bgcolor = f_bg_color_price(chg_pct_), text_size = i_text_size, text_halign = text.align_left), col_ += 1
table.cell(table_, col_, row_, str.format("{0,number,#.00}", fut_cur_close_), text_color = close_color_, bgcolor = cell_bg_color_, text_size = i_text_size, text_halign = text.align_right), col_ += 1
table.cell(table_, col_, row_, str.format("{0,number,#.00}", fut_vwap_), text_color = cell_color_, bgcolor = cell_bg_color_, text_size = i_text_size, text_halign = text.align_right), col_ += 1
table.cell(table_, col_, row_, str.format("{0,number,0.00}", chg_pts_), text_color = cell_color_, bgcolor = cell_bg_color_, text_size = i_text_size, text_halign = text.align_right), col_ += 1
table.cell(table_, col_, row_, str.format("{0,number,#,###}", stk_vol_), text_color = cell_color_, bgcolor = cell_bg_color_, text_size = i_text_size, text_halign = text.align_right), col_ += 1
table.cell(table_, col_, row_, str.format("{0,number,#,###}", fut_vol_), text_color = cell_color_, bgcolor = cell_bg_color_, text_size = i_text_size, text_halign = text.align_right), col_ += 1
table.cell(table_, col_, row_, str.format("{0,number,0.00}", fut_stk_vol_x_), text_color = cell_color_, bgcolor = cell_bg_color_, text_size = i_text_size, text_halign = text.align_right), col_ += 1
table.cell(table_, col_, row_, str.format("{0,number,#,###}", fut_cur_oi_), text_color = cell_color_, bgcolor = cell_bg_color_, text_size = i_text_size, text_halign = text.align_right), col_ += 1
table.cell(table_, col_, row_, str.format("{0,number,#,###}", fut_next_oi_), text_color = cell_color_, bgcolor = cell_bg_color_, text_size = i_text_size, text_halign = text.align_right), col_ += 1
table.cell(table_, col_, row_, str.format("{0,number,#,###}", fut_cur_oi_chg_), text_color = f_color(fut_cur_oi_chg_), bgcolor = f_bg_color(fut_cur_oi_chg_), text_size = i_text_size, text_halign = text.align_right), col_ += 1
table.cell(table_, col_, row_, str.format("{0,number,#,###}", fut_next_oi_chg_), text_color = f_color(fut_next_oi_chg_), bgcolor = f_bg_color(fut_next_oi_chg_), text_size = i_text_size, text_halign = text.align_right), col_ += 1
table.cell(table_, col_, row_, str.format("{0,number,#,###}", fut_oi_), text_color = cell_color_, bgcolor = cell_bg_color_, text_size = i_text_size, text_halign = text.align_right), col_ += 1
table.cell(table_, col_, row_, str.format("{0,number,#,###}", fut_oi_chg_), text_color = f_color(fut_oi_chg_), bgcolor = f_bg_color(fut_oi_chg_), text_size = i_text_size, text_halign = text.align_right), col_ += 1
table.cell(table_, col_, row_, str.format("{0,number,0.00}", fut_vol_oi_action_), text_color = cell_color_, bgcolor = cell_bg_color_, text_size = i_text_size, text_halign = text.align_right), col_ += 1
table.cell(table_, col_, row_, str.format("{0,number,0.00%}", fut_oi_chg_pct_), text_color = f_color(fut_oi_chg_pct_), bgcolor = f_bg_color_oi(fut_oi_chg_pct_), text_size = i_text_size, text_halign = text.align_right), col_ += 1
table.cell(table_, col_, row_, str.format("{0,number,0.00%}", chg_pct_), text_color = f_color(chg_pct_), bgcolor = f_bg_color_price(chg_pct_), text_size = i_text_size, text_halign = text.align_right), col_ += 1
table.cell(table_, col_, row_, str.format("{0}", oi_buildup_), text_color = oi_buildup_color_, bgcolor = color.new(oi_buildup_color_,80), text_size = i_text_size, text_halign = text.align_left), col_ += 1
idx_ = 1
f_symbol(idx_, "BANKNIFTY"), idx_ += 1
f_symbol(idx_, "NIFTY"), idx_ += 1
f_symbol(idx_, "CNXFINANCE"), idx_ += 1
f_symbol(idx_, "RELIANCE"), idx_ += 1
f_symbol(idx_, "HDFC"), idx_ += 1
f_symbol(idx_, "ITC"), idx_ += 1
f_symbol(idx_, "HINDUNILVR"), idx_ += 1
f_symbol(idx_, "INFY"), idx_ += 1
CANSLIM Screener [TrendX_]INTRODUCTION:
The CANSLIM investment strategy, developed by William J. O'Neil, is a powerful tool for identifying growth stocks that have the potential to outperform the market. TrendX has enhanced this approach with its unique indicators, making it easier for investors to assess stocks based on seven critical criteria.
➊ C: Current Quarterly EPS or PE with Growth Benchmark
The first criterion focuses on the Earnings Per Share (EPS) growth in the most recent quarter compared to previous quarters. A company should demonstrate significant EPS growth, ideally exceeding expectations and benchmarks within its industry.
➋ A: Average Annual EPS Growth with Growth Benchmark
This aspect evaluates a company's average annual EPS growth over the last three years. A consistent upward trend suggests that the company is effectively increasing its profitability. TrendX provides a customizable benchmark to help investors identify firms with sustainable growth trajectories.
➌ N: New Highs or New Product Development
TrendX interprets this criterion through an Annual Research & Development to Revenue Ratio (RNDR). A decreasing RNDR ratio may indicate that a company is finishing new products, which could lead to reduced revenue if product launches are unsuccessful.
➍ S: Supply and Demand
This component assesses supply and demand dynamics by analyzing the movement of Float Shares Outstanding. A decrease in float shares typically indicates higher demand for the stock, suggesting that the company is in good shape for future growth.
➎ L: Leader
TrendX employs comparative analysis between the Relative Strength Index (RSI) of a company and that of the overall market. If a company's RSI is higher than the market's, it signifies that the stock is leading rather than lagging.
➏ I: Institutional Sponsorship
Institutional sponsorship is gauged through the total dividends paid by a company. High dividend payouts can signal strong institutional interest, support and confidence in the company's future prospects.
➐ M: Market Direction
TrendX evaluates market direction by comparing a company's RSI against its Moving Average of RSI, along with utilizing Market Structure in Smart Money Concept indicator for alternative trend insights.
HOW TO USE
The TrendX CANSLIM indicator provides an evaluation score based on each of the seven criteria outlined above, which displays in a table containing:
Scoring System: Each letter in CANSLIM contributes to a total score out of 100%. A stock does not need to meet all seven criteria; achieving a score above 70% (5 out of 7) is generally considered indicative of a promising growth stock.
Screening Feature: The tool includes a screening feature that evaluates multiple stocks simultaneously, allowing investors to compare their CANSLIM scores efficiently. This feature streamlines identifying potential investment opportunities across various sectors.
DISCLAIMER
This indicator is not financial advice, it can only help traders make better decisions. There are many factors and uncertainties that can affect the outcome of any endeavor, and no one can guarantee or predict with certainty what will occur.
Therefore, one should always exercise caution and judgment when making decisions based on past performance.
NIFTY - Heatmap [DRK]Nifty 50 Heatmap by Percentage Change
This Pine Script generates a dynamic heatmap for the top 40 weighted stocks in the Nifty 50 index, ordered by their percentage change. The heatmap visually represents the performance of these stocks, with green indicating positive changes and red indicating negative changes.
Features :
Real-time Updates : The heatmap updates in real-time, providing an up-to-date snapshot of market performance.
Color Coding : Stocks are color-coded based on their percentage change, making it easy to identify gainers and losers at a glance.
Future Enhancements:
Indicator : Planned updates include popups or descriptions that provide additional insights, such as key indicators and their positive or negative signals.
Detailed Analysis : Future versions will offer more detailed analysis and insights to help traders make informed decisions.
Stay tuned for these exciting updates!
Risk Contract Table by Soothing TradesDescription:
Risk Contract Table by Soothing Trades
This script provides an intuitive table that displays the calculated risk in dollars for various contract sizes based on the size of the last closed candle.
It is designed to help traders quickly assess their risk exposure based on the most recent price movement.
Key Features:
Automatic and Manual Tick Value Calculation: Automatically fetches the tick value for your instrument.
You can also override it with a manual input using a convenient checkbox.
Customizable Contract Sizes: Easily input your preferred contract sizes.
The script dynamically adjusts the table headers and risk calculations based on your inputs.
Real-Time Updates:
The table updates with each new candle close, ensuring that your risk calculations are always based on the latest candle size.
User-Friendly Display: The table is displayed directly on your chart with customizable colors for both text and background, making it easy to match your chart’s theme.
How to Use:
Tick Value: By default, the script uses the automatic tick value.
To manually set the tick value, check the "Use Manual Tick Value" box and enter your desired value.
Contract Sizes: You can input the number of contracts for each category (5ct, 10ct, 15ct, 17ct). The script calculates and displays the risk for each contract size based on the tick movement of the last closed candle only.
Real-Time Calculations: Risk calculations are updated only after the candle is closed, so there are no misleading values during live market activity.
Customization Options:
Manual Tick Value Override: Use a custom tick value by enabling the "Use Manual Tick Value" option.
Custom Contract Sizes: Input your desired contract sizes, and the table headers and risk calculations will update accordingly.
Color Customization: Customize the text and background colors to fit your chart’s aesthetic.
How It Works:
The script calculates the tick movement from the last closed candle and multiplies it by the specified tick value and the number of contracts.
You can choose to use the default automatic tick value or manually input your own.
A table appears on the chart showing the risk for different contract sizes based solely on the size of the last candle, providing a quick snapshot of potential exposure from the most recent price movement.
This script is ideal for traders who want to keep a quick and accurate overview of their potential risk exposure based on the size of the most recent price action.
Whether you are scalping, day trading, or holding positions overnight, this tool by Soothing Trades will help you stay informed and make better trading decisions.
Happy Trading!
- use at own risk, for education and test purpose only.
Developed by Soothing Trades
KLNI RSI MTFDescription of the RSI Multi-Timeframe Indicator
The RSI Multi-Timeframe Indicator allows you to track and compare the Relative Strength Index (RSI) across three different timeframes on the same chart. This is particularly useful for traders who want to gauge the momentum of an asset over multiple time periods simultaneously, helping to make more informed trading decisions.
Key Features
Multi-Timeframe RSI:
You can select up to three timeframes to plot RSI on the same chart.
Available timeframe options include:
Current: Displays RSI for the current chart timeframe.
60 minutes (1 hour)
Daily
Weekly
Monthly
Custom RSI Settings:
Adjust the RSI length and source (e.g., close price) through user inputs, allowing you to tailor the indicator to your strategy.
Divergence Detection (Optional):
The indicator can optionally detect and display bullish and bearish divergences between price and RSI for the first selected timeframe.
Bullish divergence is shown when price makes a lower low, but RSI makes a higher low.
Bearish divergence is shown when price makes a higher high, but RSI makes a lower high.
Visual Aids:
Overbought and oversold RSI levels are highlighted with background colors for clarity.
Horizontal lines at 70 (overbought), 50 (neutral), and 30 (oversold) help quickly identify RSI conditions.
How to Use This Indicator
Inputs & Settings
Timeframe Settings:
First Timeframe: Choose the primary timeframe (e.g., 60 minutes, Daily, Weekly).
Second Timeframe: Select the second timeframe to plot on the chart.
Third Timeframe: Select the third timeframe for additional RSI analysis.
RSI Settings:
RSI Length: Set the period for RSI calculation (default: 14).
Source: Select the price data for RSI calculation (default: close price).
Show Divergence: Enable or disable the detection of divergence between price and RSI.
Plotting on Chart
The indicator will display three distinct RSI plots for the selected timeframes:
RSI TF1 (blue line) for the first timeframe.
RSI TF2 (green line) for the second timeframe.
RSI TF3 (red line) for the third timeframe.
Each RSI line corresponds to its chosen timeframe, allowing you to see how RSI behaves across different time periods.
Reading the RSI Values
Overbought: When RSI is above 70, the asset is considered overbought, potentially signaling a sell or short entry.
Oversold: When RSI is below 30, the asset is considered oversold, possibly indicating a buying opportunity.
Neutral: RSI around 50 is neutral and may suggest a lack of clear momentum.
Divergence Detection
If enabled, the indicator will highlight points of divergence:
Bullish Divergence: A green label will appear below the chart where price is making lower lows, but RSI is making higher lows, suggesting potential bullish momentum.
Bearish Divergence: A red label will appear when price is making higher highs, but RSI is making lower highs, indicating potential bearish pressure.
Practical Applications
Momentum Confirmation: Use this indicator to confirm the strength of a trend by comparing RSI across multiple timeframes. For example, if RSI is above 50 on all three timeframes, it may confirm strong upward momentum.
Overbought/Oversold Signals: When RSI is overbought on multiple timeframes, it could signal an impending reversal or correction. Conversely, oversold conditions across timeframes might indicate a buy opportunity.
Divergence Detection: Spot divergence between price and RSI to identify potential trend reversals early. Divergence can provide early signals of changing market momentum.
Summary
This indicator is a powerful tool for multi-timeframe RSI analysis, helping traders understand momentum shifts across different timeframes. It offers customizability, divergence detection, and visual aids to streamline your technical analysis and decision-making process.
Demand and Supply Conditions with SignalsIntroduction:
This document outlines a trading strategy that utilizes price action analysis and color signals to make informed trading decisions. The strategy focuses on identifying demand and supply conditions, curve patterns, and generating signals based on historical price data. The colors associated with each condition and signal serve as visual indicators to assist in decision-making.
I. Strategy Overview:
Objective:
The objective of this trading strategy is to identify potential trading opportunities based on price action analysis and color signals.
Key Components:
Demand Condition: A green upward-facing triangle indicates a potential demand condition.
Supply Condition: A red downward-facing triangle indicates a potential supply condition.
Curve Pattern Condition: A blue upward-facing triangle indicates a potential curve pattern condition.
Signal Condition: A yellow upward-facing triangle indicates a potential buy signal.
II. Understanding the Colors:
* Green: Represents the demand condition, which suggests potential buying pressure in the market. A green upward-facing triangle is plotted on the chart when the demand condition is met at a specific candle or bar.
* Red: Represents the supply condition, which suggests potential selling pressure in the market. A red downward-facing triangle is plotted on the chart when the supply condition is met at a specific candle or bar.
* Blue: Represents the curve pattern condition, which suggests the presence of a specific pattern based on price action analysis. A blue upward-facing triangle is plotted on the chart when the curve pattern condition is met at a specific candle or bar.
* Yellow: Represents the signal condition, which is a combination of the demand condition and the curve pattern condition. A yellow upward-facing triangle is plotted on the chart when the signal condition is met at a specific candle or bar, indicating a potential buy signal.
III. Decision-Making Process:
* Demand and Supply Conditions: Identify potential buying opportunities when a green demand condition is present. Consider potential selling opportunities when a red supply condition is present. Use these conditions to assess the overall market sentiment and potential price reversals.
* Curve Patterns: Analyze the presence of blue curve pattern conditions to identify specific price patterns. These patterns can provide additional confirmation for potential trading decisions.
* Signal Condition: Pay attention to the yellow signal condition, which indicates a potential buy signal. Evaluate the overall market context and consider entering a buy position when the signal condition is met.
* Risk Management: Implement proper risk management techniques such as setting stop-loss orders and position sizing to protect against potential losses.
IV. Conclusion:
This trading strategy leverages price action analysis and color signals to identify potential trading opportunities. The colors associated with each condition and signal serve as visual aids to highlight specific points on the chart. It's important to thoroughly backtest and validate the strategy before applying it to real-world trading scenarios. Additionally, always consider market conditions, risk management, and individual trading preferences when making trading decisions.
Disclaimer: Trading involves risks, and this document does not guarantee profitable outcomes. Traders should exercise caution and perform their own due diligence before engaging in any trading activity.
Remember to continually review and adapt your trading strategy based on market conditions and personal experiences to enhance its effectiveness.
TSMG VOLUME BY MACKThe TSMG Volume Indicator is a powerful tool used in Volume Spread Analysis (VSA) to assess market dynamics by examining the relationship between price movements and trading volume. It helps traders identify potential actions of "smart money"—institutional or informed traders—by analyzing volume spikes, price spreads, and closing prices.
Key Features:
Volume Analysis: The indicator highlights significant volume changes, allowing traders to discern whether a price move is supported by strong buying or selling activity. High volume accompanying a price increase often indicates accumulation by smart money, while high volume with a price decrease suggests distribution.
Price Spread Interpretation: The TSMG Volume Indicator combines price spread analysis with volume data. It helps to identify bullish or bearish trends by analyzing how price changes occur in relation to volume. For instance, a narrow spread with high volume may signal a potential reversal or a continuation pattern.
Smart Money Tracking: By tracking volume patterns alongside price actions, the indicator helps traders spot potential smart money moves. For example, if a stock experiences a sudden increase in volume without a corresponding price rise, it may indicate that institutional investors are accumulating shares quietly.
Alert System: Many implementations of the TSMG Volume Indicator feature alerts for significant volume anomalies, enabling traders to react quickly to potential trading opportunities.
Multi-Timeframe Analysis: The indicator can be applied across various timeframes, giving traders insights into both short-term and long-term market dynamics.
Practical Application:
Traders can use the TSMG Volume Indicator to enhance their trading strategies by confirming signals from other technical indicators. For instance, if a bullish candlestick pattern appears alongside high volume, it strengthens the case for a potential upward movement. Conversely, a bearish pattern with increasing volume might suggest caution or a possible downtrend.
In summary, the TSMG Volume Indicator is a valuable asset for traders looking to harness Volume Spread Analysis, providing insights into the actions of smart money and helping to inform more effective trading decisions.
Market Structure Inducements ICT [TradinFinder] CHoch BOS Sweeps🔵 Introduction
Market Structure is the foundation for identifying trends in the market, crucial in technical analysis and strategies like ICT and SMC. Understanding key concepts such as Break of Structure (BOS) and Change of Character (CHOCH) helps traders recognize critical shifts in the market. BOS, referring to a Market Structure Change (BMS), and CHOCH or Market Structure Shift (MSS) signal trend reversals in the market.
Additionally, the concept of Inducement, a vital tool in Smart Money strategies, allows traders to avoid price traps. Identifying valid pullback, valid inducement, POI, and Liquidity Grab helps traders find optimal entry and exit points and leverage Smart Money movements effectively.
Bullish Market Structure :
Bearish Market Structure :
🔵 How to Use
The Market Structure indicator is designed to help traders better understand market structure and detect price traps. By using this indicator, you can identify the right entry and exit points based on structural changes in the market and avoid unprofitable trades. Below, we explain the key concepts and how to apply them in trading.
🟣 Market Structure
Market Structure refers to the overall pattern of price movement in the market. Using this indicator, traders can identify uptrends and downtrends and make better trading decisions based on changes in market structure. The two key concepts here are Break of Structure (BOS) and Change of Character (CHOCH).
Change of Character (CHOCH) : CHOCH occurs when the market shifts from an uptrend to a downtrend or vice versa. These changes typically indicate a broader trend reversal, and the indicator assists you in identifying them accurately.
Break of Structure (BOS) : When the market breaks a key support or resistance level, it signals a change in market structure. This indicator helps you identify these breakouts in time and take advantage of trading opportunities.
🟣 Inducement
Inducement refers to price traps set by Smart Money to trick retail traders into making the wrong trades. This indicator helps you recognize these traps and avoid unprofitable trades.
Valid Inducement : Valid Inducement refers to deliberately created price traps by major market players to gather liquidity from retail traders. Once the market has collected sufficient liquidity, it makes the real move, and professional traders use this moment to enter.
🟣 Valid Pullback
A Valid Pullback refers to a temporary market retracement, indicating a price correction within the main trend. This concept is crucial in technical analysis as it helps traders enter trades at the right time and profit from the continuation of the trend. The Market Structure indicator can identify these valid retracements, allowing traders to enter trades with greater confidence.
🟣 Point of Interest (POI)
Another important concept in market analysis is the Point of Interest (POI), referring to key price areas on the chart. POI includes zones where significant price movements are likely to occur. The Market Structure indicator helps you locate these key points and use them as entry signals for trades.
🟣 Liquidity Grab
Liquidity Grab refers to a scenario where the market intentionally moves to areas where retail traders' stop losses are placed. The goal is to gather liquidity, allowing major players to execute trades at better prices. By using this indicator, you can spot these liquidity grabs and avoid falling into price traps.
🔵 Setting
ChoCh Detector Period : The period of identifying the major market levels that occur when they break ChoCh.
BoS & Liquidity Detector Period : The period of identifying minor levels, which are used to identify BoS and Liquidity levels.
Inducement Detector Period : The period of identification of Inducement levels.
Fast Trend Detector : This feature will help you update the major market structure levels sooner.
Inducement Type Detector : Two modes "Sweeps" and "Total" can be used to identify the levels of Inducement. In "Sweeps" mode only Levels detected by touch shadow. In "Total" mode, all Levels are detected.
🔵 Conclusion
In financial market analysis and forex trading, identifying Market Structure and Inducement is crucial. Market Structure helps you detect uptrends and downtrends, and understand Break of Structure (BOS) and Change of Character (CHOCH). The concept of Inducement also enables traders to spot Smart Money price traps and avoid unprofitable trades.
The Market Structure indicator is a powerful tool that, by analyzing the market structure and concepts like valid pullback and valid inducement, helps you make more precise trade entries. Additionally, by identifying POI and Liquidity Grab, the indicator gives you the ability to spot key market zones and use them to your advantage in trading.
H-Infinity Volatility Filter [QuantAlgo]Introducing the H-Infinity Volatility Filter by QuantAlgo 📈💫
Enhance your trading/investing strategy with the H-Infinity Volatility Filter , a powerful tool designed to filter out market noise and identify clear trend signals in volatile conditions. By applying an advanced H∞ filtering process, this indicator assists traders and investors in navigating uncertain market conditions with improved clarity and precision.
🌟 Key Features:
🛠 Customizable Noise Parameters: Adjust worst-case noise and disturbance settings to tailor the filter to various market conditions. This flexibility helps you adapt the indicator to handle different levels of market volatility and disruptions.
⚡️ Dynamic Trend Detection: The filter identifies uptrends and downtrends based on the filtered price data, allowing you to quickly spot potential shifts in the market direction.
🎨 Color-Coded Visuals: Easily differentiate between bullish and bearish trends with customizable color settings. The indicator colors the chart’s candles according to the detected trend for immediate clarity.
🔔 Custom Alerts: Set alerts for trend changes, so you’re instantly informed when the market transitions from bullish to bearish or vice versa. Stay updated without constantly monitoring the charts.
📈 How to Use:
✅ Add the Indicator: Add the H-Infinity Volatility Filter to your favourites and apply it to your chart. Customize the noise and disturbance parameters to match the volatility of the asset you are trading/investing. This allows you to optimize the filter for your specific strategy.
👀 Monitor Trend Shifts: Watch for clear visual signals as the filter detects uptrends or downtrends. The color-coded candles and line plots help you quickly assess market conditions and potential reversals.
🔔 Set Alerts: Configure alerts to notify you when the trend changes, allowing you to react quickly to potential market shifts without needing to manually track price movements.
🌟 How It Works and Academic Background:
The H-Infinity Volatility Filter is built on the foundations of H∞ (H-infinity) control theory , a mathematical framework originating from the field of engineering and control systems. Developed in the 1980s by notable engineers such as George Zames and John C. Doyle , this theory was designed to help systems perform optimally under uncertain and noisy conditions. H∞ control focuses on minimizing the worst-case effects of disturbances and noise, making it a powerful tool for managing uncertainty in complex environments.
In financial markets, where unpredictable price fluctuations and noise often obscure meaningful trends, this same concept can be applied to price data to filter out short-term volatility. The H-Infinity Volatility Filter adopts this approach, allowing traders and investors to better identify potential trends by reducing the impact of random price movements. Instead of focusing on precise market predictions, the filter increases the probability of highlighting significant trends by smoothing out market noise.
This indicator works by processing historical price data through an H∞ filter that continuously adjusts based on worst-case noise levels and disturbances. By considering several past states, it estimates the current price trend while accounting for potential external disruptions that might influence price behavior. Parameters like "worst-case noise" and "disturbance" are user-configurable, allowing traders to adapt the filter to different market conditions. For example, in highly volatile markets, these parameters can be adjusted to manage larger price swings, while in more stable markets, they can be fine-tuned for smoother trend detection.
The H-Infinity Volatility Filter also incorporates a dynamic trend detection system that classifies price movements as bullish or bearish. It uses color-coded candles and plots—green for bullish trends and red for bearish trends—to provide clear visual cues for market direction. This helps traders and investors quickly interpret the trend and act on potential signals. While the indicator doesn’t guarantee accuracy in trend prediction, it significantly reduces the likelihood of false signals by focusing on meaningful price changes rather than random fluctuations.
How It Can Be Applied to Trading/Investing:
By applying the principles of H∞ control theory to financial markets, the H-Infinity Volatility Filter provides traders and investors with a sophisticated tool that manages uncertainty more effectively. Its design makes it suitable for use in a wide range of markets—whether in fast-moving, volatile environments or calmer conditions.
The indicator is versatile and can be used in both short-term trading and medium to long-term investing strategies. Traders can tune the filter to align with their specific risk tolerance, asset class, and market conditions, making it an ideal tool for reducing the effects of market noise while increasing the probability of detecting reliable trend signals.
For investors, the filter can help in identifying medium to long-term trends by filtering out short-term price swings and focusing on the broader market direction. Whether applied to stocks, forex, commodities, or cryptocurrencies, the H-Infinity Volatility Filter helps traders and investors interpret market behavior with more confidence by offering a more refined view of price movements through its noise reduction techniques.
Disclaimer:
The H-Infinity Volatility Filter is designed to assist in market analysis by filtering out noise and volatility. It should not be used as the sole tool for making trading or investment decisions. Always incorporate other forms of analysis and risk management strategies. No statements or signals from this indicator or us should be considered financial advice. Past performance is not indicative of future results.
Interest Rate Trading (Manually Added Rate Decisions) [TANHEF]Interest Rate Trading: How Interest Rates Can Guide Your Next Move.
How were interest rate decisions added?
All interest rate decision dates were manually retrieved from the 'Record of Policy Actions' and 'Minutes of Actions' on the Federal Reserve's website due to inconsistent dates from other sources. These were manually added as Pine Script currently only identifies rate changes, not pauses.
█ Simple Explanation:
This script is designed for analyzing and backtesting trading strategies based on U.S. interest rate decisions which occur during Federal Open Market Committee (FOMC) meetings, to make trading decisions. No trading strategy is perfect, and it's important to understand that expectations won't always play out. The script leverages historical interest rate changes, including increases, decreases, and pauses, across multiple economic time periods from 1971 to the present. The tool integrates two key data sources for interest rates—USINTR and FEDFUNDS—to support decision-making around rate-based trades. The focus is on identifying opportunities and tracking trades driven by interest rate movements.
█ Interest Rate Decision Sources:
As noted above, each decision date has been manually added from the 'Record of Policy Actions' and 'Minutes of Actions' documents on the Federal Reserve's website. This includes +50 years of more than 600 rate decisions.
█ Interest Rate Data Sources:
USINTR: Reflects broader U.S. interest rate trends, including Treasury yields and various benchmarks. This is the preferred option as it corresponds well to the rate decision dates.
FEDFUNDS: Tracks the Federal Funds Rate, which is a more specific rate targeted by the Federal Reserve. This does not change on the exact same days as the rate decisions that occur at FOMC meetings.
█ Trade Criteria:
A variety of trading conditions are predefined to suit different trading strategies. These conditions include:
Increase/Decrease: Standard rate increases or decreases.
Double/Triple Increase/Decrease: A series of consecutive changes.
Aggressive Increase/Decrease: Rate changes that exceed recent movements.
Pause: Identification of no changes (pauses) between rate decisions, including double or triple pauses.
Complex Patterns: Combinations of pauses, increases, or decreases, such as "Pause after Increase" or "Pause or Increase."
█ Trade Execution and Exit:
The script allows automated trade execution based on selected criteria:
Auto-Entry: Option to enter trades automatically at the first valid period.
Max Trade Duration: Optional exit of trades after a specified number of bars (candles).
Pause Days: Minimum duration (in days) to validate rate pauses as entry conditions. This is especially useful for earlier periods (prior to the 2000s), where rate decisions often seemed random compared to the consistency we see today.
█ Visualization:
Several visual elements enhance the backtesting experience:
Time Period Highlighting: Economic time periods are visually segmented on the chart, each with a unique color. These periods include historical phases such as "Stagflation (1971-1982)" and "Post-Pandemic Recovery (2021-Present)".
Trade and Holding Results: Displays the profit and loss of trades and holding results directly on the chart.
Interest Rate Plot: Plots the interest rate movements on the chart, allowing for real-time tracking of rate changes.
Trade Status: Highlights active long or short positions on the chart.
█ Statistics and Criteria Display:
Stats Table: Summarizes trade results, including wins, losses, and draw percentages for both long and short trades.
Criteria Table: Lists the selected entry and exit criteria for both long and short positions.
█ Economic Time Periods:
The script organizes interest rate decisions into well-defined economic periods, allowing traders to backtest strategies specific to historical contexts like:
(1971-1982) Stagflation
(1983-1990) Reaganomics and Deregulation
(1991-1994) Early 1990s (Recession and Recovery)
(1995-2001) Dot-Com Bubble
(2001-2006) Housing Boom
(2007-2009) Global Financial Crisis
(2009-2015) Great Recession Recovery
(2015-2019) Normalization Period
(2019-2021) COVID-19 Pandemic
(2021-Present) Post-Pandemic Recovery
█ User-Configurable Inputs:
Rate Source Selection: Choose between USINTR or FEDFUNDS as the primary interest rate source.
Trade Criteria Customization: Users can select the criteria for long and short trades, specifying when to enter or exit based on changes in the interest rate.
Time Period: Select the time period that you want to isolate testing a strategy with.
Auto-Entry and Pause Settings: Options to automatically enter trades and specify the number of days to confirm a rate pause.
Max Trade Duration: Limits how long trades can remain open, defined by the number of bars.
█ Trade Logic:
The script manages entries and exits for both long and short trades. It calculates the profit or loss percentage based on the entry and exit prices. The script tracks ongoing trades, dynamically updating the profit or loss as price changes.
█ Examples:
One of the most popular opinions is that when rate starts begin you should sell, then buy back in when rate cuts stop dropping. However, this can be easily proven to be a difficult task. Predicting the end of a rate cut is very difficult to do with the the exception that assumes rates will not fall below 0.25%.
2001-2009
Trade Result: +29.85%
Holding Result: -27.74%
1971-2024
Trade Result: +533%
Holding Result: +5901%
█ Backtest and Real-Time Use:
This backtester is useful for historical analysis and real-time trading. By setting up various entry and exit rules tied to interest rate movements, traders can test and refine strategies based on real historical data and rate decision trends.
This powerful tool allows traders to customize strategies, backtest them through different economic periods, and get visual feedback on their trading performance, helping to make more informed decisions based on interest rate dynamics. The main goal of this indicator is to challenge the belief that future events must mirror the 2001 and 2007 rate cuts. If everyone expects something to happen, it usually doesn’t.
ETH Signal 15m
This strategy uses the Supertrend indicator combined with RSI to generate buy and sell signals, with stop loss (SL) and take profit (TP) conditions based on ATR (Average True Range). Below is a detailed explanation of each part:
1. General Information BINANCE:ETHUSDT.P
Strategy Name: "ETH Signal 15m"
Designed for use on the 15-minute time frame for the ETH pair.
Default capital allocation is 15% of total equity for each trade.
2. Backtest Period
start_time and end_time: Define the start and end time of the backtest period.
start_time = 2024-08-01: Start date of the backtest.
end_time = 2054-01-01: End date of the backtest.
The strategy will only run when the current time falls within this specified range.
3. Supertrend Indicator
Supertrend is a trend-following indicator that provides buy or sell signals based on the direction of price changes.
factor = 2.76: The multiplier used in the Supertrend calculation (increasing this value makes the Supertrend less sensitive to price movements).
atrPeriod = 12: Number of periods used to calculate ATR.
Output:
direction: Determines the buy/sell direction based on Supertrend.
If direction decreases, it signals a buy (Long).
If direction increases, it signals a sell (Short).
4. RSI Indicator
RSI (Relative Strength Index) is a momentum indicator, often used to identify overbought or oversold conditions.
rsiLength = 12: Number of periods used to calculate RSI.
rsiOverbought = 70: RSI level considered overbought.
rsiOversold = 30: RSI level considered oversold.
5. Entry Conditions
Long Entry:
Supertrend gives a buy signal (ta.change(direction) < 0).
RSI must be below the overbought level (rsi < rsiOverbought).
Short Entry:
Supertrend gives a sell signal (ta.change(direction) > 0).
RSI must be above the oversold level (rsi > rsiOversold).
The strategy will only execute trades if the current time is within the backtest period (in_date_range).
6. Stop Loss (SL) and Take Profit (TP) Conditions
ATR (Average True Range) is used to calculate the distance for Stop Loss and Take Profit based on price volatility.
atr = ta.atr(atrPeriod): ATR is calculated using 12 periods.
Stop Loss and Take Profit are calculated as follows:
Long Trade:
Stop Loss: Set at close - 4 * atr (current price minus 4 times the ATR).
Take Profit: Set at close + 2 * atr (current price plus 2 times the ATR).
Short Trade:
Stop Loss: Set at close + 4 * atr (current price plus 4 times the ATR).
Take Profit: Set at close - 2.237 * atr (current price minus 2.237 times the ATR).
Summary:
This strategy enters a Long trade when the Supertrend indicates an upward trend and RSI is not in the overbought region. Conversely, a Short trade is entered when Supertrend signals a downtrend, and RSI is not oversold.
The trade is exited when the price reaches the Stop Loss or Take Profit levels, which are determined based on price volatility (ATR).
Disclaimer:
The content provided in this strategy is for informational and educational purposes only. It is not intended as financial, investment, or trading advice. Trading in cryptocurrency, stocks, or any financial markets involves significant risk, and you may lose more than your initial investment. Past performance is not indicative of future results, and no guarantee of profit can be made. You should consult with a professional financial advisor before making any investment decisions. The creator of this strategy is not responsible for any financial losses or damages incurred as a result of following this strategy. All trades are executed at your own risk.
The Vet [TFO]In collaboration with @mickey1984 , "The Vet" was created to showcase various statistical measures of price.
The first core measurement utilizes the Defining Range (DR) concept on a weekly basis. For example, we might track the session from 09:30-10:30 on Mondays to get the DR high, DR low, IDR high, and IDR low. The DR high and low are the highest high and lowest low of the session, respectively, whereas the IDR high and low would be the highest candle body level (open or close) and lowest candle body level, respectively, during this window of time.
From this data, we use the IDR range (from IDR high to IDR low) to extrapolate several, custom projections of this range from its high and low so that we can collect data on how often these levels are hit, from the close of one DR session to the open of the next one.
This information is displayed in the Range Projection Table with a few main columns of information:
- The leftmost column indicates each level that is projected from the IDR range, where (+) indicates a projection above the range high, and (-) indicates a projection below the range low
- The "First Touch" column indicates how often price has reached these levels in the past at any point until the next weekly DR session
- The "Other Side Touch" column indicates how often price has reached a given level, then reversed to hit the opposing level of the same magnitude. For example, the above chart shows that if price hit the +1 projection, ~33% of instances also hit the -1 projection before the next weekly DR session. For this reason, the probabilities will be the same for projection levels of the same but opposite magnitude (+1 would be the same as -1, +3 would be the same as -3, etc.)
- The "Next Level Touch" column provides insight into how often price reaches the next greatest projection level. For example, in the above chart, the red box in the projection table is highlighting that once price hits the -2 projection, ~86% of instances reached the -3 projection before the next weekly DR session
- The last columns, "Within ADR" and "Within AWR" show if any of the projection levels are within the current Average Daily Range, or Average Weekly Range, respectively, which can both be enabled from the Average Range section
The next section, Distributions, primarily measures and displays the average price movements from specified intraday time windows. The option to Show Distribution Boxes will overlay a box showing each respective session's average range, while adjusting itself to encapsulate the price action of that session until the average range is met/exceeded. Users can choose to display the range average by Day of Week, or the Total average from all days. Values for average ranges can either be shown as point or percent values. We can also show a table to display this information about price's average ranges for each given session, and show labels displaying the current range vs its average.
The final section, Average Range, simply offers the ability to plot the Average Daily Range (ADR) and Average Weekly Range (AWR) of a specified length. An ADR of 10 for example would take the average of the last 10 days, from high to low, while an AWR of 10 would take the average of the last 10 weeks (if the current chart provides enough data to support this). Similarly, we can also show the Average Range Table to indicate what these ADR/AWR values are, what our current range is and how it compares to those values, as well as some simple statistics on how often these levels are hit. As an example, "Hit +/- ADR: 40%/35%" in this table would indicate that price has hit the upper ADR limit 40% of the time, and the lower limit 35% of the time, for the amount of data available on the current chart.
CRT overlay 2Overview
The "CRT overlay 2" is designed to plot key levels and detect market patterns based on the 4-hour candle around a specific start time (5AM). It incorporates elements like the high, low, and 50% level of a key 4-hour candle, and also tracks Fair Value Gaps (FVGs) to help identify potential price imbalances in the market. The indicator is primarily based on Candle Range Theory (CRT), which focuses on the significance of price movements within key candles and their relation to future market activity.
How the Script is Made
Key Components:
4-hour CRT Candle: The script identifies a specific 4-hour candle using a customizable start time (by default, it’s set to the 5 AM candle).
High, Low, and Midline Levels: For this selected 4-hour candle, the script calculates and draws the high, low, and 50% midpoint. These levels are used as reference points for further analysis.
Fair Value Gaps (FVGs): The script detects price gaps between candles (where the third candle does not fully overlap the first), which can act as areas of potential support or resistance. The user can toggle the plotting of midlines for these gaps.
Time Restrictions: The script limits its key functionalities (e.g., detecting highs, lows, and gaps) to a specific time window, between the target hour and the end hour (e.g., 5 AM to 10 AM).
Extensions and Visibility:
The plotted high, low, and midlines of the 4-hour candle extend a certain number of bars forward for visibility.
These lines stop extending after the end of the defined session (e.g., after 10 AM).
Wick Length Calculation:
The script calculates the length of a candle's wick as a percentage of the total range of the candle, which may provide insights into market rejections or momentum shifts.
Fair Value Gap (FVG) Detection:
The script detects both bullish and bearish FVGs based on a 3-candle pattern, plotting the gaps with customizable colors. The FVGs are then drawn on the chart for visual guidance.
Midlines of these gaps can also be drawn, and outdated or filled FVGs are removed after a set number of bars or if they are filled by price action.
How to Use It
Indicator Setup:
After adding the indicator to your chart, you will be able to customize settings for your desired timezone and the target 4-hour candle. By default, the script is set to the 5 AM candle, but this can be changed to any hour depending on your analysis needs.
The "CRT Candle Start" and "CRT Candle End" allow you to define the time range when the high, low, and midlines will be plotted and tracked.
Key Levels:
The script draws white lines for the high and low of the selected 4-hour candle, along with a green dashed line for the 50% mid-level. These lines serve as significant support and resistance levels.
During the defined session (e.g., 5 AM to 10 AM), these lines will actively extend and be visible on your chart.
After the session ends, these lines stop extending but remain on the chart for reference.
Fair Value Gaps (FVGs):
The script automatically identifies gaps between candles and plots them on the chart with colored boxes (green for bullish gaps, orange for bearish gaps). These areas can serve as potential reversal or continuation zones.
You can choose whether or not to plot a dashed line at the 50% mark of these FVGs. This midline can be important for targeting partial fills or retracements.
Sweep Alerts and Higher Highs/Lower Lows:
The script monitors price action to detect when the market forms the very first higher high or lower low within the high and low range of the 4-hour candle. When a higher high or lower low is detected, the script plots a yellow label on the chart to mark the event and triggers an alert.
These events can indicate potential sweep patterns or liquidity grabs.
FVG Removal:
The script includes a feature to automatically remove FVGs when they are filled by price action or after they become too old (based on a user-defined number of bars). This helps keep the chart clean for further analysis without clutter from outdated information.
Practical Application
Intraday Traders: The script helps traders focus on specific time windows (like 5 AM to 10 AM) and provides key reference levels (high, low, midline) that can guide trading decisions. Breaks and retests of these levels are common trading strategies.
Market Reversal and Continuation: The detection of Fair Value Gaps and higher highs/lower lows within the defined range can be useful for identifying potential reversal points or continuation signals in the market.
Candle Range Theory (CRT): The script is rooted in CRT, which emphasizes the importance of high and low levels of key candles for future price action. This theory is often used by traders looking to identify support/resistance zones or liquidity grabs in the market.
In summary, CRT overlay 2 is designed for precision trading around key timeframes, focusing on levels from the 4-hour candle and incorporating Fair Value Gaps for potential trade entries or exits. Its customizable inputs make it flexible for various strategies, and its focus on time-based levels is aligned with concepts in intraday trading and market structure analysis.