CustomAlertLibLibrary "CustomAlertLib"
Custom alert formatting library
customAlert(format, message, freq)
Formats and triggers custom alerts with placeholders
Parameters:
format (string) : String containing the alert format template
message (string) : String containing the alert message
freq (simple string) : (optional) Alert frequency as string, defaults to "once_per_bar_close"
Returns: void
Indicators and strategies
BTC Dominance Trend CheckerThis monitors the Bitcoin dominance (BTC.D) in the market. It retrieves the current and previous day's BTC dominance values, determines whether dominance is increasing or decreasing, and visually displays the trend.
Valid Pullbacks and Trend by kpt. GonzoThis script helps identify valid pullbacks. Based on the marked pullbacks, it can draw both internal and external structure trendlines.
A pullback is marked with a small triangle above or below the candle that created the local high or low.
A new local high is marked with a red triangle above the candle if at least one subsequent candle has a low lower than the low of the candle that created the new local high.
A new local low is marked with a green triangle below the candle if at least one subsequent candle has a high higher than the high of the candle that created the new local low.
Based on the marked local highs and lows, the internal structure trendline is created by simply connecting all highs and lows with a line.
The external structure is drawn in a similar way, but only highs and lows that have broken the previous structure are connected. This helps focus on important pivots and better understand the market structure.
Performance Summary and Shading (Offset Version)Modified "Recession and Crisis Shading" Indicator by @haribotagada (Original Link: )
The updated indicator accepts a days offset (positive or negative) to calculate performance between the offset date and the input date.
Potential uses include identifying performance one week after company earnings or an FOMC meeting.
This feature simplifies input by enabling standardized offset dates, while still allowing flexibility to adjust ranges by overriding inputs as needed.
Summary of added features and indicator notes:
Inputs both positive and negative offset.
By default, the script calculates performance from the close of the input date to the close of the date at (input date + offset) for positive offsets, and from the close of (input date - offset) to the close of the input date for negative offsets. For example, with an input date of November 1, 2024, an offset of 7 calculates performance from the close on November 1 to the close on November 8, while an offset of -7 calculates from the close on October 25 to the close on November 1.
Allows user to perform the calculation using the open price on the input date instead of close price
The input format has been modified to allow overrides for the default duration, while retaining the original capabilities of the indicator.
The calculation shows both the average change and the average annualized change. For bar-wise calculations, annualization assumes 252 trading days per year. For date-wise calculations, it assumes 365 days for annualization.
Carries over all previous inputs to retain functionality of the previous script. Changes a few small settings:
Calculates start to end date performance by default instead of peak to trough performance.
Updates visuals of label text to make it easier to read and less transparent.
Changed stat box color scheme to make the text easier to read
Updated default input data to new format of input with offsets
Changed default duration statistic to number of days instead of number of bars with an option to select number of bars.
Potential Features to Add:
Import dataset from CSV files or by plugging into TradingView calendar
Example Input Datasets:
Recessions:
2020-02-01,COVID-19,59
2007-12-01,Subprime mortgages,547
2001-03-01,Dot-com,243
1990-07-01,Oil shock,243
1981-07-01,US unemployment,788
1980-01-01,Volker,182
1973-11-01,OPEC,485
Japan Revolving Door Elections
2006-09-26, Shinzo Abe
2007-09-26, Yasuo Fukuda
2008-09-24, Taro Aso
2009-09-16, Yukio Hatoyama
2010-07-08, Naoto Kan
2011-09-02, Yoshihiko Noda
Hope you find the modified indicator useful and let me know if you would like any features to be added!
Weekly RSI Buy/Sell SignalsWeekly RSI Buy/Sell Signal Indicator
This indicator is designed to help traders identify high-probability buy and sell opportunities on the weekly chart by using the Relative Strength Index (RSI). By utilizing weekly RSI values, this indicator ensures signals align with broader market trends, providing a clearer view of potential price reversals and continuation.
How It Works:
Weekly RSI Calculation: This script calculates the RSI using a 14-period setting, focusing on the weekly timeframe regardless of the user’s current chart view. The weekly RSI is derived using request.security, allowing for consistent signals even on intraday charts.
Signal Conditions:
Buy Signal: A buy signal appears when the RSI crosses above the oversold threshold of 30, suggesting that price may be gaining momentum after a potential bottom.
Sell Signal: A sell signal triggers when the RSI crosses below the overbought threshold of 70, indicating a possible momentum shift downwards.
Visual Cues:
Buy/Sell Markers: Clear green "BUY" and red "SELL" markers are displayed on the chart when buy or sell conditions are met, making it easy to identify entry and exit points.
RSI Line and Thresholds: The weekly RSI value is plotted in real time with color-coded horizontal lines at 30 (oversold) and 70 (overbought), providing a visual reference for key levels.
This indicator is ideal for traders looking for reliable, trend-based signals on higher timeframes and can be a helpful tool for filtering out shorter-term market noise.
Volume StatsDescription:
Volume Stats displays volume data and statistics for every day of the year, and is designed to work on "1D" timeframe. The data is displayed in a table with columns being months of the year, and rows being days of each month. By default, latest data is displayed, but you have an option to switch to data of the previous year as well.
The statistics displayed for each day is:
- volume
- % of total yearly volume
- % of total monthly volume
The statistics displayed for each column (month) is:
- monthly volume
- % of total yearly volume
- sentiment (was there more bullish or bearish volume?)
- min volume (on which day of the month was the min volume)
- max volume (on which day of the month was the max volume)
The cells change their colors depending on whether the volume is bullish or bearish, and what % of total volume the current cell has (either yearly or monthly). The header cells also change their color (based either on sentiment or what % of yearly volume the current month has).
This is the first (and free) version of the indicator, and I'm planning to create a "PRO" version of this indicator in future.
Parameters:
- Timezone
- Cell data -> which data to display in the cells (no data, volume or percentage)
- Highlight min and max volume -> if checked, cells with min and max volume (either monthly or yearly) will be highlighted with a dot or letter (depending on the "Cell data" input)
- Cell stats mode -> which data to use for color and % calculation (All data = yearly, Column = monthly)
- Display data from previous year -> if checked, the data from previous year will be used
- Header color is calculated from -> either sentiment or % of the yearly volume
- Reverse theme -> the table colors are automatically changed based on the "Dark mode" of Tradingview, this checkbox reverses the logic (so that darker colors will be used when "Dark mode" is off, and lighter colors when it's on)
- Hide logo -> hides the cat logo (PLEASE DO NOT HIDE THE CAT)
Conclusion:
Let me know what you think of the indicator. As I said, I'm planning to make a PRO version with more features, for which I already have some ideas, but if you have any suggestions, please let me know.
Nova Volume Indicator (NVI) by SplitzMagicNova Volume Indicator
The Nova Volume Indicator is an innovative trading tool designed to enhance your trading strategy by analysing volume momentum and market dynamics. This indicator empowers traders to make informed decisions by providing clear and actionable buy and sell signals based on real-time data.
How It Works:
The Nova Volume Indicator utilizes advanced algorithms to assess volume changes and price movements. Key features include:
Volume Momentum Calculation: By evaluating the relationship between price changes and volume, the indicator identifies significant momentum shifts, enabling traders to pinpoint entry and exit points with precision.
Trend Direction Filter: The indicator includes a price filter that determines the prevailing market trend based on a moving average. This ensures that trades align with the overall market direction, enhancing the probability of success.
Alert System: With customizable alert thresholds, users receive notifications when momentum crosses defined levels, keeping them informed of potential trading opportunities without the need for constant monitoring.
No Trade Signal: A black background on the histogram indicates that there are no valid trading opportunities at that moment. Use this feature to avoid entering trades during uncertain market conditions.
How to Use the Nova Volume Indicator for Entries:
Identifying the Trend: Before making any trades, check the indicator's trend direction. If the price is above the moving average, focus on bullish signals; if below, look for bearish signals.
Spotting Entries:
Buy Signal: Look for a green histogram bar indicating positive volume momentum. Enter a trade at the close of the candle when the momentum score exceeds your alert threshold and the price is above the moving average.
Sell Signal: A red histogram bar signals negative volume momentum. Enter a short position at the close of the candle when the momentum score falls below the alert threshold and the price is below the moving average.
Setting Stops and Targets: Place your stop-loss below the recent swing low for buy trades or above the recent swing high for sell trades. Aim for a minimum 1:2 risk-to-reward ratio to maximize your profitability.
Customizable Settings:
The Nova Volume Indicator offers several input settings to help you tailor the indicator to your unique trading style:
Signal Period: Adjust the period for calculating the signal line (EMA of momentum score). A shorter period reacts quickly, while a longer one smooths the signals.
Volatility Period: Control the lookback period for assessing market volatility. Shorter periods capture recent fluctuations, and longer periods provide a broader view of price behavior.
Price Filter MA Length: Set the period for the moving average used to filter trades based on price action, helping determine the trend direction.
Alert Threshold: Define the level at which the indicator signals potential buying or selling opportunities. Customize this setting to suit your trading preferences.
The Nova Volume Indicator is a powerful addition to any trader’s toolkit, designed to simplify decision-making and improve trading outcomes. Whether you're a beginner or a seasoned trader, this indicator offers the insights you need to navigate the markets confidently. Explore its customizable features to create a unique trading experience tailored to your needs. Start using the Nova Volume Indicator today and elevate your trading journey!
Any questions you may have or if you have anything to input to improve this then please leave a comment.
Immediate Rebalance ICT [TradingFinder] No Imbalances - MTF Gaps🔵 Introduction
The concept of "Immediate Rebalance" in technical analysis is a powerful and advanced strategy within the ICT (Inner Circle Trader) framework, widely used to identify key market levels.
Unlike the "Fair Value Gap," which leaves a price gap requiring a retracement for a fill, an Immediate Rebalance fills the gap immediately, representing an instant balance that strengthens the prevailing market trend. This structure allows traders to quickly spot critical price zones, capitalizing on strong trend continuations without the need for price retracement.
The "Immediate Rebalance ICT" indicator leverages this concept, providing traders with automated identification of critical supply and demand zones, order blocks, liquidity voids, and key buy-side and sell-side liquidity levels.
Through features like crucial liquidity points and immediate rebalancing areas, this tool enables traders to perform precise real-time market analysis and seize profitable opportunities.
🔵 How to Use
The Immediate Rebalance indicator assists traders in identifying reliable trading signals by detecting and analyzing Immediate Rebalance zones. By focusing on supply and demand areas, the indicator pinpoints optimal entry and exit positions.
Here’s how to use the indicator in both bearish (Supply Immediate Rebalance) and bullish (Demand Immediate Rebalance) structures :
🟣 Bullish Structure (Demand Immediate Rebalance)
In a bullish scenario, the indicator detects a Demand Immediate Rebalance formed by two consecutive bullish candles with overlapping wicks. This structure signifies an immediate demand zone, where price instantly balances within the zone, reducing the likelihood of a revisit and indicating potential upside momentum.
Zone Identification : Look for two consecutive bullish candles with overlapping wicks, forming a demand zone. This structure, due to its rapid balance, usually does not require a revisit and supports further upward movement.
Entry and Exit Levels : If price revisits this zone, percentage markers, particularly 50% and 75%, act as supportive levels, creating ideal entry points for long positions.
Example : In the second image, an example of a Demand Immediate Rebalance is shown, where overlapping bullish candle shadows indicate immediate balance, supporting the continuation of the bullish trend.
🟣 Bearish Structure (Supply Immediate Rebalance)
In a bearish setup, the indicator identifies a Supply Immediate Rebalance when two consecutive bearish candles with overlapping wicks appear. This formation signals an immediate supply zone, suggesting a high probability of trend continuation to the downside, with minimal expectation for price to retrace back to this area.
Zone Identificatio n: Look for two consecutive bearish candles with overlapping shadows. This structure forms a supply area where price is expected to continue its downtrend without revisiting the zone.
Entry and Exit Level s: Should price revisit this zone, percentage-based levels (e.g., 50% and 75%) serve as potential resistance points, optimizing entry for short positions, especially if the downtrend is expected to persist.
Example : The attached chart illustrates a Supply Immediate Rebalance, where overlapping candle shadows define this area, reassuring traders of a continued downward trend with a low likelihood of price returning to this zone.
🔵 Settings
ImmR Filter : This filter allows users to adjust the detection of Immediate Rebalance zones in four modes, from "Very Aggressive" to "Very Defensive," based on zone width. The chosen mode controls the sensitivity of Immediate Rebalance detection, allowing users to fine-tune the indicator to their trading style.
Multi Time Frame : Enabling this option allows users to set the indicator to a specific timeframe (1 minute, 5 minutes, 15 minutes, 30 minutes, 1 hour, 4 hours, daily, weekly, or monthly), broadening the perspective for identifying Immediate Rebalance zones across multiple timeframes.
🔵 Conclusion
The Immediate Rebalance indicator, based on rapid balancing zones within supply and demand areas, serves as a powerful tool for market analysis and improving trade decision-making.
By accurately identifying zones where price achieves instant balance without gaps, the indicator highlights areas likely to support strong trend continuations, exempt from common retracements.
The indicator’s use of percentage levels enables traders to pinpoint optimal entry and exit points more effectively, with levels like 50% and 75% acting as support within demand zones and resistance within supply zones. This empowers traders to ride strong trends without the worry of abrupt reversals.
Overall, the Immediate Rebalance is a reliable tool for both professional and beginner traders seeking precise methods to recognize supply and demand zones, capitalizing on consistent trends.
By choosing appropriate settings and focusing on the zones highlighted by this indicator, traders can enter trades with greater confidence and improve their risk management.
Patrick [TFO]This Patrick indicator was made for the 1 year anniversary of my Spongebob indicator, which was an experiment in using the polyline features of Pine Script to draw complex subjects. This indicator was made with the same methodology, with some helper functions to make things a bit easier on myself. It's sole purpose is to display a picture of Patrick Star on your chart, particularly the "I have $3" meme.
The initial Spongebob indicator included more than 1300 lines of code, as there were several more shapes to account for compared to Patrick, however it was done rather inefficiently. I essentially used an anchor point for each "layer" or shape (eye, nose, mouth, etc.), and drew from that point. This resulted in a ton of trial and error as I had to be very careful about the anchor points for each and every layer, and then draw around that point. In this indicator, however, I gave myself a frame to work with by specifying fixed bounds that you'll see in the code: LEFT, RIGHT, TOP, and BOTTOM.
var y_size = 4
atr = ta.atr(50)
LEFT = bar_index + 10
RIGHT = LEFT + 200
TOP = open + atr * y_size
BOTTOM = open - atr * y_size
You may notice that the top and bottom scale with the atr, or Average True Range to account for varying price fluctuations on different assets.
With these limits established, I could write some simple functions to translate my coordinates, using a range of 0-100 to describe how far the X coordinates should be from left to right, where left is 0 and right is 100; and likewise how far the Y coordinates should be from bottom to top, where bottom is 0 and top is 100.
X(float P) =>
result = LEFT + math.floor((RIGHT - LEFT)*P/100)
Y(float P) =>
result = BOTTOM + (TOP - BOTTOM)*P/100
With these functions, I could then start drawing points much simpler, with respect to the overall frame of the picture. If I wanted a point in the dead center of the frame, I would choose X(50), Y(50) for example.
At this point, the process just became tediously drawing each layer of my reference picture, including but not limited to Patrick's body, arm, mouth, eyes, eyebrows, etc. I've attached the reference picture here (left), without the text enabled.
As tedious as this was to create, it was done much more efficiently than Spongebob, and the ideas used here will make it much easier to draw more complex subjects in the future.
DSL Strategy [DailyPanda]
Overview
The DSL Strategy by DailyPanda is a trading strategy that synergistically combines the idea from indicators to create a more robust and reliable trading tool. By integrating these indicators, the strategy enhances signal accuracy and provides traders with a comprehensive view of market trends and momentum shifts. This combination allows for better entry and exit points, improved risk management, and adaptability to various market conditions.
Combining ideas from indicators adds value by:
Enhancing Signal Confirmation : The strategy requires alignment between trend and momentum before generating trade signals, reducing false entries.
Improving Accuracy : By integrating price action with momentum analysis, the strategy captures more reliable trading opportunities.
Providing Comprehensive Market Insight : The combination offers a better perspective on the market, considering both the direction (trend) and the strength (momentum) of price movements.
How the Components Work Together
1. Trend Identification with DSL Indicator
Dynamic Signal Lines : Calculates upper and lower DSL lines based on a moving average (SMA) and dynamic thresholds derived from recent highs and lows with a specified offset. These lines adapt to market conditions, providing real-time trend insights.
ATR-Based Bands : Adds bands around the DSL lines using the Average True Range (ATR) multiplied by a width factor. These bands account for market volatility and help identify potential stop-loss levels.
Trend Confirmation : The relationship between the price, DSL lines, and bands determines the current trend. For example, if the price consistently stays above the upper DSL line, it indicates a bullish trend.
2. Momentum Analysis
RSI Calculation : Computes the RSI over a specified period to measure the speed and change of price movements.
Zero-Lag EMA (ZLEMA) : Applies a ZLEMA to the RSI to minimize lag and produce a more responsive oscillator.
DSL Application on Oscillator : Implements the DSL concept on the oscillator by calculating dynamic upper and lower levels. This helps identify overbought or oversold conditions more accurately.
Signal Generation : Detects crossovers between the oscillator and its DSL lines. A crossover above the lower DSL line signals potential bullish momentum, while a crossover below the upper DSL line signals potential bearish momentum.
3. Integrated Signal Filtering
Confluence Requirement : A trade signal is generated only when both the DSL indicator and oscillator agree. For instance, a long entry requires both an uptrend confirmation from the DSL indicator and a bullish momentum signal from the oscillator.
Risk Management Integration : The strategy uses the DSL indicator's bands for setting stop-loss levels and calculates take-profit levels based on a user-defined risk-reward ratio. This ensures that every trade has a predefined risk management plan.
--------------------------------------------------------------------------------------------
Originality and Value Added to the Community
Unique Synergy : While both indicators are available individually, this strategy is original in how it combines them to enhance their strengths and mitigate their weaknesses, offering a novel approach not present in existing scripts.
Enhanced Reliability : By requiring confirmation from both trend and momentum indicators, the strategy reduces false signals and increases the likelihood of successful trades.
Versatility : The customizable parameters allow traders to adapt the strategy to different instruments, timeframes, and trading styles, making it a valuable tool for a wide range of trading scenarios.
Educational Contribution : The script demonstrates an effective method of combining indicators for improved trading performance, providing insights that other traders can learn from and apply to their own strategies.
--------------------------------------------------------------------------------------------
How to Use the Strategy
Adding the Strategy to Your Chart
Apply the DSL Strategy to your desired trading instrument and timeframe on TradingView.
--------------------------------------------------------------------------------------------
Configuring Parameters
DSL Indicator Settings :
Length (len) : Adjusts the sensitivity of the DSL lines (default is 34).
Offset : Determines the look-back period for threshold calculations (default is 30).
Bands Width (width) : Changes the distance of the ATR-based bands from the DSL lines (default is 1).
DSL-BELUGA Oscillator Settings :
Beluga Length (len_beluga) : Sets the period for the RSI calculation in the oscillator (default is 10).
DSL Lines Mode (dsl_mode) : Chooses between "Fast" (more responsive) and "Slow" (smoother) modes for the oscillator's DSL lines.
Risk Management :
Risk Reward (risk_reward) : Defines your desired risk-reward ratio for calculating take-profit levels (default is 1.5).
--------------------------------------------------------------------------------------------
Interpreting Signals
Long Entry Conditions :
Trend Confirmation : Price is above the upper DSL line and the upper DSL band (dsl_up1 > dsl_dn).
Price Behavior : The last three candles have both their opens and closes above the upper DSL line.
Momentum Signal : The DSL-BELUGA oscillator crosses above its lower DSL line (up_signal), indicating bullish momentum.
Short Entry Conditions :
Trend Confirmation : Price is below the lower DSL line and the lower DSL band (dsl_dn < dsl_up1).
Price Behavior : The last three candles have both their opens and closes below the lower DSL band.
Momentum Signal : The DSL-BELUGA oscillator crosses below its upper DSL line (dn_signal), indicating bearish momentum.
Exit Conditions :
Stop-Loss : Automatically set at the DSL indicator's band level (upper band for longs, lower band for shorts).
Take-Profit : Calculated based on the risk-reward ratio and the initial risk determined by the stop-loss distance.
Visual Aids
Signal Arrows : Upward green arrows for long entries and downward blue arrows for short entries appear on the chart when conditions are met.
Stop-Loss and Take-Profit Lines : Red and green lines display the calculated stop-loss and take-profit levels for active trades.
Background Highlighting : The chart background subtly changes color to indicate when a signal has been generated.
Backtesting and Optimization
Use TradingView's strategy tester to backtest the strategy over historical data.
Adjust parameters to optimize performance for different instruments or market conditions.
Regularly review backtesting results to ensure the strategy remains effective.
Trendfilter AD2Trendfilter AD2
What It Is: The Trendfilter AD2 is a versatile technical indicator that combines multiple analysis methods, including Bollinger Bands, Larry Williams' Accumulation/Distribution method, and Swing Volatility. It aims to detect market trends early, identify trend changes, and measure market volatility.
What It Does:
The Trendfilter AD2 provides comprehensive market analysis features:
Trend Direction and Changes: The indicator uses the Signal Line in conjunction with Bollinger Bands to give early indications of potential trend changes.
Accumulation/Distribution by Larry Williams: This method helps assess market strength and determine direction.
Swing Volatility: The indicator calculates swing volatility based on short-term highs and lows and uses this to define a volatility range.
Divergence Analysis: The indicator allows for manual detection of divergences to identify potential trend reversals.
How to Use It:
Bollinger Bands and Signal Line:
Bollinger Bands consist of an upper band, a middle line, and a lower band. The middle line represents the moving average of the Signal Line.
The Signal Line is calculated based on swing volatility and price differences. A breakout of the Signal Line through the middle line can provide early signals of trend changes:
Breakout Upwards: Indicates a potential beginning of an uptrend.
Breakout Downwards: Indicates a potential beginning of a downtrend.
Accumulation/Distribution by Larry Williams:
This method evaluates market strength and direction based on price movements. Accumulation occurs when the close is above the previous close, while Distribution occurs when the close is below the previous close.
Swing Volatility:
The indicator calculates swing volatility based on short-term highs and lows. This volatility is used to define the Bollinger Band ranges, helping to identify and interpret volatile market phases.
Divergence Analysis:
Divergences must be manually identified. To do this, compare price movements with the calculated momentum or volatility line:
Bullish Divergence: Occurs when the price makes new lows while the indicator forms higher lows. This may indicate a potential upward trend reversal.
Bearish Divergence: Occurs when the price makes new highs while the indicator forms lower highs. This may indicate a potential downward trend reversal.
This indicator is particularly useful for traders looking for early signals of trend changes, those wanting to analyze market volatility, and for those who need to manually identify divergences.
This indicator also identifies and displays 8 different candlestick patterns, offering traders additional insights into price action.
Disclaimer
This indicator is for educational and informational purposes only and should not be considered financial advice. Past performance of any trading strategy is not indicative of future results. Trading involves significant risk, and you should only trade with funds that you are prepared to lose. Always conduct your own analysis and consult a professional financial advisor if needed.
Trendfilter AD1
The "Trendfilter AD1" indicator is a versatile tool for trend detection that combines volume changes, price ranges, ATR (Average True Range), and moving averages. It also considers the momentum of True High/Low over a specified period (PROFF). The indicator integrates various mathematical calculations to measure market trends and volatility. Key features include the use of Powerbar colors, which indicate significant activity from large market participants.
Trendfilter LW
The Trendfilter LW section of the script calculates trend strength by comparing short-term and long-term simple moving averages (SMA) of closing prices, and by assessing cumulative price differences. The result is displayed as a histogram, with positive values indicating bullish trends and negative values indicating bearish trends. This helps traders visualize the strength and direction of long-term and short-term trends.
Trendfilter SP
The Trendfilter SP section combines volume changes, ATR data, and Z-score calculations to smooth out trend signals and provide a clearer assessment of market trends. It uses these data points to filter out noise and highlight significant trend changes. The combined Z-score, smoothed by an EMA, offers precise trend indications and helps traders identify whether the prevailing market forces are bullish or bearish.
What is it for?
The indicator helps traders identify trends and assess market volatility. By combining volume and price movements, it highlights potential trend reversals and shifts in market strength. The calculation of True High/Low (PROFF) measures market momentum over a set period, providing insights into price dynamics. The indicator also uses color-coded bars to represent different levels of market activity and trend strength, with Powerbar colors specifically highlighting major market moves driven by large traders.
How is it used?
Traders can customize the indicator through settings such as Volume Change Periods, EMA periods, and the True High/Low period (PROFF). The indicator generates signals based on significant volume and price fluctuations, with trends displayed through color-coded bars. The Trendfilter LW section calculates trend strength using SMA and cumulative price differences, while the Trendfilter SP section combines volume and ATR data with Z-score calculations to smooth out trend signals. These elements together provide a clear picture of market direction and strength.
RVI Crossover Strategy[Kopottaja]Overview of the RVI Crossover Strategy
Strategy Name: RVI Crossover Strategy
Purpose: The RVI Crossover Strategy is based on the crossover signals between the Relative Vigor Index (RVI) and its moving average signal line. This strategy aims to identify potential buy and sell signals by evaluating the market’s directional trend.
Key Indicator Features
Relative Vigor Index (RVI): This indicator measures the momentum of price changes over a specified period and helps identify the market’s current trend. The RVI is based on the idea that prices generally close higher than they open in an uptrend (and lower in a downtrend). The RVI helps provide an indication of the strength and direction of a trend.
Signal Line: A moving average (e.g., SMA) is applied to the RVI values, creating a "signal line." When the RVI crosses above or below this line, it signals a potential trading opportunity.
Calculations and Settings
Calculating the RVI: The RVI is calculated by comparing the difference between the close and open prices to the difference between high and low prices. This provides information about the direction and momentum of price movement:
RVI= Sum(SWMA(high−low))Sum(SWMA(close−open))
where SWMA is a smoothed weighted moving average over a specified period.
Signal Line Calculation: The RVI value is smoothed by applying a simple moving average (SMA) to create the signal line. This signal line helps filter crossover signals for improved accuracy.
Buy and Sell Conditions: Buy and sell conditions are identified based on crossovers between the RVI and its signal line.
Buy Signal: A buy condition is triggered when the RVI crosses above the signal line, provided that the "Bearish" condition (trend confirmation) is met.
Sell Signal: A sell condition occurs when the RVI crosses below the signal line, alongside the "Bullish" trend confirmation.
Volume-Weighted Moving Averages (VWMA): VWMA indicators are used to assess price-volume relationships over different timeframes:
Fast VWMA: A short-period volume-weighted moving average.
Slow VWMA: A longer-period volume-weighted moving average. These values are used to strengthen the buy and sell conditions by confirming trend directions (Bullish or Bearish).
Disclaimer: This is an educational and informational tool. Past performance is not indicative of future results. Always backtest before using in live markets
Standard and Camarilla pivotsHi guys, I would like too introduce to all of you my script. As the name already tell you what this script is all about. It's about pivot points.
You may ask, Tradingview already have a script for pivot points, why would I need another script?
here is the answer: This script allow you to add more than one type of pivot, sounds good right?
But there's more: You can see not just one timeframe pivots, you can see many timeframe pivots, nice huh?
let dive into it to know a bit more.
In this script you can see daily pivots include Standard pivots as R1, R2, R3 and Camarilla pivots as cR1, cR2, cR3, and I you different color for different pivots, so you don't confuse between those two.
You can see weekly pivots the same as daily pivots only has letter "w" in front of it, for examples: "wR1, wR2, wcR1, wcR2" ,nice right?
What's about month level: yes, you can see monthly pivots too, and it start with "m".
Along with pivots points above, you also can see daily open, previous day close, previous high,.., for instances: daily open as "O", previous day open as "PDO",
You are able to see previous week level, previous month levels.
have fun.
I dont wanna lock this script because open-source script help me learn how to code pine script, so that's why I keep it open. Thank to all the coders out there that shared everything they have for us to learn.
Momentum Entry & Trend Strategy M5Momentum Entry & Trend Strategy M5
Description:
The Momentum Entry & Trend Strategy M5 is an indicator script designed to assist traders in determining optimal buy and sell moments based on momentum and trend analysis. This script operates using two different momentum levels—Momentum Length for Entry (5) and Momentum Length for Trend (10)—along with the HMA (Hull Moving Average) indicator for trend confirmation.
Key Features:
Momentum Entry: Calculates momentum using the difference between the current price and the price from previous periods to determine the strength and direction of price movements.
Trend Identification: Utilizes two momentum levels (5 and 10) to identify bullish and bearish trend conditions.
HMA for Trend Confirmation: The HMA indicator is used to provide trend confirmation signals. When HMA indicates bullish, a buy signal is displayed; conversely, a bearish HMA results in a sell signal.
Signal Display: Displays buy (BUY) and sell (SELL) signals on the chart when the conditions for market entry are met, providing clear visualization for traders.
Background Color: Offers a green background for uptrends and a red background for downtrends, allowing traders to easily identify the overall market condition.
ATR (Average True Range): Calculates and plots a smoothed ATR to help traders measure market volatility.
Settings:
Momentum Length for Entry: 5 (to determine entry signals)
Momentum Length for Trend: 10 (to determine trend conditions)
HMA Length: 300 (period length for HMA to confirm trends)
ATR Length: 14 (period length for ATR to measure volatility)
Benefits:
This script is designed to provide visual and data-driven guidance for better trading decision-making. By combining momentum and trend analysis, traders can enhance the accuracy of their signals and reduce the risk of errors when identifying entry and exit points in the market.
Note:
This script is intended for use on the M5 time frame but can be adjusted for other time frames as needed. It is always recommended to conduct thorough testing before applying trading strategies on a live account.
Multi TimeFrame VolumeThis script, "Multi TimeFrame Volume," is a TradingView Pine Script indicator that displays volume data across five user-selected timeframes in a table. Each volume is formatted in thousands (K) or millions (M) and color-coded based on the percentage change from the previous value (green for increase, red for decrease, gray if unchanged). The table's position and header colors can be customized. This helps traders quickly see volume trends at different intervals on a single chart
Presidential Election Day Projection
This indicator analyzes historical price movements during US Presidential elections from 1972-2020. It provides projected price levels based on normalized percentage moves from the daily open, helping traders understand potential price action on the election day.
Features
Analyzes election day candles from 1972-2020
Filters by Democratic or Republican victories
Shows both average and median projections
Projects high, low, and close levels
Comprehensive statistics table with party-specific analysis
The indicator works exclusively on the daily timeframe and projects price levels based on the current day's open price. It normalizes historical moves as percentages to maintain relevance across different price ranges and time periods.
Key Components
Average projections
Median projections
Election Day High, Low and Close
All data presented in the table, lines filtered according to user input.
Notes
Works only on daily timeframe
Updates projections based on each day's opening price
Historical data covers 13 presidential elections
All projections are based on normalized percentage moves
GOLDEN BULLETCandlestick Pattern Finder
Bullish Hammer
Bearish Hammer
Bullish Engulfing
Bearish Engulfing
Bullish Harami
Bearish Harami
[ABCOL] Hora PlotterHora Plotter. Input sunrise time & sunset time form Panchang. Select the corresponding first planet for the starting period from Panchang.
Multi-Currency Economic IndicatorCreating a Multi-Currency Economic Indicator that incorporates data for USD, JPY, AUD, GBP, CHF, NZD, and CAD will provide valuable insights into the economic health of these currencies. By plotting key economic indicators such as interest rates and allowing for customization, users can effectively analyze and make informed decisions.
If you have any further modifications or specific features you would like to add, feel free to let me know!
Pullback Scalp Trade V2Pullback Scalp Trading Indicator
This indicator combines multiple technical analysis tools to identify potential pullback trading opportunities in trending markets. It uses a dual moving average system along with RSI for confirmation, providing a comprehensive approach to trend-following and momentum trading.
Key Features:
1. Trend Identification:
- Uses 50 and 200 period moving averages to define the overall trend
- Visual trend zone highlighting for clear market direction
- Customizable MA periods for different timeframes
2. Signal Generation System:
- Combines RSI crossovers with trend direction
- Buy signals occur when:
* Price is above 200 MA (uptrend)
* RSI crosses above its SMA
* RSI is below the lower threshold (default 50)
- Sell signals occur when:
* Price is below 200 MA (downtrend)
* RSI crosses below its SMA
* RSI is above the upper threshold (default 50)
3. Customizable Parameters:
- Short and Long MA periods
- MA types (SMA, EMA, VWMA)
- RSI length and RSI-SMA length
- RSI signal thresholds
- Trend MA periods
Usage Guidelines:
- Best used on higher timeframes (1H and above) for trend trading
- Wait for price to respect the trend zone before taking trades
- Use additional confirmation from price action or other indicators
- Adjust RSI levels based on market volatility
Limitations:
- Like all indicators, this tool may generate false signals in choppy markets
- Should not be used as a sole decision-making tool
- Past performance does not guarantee future results
----------
Türkçe Açıklama:
Bu indikatör, trendli piyasalarda potansiyel geri çekilme fırsatlarını belirlemek için birden fazla teknik analiz aracını birleştirir. Trend takibi ve momentum ticareti için kapsamlı bir yaklaşım sunan ikili hareketli ortalama sistemi ile RSI'yı bir arada kullanır.
Temel Özellikler:
1. Trend Belirleme:
- Genel trendi tanımlamak için 50 ve 200 periyotlu hareketli ortalamalar
- Görsel trend bölgesi vurgulaması
- Farklı zaman dilimleri için özelleştirilebilir MA periyotları
2. Sinyal Üretim Sistemi:
- RSI kesişimlerini trend yönü ile birleştirir
- Alış sinyalleri şu durumlarda oluşur:
* Fiyat 200 MA'nın üzerinde (yükseliş trendi)
* RSI, SMA'sını yukarı keser
* RSI alt eşiğin altında (varsayılan 50)
- Satış sinyalleri şu durumlarda oluşur:
* Fiyat 200 MA'nın altında (düşüş trendi)
* RSI, SMA'sını aşağı keser
* RSI üst eşiğin üzerinde (varsayılan 50)
3. Özelleştirilebilir Parametreler:
- Kısa ve Uzun MA periyotları
- MA tipleri (SMA, EMA, VWMA)
- RSI uzunluğu ve RSI-SMA uzunluğu
- RSI sinyal seviyeleri
- Trend MA periyotları
Kullanım Önerileri:
- Trend ticareti için yüksek zaman dilimlerinde (1S ve üzeri) kullanılması önerilir
- İşlem almadan önce fiyatın trend bölgesine saygı göstermesini bekleyin
- Fiyat hareketi veya diğer indikatörlerden ek teyit alın
- RSI seviyelerini piyasa volatilitesine göre ayarlayın
Sınırlamalar:
- Tüm indikatörler gibi, dalgalı piyasalarda yanlış sinyaller üretebilir
- Tek başına karar verme aracı olarak kullanılmamalıdır
- Geçmiş performans, gelecekteki sonuçların garantisi değildir
EMA Ribbon + ADX MomentumHere's a description for your TradingView indicator publication:
The EMA Ribbon + ADX Momentum indicator combines exponential moving averages (EMA) with the Average Directional Index (ADX) to identify strong trends and potential trading opportunities. This powerful tool offers:
🎯 Key Features:
EMA Ribbon (10, 21, 34, 55) for trend direction
ADX integration for trend strength confirmation
Clear visual signals with color-coded backgrounds
Real-time trend status display
Strength metrics with exact percentage values
📊 How It Works:
EMA Ribbon: Four EMAs form a ribbon pattern that shows trend direction through their stacking order
ADX Integration: Confirms trend strength when above the threshold (default 25)
Visual Signals:
Green background: Strong bullish trend
Red background: Strong bearish trend
Gray background: Neutral or weak trend
📈 Trading Signals:
STRONG BULL: EMAs properly stacked bullish + high ADX + DI+ > DI-
STRONG BEAR: EMAs properly stacked bearish + high ADX + DI- > DI+
BULL/BEAR TREND: Shows regular trend conditions without strength confirmation
NEUTRAL: No clear trend structure
🔧 Customizable Parameters:
ADX Length: Adjust trend calculation period
ADX Threshold: Modify strength confirmation level
ADX Panel Toggle: Show/hide the ADX indicator panel
💡 Best Uses:
Trend following strategies
Entry/exit timing
Trade confirmation
Market structure analysis
Risk management tool
This indicator helps traders identify not just trend direction, but also trend strength, making it particularly useful for both position entry timing and risk management. The clear visual signals and real-time metrics make it suitable for traders of all experience levels.
Note: As with all technical indicators, best results are achieved when used in conjunction with other forms of analysis and proper risk management.
EMA LavtiThis TradingView Pine Script indicator displays a smoothed Exponential Moving Average (EMA) line along with a single arrow to indicate the last confirmed crossing event. The indicator highlights either a "Buy" or "Sell" signal based on price action relative to the smoothed EMA.
How It Works:
The script tracks the index and direction (up or down) of the last crossover event.
When no new crossing event occurs, the script resets to avoid plotting multiple arrows.
The smoothed EMA line is plotted on the chart to give context for the crossover signals.