MACD Divergence all in oneMACD Divergence all in one
It can also be named as MACD dual divergence detector pro !
A sophisticated yet user-friendly tool designed to identify both bullish and bearish divergences using the MACD (Moving Average Convergence Divergence) indicator. This advanced script helps traders spot potential trend reversals by detecting hidden momentum shifts in the market, offering a comprehensive solution for divergence trading.
🎯 Key Features:
• Automatic detection of bullish and bearish divergences
• Clear visual signals with color-coded lines (Green for bullish, Red for bearish)
• Smart filtering system to eliminate false signals
• Customizable parameters to match your trading style
• Clean, uncluttered chart presentation
• Optimized performance for real-time analysis
• Easy-to-read labels showing divergence types
• Built-in signal spacing to avoid clustering
📊 How it works:
The indicator uses an advanced algorithm to analyze the relationship between price action and MACD momentum to identify:
Bullish Divergences:
- Price makes higher lows while MACD shows lower lows
- Signals potential trend reversal from bearish to bullish
- Marked with green lines and upward labels
Bearish Divergences:
- Price makes lower highs while MACD shows higher highs
- Signals potential trend reversal from bullish to bearish
- Marked with red lines and downward labels
⚙️ Customizable Settings:
1. MACD Parameters:
- Fast Length (default: 12)
- Slow Length (default: 26)
- Signal Length (default: 9)
2. Divergence Detection:
- Left/Right Pivot Bars
- Divergence Lookback Period
- Minimum/Maximum Divergence Length
- Divergence Strength Filter
3. Visual Settings:
- Clear color coding for easy identification
- Adjustable line thickness
- Customizable label size
💡 Best Practices:
- Most effective on higher timeframes (1H, 4H, Daily)
- Combine with support/resistance levels
- Use with trend lines and price action
- Consider volume confirmation
- Best results during trending markets
- Use appropriate stop-loss levels
🎓 Trading Tips:
1. Look for bullish divergences near support levels
2. Watch for bearish divergences near resistance zones
3. Confirm signals with other technical indicators
4. Consider market context and overall trend
5. Use proper position sizing and risk management
⚠️ Important Notes:
- Past performance doesn't guarantee future results
- Always use proper risk management
- Test settings on historical data first
- Different timeframes may require parameter adjustments
- Not all divergences lead to reversals
Created by: Anmol-max-star
Last Updated: 2025-02-25 16:15:08 UTC
📌 Regular updates and improvements planned!
Disclaimer:
This indicator is for informational purposes only. Always conduct your own analysis and use proper risk management techniques. Trading involves risk of loss, and past performance does not guarantee future results.
🤝 Support:
Feel free to leave comments for:
- Suggestions
- Improvements
- Feature requests
- Bug reports
- General feedback
Your feedback helps make this tool better for everyone!
Happy Trading and May the Trends Be With You! 📈
Educational
Stock Highs TrackerThis indicator tracks key stock price levels including the all-time high (ATH), 52-week high, and current price.
It calculates the percentage difference of the current price from both the ATH and 52-week high.
The data is displayed in a table at the top-right corner of the chart, allowing traders to quickly assess the stock’s performance relative to its historical highs.
This is useful for identifying stocks trading near their highs or experiencing significant pullbacks.
Islamic Tijarat -Dual Relative StrengthIslamic Tijarat - Dual Relative Strength
Islamic Tijarat - Dual Relative Strength is a powerful indicator designed to compare the relative performance of two securities, such as a stock against its sector index or Nifty 50 (default benchmark) . This helps traders assess whether a stock is outperforming (> 0) or underperforming (< 0) relative to the chosen benchmark.
Key Features:
✔ Relative Strength Comparison – Measure the performance of a stock relative to Nifty 50, industry index, or sector index.
✔ Multiple Timeframes – Works best on Daily Timeframe (TF) but can also be applied to Weekly, Monthly, or Intraday charts based on the preferred calculation period.
✔ Customizable Calculation Period – Choose the desired number of hours when applying it to smaller timeframes.
✔ Box Table Display – Provides a clear performance comparison against both Nifty 50 and the selected sector index .
✔ Toggle Color Option on Crossovers – Visually highlights significant crossovers in relative strength for better readability.
✔ Enhanced Label Display – Fixed label visibility issue when plot options were disabled.
✔ Superimposed Price Action on RS Line – In addition to standard Relative Strength (RS) behavior, users can now overlay price action movements onto the RS line for a more holistic analysis.
✔ Customizable Moving Averages for RS – Added SMA/EMA (length: 9) to smoothen the RS calculation, helping traders filter noise and identify trends more effectively.
Usage:
✅ Compare stock performance against Nifty 50 , industry index, sector index, or any other security within the same sector.
✅ Identify strength and weakness trends over different timeframes.
✅ Use crossovers, trend direction, and price action integration for better decision-making.
This brings enhanced functionality, improved visualization, and bug fixes, making it a must-have tool for traders focusing on relative strength analysis.
LineReg Candles with Hma filterOverview
Purpose:
The indicator creates “LinReg Candles” by recalculating OHLC values using linear regression (to smooth out noise) and overlays additional features such as a customizable signal line and an HMA (Hull Moving Average) filter for trend detection. It also plots buy/sell signals and supports alerts.
Customization:
Users can adjust settings for signal smoothing (choosing SMA, EMA, or WMA), HMA periods (preset for Scalping/Intraday or custom values), linear regression length, colors, display options, and alert messages. Inputs are organized into groups for clarity.
Input Definitions
Signal Settings:
signal_length and smoothingType define the period and method used to smooth the close price, creating a signal line.
HMA Filter Settings:
A dropdown (t_type) lets you choose between Scalping, Intraday, or Custom. Based on this, three HMA periods (hma1, hma2, hma3) are set either to fixed values or user-defined custom inputs.
LinReg Settings:
Users can toggle linear regression for OHLC values (lin_reg) and set its period (linreg_length) to reduce price noise.
Color and Display Settings:
These control the colors for buy/sell candles, default bullish/bearish candles, markers, and background highlighting. Display toggles decide whether to show the background, signal line, HMA filter, and the recalculated candles.
Alert and Plot Customization:
Alerts can be enabled with custom messages. Additionally, line width and transparency for the plotted signal and HMA lines are adjustable.
Function Definitions
calcOHLC Function:
Computes OHLC values using linear regression if enabled. Otherwise, it returns the raw price values. This helps in reducing noise.
calcSignalLine Function:
Applies the chosen moving average (SMA, EMA, or WMA) to smooth the recalculated close values and generate a signal line.
getBaseCandleColor Function:
Determines the candle’s base color. It assigns buy/sell colors if specific crossover conditions are met; if not, it defaults to bullish (green) or bearish (red) based on the open/close relationship.
HMA Filter Calculations
HMA Computation:
The script calculates three HMAs (ma1, ma2, ma3) for different periods.
Trend Determination:
It sets a bullish condition (bcn) when ma3 is lower than both ma1 and ma2 with ma1 above ma2. Conversely, a bearish condition (scn) is set when ma3 is higher and the order of the HMAs indicates a downtrend.
Color Coding:
The HMA filter line color changes dynamically (green for bullish, red for bearish) based on these conditions.
Main Calculations
LinReg Candles:
Using the calcOHLC function, the script calculates the new open, high, low, and close values that reduce price noise.
Signal Line:
The signal line is computed on the basis of the smoothed close values using the selected moving average.
Buy/Sell Conditions:
Initial conditions are determined by checking if the recalculated close price crosses over (buy) or under (sell) the signal line.
The base candle color is then adjusted: if the HMA filter confirms the trend (bullish for buy or bearish for sell), the respective buy/sell colors are enforced.
A change in candle color compared to the previous bar triggers a buy or sell signal.
Plotting and Alerts
Visual Elements:
Background: Highlights the chart with a custom color when buy or sell conditions are met.
HMA Filter Line: Plotted (if enabled) with the dynamic color determined earlier.
Candles: The recalculated LinReg candles are drawn with colors based on the combined conditions.
Signal Line: Plotted over the candles with adjustable transparency and width.
Markers: Buy and sell markers are added to visually indicate signal points on the chart.
Alerts:
Alert conditions are set to trigger with predefined messages when a buy or sell signal is generated.
Modularity & Flexibility:
The code is structured with modular functions and clear grouping of inputs, making it highly customizable and user-friendly for open-source TradingView users.
Important how to track the real price on chart:
Locate the Chart Type Menu:
At the top of your TradingView chart, you’ll see a button showing the current chart type (likely a candlestick icon).
Select “Line” from the Dropdown:
Click that button and choose “Line” in the dropdown menu. This changes the main chart to a line chart of the real price.
Screenshots:
Astro R4.0Regarding the code that has a significant impact on Pine Community and many feel helped by it, this is the code that I ported from VBA to PineScript which comes from simontelescopium owner of astroexcel dot wordpress dot com and "astrofnc" by Keith Burnett, previously I used it personally but I forgot to give a citation to those who are entitled to them both so that when I shared it for community use and it has been shared by brother @BarefootJoey with the additions made by him personally, there was no citation for them.
Apologies for my negligence because I am only human.
Hopefully with this script it can help the community to see the potential for implementation in the trading world as a significant variable.
Finally, I publish this script as a reference to find out astronomical charts presented in table form to make it easier to visualize and debug as long as the input.timestamp() allow it.
Future updates for optimization using library of brother @BarefootJoey
Thank you.
candle stats v1Objective:
Capture sequential/subsequent candle's relative properties
Average observations to represent the landscape of the marketplace
Parameters:
"range" : high-low
"overlap" : range - range
"wick_body_ratio" : (range - abs(open-close))/range
"up_count" for "period" : number of occurrences where consecutive candles have low>low . (note: the values are not cumulative over period)
*"down_count" for "period" : number of occurrences where consecutive candles have high<high . (note: the values are not cumulative over period)
** the last counter includes the value for "period" and all above
Basic inferences:
mean_range could be used to derive at an appropriate hard-stoploss
high wick to body ratio indicates healthy buzzing market, ie, each candle has a high frequency standing wave within it. a lower value indicates that the timeframe is ordered and highly directional
low overlap indicates trend definition/resolution
the counters show how likely or unlikely a run up or run down of a particular length is
a combination of counter and mean_range could be used to derive at an appropriate take profit
Use case:
to determine the appropriate timeframe to develop or apply a strategy
Future enhancements:
more complex relationships such as higher highs and lower lows
frequency of oscillations
Combined Sequences (Tribonacci, Tetranacci, Lucas)🎯 Combined Sequences (Tribonacci, Tetranacci, Lucas) Indicator 🎯
Unlock the power of advanced mathematical sequences in your trading strategy with the **Combined Sequences Indicator**! This tool integrates **Tribonacci**, **Tetranacci**, and **Lucas** levels to help you identify key support and resistance zones with precision. Whether you're a day trader, swing trader, or long-term investor, this indicator provides a unique perspective on price action by combining multiple sequence-based levels.
---
### **Key Features:**
1. **Multiple Sequence Levels**:
- **Tribonacci Levels**: Based on the Tribonacci sequence, these levels are ideal for identifying dynamic support and resistance.
- **Tetranacci Levels**: A more advanced sequence that adds depth to your analysis.
- **Lucas Levels**: Derived from the Lucas sequence, these levels offer additional insights into market structure.
2. **Customizable Levels**:
- Choose the number of levels to display (up to 20).
- Toggle between **positive** and **negative** levels for each sequence.
3. **Flexible Price Source**:
- Select your preferred price type: **Open**, **High**, **Low**, **Close**, **HL2**, **HLC3**, or **HLCC4**.
4. **Customizable Line Styles**:
- Choose from **Solid**, **Dashed**, or **Dotted** lines.
- Adjust line width and extension type (**Left**, **Right**, or **Both**).
5. **Dynamic Labels**:
- Add labels to levels for better readability.
- Customize label position (**Left**, **Center**, or **Right**) and text size (**Normal**, **Small**, or **Tiny**).
6. **Timeframe Flexibility**:
- Works on any timeframe, from **1-minute** charts to **monthly** charts.
---
### **How It Works:**
- The indicator calculates **Tribonacci**, **Tetranacci**, and **Lucas** levels based on the selected price source and timeframe.
- These levels are plotted on the chart, providing clear visual cues for potential support and resistance zones.
- You can toggle each sequence on or off, allowing you to focus on the levels that matter most to your strategy.
---
### **Why Use This Indicator?**
- **Enhanced Market Analysis**: Combine multiple mathematical sequences to gain a deeper understanding of price action.
- **Customizable**: Tailor the indicator to your trading style with flexible settings.
- **User-Friendly**: Easy-to-use interface with clear visual outputs.
- **Versatile**: Suitable for all trading styles and instruments (stocks, forex, crypto, commodities, etc.).
---
### **How to Use:**
1. Add the indicator to your chart.
2. Configure the settings in the **Inputs** tab:
- Choose which sequences to display (Tribonacci, Tetranacci, Lucas).
- Adjust the number of levels, line styles, and label settings.
3. Use the levels to identify potential entry, exit, and stop-loss points.
---
### **Perfect For:**
- Traders looking for advanced support and resistance levels.
- Those who want to incorporate mathematical sequences into their analysis.
- Anyone seeking a customizable and versatile trading tool.
---
**🚀 Take Your Trading to the Next Level with Combined Sequences! 🚀**
---
### **Disclaimer**:
This indicator is a tool to assist in your trading decisions. It does not guarantee profits or predict market movements. Always use proper risk management and combine this tool with other analysis techniques.
---
**📈 Ready to Elevate Your Trading? Add the Combined Sequences Indicator to Your Chart Today! 📉**
ICT SB Time (Lee B)A minimal and clean indicator that simply plots the ICT Silver Bullet time windows for you on the chart with vertical lines.
It also has the option to show other important times, like 00:00, 8:30, and 9:30. Toggles in settings let you change line color, turn any of them off temporarily, and can limit their visibility to only the lower timeframes for less clutter.
I hope you find this indicator useful... and happy trading!
Lee B
Sector/Industry Relative StrengthOverview
The Sector/Industry Relative Strength (RS) Indicator is a powerful tool designed to help traders and investors analyze the performance of sectors and industries relative to the broader market (SPY). It provides real-time insights into sector and industry strength, helping you identify leading and lagging areas of the market.
Key Features
Sector and Industry Analysis:
Automatically detects the sector and industry of the current symbol.
Displays the corresponding sector and industry ETF.
Relative Strength (STS) Calculation:
Calculates the Sector/Industry Trend Strength (STS) by comparing the sector or industry ETF to SPY over the past 20 days.
STS is expressed as a percentile (0-100), indicating how strong the sector/industry ETF has been relative to SPY over the past 20 days.
Example: An STS of 70 means that during the past 20 days, the ETF’s relative strength against SPY was stronger than 70% of those days.
Sector Rank:
Ranks the current sector ETF against a predefined list of major sector ETFs.
Highlights whether the sector is outperforming or underperforming SPY (green if outperforming, red if underperforming).
Customizable Display:
Choose which elements to display (e.g., sector, industry, ETFs, STS, sector rank).
Customize table position, size, text alignment, and colors.
Real-Time Performance:
Tracks daily price changes for sector and industry ETFs.
Displays percentage change from open to close.
How to Use
Add the Indicator:
Apply the indicator to any stock or ETF chart.
The script will automatically detect the sector and industry of the selected symbol.
Interpret the Data:
Sector/Industry: Displays the current sector and industry.
ETF: Shows the corresponding sector and industry ETF.
STS (Sector/Industry Trend Strength): A percentile score (0-100) indicating the relative strength of the sector/industry ETF compared to SPY over the past 20 days.
Sector Rank: Ranks the sector ETF against other major sectors (e.g., "3/12" means the sector is ranked 3rd out of 12).
Customize the Display:
Use the input settings to:
Show/hide specific elements (e.g., sector, industry, ETFs, STS, sector rank).
Adjust the table position, size, and text alignment.
Change colors for positive/negative changes.
Make Informed Decisions:
Use the STS score and sector rank to identify potential trading opportunities.
Focus on sectors and industries with high STS scores and strong rankings (green).
Input Parameters
Table Settings:
Table Position: Choose where to display the table (Top Left, Top Right, Bottom Left, Bottom Right).
Table Size: Adjust the size of the table (Tiny, Small, Normal, Large).
Text Color: Customize the text color.
Background Color: Set the table background color.
Display Options:
Show ETFs: Toggle the display of sector and industry ETFs.
Show STS: Toggle the display of the Sector/Industry Trend Strength (STS) score.
Show Sector/Industry: Toggle the display of sector and industry information.
Show Sector Rank: Toggle the display of the sector rank.
Parameters:
Sector Rank Time Length: Set the number of days used for calculating the sector rank (default: 20).
Example Use Cases
Sector Rotation:
Identify sectors with high STS scores and strong rankings (green) to allocate capital.
Avoid sectors with low STS scores and weak rankings (red).
Industry Analysis:
Compare the STS scores of different industries within the same sector.
Use the STS score to gauge relative strength and identify potential opportunities.
Market Timing:
Use the STS score and sector rank to time entries and exits in sector-specific ETFs.
Combine with other technical indicators for confirmation.
CHoCH Detector – A Clean & Effective Market Structure Tool🔍 Overview:
This CHoCH Detector is designed for traders who focus on market structure shifts. CHoCH (Change of Character) is a key early sign of potential trend reversals. This script helps identify CHoCH based on swing structure, candle strength, and higher timeframe confirmation for better reliability.
📌 Key Features:
✅ CHoCH Detection: Identifies early trend shifts (Uptrend & Downtrend).
✅ Custom Swing Lookback: Adjust how far back the script looks for swing highs/lows.
✅ Retracement Strength Check: Ensures CHoCH has enough momentum to be valid.
✅ Retest Condition: Allows price to slightly deviate from the break level.
✅ Higher Timeframe Confirmation (Optional): Helps filter out weak CHoCH signals.
✅ Clean & Simple Visualization: Labels solid green CHoCH for uptrend & solid red CHoCH for downtrend.
📌 How the CHoCH Detection Works
1️⃣ Swing Highs & Lows:
The script checks for the highest high and lowest low within a user-defined Swing Lookback period.
If price breaks the previous swing high/low, it signals a potential CHoCH.
2️⃣ CHoCH Confirmation with Candle Strength:
To avoid false signals, CHoCH must have a strong enough price move.
It calculates the average body size over a Retracement Lookback period and multiplies it by 1.5 to ensure significant price movement.
3️⃣ Retest Condition:
A valid CHoCH allows slight price deviation after the structure shift (acts as a retest zone).
4️⃣ Higher Timeframe Confirmation (Optional):
If enabled, the script compares current CHoCH with a higher timeframe swing structure to reduce false signals.
📌 Script Inputs & Adjustments
Swing Lookback (Default: 10): Defines how many candles to check for previous swing highs/lows.
Retracement Lookback (Default: 5): Defines the number of candles for calculating the average body size (used to validate CHoCH strength).
Higher Timeframe Confirmation (Default: ON): Helps filter false signals by checking a larger market structure.
📌 Why Use This CHoCH Detector?
✅ Lightweight & Simple – No clutter, just clean CHoCH signals.
✅ Customizable Lookback Periods – Adjust sensitivity for different timeframes.
✅ Stronger CHoCH Validation – Avoids weak signals using retracement strength check.
✅ Works with Any Strategy – Can be combined with Fibonacci, FRVP, Trend Analysis, etc.
🚀 This script is ideal for traders who want an efficient and reliable CHoCH detection tool!
ICT Liquidity Levels [TakingProphets]Overview
This indicator is designed to dynamically identify and display key liquidity levels—areas where market participants are likely to engage. By analyzing price swing points, it highlights potential support and resistance zones that can signal reversals or breakouts. The script distinguishes between buyside and sellside liquidity levels, presenting them with customizable visual cues and labels for immediate clarity.
How It Works
Swing Point Detection:
The indicator uses a pivot-based method (with a configurable “Base Swing Strength”) to detect swing highs and lows. Each detected swing is evaluated for its “swing size” (percentage price movement), and if it exceeds a user-defined threshold, the level is classified as major.
Level Creation and Classification:
Overview
Built on core ICT principles, this indicator identifies key liquidity zones—areas where market imbalances can lead to liquidity sweeps. By dynamically analyzing swing points, it offers traders a real-time view of where liquidity is clustering, allowing for a deeper understanding of market structure. 🚀
How It Works
Swing Point Detection 🔍
• Uses a pivot-based method with a configurable “Base Swing Strength” to detect significant price swings.
• Calculates the swing size (percentage change) to flag zones that exceed the “Major Level Threshold” as major liquidity zones.
Level Creation & Classification 🛠️
• Buyside Liquidity Levels (BSL):
Identified from swing highs, marking zones where buying liquidity clusters.
• Sellside Liquidity Levels (SSL):
Identified from swing lows, highlighting zones of concentrated selling liquidity.
• Each zone is stored with its price, bar index, and classification (major or standard) before being drawn as a horizontal line on the chart.
Dynamic Level Management 🔄
• Extension: Liquidity lines automatically extend from their detection point to the current bar.
• Consolidation: When levels are close in price, the script merges them—updating labels (e.g., “REQH” or “REQL”) to denote unified liquidity zones.
• Traded-Through Detection: Adjusts or removes levels if the market moves beyond them, based on your settings.
• Age-Based Cleanup: Inactive zones are automatically removed after a set number of bars to maintain clarity.
Customization Options ⚙️
Visual Settings:
• Choose from solid, dashed, or dotted line styles and adjust line width.
• Option to display labels with customizable placement (left or right) for optimal clarity.
Color & Opacity:
• Set distinct colors for buyside and sellside liquidity zones.
• Configure opacity for zones that have been traded through, keeping them visible yet de-emphasized.
Detection & Cleanup Parameters:
• Adjust “Base Swing Strength” to control pivot detection sensitivity.
• Set the “Major Level Threshold %” to filter for significant liquidity zones.
• Decide whether to retain or remove zones once price moves through them.
• Define how many bars should pass before inactive zones are automatically deleted.
How to Use 🚀
Apply the Indicator:
Simply add the script to your chart—it automatically detects and marks key liquidity zones based on recent price action.
Adjust Inputs:
Fine-tune parameters like swing strength, threshold percentages, and visual settings to match the asset’s characteristics and your trading strategy.
Interpret the Visuals:
• Major Liquidity Zones:
Highlighted with thicker lines and distinct labels (e.g., “Major BSL/SSL”), indicating areas of heightened liquidity concentration.
• Consolidated Zones:
Merged labels (e.g., “REQH/REQL”) denote unified liquidity zones where clustering is significant.
• Traded-Through Zones:
Changes in opacity signal that the market has moved beyond a previously identified liquidity zone.
Underlying ICT Concepts 💡
Liquidity Pools & Sweeps:
Focused on identifying where liquidity is concentrated, the indicator aligns with ICT methodologies that highlight zones crucial for liquidity sweeps.
Pivot Analysis for Liquidity:
Enhances traditional pivot detection to spotlight liquidity clusters, providing a deeper insight into market structure.
Real-Time Adaptation:
With continuous updates and built-in cleanup, the indicator ensures that liquidity zones accurately reflect current market conditions.
Monthly Buy IndicatorIt shows us the the total balance when buying monthly, ploting the total invested amount and total current balance along the time.
Opening the Data Window, it displays the profit (%) and the number of trades.
The "Allow Fractional Purchase" flag can be used to check the the performance of the ticker, disregarding how much the monthly amount is set vs the price of the ticker.
The trades are considering buying the available amount on the 1st candle of each month, at the Open price. The "Total Balance" considers the close price of each candle.
A-VWAP The Anchored VWAP (Volume-Weighted Average Price) is a powerful multi-functional tool that adapts to price action and volume dynamics to identify trend bias, support/resistance zones, and potential reversal points. This enhanced version integrates dynamic color-coded signals (green/red) to simplify decision-making for swing traders, intraday scalpers, and position managers.
Dynamic Trend Bias Identification
Green A-VWAP (Bullish Control): Activates when price sustains above the anchored VWAP. Highlights bullish momentum, suggesting institutional buying dominance and potential continuation setups.
Red aVWAP (Bearish Control): Triggers when price holds below the anchored VWAP. Signals bearish pressure, indicating distribution phases or downtrends.
Swing-Level Targeting
Green aVWAP serves as dynamic support for profit-taking on short positions during pullbacks and adding New long positions.
Red aVWAP becomes resistance for profit closure on Long trades. Price dipping far below red aVWAP may signal oversold conditions, with red aVWAP acting as a resistance target.
Strategic Applications
Swing Trading: Use green/red aVWAP to define trend alignment and position direction
Swing Short or Swing Long Target
Swing Long Entry or Swing Short Target
Intraday: nchored VWAP (aVWAP) with Standard Deviation (STDV) bands provides a powerful framework for identifying mean-reversion opportunities when price extends away from its volume-weighted fair value. Identifying Overextended Moves, Executing the Trade, Managing Risk
Institutional Flow Tracking: Monitor how price interacts with aVWAP to gauge institutional accumulation/distribution.
Standard Deviation Bands for Volatility Context
The indicator integrates ±1 and ±2 standard deviation bands around the Anchored VWAP. These bands quantify price dispersion, acting as dynamic boundaries for mean reversion or trend acceleration:
Tightening Bands: Signal low volatility, often preceding breakouts.
Expanding Bands: Reflect heightened volatility, indicating strong Resistance/Support.
Use these bands to identify overextended price levels.
Multi-Timeframe Anchoring Strategy
Lower Timeframe 15-Minute High/Low Focus:
For intraday scalping or short-term trades, anchor the VWAP to swing highs or lows on the 15-minute Low/High.
Higher Timeframe 1-Hour High/Low Focus:
For swing trading, anchor the VWAP to major swing points on the 1-hour Low/High. This aligns with broader market structure, offering clarity on institutional accumulation/distribution zones. A sustained green zone above the HTF VWAP signals alignment with the higher-timeframe trend.
Anchored VWAP Most Powerful tool
The enhanced VWAP with Anchoring empowers traders to harmonize short-term precision with higher-timeframe context. Whether scalping on the 15-minute chart or swing trading, this tool adapts to your strategy’s rhythm. By anchoring to critical highs/lows and layering volatility bands, it transforms raw price action into a structured roadmap—guiding entries, exits, and risk management with institutional-grade clarity.
Master the markets across timeframes with an indicator that scales with your ambition.
Precision Order Block FinderPrecision Order Block Finder
This advanced indicator identifies high-probability Order Block patterns with customizable confirmation parameters for increased precision and reliability. Unlike basic Order Block indicators, this tool allows you to specify the exact confirmation criteria needed before marking a pattern as valid.
Key Features:
Detects both bullish and bearish Order Block patterns
Customizable confirmation candle settings (1:3 ratio by default)
Adjustable visual properties including transparency and line styles
Optional price labels for quick reference
Filter options to display only bullish, bearish, or both pattern types
How It Works:
The indicator identifies potential Order Blocks by locating a trigger candle (bearish for bullish patterns, bullish for bearish patterns) followed by your specified number of confirmation candles in the opposite direction. This multi-candle confirmation approach helps filter out false signals and focuses on the most reliable trading opportunities.
Perfect for both swing and intraday traders looking to identify key market turning points with greater accuracy. The visual representation clearly highlights potential entry zones and price targets to streamline your trading decisions.
Adjust the settings to match your trading style and timeframe preferences for optimal results.
Weekend RangeWeekend Range Indicator – Customizable High/Low Zones
🔹 Overview
The Weekend Range Indicator marks the last 20 weekends on your chart, highlighting their highs and lows with fully customizable colors, transparency, and time settings. This tool helps traders identify key support and resistance levels from weekend price action.
🛠️ Features
✅ Custom Weekend Start & End – Choose the weekend days and time (UTC)
✅ Automatically Tracks the Last 20 Weekends (configurable up to 50)
✅ Custom Box Colors & Transparency – Adjust the fill and border colors easily
✅ Works on All Timeframes – Best viewed on 1H, 4H, or higher
✅ Efficient & Optimized Code – No lag, smooth performance
🎯 How to Use
1️⃣ Add the indicator to your chart.
2️⃣ Adjust the weekend start & end time in the settings.
3️⃣ Customize the box colors and transparency to match your style.
4️⃣ Watch how price reacts around the weekend high/low zones for trade opportunities.
💡 Trading Strategies
🔹 Breakout Trading – Look for price breaking above or below the weekend range.
🔹 Reversal Zones – Watch for rejections at weekend highs/lows.
🔹 Liquidity & Stop Hunts – Large players often target these levels.
📈 Recommended Markets
✔ Works best on Forex, Crypto, Indices, and Commodities
✔ Ideal for swing traders and intraday traders
🚀 Enjoy using the indicator! Let me know if you’d like any new features added! 🎯🔥
Cash And Carry Arbitrage BTC Compare Month 6 by SeoNo1Detailed Explanation of the BTC Cash and Carry Arbitrage Script
Script Title: BTC Cash And Carry Arbitrage Month 6 by SeoNo1
Short Title: BTC C&C ABT Month 6
Version: Pine Script v5
Overlay: True (The indicators are plotted directly on the price chart)
Purpose of the Script
This script is designed to help traders analyze and track arbitrage opportunities between the spot market and futures market for Bitcoin (BTC). Specifically, it calculates the spread and Annual Percentage Yield (APY) from a cash-and-carry arbitrage strategy until a specific expiry date (in this case, June 27, 2025).
The strategy helps identify profitable opportunities when the futures price of BTC is higher than the spot price. Traders can then buy BTC in the spot market and short BTC futures contracts to lock in a risk-free profit.
1. Input Settings
Spot Symbol: The real-time BTC spot price from Binance (BTCUSDT).
Futures Symbol: The BTC futures contract that expires in June 2025 (BTCUSDM2025).
Expiry Date: The expiration date of the futures contract, set to June 27, 2025.
These inputs allow users to adjust the symbols or expiry date according to their trading needs.
2. Price Data Retrieval
Spot Price: Fetches the latest closing price of BTC from the spot market.
Futures Price: Fetches the latest closing price of BTC futures.
Spread: The difference between the futures price and the spot price (futures_price - spot_price).
The spread indicates how much higher (or lower) the futures price is compared to the spot market.
3. Time to Maturity (TTM) and Annual Percentage Yield (APY) Calculation
Current Date: Gets the current timestamp.
Time to Maturity (TTM): The number of days left until the futures contract expires.
APY Calculation:
Formula:
APY = ( Spread / Spot Price ) x ( 365 / TTM Days ) x 100
This represents the annualized return from holding a cash-and-carry arbitrage position if the trader buys BTC at the spot price and sells BTC futures.
4. Display Information Table on the Chart
A table is created on the chart's top-right corner showing the following data:
Metric: Labels such as Spread and APY
Value: Displays the calculated spread and APY
The table automatically updates at the latest bar to display the most recent data.
5. Alert Condition
This sets an alert condition that triggers every time the script runs.
In practice, users can modify this alert to trigger based on specific conditions (e.g., APY exceeds a threshold).
6. Plotting the APY and Spread
APY Plot: Displays the annualized yield as a blue line on the chart.
Spread Plot: Visualizes the futures-spot spread as a red line.
This helps traders quickly identify arbitrage opportunities when the spread or APY reaches desirable levels.
How to Use the Script
Monitor Arbitrage Opportunities:
A positive spread indicates a potential cash-and-carry arbitrage opportunity.
The larger the APY, the more profitable the arbitrage opportunity could be.
Timing Trades:
Execute a buy on the BTC spot market and simultaneously sell BTC futures when the APY is attractive.
Close both positions upon futures contract expiry to realize profits.
Risk Management:
Ensure you have sufficient margin to hold both positions until expiry.
Monitor funding rates and volatility, which could affect returns.
Conclusion
This script is an essential tool for traders looking to exploit price discrepancies between the BTC spot market and futures market through a cash-and-carry arbitrage strategy. It provides real-time data on spreads, annualized returns (APY), and visual alerts, helping traders make informed decisions and maximize their profit potential.
Supertrend Strategy with Money Ocean TradeStrategy Overview
The Supertrend Strategy with Trend Change Confirmation leverages the Supertrend indicator to identify potential buy and sell signals based on changes in trend direction and subsequent price action. The strategy is designed to work with any financial instrument (symbol) and aims to provide clear entry and exit signals.
Key Components
Supertrend Indicator: The core of this strategy is the Supertrend indicator, calculated using a length of 3 and a factor of 1. The Supertrend line is plotted on the chart to visually represent trend direction.
Direction 1: Indicates an uptrend (bullish).
Direction -1: Indicates a downtrend (bearish).
Trend Change Detection: The strategy monitors changes in the trend direction. When a trend change is detected, it checks if the next candle confirms the trend change by breaking above or below the Supertrend line.
Entry Conditions:
Long Entry (Buy): When the Supertrend direction changes to 1 (uptrend) and the next candle closes above the Supertrend line.
Short Entry (Sell): When the Supertrend direction changes to -1 (downtrend) and the next candle closes below the Supertrend line.
Exit Conditions: The strategy closes the position based on the opposite signal.
Long Exit: When the Supertrend direction changes to -1 (downtrend) and the next candle closes below the Supertrend line.
Short Exit: When the Supertrend direction changes to 1 (uptrend) and the next candle closes above the Supertrend line.
Visual Signals: The strategy plots buy and sell signals on the chart using plotshape:
BUY: A green label below the bar when a long entry is triggered.
SELL: A red label above the bar when a short entry is triggered.
Alerts: Alerts are set up to notify when a buy or sell signal is triggered.
Script Summary
This strategy helps traders identify potential trading opportunities based on trend changes and confirms the trend by checking the next candle's price action. The visual signals and dashboard enhance the user's ability to monitor and manage trades effectively.
Feel free to test and adjust the parameters to suit your trading preferences! If you need further customizations or explanations, let me know.
Parabolic SAR Multiple Timeframe levels (TechnoBlooms)The Parabolic SAR (Stop and Reverse) is a valuable tool for traders due to its ability to provide clear signals for trend direction and potential reversal points. One of its primary benefits is the ease of use; it visually indicates whether the market is trending up or down, helping traders decide when to buy or sell. The indicator also aids in setting stop-loss orders as it moves with price, offering a dynamic way to manage risk by suggesting when to exit a position if the trend reverses.
Viewing the Parabolic SAR (PSAR) across multiple timeframes offers traders a comprehensive approach to understanding market trends and making strategic decisions. By analyzing the PSAR on shorter timeframes like 1-minute or 5-minute charts, traders can pinpoint precise entry and exit points for quick trades, capitalizing on immediate market movements.
Settings
> User can select 10 different timeframes according to their wish
> User can change Parabolic SAR settings like Start, Increment and Maximum Value
CCI, RSI, Volume & ATR Buy Signal - Go with the herd!📌 CCI, RSI, Volume & ATR Buy Signal Indicator
🚀 Identify Smart Entry Opportunities with a Multi-Confirmation Approach
This indicator combines CCI (Commodity Channel Index), RSI (Relative Strength Index), Volume, and ATR (Average True Range) to provide a reliable buy signal by ensuring the market conditions are favorable before entering a trade.
📊 How Does It Work?
This script evaluates market momentum, volatility, and trading volume to generate a clear entry decision:
✅ (Green Check) → Favorable entry conditions
❌ (Red Cross) → Not an ideal entry point
The indicator displays all the relevant metrics in one compact label, positioned above the most recent candle for quick and easy reference.
📈 Components of the Indicator
Each metric is visually represented using traffic light colors (🟢 Green, 🟡 Yellow, 🔴 Red) for intuitive decision-making:
1️⃣ CCI (Commodity Channel Index) – Momentum Strength
🟢 Strong: Market momentum is high (CCI above the entry threshold).
🟡 Moderate: Market is showing some movement, but not strong enough.
🔴 Weak: No significant momentum (CCI is low).
2️⃣ RSI (Relative Strength Index) – Trend Confirmation
If RSI is above the user-defined threshold, the momentum is considered positive for entry.
3️⃣ Volume – Market Participation
🟢 High: Trading volume is above the moving average, confirming strong participation.
🟡 Moderate: Volume is near its average, signaling indecisiveness.
🔴 Low: Weak participation, indicating potential false signals.
4️⃣ ATR (Average True Range) – Volatility Indicator
🟢 High: The market is moving with sufficient volatility for a strong trade setup.
🟡 Moderate: Acceptable volatility but with some caution.
🔴 Low: Market is slow, and price movements may be weak.
🔧 Customizable Settings
You can fine-tune the indicator to match your trading strategy by adjusting:
CCI Threshold for Entry (default: 100)
RSI Threshold for Entry (default: 50)
Volume Multiplier for Confirmation (default: 1.0)
ATR Multiplier for Confirmation (default: 1.0)
🖥️ How to Use
1️⃣ Add the indicator to your TradingView chart.
2️⃣ Look for the label above the most recent candle.
Example output:
✅ Vola: 🟢 Mom: 🟢 Volu: 🟢 → Strong confirmation for entry.
❌ Vola: 🟡 Mom: 🔴 Volu: 🟡 → Entry conditions are not favorable.
3️⃣ Only enter trades when ✅ appears and all or most indicators are green.
4️⃣ Avoid trading when ❌ is displayed or when multiple indicators are yellow/red.
⚡ Why Use This Indicator?
✅ Multi-Factor Confirmation – Ensures you enter only high-probability setups.
✅ Customizable for Any Strategy – Adjust thresholds based on your risk tolerance.
✅ Traffic Light System – Easily interpret trade conditions at a glance.
✅ Real-Time Updates – The label dynamically updates based on the latest price action.
📌 Final Notes
This indicator is not a standalone trading system but a powerful confirmation tool. Always use proper risk management and combine it with price action analysis for best results. 📊📈
Expiry Day Special IndicatorExpiry Day Special Indicator
The Expiry Day Special Indicator is designed to detect catalytic price action patterns that commonly occur between 9:15 AM to 10:15 AM (IST) in the Nifty & Bank Nifty markets but not limited to these specific markets. While these patterns are particularly useful on expiry days, they are not limited to expiry trading alone. They can also be applied on other trading days when similar conditions arise, making them versatile for intraday traders.
How It Works
This indicator scans for bullish and bearish price action patterns within the first trading hour and plots potential buy and sell signals based on key market structures.
• Bearish Patterns: Identifies strong rejection zones and weakness in price action to signal potential short trades.
• Bullish Patterns: Recognizes reversal formations that indicate potential long trade opportunities.
• Time Filter: The setup is valid only between 9:15 AM - 10:15 AM (IST) to focus on high-impact market moves.
Why This Indicator?
1. Specialized for Nifty & Bank Nifty – Designed specifically for Indian markets.
2. Early Trend Identification – Helps traders capture moves early in the session.
3. Works Beyond Expiry Days – Although optimized for expiry trading, it can also detect similar patterns on regular days.
📌 Note: This indicator does not provide trading advice; always use proper risk management.
Timeframe Display Table with CustomizationsPlaces a single cell table in the top right of the chart to display the currently viewed timeframe at all times on the chart.
Support Resistance - Percentile LevelsKey Features:
1. Percentile Calculations:
The indicator calculates the 95th percentile (PercentilePlot100) and the 5th percentile (PercentilePlot5) of the high and low prices over specified lengths.
The lengths for these calculations are adjustable via input fields, allowing users to customize the periods used for percentile calculations.
2. Percentile Levels:
Resistance Levels (R1, R2, R3, R4): Plots resistance levels based on the 95th percentile of the high prices over different lengths (100, 200, 750, 4500).
Support Levels (S1, S2, S3, S4): Plots support levels based on the 5th percentile of the low prices over different lengths (100, 200, 750, 4500).
3. High-Timeframe Average:
Calculates and plots the average of the 750-period high and low percentiles (htfavg), which acts as a pivot point on the chart.
How to Use This Indicator:
1. Identify Key Support and Resistance Levels:
Use the plotted resistance (R1, R2, R3, R4) and support (S1, S2, S3, S4) levels to identify key areas where price may reverse or consolidate.
2. Pivot Point Analysis:
The plotted pivot point (htfavg) can be used to identify potential areas of trend change or consolidation. It represents the average price level based on higher timeframe percentiles.
3. Trend Analysis:
By observing how price interacts with these percentile levels, traders can gain insights into market trends and potential reversal points.
Customization:
The input fields allow you to customize the lengths of the percentiles and the percentile plot values according to your trading strategy and timeframe preference.
In summary, this indicator can help traders identify significant support and resistance levels, potential pivot points, and overall market trends based on percentile calculations of high and low prices over various periods. This can be valuable for making informed trading decisions and setting entry and exit points.
If you have any specific questions or need further customization, feel free to ask! 😊
Trade SafeTrade Safe: The Ultimate Discipline Tool for Traders
Are you tired of overtrading, revenge trading, or letting emotions ruin your trading plan? Trade Safe is here to transform your trading psychology and help you achieve consistent profitability. Unlike traditional indicators that focus solely on market analysis, Trade Safe addresses the number one reason traders fail: lack of discipline.
With its innovative features, Trade Safe enforces strict trading rules, prevents emotional decision-making, and helps you stick to your plan—no matter how volatile the markets get. If you're serious about becoming a disciplined and profitable trader, this is the tool you've been waiting for.
Enforces Trading Discipline:
Trade Safe ensures you stick to your daily trading plan by visually blocking your charts after a predetermined number of trades or a stop-loss, Take profit event.
No more overtrading or deviating from your strategy—Trade Safe keeps you in check.
Eliminates Emotional Trading:
The screen block feature prevents you from seeing the candles after a loss, helping you avoid the emotional spiral of "tilt" and revenge trading.
This unique approach focuses on the psychological side of trading, which is often overlooked by other tools.
Simple and Intuitive Interface:
Easily set your stop-loss and take-profit level with the red line marker for stop-loss and green for take-profit and choose between long or short positions with just a few clicks.
Trade Safe is designed to be user-friendly, so you can focus on trading without distractions.
Customizable for All Trading Styles:
Whether you're a scalper, swing trader, or long-term investor, Trade Safe can be tailored to fit your strategy.
Set your stop-loss and take-profit, and let Trade Safe handle the rest.
Prevents Revenge Trading:
By locking your screen after a stop-loss, Trade Safe eliminates the temptation to "make back" losses through impulsive trades.
This helps you break the cycle of emotional trading and stay focused on your long-term goals.
Builds Healthy Trading Habits:
Trade Safe encourages you to walk away after a loss, reinforcing the importance of patience and discipline.