Daily Close Levels with ATR and Custom OffsetsDescription:
This Pine Script visualizes daily close levels, calculates key price zones based on custom offsets and ATR (Average True Range), and is an essential tool for traders analyzing support and resistance zones.
Features
Close Value Line: Displays the daily close value as a line on the chart.
ATR Values: Shows the ATR value in both price and tick format.
Custom Offsets:
Calculates positive and negative price levels based on a user-defined tick offset.
Supports multipliers for extended zones (e.g., 2x offset).
Labels:
Displays the close value and ATR on the chart.
Annotates calculated price levels directly on the corresponding lines.
Time Control: Calculates levels at a user-defined hour (e.g., 20:00).
Customizable Parameters:
Close Time (Hour): Choose the specific hour for analyzing the close price.
Custom Line Offset: Define the price offset in ticks.
ATR Length: Adjust the ATR calculation length.
Timezone Offset: Supports time adjustments for different time zones.
Enable/Disable Labels and Values: Toggle the display of labels and values on the chart.
Indicators and strategies
PCHLM with TimeframeThis indicator plots the previous candle's high, low, and midpoint on the chart with customizable line thickness and distinct colors for better visualization. It allows traders to choose the timeframe from which these levels are derived, providing flexibility to adapt to different trading strategies.
Features:
Timeframe Selection: Users can select any desired timeframe (e.g., daily, weekly) to define the previous candle's high, low, and midpoint.
Color-Coded Lines:
The high level is marked with a red line.
The low level is marked with a green line.
The midpoint is marked with a grey line.
Adjustable Line Thickness: Traders can set the thickness of the lines between 1 and 5, allowing for better visual customization according to their preferences.
Dynamic Updates: The lines update automatically with each new candle, ensuring the levels are always current based on the selected timeframe.
Chart InfoOVERVIEW
What would a general summary of the symbol on the chart look like? Here’s an example: This script was created to help you easily access the essential details of a symbol, which I believe are critical for daily use.
CONCEPTS
When using any indicator or analysing price movement, the characteristics of the chart become important. Each symbol has a unique character and the more we can quickly find out about it, the better. Instead of embedding those details within each individual indicator, it is often more practical to access these data through an external tool. This indicator presents the following results related to the symbol on your chart in a table format:
ID : Ticker ID (Exchange, Base Currency, and Quote Currency)
TIMEFRAME : The chart's time period
START : The starting date of the chart
FINISH : The finishing date of the chart
INTERVAL : The total time between the start and finish dates (based on timeframe). The current bar is not included in the total time until it is closed.
BAR INDEX : The total number of bars on the chart (can also be viewed in both forward and backward directions in the data window as a series type).
VOLATILITY : Percentage ratio of 14-bar ATR to close.
CHANGE : The daily percentage change.
HODL : The percentage return that would be gained if the symbol had been bought and held since the first bar.
DAILY BUY : The percentage return that would be gained if the same amount of buying was made daily (a kind of DCA).
MECHANICS
This is a very simple script. I didn't add user-defined timestamp inputs because I didn’t want to overwhelm the indicator with parameters. However, if requested, i can make improvements in this direction in a second version.
NOTES
I live in Istanbul, so I designed the default timezone offset as GMT+3. Please remember to adjust it according to your own timezone to ensure the date results are accurate.
I hope it helps everyone. Do not forget to manage your risk. And trade as safely as possible. Best of luck!
VWAP Divergence | dobofulopOverview :
This script identifies potential bullish and bearish divergence signals using the Volume Weighted Average Price (VWAP). It calculates VWAP resets based on a selected “Anchor Period” (Session, Week, Month, Quarter, Year, Decade, Century, or corporate events like Earnings, Dividends, Splits). When price action and VWAP move in opposite directions with a sufficiently large ATR-based move over a chosen lookback period, the script plots divergence dots on the chart.
Key Features:
VWAP Anchoring : Choose an anchor period for resetting VWAP. This could be daily, weekly, monthly, or based on specific corporate events (Earnings, Dividends, Splits).
Divergence Detection : Looks for instances where the price is moving up while VWAP moves down (potential bullish divergence), and vice versa for bearish divergence.
ATR Filter : Uses the ATR (Average True Range) to filter out minor or insignificant price moves, helping to reduce noise.
Gap Check : Automatically invalidates signals if large price gaps occur within the lookback range.
Visual Signals : Bullish divergences are plotted below the bar, while bearish divergences are plotted above, making it easy to spot potential reversal zones.
How to Us
Inputs:
- Anchor Period (Session, Week, Month, etc.) – determines when the VWAP calculation restarts.
- Source (Default: HLC3) – Price source for the VWAP.
- ATR Multiplier and Lookback Period – Fine-tune the threshold for detecting significant moves vs. VWAP.
Interpretation:
- Bullish Divergence Dot: Suggests potential price strength when price moves higher but VWAP moves lower.
- Bearish Divergence Dot: Suggests potential price weakness when price moves lower but VWAP moves higher.
Disclaimer:
This script is provided for educational purposes only and should not be interpreted as financial advice. Past performance does not guarantee future results. Always conduct your own analysis and consider consulting a financial professional before making trading decisions.
Order Blocks with Volume Heatmap & Clusters - VK TradingOrder Blocks with Volume Heatmap & Clusters - VK Trading
This script is designed to identify and highlight Order Blocks, a key concept in institutional trading, and combines it with powerful tools like volume heatmaps and accumulation clusters for enhanced market analysis. Suitable for traders of all experience levels, this script provides a clear and customizable visualization to help identify significant market zones effectively.
What Does This Script Do?
Order Block Identification: Highlights bullish and bearish order blocks directly on the chart, making it easier to spot key supply and demand zones.
Volume Heatmap: A dynamic heatmap adjusts colors based on relative volume, allowing you to quickly identify areas of heightened activity.
Institutional Accumulation Clusters: Zones of potential institutional accumulation are calculated using a combination of ATR (Average True Range), standardized volume, and RSI (Relative Strength Index).
Automatic Clearing: Invalidated order blocks are automatically removed, ensuring your charts remain clean and focused.
Key Features
Customizable Sensitivity: Adjust the script’s sensitivity to tailor order block detection to different market conditions and strategies.
Advanced Volume Display Options: Toggle volume visibility on or off. Customize the position, size, and color of volume labels for better integration with your chart's design.
Dynamic Heatmap Intensity: Fine-tune the heatmap’s intensity and color to highlight areas of interest based on trading volume.
Dual Order Block Detection: Uses two independent detection settings to analyze the market from multiple perspectives.
Visual Alerts: Automatically draws key level lines based on detected order blocks for better clarity.
User Benefits:
Clear Market Analysis: Helps pinpoint institutional activity and key levels with minimal effort.
Increased Efficiency: Automates plotting and analysis, allowing you to focus on decision-making.
Versatile Compatibility: Complements strategies like Smart Money Concepts, Wyckoff, and Price Action approaches.
Disclaimer
This script is intended as an analytical and educational tool. It does not guarantee specific outcomes or eliminate trading risks. Use this tool at your own discretion and always practice proper risk management.
BTCUSDT Premium Prices and EMA360The Exponential Moving Average (EMA) is a widely used technical indicator in trading that helps analysts and traders identify price trends over a specified period. Unlike the Simple Moving Average (SMA), which treats all data points equally, the EMA gives more weight to recent prices, making it more sensitive to recent price movements. This characteristic allows the EMA to react quickly to changes in market conditions, providing timely insights into potential trends.
## **Key Features of EMA**
- **Weighting Mechanism**: The EMA uses a smoothing factor that emphasizes recent price data while still considering older observations. This leads to a more dynamic representation of price trends compared to the SMA .
- **Trend Identification**: The EMA is particularly effective for identifying the direction of a stock's price movement. A rising EMA indicates an uptrend, while a declining EMA suggests a downtrend. Traders often use multiple EMAs with different periods to spot crossovers, which can signal potential buy or sell opportunities .
- **Calculation**: To calculate the EMA, one typically starts with an initial Simple Moving Average (SMA) for the first period, then applies the following formula for subsequent periods:
$$
\text{EMA}_{\text{today}} = \left(\text{Price}_{\text{today}} \times \left(\frac{2}{N + 1}\right)\right) + \left(\text{EMA}_{\text{yesterday}} \times \left(1 - \frac{2}{N + 1}\right)\right)
$$
Where $$N$$ is the number of periods .
## **Applications in Trading**
Traders utilize the EMA in various strategies, including:
- **Crossover Strategies**: By monitoring two EMAs of different lengths (e.g., 50-day and 200-day), traders can identify bullish or bearish signals when one crosses above or below the other .
- **Combining Indicators**: The EMA can be combined with other indicators like the Relative Strength Index (RSI) or Moving Average Convergence Divergence (MACD) for enhanced decision-making .
In summary, the Exponential Moving Average is a crucial tool for traders seeking to navigate market trends effectively. Its ability to prioritize recent data makes it an essential component of many trading strategies, providing insights that can lead to informed investment decisions.
Chained Inside BarsThis script identifies consecutive inside bars by referencing only the most recent non-inside bar, so it avoids excessive lookback. An “inside” bar means its high is lower than the reference bar’s high, and its low is higher than the reference bar’s low. If the current bar is inside, it’s colored white; once price breaks outside, the script updates that new bar as the next reference.
Key Points
• Bars are compared against the last non-inside bar, chaining consecutive inside bars off that same reference bar.
• Inside bars are highlighted in white (non-inside bars retain default chart colors).
• Includes an alert condition for when a new inside bar forms.
• Prevents large dynamic indexing, making it more stable and efficient.
Use this indicator to quickly spot consecutive inside-bar formations without needing to track every single bar-to-bar relationship.
Doji Double Top & Double Bottom
FUNCTION :
This indicator checks if 2 consecutive candlesticks are formed in such a way that both the lows or both the highs of the consecutive candlesticks are almost at the same level and either of them is a doji
TIMEFRAMES :
it works on daily, weekly, monthly and higher timeframes
CRITERIA :
There is maximum difference value between 2 consecutive candlesticks' lows or 2 consecutive candlesticks' highs
Minimum value of the doji's wick size
Maximum value of the doji's body size
These 3 conditions need to be fulfilled for the 2 consecutive candlesticks to be considered as a Double top or Double bottom by this indicator
EXAMPLES :
Here the indicator is giving only double Bottom signals on CRUDE OIL chart
Here the indicator is giving only double top signals on GOLD chart
Here the indicator gives both double top & double bottom signals on EUR/USD Daily chart
Here the indicator is giving both double top & double bottom signals on EUR/USD Half-Yearly chart
DEFINITIONS :
There are 2 types -
DOJI DOUBLE BOTTOM - if the lows of 2 consecutive candlesticks are almost at the same level & either of them is doji then it is called Double Bottom and market is supposed to go higher after forming it.
DOJI DOUBLE TOP - if the highs of 2 consecutive candlesticks are almost at the same level & either of them is doji then it is called Double Top and market is supposed to go lower after forming it.
SETTINGS :
There are options to change the value of each of the 3 parameters within the indicator's settings for daily, weekly & monthly chart [
LIMITATIONS :
You should not trade based on the signals from this indicator solely, you should check other parameters too before making trading decision
Mxwll Hedge Suite [Mxwll]Hello Traders!
The Mxwll Hedge Suite determines the best asset to hedge against the asset on your chart!
By determining correlation between the asset on your chart and a group of internally listed assets, the Mxwll Hedge Suite determines which asset from the list exhibits the highest negative correlation, and then determines exactly how many coins/shares/contracts of the asset must be bought to achieve a perfect 1:1 hedge!
The image above exemplifies the process!
The purple box on the chart shows the eligible price action used to determine correlation between the asset on my chart (BTCUSDT.P) and the list of cryptocurrencies that can be used as a hedge!
From this price action, the coin determined to have to greatest negative correlation to BTCUSDT.P is FTMUSD.
The image above further outlines the hedge table located in the bottom-right corner of your chart!
The hedge table shows exactly how many coins you’d need to purchase for the hedge asset at various leverages to achieve a perfect 1:1 hedge!
Hedge Suite works on any asset on any timeframe!
And that’s all! A short and sweet script that is hopefully helpful to traders looking to hedge their positions with a negatively correlated asset!
Thank you, Traders!
[blackcat] L1 Small Wave Operation L1 Small Wave Operation
Overview
Are you looking to catch those elusive small waves in the market? Look no further than " L1 Small Wave Operation." This script offers a unique way to identify potential buying opportunities by analyzing price movements, volume changes, and trend directions. With customizable inputs and clear visual indicators, it’s designed to help traders spot favorable entry points with precision.
Features
Dynamic Signal Identification: Automatically detects two types of buy signals labeled "S" and "B."
Adaptable Parameters: Allows users to adjust low period, high period, EMA periods, SMA period, and various threshold values to fine-tune the strategy.
Visual Clarity: Plots K and D lines along with four distinct threshold levels for easy visualization.
Condition-Based Signals: Uses multiple conditions including volume increases, price actions, and crossover events to confirm signals.
How It Works
Calculate Percent Range: Determines where the current closing price lies within the recent low and high range.
Compute Moving Averages: Calculates Exponential Moving Average (EMA) and Simple Moving Average (SMA) of the percent range.
Define Conditions: Checks for bullish or strong bullish patterns, uptrends, and specific crossover events between K and D lines.
Generate Signals: Marks potential buying opportunities when predetermined conditions are met.
How To Use
Add this script to your TradingView chart.
Adjust the input parameters according to your preferred settings.
Monitor the plotted lines and look for "S" and "B" labels indicating buy signals.
Consider incorporating these signals into a broader trading strategy that includes risk management techniques.
What Makes It Special
Flexibility: Users can easily modify parameters to adapt the script to different markets or personal preferences.
Automation: Saves time by automatically scanning for trade setups based on predefined rules.
Comprehensive Analysis: Combines multiple factors like volume, price action, and moving averages to provide reliable signals.
Limitations
Past performance does not guarantee future results.
Market conditions can vary, affecting signal reliability.
Not suitable for very short-term trades without additional refinements.
Notes
Always perform backtesting on historical data before implementing live trades.
Understand the underlying logic of the script to avoid misinterpretation of signals.
Regularly review and adjust parameters based on changing market dynamics.
Golden/Death Cross HighlighterThis indicator helps you easily identify and visualize Golden Cross and Death Cross patterns combined with price action confirmation. It highlights chart backgrounds when specific conditions are met, making it easy to spot potential trend changes.
🔑 Key Features:
Highlights Golden Cross conditions (50 SMA crosses above 200 SMA) when price closes above both MAs
Highlights Death Cross conditions (50 SMA crosses below 200 SMA) when price closes below both MAs
Customizable MA lengths (default: 50 and 200)
Adjustable highlight opacity
Built-in alerts for cross events
Clear visualization of both moving averages
📈 Color Guide:
Yellow Background: Golden Cross active + price above both MAs
Red Background: Death Cross active + price below both MAs
⚙️ Settings:
Fast MA Length: Length of faster moving average (default 50)
Slow MA Length: Length of slower moving average (default 200)
Golden Cross Highlight Opacity: Adjust visibility of bullish highlights
Death Cross Highlight Opacity: Adjust visibility of bearish highlights
💡 Usage Tips:
Use in combination with other indicators for confirmation
Set up alerts for potential trend changes
Adjust opacity to match your chart style
Works best on higher timeframes (4H, Daily, Weekly)
US30 Q4_trade _levels_Jan2025updated description and use
US30 Trade Levels.plus 50% take profit levels
this indicator is based on the US30 quarterly theory level strategy
the difference here is that the zones have been zoom'd out for the H2 view for oversight and M30 as application theory to the Q4 levels.
The Q4 levels are spaced and calculated 385 pips apart, and also span within the daily ADR range for US30.
so these are zones that has proven to be valid going back as far as Nov2022
these are pass through levels, to together with other confluences like order blocks and or breaker blocks, will give you a guideline as to expect a valid zone of interest.
USE this indicator in conjunction with an SMC point of view to identify OB & CHOCH
Monthly, Quarterly OPEX & Vix expirations
OPEX Indicator:
The OPEX indicator is designed to provide traders with a visual representation of key options expiration dates, particularly for monthly, quarterly, and VIX options expirations. This indicator can be particularly helpful for market participants who focus on options-based strategies or those who track the impact of options expiration on price action.
The indicator overlays vertical lines and labels on the chart to highlight three key types of expiration events:
Monthly Equity and Index Expiration (OPEX): This marks the standard monthly options expiration dates for equity and index options.
Quarterly Index Expiration (Q): This indicates the quarterly expiration dates for index options, which tend to have a larger impact on the market.
Monthly VIX Expiration (VIXEX): This marks the monthly expiration of VIX options and futures, which are important for volatility traders.
How to Use the OPEX Indicator:
Expiration Dates on the Chart: The OPEX indicator marks expiration dates with vertical lines and labels that appear on the chart. These are customizable, allowing you to adjust the line and label colors to suit your preferences. The lines and labels will appear at specific times, such as the closing of the market on expiration days, allowing traders to prepare for potential volatility or other market dynamics associated with these events.
Customizable Colors and Label Positions: The indicator offers flexibility in customizing the appearance of expiration lines and labels. For each expiration type (OPEX, Quarterly, and VIXEX), you can adjust the line color, label color, and label text color. Additionally, the label text size and position can be customized (e.g., above the bar, below the bar, top or bottom of the chart). This allows for a tailored display that suits your trading style and chart layout.
Visualizing Impact of Expiration Events: Traders who track the influence of expiration events can use this indicator to spot potential market moves around expiration dates. For example, significant price swings often occur near expiration days as options traders adjust their positions. With this indicator, you can visualize these dates on your chart and analyze market behavior in the lead-up to, during, and after the expirations.
Input Options:
Expiration Types:
Monthly Equity, Index Expiration (OPEX): Turn on or off the monthly equity expiration markers.
Quarterly Index Expiration (Q): Turn on or off the quarterly expiration markers.
Monthly VIX Expiration (VIXEX): Turn on or off the VIX expiration markers.
Line and Label Customization:
Line Color: Adjust the color of the vertical lines marking the expiration events.
Label Color: Customize the color of the expiration labels.
Label Text Color: Adjust the color of the text inside the labels.
Label Position: Choose the position of the labels (e.g., top, bottom, above bar, below bar).
Use Cases:
Options Traders: Track options expiration dates to assess potential price swings or liquidity changes.
Volatility Traders: Watch for patterns around VIX options expirations.
Index Traders: Monitor quarterly expirations for potential market-moving events.
Example Use:
As a trader, you can apply this indicator to your chart and observe how price action reacts near expiration dates. For instance, on the monthly OPEX expiration day, you might notice increased volatility or an uptick in options-related price moves. By observing this trend over time, you can align your trades to capitalize on predictable movements around key expiration days.
Additionally, you may use the quarterly expiration markers to assess whether there’s typically a market shift during these periods, providing insights for long-term traders.
This indicator can be a helpful tool for preparing and managing trades around critical options expiration dates, helping to forecast potential market behavior based on historical patterns.
TradingView Community Guidelines Compliance: This script complies with TradingView's community guidelines by offering a clear and valuable function for traders, providing customizable inputs for enhanced usability. The script is focused on chart visualizations without manipulating or misrepresenting market data. It serves as an educational tool and a functional indicator, with no claims or misleading functionality. The indicator does not promote financial products or services and focuses solely on charting for better trading decision-making.
IU Trailing Stop Loss MethodsThe 'IU Trailing Stop Loss Methods' it's a risk management tool which allows users to apply 12 trailing stop-loss (SL) methods for risk management of their trades and gives live alerts when the trailing Stop loss has hit. Below is a detailed explanation of each input and the working of the Script.
Main Inputs:
- bar_time: Specifies the date from which the trade begins and entry price will be the open of the first candle.
- entry_type: Choose between 'Long' or 'Short' positions.
- trailing_method: Select the trailing stop-loss method. Options include ATR, Parabolic SAR, Supertrend, Point/Pip based, Percentage, EMA, Highest/Lowest, Standard Deviation, and multiple target-based methods.
- exit_after_close: If checked, exits the trade only after the candle closes.
Optional Inputs:
ATR Settings:
- atr_Length: Length for the ATR calculation.
- atr_factor: ATR multiplier for SL calculation.
Parabolic SAR Settings:
- start, increment, maximum: Parameters for the Parabolic SAR indicator.
Supertrend Settings:
- supertrend_Length, supertrend_factor: Length and factor for the Supertrend indicator.
Point/Pip Based:
- point_base: Set trailing SL in points/pips.
Percentage Based:
- percentage_base: Set SL as a percentage of entry price.
EMA Settings:
- ema_Length: Length for EMA calculation.
Standard Deviation Settings:
- std_Length, std_factor: Length and factor for standard deviation calculation.
Highest/Lowest Settings:
- highest_lowest_Length: Length for the highest/lowest SL calculation.
Target-Based Inputs:
- ATR, Point, Percentage, and Standard Deviation based target SL settings with customizable lengths and multipliers.
Entry Logic:
- Trades initiate based on the entry_type selected and the specified bar_time.
- If Long is selected, a long trade is initiated when the conditions match, and vice versa for Short.
Trailing Stop-Loss (SL) Methods Explained:
The strategy dynamically adjusts stop-loss based on the chosen method. Each method has its calculation logic:
- ATR: Stop-loss calculated using ATR multiplied by a user-defined factor.
- Parabolic SAR: Uses the Parabolic SAR indicator for trailing stop-loss.
- Supertrend: Utilizes the Supertrend indicator as the stop-loss line.
- Point/Pip Based: Fixed point-based stop-loss.
- Percentage Based: SL set as a percentage of entry price.
- EMA: SL based on the Exponential Moving Average.
- Highest/Lowest: Uses the highest high or lowest low over a specified period.
- Standard Deviation: SL calculated using standard deviation.
Exit Conditions:
- If exit_after_close is enabled, the position will only close after the candle confirms the stop-loss hit.
- If exit_after_close is disabled, the strategy will close the trade immediately when the SL is breached.
Visualization:
The script plots the chosen trailing stop-loss method on the chart for easy visualization.
Target-Based Trailing SL Logic:
- When a position is opened, the strategy calculates the initial stop-loss and progressively adjusts it as the price moves favorably.
- Each SL adjustment is stored in an array for accurate tracking and visualization.
Alerts and Labels:
- When the Entry or trailing stop loss is hit this scripts draws a label and give alert to the user that trailing stop has been hit for the trade.
Note - on the historical data The Script will show nothing if the entry and the exit has happened on the same candle, because we don't know what was hit first SL or TP (basically how the candle was formed on the lower timeframe).
Summary:
This script offers flexible trailing stop-loss options for traders who want dynamic risk management in their strategies. By offering multiple methods like ATR, SAR, Supertrend, and EMA, it caters to various trading styles and risk preferences.
Month Separator
Month Separator Indicator
This Pine Script indicator separates each month on the chart by visually marking the change between months.
Features:
The indicator detects when the month changes.
It highlights the background with a semi-transparent blue color to differentiate the months.
A small red triangle is plotted at the top of the chart at the beginning of each new month, providing a clear visual cue.
Customization:
You can easily adjust the colors or styles in the script by modifying the bgcolor and plotshape functions.
The indicator works on all timeframes, but it is especially useful on higher timeframes (like daily or weekly charts) to track monthly transitions.
This script is ideal for traders who want a clear visual representation of month boundaries to analyze trends and key levels more effectively.
RShar Seasonal RSISeasonal RSI
This indicator, Seasonal RSI, is designed to enhance trading decisions by combining the **Relative Strength Index (RSI)** with insights derived from historical **seasonality patterns**. It not only calculates RSI but also overlays seasonality data for the current week of the year, providing traders with a more contextualized view of market conditions.
---
### **Key Features**
#### 1. **Relative Strength Index (RSI) Calculation**
- The script calculates the RSI for a user-defined period (`RSI Length`), which is an oscillator used to measure the speed and magnitude of price changes.
- RSI values are plotted on the chart, helping traders identify **overbought** and **oversold** conditions.
- Thresholds for **Overbought** and **Oversold** levels are customizable, with default values of 70 and 30, respectively.
---
#### 2. **Dynamic RSI Coloring Based on Seasonality**
- The color of the RSI line dynamically adjusts based on historical **win rates** for the current week of the year:
- **Bright Green** for win rates > 65%.
- **Green** for win rates between 50-65%.
- **Red** for win rates between 35-50%.
- **Dark Red** for win rates < 35%.
- This feature gives traders a quick visual cue about whether the historical performance of the current week tends to be bullish, neutral, or bearish.
---
#### 3. **Overbought and Oversold Level Visualization**
- Overbought and oversold levels are displayed as dotted horizontal lines on the RSI chart.
- These levels act as visual guides for potential price reversals:
- **Overbought (default 70)**: Indicates potential selling pressure.
- **Oversold (default 30)**: Indicates potential buying pressure.
---
#### 4. **Seasonality Data Integration**
- Historical **seasonality data** is used to analyze price performance patterns for each week of the year:
- **Win Rate**: The percentage of years in which prices closed higher during the current week.
- **Average Weekly Change**: The average price percentage change during the current week over historical data.
- This data provides additional context to RSI readings, helping traders align their strategies with seasonal tendencies.
---
#### 5. **Information Table Overlay**
- A table is displayed in the **top-right corner** of the chart, summarizing seasonality data for the current week:
- **Week Win Rate**: Displays the percentage of historical years where prices rose during this week.
- **Avg Weekly Change**: Shows the average percentage price change for the current week. Positive values are displayed in green, and negative values are shown in red.
- This overlay provides actionable insights without cluttering the chart.
---
### **How It Works**
1. **Seasonality Data**:
- A function (`getSeasonalityForWeek`) fetches or uses predefined mock seasonality data for each week of the year.
- For each week, it calculates:
- The **Win Rate** (percentage of years with positive performance).
- The **Mean Change** (average price percentage change).
2. **RSI Plot**:
- The RSI line is plotted on the chart.
- The line's color is determined by the win rate for the current week, providing a visual representation of historical performance trends.
3. **Threshold Visualization**:
- Horizontal lines for overbought and oversold levels are drawn to assist in identifying potential reversal points.
4. **Information Table**:
- The table summarizes the current week's seasonality data for quick reference, helping traders make data-driven decisions.
---
### **Use Cases**
- **Short-Term Traders**:
Use the dynamic RSI colors and seasonality table to align short-term trades with historical patterns of weekly performance.
- **Swing Traders**:
Identify whether a stock or market is in an overbought/oversold condition while considering the seasonal tendency for the week.
- **Contextual Decision-Making**:
Combine traditional RSI signals with historical data to reduce false signals and improve timing.
---
### **Limitations**
- The script uses **mock seasonality data** in its default state. To make it fully functional, replace the mock data with actual historical performance metrics for your specific ticker or market.
- The indicator does not fetch real-time external data due to Pine Script’s limitations, so all seasonality data must be manually updated or hardcoded.
---
This indicator provides a powerful way to combine technical analysis with historical trends, offering a unique edge to traders by adding seasonal context to RSI signals.
MA RSI MACD Signal SuiteThis Pine Script™ is designed for use in Trading View and generates trading signals based on moving average (MA) crossovers, RSI (Relative Strength Index) signals, and MACD (Moving Average Convergence Divergence) indicators. It provides visual markers on the chart and can be configured to suit various trading strategies.
1. Indicator Overview
The indicator includes signals for:
Moving Averages (MA): It tracks crossovers between different types of moving averages.
RSI: Signals based on RSI crossing certain levels or its signal line.
MACD: Buy and sell signals generated by MACD crossovers.
2. Inputs and Customization
Moving Averages (MAs):
You can customize up to 6 moving averages with different types, lengths, and colors.
MA Type: Choose from different types of moving averages:
SMA (Simple Moving Average)
EMA (Exponential Moving Average)
HMA (Hull Moving Average)
SMMA (RMA) (Smoothed Moving Average)
WMA (Weighted Moving Average)
VWMA (Volume Weighted Moving Average)
T3, DEMA, TEMA
Source: Select the price to base the MA on (e.g., close, open, high, low).
Length: Define the number of periods for each moving average.
Examples:
MA1: Exponential Moving Average (EMA) with a period of 9
MA2: Exponential Moving Average (EMA) with a period of 21
RSI Settings:
RSI is calculated based on a user-defined period and is used to identify potential overbought or oversold conditions.
RSI Length: Lookback period for RSI (default 14).
Overbought Level: Defines the overbought threshold for RSI (default 70).
Oversold Level: Defines the oversold threshold for RSI (default 30).
You can also adjust the smoothing for the RSI signal line and customize when to trigger buy and sell signals based on the RSI crossing these levels.
MACD Settings:
MACD is used for identifying changes in momentum and trends.
Fast Length: The period for the fast moving average (default 12).
Slow Length: The period for the slow moving average (default 26).
Signal Length: The period for the signal line (default 9).
Smoothing Method: Choose between SMA or EMA for both the MACD and the signal line.
3. Signal Logic
Moving Average (MA) Crossover Signals:
Crossover: A bullish signal is generated when a fast MA crosses above a slow MA.
Crossunder: A bearish signal is generated when a fast MA crosses below a slow MA.
The crossovers are plotted with distinct colors, and the chart will display markers for these crossover events.
RSI Signals:
Oversold Crossover: A bullish signal when RSI crosses over its signal line below the oversold level (30).
Overbought Crossunder: A bearish signal when RSI crosses under its signal line above the overbought level (70).
RSI signals are divided into:
Aggressive (Early) Entries: Signals when RSI is crossing the oversold/overbought levels.
Conservative Entries: Signals when RSI confirms a reversal after crossing these levels.
MACD Signals:
Buy Signal: Generated when the MACD line crosses above the signal line (bullish crossover).
Sell Signal: Generated when the MACD line crosses below the signal line (bearish crossunder).
Additionally, the MACD histogram is used to identify momentum shifts:
Rising to Falling Histogram: Alerts when the MACD histogram switches from rising to falling.
Falling to Rising Histogram: Alerts when the MACD histogram switches from falling to rising.
4. Visuals and Alerts
Plotting:
The script plots the following on the price chart:
Moving Averages (MA): The selected MAs are plotted as lines.
Buy/Sell Shapes: Triangular markers are displayed for buy and sell signals generated by RSI and MACD.
Crossover and Crossunder Markers: Crosses are shown when two MAs crossover or crossunder.
Alerts:
Alerts can be configured based on the following conditions:
RSI Signals: Alerts for oversold or overbought crossover and crossunder events.
MACD Signals: Alerts for MACD line crossovers or momentum shifts in the MACD histogram.
Alerts are triggered when specific conditions are met, such as:
RSI crosses over or under the oversold/overbought levels.
MACD crosses the signal line.
Changes in the MACD histogram.
5. Example Usage
1. Trend Reversal Setup:
Buy Signal: Use the RSI oversold crossover and MACD bullish crossover to identify potential entry points in a downtrend.
Sell Signal: Use the RSI overbought crossunder and MACD bearish crossunder to identify potential exit points or short entries in an uptrend.
2. Momentum Strategy:
Combine MACD and RSI signals to identify the strength of a trend. Use MACD histogram analysis and RSI levels for confirmation.
3. Moving Average Crossover Strategy:
Focus on specific MA crossovers, such as the 9-period EMA crossing above the 21-period EMA, for buy signals. When a longer-term MA (e.g., 50-period) crosses a shorter-term MA, it may indicate a strong trend change.
6. Alerts Conditions
The script includes several alert conditions, which can be triggered and customized based on the user’s preferences:
RSI Oversold Crossover: Alerts when RSI crosses over the signal line below the oversold level (30).
RSI Overbought Crossunder: Alerts when RSI crosses under the signal line above the overbought level (70).
MACD Buy/Sell Crossover: Alerts when the MACD line crosses the signal line for a buy or sell signal.
7. Conclusion
This script is highly customizable and can be adjusted to suit different trading strategies. By combining MAs, RSI, and MACD, traders can gain multiple perspectives on the market, enhancing their ability to identify potential buy and sell opportunities.
4x Stochastic and 1x RSI Buy and Sell SignalsBuy signal (green), when Stochastic 9, 14, 40 and 60 are bellow 20.
Sell signal (red), when Stochastic 9, 14, 40 and 60 are above 80.
Buy signal is larger, when RSI is also bellow 30.
Sell signal is larger, when RSI is also above 70.
Using RSI is optional and can be disabled.
Use this signals when confirmed by another indicators, like support and resistance levels, EMAs and fundamental analysis.
MTF RSI CandlesThis Pine Script indicator is designed to provide a visual representation of Relative Strength Index (RSI) values across multiple timeframes. It enhances traditional candlestick charts by color-coding candles based on RSI levels, offering a clearer picture of overbought, oversold, and sideways market conditions. Additionally, it displays a hoverable table with RSI values for multiple predefined timeframes.
Key Features
1. Candle Coloring Based on RSI Levels:
Candles are color-coded based on predefined RSI ranges for easy interpretation of market conditions.
RSI Levels:
75-100: Strongest Overbought (Green)
65-75: Stronger Overbought (Dark Green)
55-65: Overbought (Teal)
45-55: Sideways (Gray)
35-45: Oversold (Light Red)
25-35: Stronger Oversold (Dark Red)
0-25: Strongest Oversold (Bright Red)
2. Multi-Timeframe RSI Table:
Displays RSI values for the following timeframes:
1 Min, 2 Min, 3 Min, 4 Min, 5 Min
10 Min, 15 Min, 30 Min, 1 Hour, 1 Day, 1 Week
Helps traders identify RSI trends across different time horizons.
3. Hoverable RSI Values:
Displays the RSI value of any candle when hovering over it, providing additional insights for analysis.
Inputs
1. RSI Length:
Default: 14
Determines the calculation period for the RSI indicator.
2. RSI Levels:
Configurable thresholds for RSI zones:
75-100: Strongest Overbought
65-75: Stronger Overbought
55-65: Overbought
45-55: Sideways
35-45: Oversold
25-35: Stronger Oversold
0-25: Strongest Oversold
How It Works:
1. RSI Calculation:
The RSI is calculated for the current timeframe using the input RSI Length.
It is also computed for 11 additional predefined timeframes using request.security.
2. Candle Coloring:
Candles are colored based on their RSI values and the specified RSI levels.
3. Hoverable RSI Values:
Each candle displays its RSI value when hovered over, via a dynamically created label.
Multi-Timeframe Table:
A table at the bottom-left of the chart displays RSI values for all predefined timeframes, making it easy to compare trends.
Usage:
1. Trend Identification:
Use candle colors to quickly assess market conditions (overbought, oversold, or sideways).
2. Timeframe Analysis:
Compare RSI values across different timeframes to determine long-term and short-term momentum.
3. Signal Confirmation:
Combine RSI signals with other indicators or patterns for higher-confidence trades.
Best Practices
Use this indicator in conjunction with volume analysis, support/resistance levels, or trendline strategies for better results.
Customize RSI levels and timeframes based on your trading strategy or market conditions.
Limitations
RSI is a lagging indicator and may not always predict immediate market reversals.
Multi-timeframe analysis can lead to conflicting signals; consider your trading horizon.
Ultra Round NumbersThe Ultra Round Numbers indicator is designed to improve your market analysis by visually emphasizing significant price levels. These round numbers often act as psychological levels where traders and investors tend to make decisions. With this tool, you can easily spot these levels, adjust their precision, and customize their appearance.
Detailed Description
Ultra Round Numbers dynamically plots horizontal lines at key price intervals based on user-defined step sizes. These intervals represent round-numbered price levels, which can serve as critical support and resistance zones.
Step Configurations
The indicator features three customizable steps: Biggest, Middle, and Smallest.
Each step allows you to define:
The step size in price to determine the intervals for the lines.
The maximum number of lines above and below the current price.
The color, style, and thickness of the lines for better visualization.
The script efficiently handles the creation and deletion of lines to prevent clutter on the chart. It ensures only the relevant lines (from biggest step to lowest step) are displayed based on your settings and the current price movement.
This indicator is a powerful yet user-friendly indicator for identifying psychological price levels on your charts. With fully customizable steps, dynamic line management, and clean visuals, this tool empowers traders of all skill levels to make more informed trading decisions.
MATA GOLD RATIOMata Gold Instrument: User Guide
The Instrument to Gold Oscillator is a technical analysis tool that normalizes the ratio of an instrument's price (e.g., BTC/USD) to the price of gold (XAU/USD) into a 0-100 scale. This provides a clear and intuitive way to evaluate the relative performance of an instrument compared to gold over a specified period.
---
How It Works
1. Calculation of the Ratio:
The ratio is calculated as:
\text{Ratio} = \frac{\text{Instrument Price}}{\text{Gold Price}}
2. Normalization:
The ratio is normalized using the highest and lowest values over a user-defined period (length), typically 14 periods:
\text{Normalized Ratio} = \frac{\text{Ratio} - \text{Min(Ratio)}}{\text{Max(Ratio)} - \text{Min(Ratio)}} \times 100
3. Overbought/Oversold Levels:
Above 80: The instrument is relatively expensive compared to gold (overbought).
Below 20: The instrument is relatively cheap compared to gold (oversold).
---
How to Use the Oscillator
1. Identify Overbought and Oversold Levels:
If the oscillator rises above 80, the instrument may be overvalued relative to gold. This could signal a potential reversal or correction.
If the oscillator falls below 20, the instrument may be undervalued relative to gold. This could signal a buying opportunity.
2. Track Trends:
Rising oscillator values indicate the instrument is gaining value relative to gold.
Falling oscillator values indicate the instrument is losing value relative to gold.
3. Crossing the Midline (50):
When the oscillator crosses above 50, the instrument's value is gaining strength relative to gold.
When it crosses below 50, the instrument is weakening relative to gold.
4. Combine with Other Indicators:
Use this oscillator alongside other technical indicators (e.g., RSI, MACD, STOCH) for more robust decision-making.
Confirm signals from the oscillator with price action or volume analysis.
---
Example Scenarios
1. Trading Cryptocurrencies Against Gold:
If BTC/USD's oscillator value is above 80, Bitcoin may be overvalued relative to gold. Consider reducing exposure or looking for short opportunities.
If BTC/USD's oscillator value is below 20, Bitcoin may be undervalued relative to gold. This could be a good time to accumulate.
2. Commodities vs. Gold:
Analyze the relative strength of commodities (e.g., oil, silver) against gold using the oscillator to identify periods of overperformance or underperformance.
---
Advantages of the Oscillator
Relative Performance Insight: Tracks the performance of an instrument relative to gold, providing a macro perspective.
Clear Visual Representation: The 0-100 scale makes it easy to identify overbought/oversold conditions and trend shifts.
Customizable Periods: The user-defined length allows flexibility in analyzing short- or long-term trends.
---
Limitations
Dependence on Gold: As the oscillator is based on gold prices, any external shocks to gold (e.g., geopolitical events) can influence its signals.
No Absolute Buy/Sell Signals: The oscillator should not be used in isolation but as part of a broader analysis strategy.
---
By using the Instrument to Gold Oscillator effectively, traders and investors can gain valuable insights into the relative valuation and performance of assets compared to gold, enabling more informed trading and investment decisions.
Volume Footprint POC for Every CandleCalculating and plotting the Point of Control (POC) for every candle on a volume footprint chart can provide valuable insights for traders. Here are some interpretations and uses of this information:
1. Identify Key Price Levels
Highest Traded Volume: The POC represents the price level with the highest traded volume for each candle. This level often acts as a significant support or resistance level.
Confluence Zones: When multiple POCs align at similar price levels over several candles, it indicates strong support or resistance zones.
2. Gauge Market Sentiment
Buyer and Seller Activity: High volume at certain price levels can indicate where buyers and sellers are most active. A rising POC suggests stronger buying activity, while a falling POC suggests stronger selling activity.
Volume Profile: Analyzing the volume profile helps in understanding the distribution of traded volume across different price levels, providing insights into market sentiment and potential reversals.
3. Spot Trends and Reversals
Trend Continuation: Consistent upward or downward shifts in POC levels can indicate a trend continuation. Traders can use this information to stay in trending positions.
Reversal Signals: A sudden change in the POC direction may signal a potential reversal. This can be used to take profits or enter new positions.
4. Intraday Trading Strategies
Short-Term Trading: Intraday traders can use the POC to make informed decisions on entry and exit points. For example, buying near the POC during an uptrend or selling near the POC during a downtrend.
Scalping Opportunities: High-frequency traders can use shifts in the POC to scalp small profits from price movements around these key levels.
5. Volume-Based Indicators
Confirmation of Other Indicators: The POC can be used in conjunction with other technical indicators (e.g., moving averages, RSI) to confirm signals and improve trading accuracy.
Support and Resistance: Combining the POC with traditional support and resistance levels can provide a more comprehensive view of the market dynamics.
In summary, the Point of Control (POC) is a valuable tool for traders to understand market behavior, identify key levels, and make more informed trading decisions. If you have specific questions or need further details on how to use this information in your trading strategy, feel free to ask! 😊
BTC ETF Inflows and Outflows with Combined BTC CorrelationThis script tracks Bitcoin Spot ETF inflows and outflows, calculating their correlation with Bitcoin's price to identify market trends and sentiment. It provides visual insights into ETF flows and the relationship with BTC price movements.
NOTE: The script relies on volume and opens / closes for calculating inflows and outflows. An ETF might issue more shares, which would skew the numbers.