Dynamic Gann Levels [XrayTrades]This indicator dynamically captures the highest and lowest points visible on the chart and calculates Gann Support and Resistance Levels. The inputs are detailed below.
Why create this indicator?
There is no other indicator with the same functionality on TradingView.
These calculations are time-consuming; the speed at which this indicator calculates any number of rotations and degrees and visually displays them on the chart is invaluable to me, and hopefully others who use/perform these calculations.
Works on any time frame:
Year, month, week, day, etc. Smaller timeframes (intraday) for higher prices may require adjusting the y-axis of the chart after the calculation of levels due to the nature of squaring numbers.
Inputs:
Resistance: Up (from pivot low) - This toggles on/off levels calculated from the lowest point visible on the chart’s current view.
Support: Down (from pivot high) - This toggles on/off levels calculated from the highest point visible on the chart’s current view.
360 - Toggles on/off the levels of full rotations (360 degrees) from price
180 - Toggles on/off the levels of half rotations (180 degrees) from price
90 - Toggles on/off the levels of quarter rotations (90 degrees) from price
45 - Toggles on/off the levels of eighth rotations (45 degrees) from price
Full Rotations Visible - The number of rotations to be displayed on the chart
How to use this indicator:
Adjust chart window to change the highs and lows.
Select the degrees, direction, and number of rotations in the indicator settings.
The colored values beside the indicator represent the values (high and low) used in generating the Gann levels. Should the cursor be on the chart, ensure it is to the right of the high and low pivots, as this is dynamic in TradingView depending upon cursor location. Note: This is only for the user to know which value(s) are used; cursor position does not impact actual calculations and levels displayed.
The levels will be drawn to the right of the most recent price, labeled with the degrees and direction as well as the price value at the level.
About the calculations:
These calculations are derived from the Natural Square Calculator of Gann Theory, also known as the Square of Nines.
Details:
Take the square root of the selected value (lowest and or highest point).
Add (for up or subtract for down) 0.25 for every 45 degrees of rotation to the desired calculation.
Square this. Round to two decimal places.
Ex: Low of 100. Calculate Gann resistance level for 360 degrees. (√(100)+2)² = 144.
Ex: High of 100. Calculate Gann support level for 180 degrees. (√(100)-1)² = 81.
Analisis Trend
Market Structures SMC [TradingFinder] BOS/CHoCH Major & Minor🟣Introduction
Understanding market structure involves analyzing market behavior. In other words, market structure encompasses how the market forms and evolves within trends.
Market structures are typically fractal and nested, so we categorize them into internal (minor) and external (major) structures. There are various definitions of market structure, with different approaches such as Smart Money and ICT providing their own interpretations.
🟣How to Use
The first step in identifying market structure is to analyze key highs and lows. An uptrend is formed when highs and lows are successively higher than previous ones. Similarly, in a downtrend, lows and highs are successively lower than previous ones.
Market trends consist of two types of movements :
•Impulsive movements
•Corrective movements
Impulsive movements align with the main trend and possess high strength and momentum. Conversely, corrective movements go against the main trend and have lower strength and momentum. The following example illustrates these concepts.
🔵 Identifying Break of Structure (BOS)
In a specific trend, for example in a downtrend, when the price breaks below the previous low and forms a new low (LL), a Break of Structure occurs. In an uptrend, a BOS (Market Structure Break or MSB) happens when the price rises and surpasses the last high.
We need at least one BOS to confirm a trend. Breaking above or below the previous high or low must be confirmed by closing at least one candle after that level.
🔵 Identifying Change of Character (CHOCH)
Change of Character (CHOCH) is a key concept in market structure analysis. A change in structure signals a trend change. In other words, a trend ends with a CHOCH (Market Structure Shift or MSS). For instance, in a downtrend, the price declines with BOS.
BOS indicates the strength of the trend, but when the price increases and surpasses the last high, a CHOCH occurs, signaling a shift from a downtrend to an uptrend.
This does not mean entering a buy trade; instead, we should wait for a BOS in the upward direction to confirm the uptrend. Unlike BOS, confirming a CHOCH does not require a candle to close; simply breaking above or below the previous high or low with the candle's wick is sufficient. The following examples show bearish and bullish CHOCH.
🔵 Range Market Structure
Besides uptrends and downtrends, a third structure often found in the market is the range or sideways structure. In this state, the power of buyers and sellers is almost equal, and the market lacks a clear trend.
Many traders believe that the Forex market ranges 80% of the time. Therefore, it requires a lot of patience to wait for a new trend to start.
🟣 Settings
Through the settings, you can customize the display, visibility, and color of each line as desired.
Trend Angle IndicatorTrend Angle Indicator
Description
The Trend Angle Indicator is designed to measure the strength of a trend by calculating the angle of the trend.
Specifically, it computes the angle of a Simple Moving Average (SMA) over a specified length and then applies
an Exponential Moving Average (EMA) to the angle for smoothing.
This approach provides a clear indication of the trend's direction and intensity.
It also includes customizable alerts for significant changes in the trend angle and zero-line crossings,
making it a robust tool for traders seeking to gauge market momentum.
Key Features
- **Trend Angle Calculation**: Measures the trend's angle, providing insights into trend direction and strength.
- **SMA and EMA**: Uses SMA for the base calculation and EMA for smoothening the angle values.
- **Visual Trend Indication**: Visually indicates uptrends and downtrends with customizable colors - red and green.
- **Alerts**: Configurable alerts for significant changes in trend angle and zero-line crossings.
Calculation Methodology
1. **Simple Moving Average (SMA):**
- The script calculates the SMA of the close price over a user-defined `input_length`.
2. **Angle Calculation:**
- The height of the trend is calculated by subtracting the SMA value from the SMA value `input_length` bars ago. A higher angle value indicates a stronger trend.
- The angle in degrees is obtained using the arctangent function: \
3. **Exponential Moving Average (EMA):**
- Applies an EMA to the calculated angle to smooth out the values based on a user-defined `input_ma_length`.
4. **Trend Detection:**
The color of the angle plot and filled area provide a quick visual representation of the current trend direction
- The trend angle changes are monitored and visualized with color-coded plots.
- Uptrend: Angle >= 0 uses `upColor` (green).
- Downtrend: Angle < 0 uses `downColor` (red).
#### Using the Indicator
1. **Adding the Indicator:**
- Add the indicator to your TradingView chart by selecting it from the Pine Script library or by pasting the script into the Pine Script editor.
2. **Inputs:**
- **Length**: Defines the period for the SMA calculation.
- **MA Length**: Sets the period for the EMA smoothing.
- **Angle Change Threshold (degrees)**: Defines the threshold for significant angle change alerts.
- **Color Candles**: Optionally colorizes the price candles based on the angle's trend direction.
3. **Customizing Plots:**
- **Angle Plot**: Displays the EMA of the trend angle. The color changes based on whether the trend is up or down.
- **Zero Line**: A horizontal line at zero to easily visualize crossings that signify a change in trend direction.
- **Fill Color**: Fills the area above/below the zero line with colors representing the direction of the trend.
4. **Setting Alerts:**
- **Cross Above Zero**: Triggers an alert when the trend angle crosses above zero, indicating a potential start of an uptrend.
- **Cross Below Zero**: Triggers an alert when the trend angle crosses below zero, indicating a potential start of a downtrend.
- **Significant Angle Change**: Alerts when the angle change exceeds the user-defined threshold, highlighting significant trend changes.
#### Example Usage
To use and customize the Trend Angle Indicator on your chart:
1. **Add to Chart**: Apply the indicator from the TradingView library or by pasting the script into the Pine Script editor.
2. **Configure Inputs**:
- Adjust the `Length` to set the period for the SMA.
- Set the `MA Length` for the EMA smoothing.
- Define the `Angle Change Threshold` for receiving alerts on significant changes.
3. **Display Customization**:
- Enable `Color Candles` to have the price candles reflect the trend direction.
4. **Set Alerts**:
- Use the alert conditions provided to get notified about critical events like zero line crossings or significant angle changes.
Liquidity Grab Zones | Flux Charts💎 GENERAL OVERVIEW
Introducing our new Liquidity Grab Zones Indicator! This indicator finds liquidity grabs in the current ticker and renders buyside & sellside liquidity grab zones. The retests and breakout of the zones are labeled, and you can set up alerts to get notified. For more information, please check the "HOW DOES IT WORK" section.
Features of the new Liquidity Grab Zones Indicator :
Renders Buyside & Sellside Liquidity Grab Zones
Retests & Breaks
Inverse Zones After Broken Feature
Alerts For All Features
Customizable Algorithm
Customizable Styles
🚩UNIQUENESS
Liquidity grabs can be useful when determining candles that have executed a lot of market orders, so you can plann your trades accordingly. This indicator lets you customize the pivot length and the wick-body ratio for liquidity grabs, provide retest & breakout labels, with customized styling and alerts.
📌 HOW DOES IT WORK ?
Liquidity grabs occur when one of the latest pivots has a false breakout. Then, if the wick to body ratio of the bar is higher than 0.5 (can be changed from the settings) a zone is plotted.
These zones usually indicate areas of high market interest where price action may reverse or accelerate. Identifying these zones can provide traders with critical levels for entering or exiting trades. A breakout of these zones generally mean strong movements are inbound, while failing breakouts make these zones act like support / resistance zones.
The indicator also reverses the type of the zone after an invalidation (can be turned off from the settings). This feature helps traders identify potential reversals more accurately.
The zone width is set to the area from the wick to the body of the candlestick, which can be seen here :
⚙️SETTINGS
1. General Configuration
Pivot Length -> This setting determines the range of the pivots. This means a candle has to have the highest / lowest wick of the previous X bars and the next X bars to become a high / low pivot.
Wick-Body Ratio -> After a pivot has a false breakout, the wick-body ratio of the latest candle is tested. The resulting ratio must be higher than this setting for it to be considered as a liquidity grab.
Zone Invalidation -> Select between Wick & Close price for Liquidity Grab Zone Invalidation.
Use these customizable settings to fine-tune the indicator according to your trading strategy and preferences.
Volume Storm Trend [ChartPrime]The Volume Storm Trend (VST) indicator is a robust tool for traders looking to analyze volume momentum and trend strength in the market. By incorporating key volume-based calculations and dynamic visualizations, VST provides clear insights into market conditions.
Components:
Calculating the median of the source data.
Volume Power Calculation: The indicator calculates the "heat power" and "cold power" by applying an Exponential Moving Average (EMA) to the median of volume data arrays.
// ---------------------------------------------------------------------------------------------------------------------}
// 𝙄𝙉𝘿𝙄𝘾𝘼𝙏𝙊𝙍 𝘾𝘼𝙇𝘾𝙐𝙇𝘼𝙏𝙄𝙊𝙉𝙎
// ---------------------------------------------------------------------------------------------------------------------{
max_val = 1000
src = close
source = ta.median(src, len)
heat.push(src > source ? (volume > max_val ? max_val : volume) : 0)
heat.remove(0)
cold.push(src < source ? (volume > max_val ? max_val : volume) : 0)
cold.remove(0)
heat_power = ta.ema(heat.median(), 10)
cold_power = ta.ema(cold.median(), 10)
Visualization:
Gradient Colors: The indicator uses gradient colors to visualize bullish volume and bearish volume powers, providing a clear contrast between rising and falling trends.
Bars Fill Color: The color fill between high and low prices changes based on whether the heat power is greater than the cold power.
Bottom Line: A zero line with changing colors based on the dominance of heat or cold power.
Weather Symbols: Visual indicators ("☀" for hot weather and "❄" for cold weather) appear on the chart when the heat and cold powers crossover, helping traders quickly identify trend changes.
Inputs:
Source: The input data source, typically the closing price.
Median Length: The period length for calculating the median of the source. Default is 40.
Volume Length: The period length for calculating the average volume. Default is 3.
Show Weather: A toggle to display weather symbols on the chart. Default is false.
Temperature Type: Allows users to choose between Celsius (°C) and Fahrenheit (°F) for temperature display.
Show Weather Function:
The `Show Weather?` function enhances the VST indicator by displaying weather symbols ("☀" for hot and "❄" for cold) when there are significant crossovers between heat power and cold power. This feature adds a visual cue for potential market tops and bottoms. When the market heats to a high temperature, it often indicates a potential top, signaling traders to consider exiting long positions or preparing for a reversal.
Additional Features:
Dynamic Table Display: A table displays the current "temperature" on the chart, indicating market heat based on the calculated heat and cold powers.
The Volume Storm Trend indicator is a powerful tool for traders
looking to enhance their market analysis with volume and momentum insights, providing a clear and visually appealing representation of key market dynamics.
Adaptive RSI StrategyThe Adaptive RSI Strategy is designed to give you an edge by adapting to changing market conditions more effectively than the traditional RSI. By adjusting dynamically to recent price movements, this strategy aims to provide more timely and accurate trade signals.
How Does It Work?
You can set the number of periods for the RSI calculation. The default is 14, but feel free to experiment with different lengths to suit your trading style.
Choose the price data to base the RSI on, typically the closing price.
Decide if you want the strategy to visually highlight upward and downward movements of the Adaptive RSI (ARSI) on the chart. This can help you quickly spot trends.
Adaptive Calculation:
Alpha: The strategy uses an adaptive factor called alpha, which changes based on recent RSI values. This makes the RSI more sensitive to recent market conditions.
Adaptive RSI (ARSI): This is the core of our strategy. It calculates the ARSI using the adaptive alpha, making it more responsive to price changes compared to the traditional RSI.
Trade Signals:
Long Entry (Buy Signal): The strategy triggers a buy signal when the ARSI value crosses above its previous value. This indicates a potential upward trend, suggesting it's a good time to enter a long position.
Short Entry (Sell Signal): Conversely, a sell signal is triggered when the ARSI value crosses below its previous value, indicating a potential downward trend and suggesting it's a good time to enter a short position.
Visual Representation:
If you enable the highlight movements feature, the ARSI line on the chart will change color: green for upward movements and red for downward movements. This makes it easier to see potential trade opportunities at a glance.
Why Use the Adaptive RSI Strategy?
Responsiveness: The adaptive nature of this strategy means it's more sensitive to market changes, helping you react quicker to new trends.
Customization: You can tailor the length of the RSI period and decide whether to highlight movements, allowing you to adapt the strategy to your specific needs and preferences.
Visual Clarity: Highlighting the ARSI movements on the chart makes it easier to spot trends and potential entry points, giving you a clearer picture of the market.
Indecisive CandlesAn Indecisive Candle, often referred to as a Base Candle, is a pivotal element in technical analysis, particularly for identifying institutional supply and demand zones. These candles are characterized by their small bodies and long wicks, reflecting a balance between buyers and sellers, indicating a potential pause or consolidation in the market.
To calculate whether a candle qualifies as an indecisive candle based on the criterion that its body (the absolute difference between its open and close prices) is less than or equal to 50% of the total range of the candle (the difference between its high and low prices).
Key Features:
Small Real Body: Signifies minimal movement from open to close, indicating market indecision.
Long Upper and Lower Wicks: Show that both bulls and bears attempted to control the price, but neither succeeded, leading to a standoff.
Formation Context: Typically found at the end of a strong trend or within a consolidation phase, hinting at a potential reversal or continuation pattern.
Usage in Identifying Institutional Supply and Demand:
Supply Zones: When an Indecisive Candle forms after a rally, it can mark the onset of an institutional supply zone, suggesting that large entities are starting to sell, leading to potential downward pressure.
Demand Zones: Conversely, when this candle appears after a downtrend, it often signals the emergence of a demand zone, where institutions begin to accumulate, anticipating a price increase.
Trading Strategies:
Zone Identification: Use Indecisive Candles to pinpoint key supply and demand zones on your chart, enhancing the accuracy of your support and resistance levels.
Confirmation: Look for confirmation from subsequent price action or volume spikes to validate the presence of institutional activity before making trading decisions.
Risk Management: Place stop-loss orders beyond the wicks of these candles to protect against false breakouts or continued indecision.
Conclusion:
Indecisive Candles are essential tools for traders looking to understand market sentiment and institutional behavior. By mastering their identification and interpretation, you can enhance your ability to spot high-probability trading opportunities and manage risks effectively.
Wicks Rejection PercentagesAnalyzing wick rejection percentages can provide insights into market sentiment and potential future price movements. For example, high wick rejection percentages at key support or resistance levels may indicate strong buying or selling interest and could influence trading decisions.
Trend Following Parabolic Buy Sell Strategy [TradeDots]The Trend Following Parabolic Buy-Sell Strategy leverages the Parabolic SAR in combination with moving average crossovers to deliver buy and sell signals within a trend-following framework.
This strategy synthesizes proven methodologies sourced from various trading tutorials available on platforms such as YouTube and blogs, enabling traders to conduct robust backtesting on their selected trading pairs to assess the strategy's effectiveness.
HOW IT WORKS
This strategy employs four key indicators to orchestrate its trading signals:
1. Trend Alignment: It first assesses the relationship between the price and the predominant trendline to determine the directional stance—taking long positions only when the price trends above the moving average, signaling an upward market trajectory.
2. Momentum Confirmation: Subsequent to trend alignment, the strategy looks for moving average crossovers as a confirmation that the price is gaining momentum in the direction of the intended trades.
3. Signal Finalization: Finally, buy or sell signals are validated using the Parabolic SAR indicator. A long order is validated when the closing price is above the Parabolic SAR dots, and similarly, conditions are reversed for short orders.
4. Risk Management: The strategy institutes a fixed stop-loss at the moving average trendline and a take-profit level determinable by a prefixed risk-reward ratio calculated from the moving average trendline. These parameters are customizable by the users within the strategy settings.
APPLICATION
Designed for assets exhibiting pronounced directional momentum, this strategy aims to capitalize on clear trend movements conducive to achieving set take-profit targets.
As a lagging strategy that waits for multiple confirmatory signals, entry into trades might occasionally lag beyond optimal timing.
Furthermore, in periods of consolidation or sideways movement, the strategy may generate several false signals, suggesting the potential need for additional market condition filters to enhance signal accuracy during volatile phases.
DEFAULT SETUP
Commission: 0.01%
Initial Capital: $10,000
Equity per Trade: 70%
Users are advised to adjust and personalize this trading strategy to better match their individual trading preferences and style.
RISK DISCLAIMER
Trading entails substantial risk, and most day traders incur losses. All content, tools, scripts, articles, and education provided by TradeDots serve purely informational and educational purposes. Past performances are not definitive predictors of future results.
VWAP Suite, Session Cloud RevOverview
The VWAP Suite with Standard Deviation Strategy is a comprehensive indicator designed to help traders make informed trading decisions based on the Volume Weighted Average Price (VWAP) and its associated standard deviation bands. This indicator provides multiple VWAP calculations for different timeframes (Session, Day, Week, Month) and incorporates standard deviation bands to identify potential trade entry and exit points.
Components
VWAP Calculation:
Session VWAP: VWAP calculated based on the current trading session.
Day VWAP: VWAP calculated for the daily timeframe.
Week VWAP: VWAP calculated for the weekly timeframe.
Month VWAP: VWAP calculated for the monthly timeframe.
Standard Deviation Bands:
The indicator includes three standard deviation bands (StDev 1, StDev 2, and StDev 3) around the VWAP. These bands help identify the dispersion of price from the VWAP, providing insight into potential overbought or oversold conditions.
Additional VWAP Lines:
VWAP 2: An additional VWAP line with a customizable timeframe (Day, Week, Month).
VWAP 3: Another VWAP line for further analysis with a customizable timeframe (Day, Week, Month).
Strategy Description
The primary strategy implemented in this indicator revolves around the second standard deviation band (StDev 2). The key aspects of this strategy include:
Entry Points:
Long Entry: Consider entering a long position when the price moves below the lower StDev 2 band and then starts to revert back towards the VWAP. This indicates a potential oversold condition.
Short Entry: Consider entering a short position when the price moves above the upper StDev 2 band and then starts to revert back towards the VWAP. This indicates a potential overbought condition.
Exit Points:
Long Exit: Exit the long position when the price moves back up to the VWAP or the upper StDev 1 band, indicating a normalization of the price.
Short Exit: Exit the short position when the price moves back down to the VWAP or the lower StDev 1 band, indicating a normalization of the price.
Risk Management:
Set stop-loss levels slightly beyond the StDev 3 bands to protect against significant adverse price movements.
Use trailing stops to lock in profits as the price moves favorably.
Customization
The VWAP Suite allows for extensive customization, enabling traders to adjust the following settings:
VWAP Mode: Select the timeframe for the primary VWAP calculation (Session, Day, Week, Month).
Line Widths and Colors: Customize the line widths and colors for VWAP and standard deviation bands.
Fill Opacity: Adjust the opacity of the fill between standard deviation bands for better visual clarity.
Additional VWAPs: Enable and customize additional VWAP lines (VWAP 2 and VWAP 3) for further analysis.
COT Index Commercials vs large and small SpeculatorsThe COT reports for futures-only Commitments of Traders and for Futures and Options Combined Commitments of Traders are collected on Tuesdays and published every Friday at 3:30 p.m. Eastern time. The raw data is available free of charge on the Commodity Futures Trading Commission (CFTC) website.
Use it to get a better understanding on which side the smart money (producers, commercials) are trading on.
The COT index ranges from 0 to 100%. Extreme values are areas below 25% and above 75%. When the index reaches 0% or 100%, it means that the market participant has the most extreme net short or net long position in the last 26 weeks. Readings below 25% are considered as a short sentiment and readings above 75% are considered long sentiment. However the COT index is not a timing tool. It only shows the overall market sentiment of the smart money in relation over the past 26 weeks.
You can change the period to calculate the index, as well as the style, which lines to show and if you want to highlight the extreme arias.
ZigZag Smart Trend [TradingFinder] Major & Minor Structured Wave🔵 Introduction
🟣 Zigzag
Zigzag is a lagging indicator; this indicator identifies points on a price chart that have more significant changes than its previous wave and then by connecting these lines to each other, it assists traders in trend detection.
This indicator reduces random price fluctuations and attempts to make the primary price trend clearer.
🟣 Pivot
Pivots are points where the price chart changes direction. Pivots, also called reversal points, form when supply and demand forces dominate one another.
Different types of technical analysis pivots can be introduced into two categories, minor pivots, and major pivots, each of which has a specific meaning in analysis.
Major Pivot : These pivots actually indicate major changes in the direction of the chart and occur at the end of trends. Analysts seeking to reach the primary analysis focus more on major pivot points. In fact, most technical analysis tools are examined and determined based on major pivots.
Minor Pivot : This type of pivot focuses more on small and subsidiary points and directions. Therefore, it occurs at the end of corrections. Analysts focusing on minor pivots represent small trends, and it should be noted that minor pivots are not suitable for use in primary technical tools.
How to identify minor and major pivots :
Minor pivots are pivots formed between two major pivots and fail to break the opposite major pivot.
Major pivots are pivots that have either successfully broken the opposite pivot or have moved more than the previous pivot of the same type.
🔵 How to use
Based on identifying pivots and drawing zigzag lines, you can have various uses for this indicator.
Identifying support and resistance levels :
Identifying Elliott Waves :
Identifying classic patterns :
Identifying pivots with higher validity :
Identifying internal and external breakouts :
Identifying trends and range areas :
Identifying pivot types along with major and minor recognition :
MHH : Major Higher High
MLH : Major Lower High
MLL : Major Lower Low
MHL : Major Higher Low
mHH : Minor Higher High
mLH : Minor Lower High
mLL : Minor Lower Low
mHL : Minor Higher Low
🔵 Settings
Pivot Period Zigzag Line : Using this input, you can determine the pivot period for identifying zigzag swings.
Show Zigzag Line : To show or not to show the zigzag line.
Zigzag Line Color : Change the color of the zigzag line.
Zigzag Line Style : Change the Style of the zigzag line.
Zigzag Line Width : Change the Width of the zigzag line.
Show Label : To show or not to show Pivot Type.
Color Label : Change the color of the Pivot Type Label.
Ichimoku Theories [LuxAlgo]The Ichimoku Theories indicator is the most complete Ichimoku tool you will ever need. Four tools combined into one to harness all the power of Ichimoku Kinkō Hyō.
This tool features the following concepts based on the work of Goichi Hosoda:
Ichimoku Kinkō Hyō: Original Ichimoku indicator with its five main lines and kumo.
Time Theory: automatic time cycle identification and forecasting to understand market timing.
Wave Theory: automatic wave identification to understand market structure.
Price Theory: automatic identification of developing N waves and possible price targets to understand future price behavior.
🔶 ICHIMOKU KINKŌ HYŌ
Ichimoku with lines only, Kumo only and both together
Let us start with the basics: the Ichimoku original indicator is a tool to understand the market, not to predict it, it is a trend-following tool, so it is best used in trending markets.
Ichimoku tells us what is happening in the market and what may happen next, the aim of the tool is to provide market understanding, not trading signals.
The tool is based on calculating the mid-point between the high and low of three pre-defined ranges as the equilibrium price for short (9 periods), medium (26 periods), and long (52 periods) time horizons:
Tenkan sen: middle point of the range of the last 9 candles
Kinjun sen: middle point of the range of the last 26 candles
Senkou span A: middle point between Tankan Sen and Kijun Sen, plotted 26 candles into the future
Senkou span B: midpoint of the range of the last 52 candles, plotted 26 candles into the future
Chikou span: closing price plotted 26 candles into the past
Kumo: area between Senkou pans A and B (kumo means cloud in Japanese)
The most basic use of the tool is to use the Kumo as an area of possible support or resistance.
🔶 TIME THEORY
Current cycles and forecast
Time theory is a critical concept used to identify historical and current market cycles, and use these to forecast the next ones. This concept is based on the Kihon Suchi (translating to "Basic Numbers" in Japanese), these are 9 and 26, and from their combinations we obtain the following sequence:
9, 17, 26, 33, 42, 51, 65, 76, 129, 172, 200, 257
The main idea is that the market moves in cycles with periods set by the Kihon Suchi sequence.
When the cycle has the same exact periods, we obtain the Taito Suchi (translating to "Same Number" in Japanese).
This tool allows traders to identify historical and current market cycles and forecast the next one.
🔹 Time Cycle Identification
Presentation of 4 different modes: SWINGS, HIGHS, KINJUN, and WAVES .
The tool draws a horizontal line at the bottom of the chart showing the cycles detected and their size.
The following settings are used:
Time Cycle Mode: up to 7 different modes
Wave Cycle: Which wave to use when WAVE mode is selected, only active waves in the Wave Theory settings will be used.
Show Time Cycles: keep a cleaner chart by disabling cycles visualisation
Show last X time cycles: how many cycles to display
🔹 Time Cycle Forecast
Showcasing the two forecasting patterns: Kihon Suchi and Taito Suchi
The tool plots horizontal lines, a solid anchor line, and several dotted forecast lines.
The following settings are used:
Show time cycle forecast: to keep things clean
Forecast Pattern: comes in two flavors
Kihon Suchi plots a line from the anchor at each number in the Kihon Suchi sequence.
Taito Suchi plot lines from the anchor with the same size detected in the anchored cycle
Anchor forecast on last X time cycle: traders can place the anchor in any detected cycle
🔶 WAVE THEORY
All waves activated with overlapping
The main idea behind this theory is that markets move like waves in the sea, back and forth (making swing lows and highs). Understanding the current market structure is key to having realistic expectations of what the market may do next. The waves are divided into Simple and Complex.
The following settings are used:
Basic Waves: allows traders to activate waves I, V and N
Complex Waves: allows traders to activate waves P, Y and W
Overlapping waves: to avoid missing out on any of the waves activated
Show last X waves: how many waves will be displayed
🔹 Basic Waves
The three basic waves
The basic waves from which all waves are made are I, V, and N
I wave: one leg moves
V wave: two legs move, one against the other
N wave: Three legs move, push, pull back, and another push
🔹 Complex Waves
Three complex waves
There are other waves like
P wave: contracting market
Y wave: expanding market
W wave: double top or double bottom
🔶 PRICE THEORY
All targets for the current N wave with their calculations
This theory is based on identifying developing N waves and predicting potential price targets based on that developing wave.
The tool displays 4 basic targets (V, E, N, and NT) and 3 extended targets (2E and 3E) according to the calculations shown in the chart above. Traders can enable or disable each target in the settings panel.
🔶 USING EVERYTHING TOGETHER
Please DON'T do this. This is not how you use it
Now the real example:
Daily chart of Nasdaq 100 futures (NQ1!) with our Ichimoku analysis
Time, waves, and price theories go together as one:
First, we identify the current time cycles and wave structure.
Then we forecast the next cycle and possible key price levels.
We identify a Taito Suchi with both legs of exactly 41 candles on each I wave, both together forming a V wave, the last two I waves are part of a developing N wave, and the time cycle of the first one is 191 candles. We forecast this cycle into the future and get 22nd April as a key date, so in 6 trading days (as of this writing) the market would have completed another Taito Suchi pattern if a new wave and time cycle starts. As we have a developing N wave we can see the potential price targets, the price is actually between the NT and V targets. We have a bullish Kumo and the price is touching it, if this Kumo provides enough support for the price to go further, the market could reach N or E targets.
So we have identified the cycle and wave, our expectations are that the current cycle is another Taito Suchi and the current wave is an N wave, the first I wave went for 191 candles, and we expect the second and third I waves together to amount to 191 candles, so in theory the N wave would complete in the next 6 trading days making a swing high. If this is indeed the case, the price could reach the V target (it is almost there) or even the N target if the bulls have the necessary strength.
We do not predict the future, we can only aim to understand the current market conditions and have future expectations of when (time), how (wave), and where (price) the market will make the next turning point where one side of the market overcomes the other (bulls vs bears).
To generate this chart, we change the following settings from the default ones:
Swing length: 64
Show lines: disabled
Forecast pattern: TAITO SUCHI
Anchor forecast: 2
Show last time cycles: 5
I WAVE: enabled
N WAVE: disabled
Show last waves: 5
🔶 SETTINGS
Show Swing Highs & Lows: Enable/Disable points on swing highs and swing lows.
Swing Length: Number of candles to confirm a swing high or swing low. A higher number detects larger swings.
🔹 Ichimoku Kinkō Hyō
Show Lines: Enable/Disable the 5 Ichimoku lines: Kijun sen, Tenkan sen, Senkou span A & B and Chikou Span.
Show Kumo: Enable/Disable the Kumo (cloud). The Kumo is formed by 2 lines: Senkou Span A and Senkou Span B.
Tenkan Sen Length: Number of candles for Tenkan Sen calculation.
Kinjun Sen Length: Number of candles for the Kijun Sen calculation.
Senkou Span B Length: Number of candles for Senkou Span B calculation.
Chikou & Senkou Offset: Number of candles for Chikou and Senkou Span calculation. Chikou Span is plotted in the past, and Senkou Span A & B in the future.
🔹 Time Theory
Show Time Cycle Forecast: Enable/Disable time cycle forecast vertical lines. Disable for better performance.
Forecast Pattern: Choose between two patterns: Kihon Suchi (basic numbers) or Taito Suchi (equal numbers).
Anchor forecast on last X time cycle: Number of time cycles in the past to anchor the time cycle forecast. The larger the number, the deeper in the past the anchor will be.
Time Cycle Mode: Choose from 7 time cycle detection modes: Tenkan Sen cross, Kijun Sen cross, Kumo change between bullish & bearish, swing highs only, swing lows only, both swing highs & lows and wave detection.
Wave Cycle: Choose which type of wave to detect from 6 different wave types when the time cycle mode is set to WAVES.
Show Time Cycles: Enable/Disable time cycle horizontal lines. Disable for better performance.
how last X time cycles: Maximum number of time cycles to display.
🔹 Wave Theory
Basic Waves: Enable/Disable the display of basic waves, all at once or one at a time. Disable for better performance.
Complex Waves: Enable/Disable complex wave display, all at once or one by one. Disable for better performance.
Overlapping Waves: Enable/Disable the display of waves ending on the same swing point.
Show last X waves: 'Maximum number of waves to display.
🔹 Price Theory
Basic Targets: Enable/Disable horizontal price target lines. Disable for better performance.
Extended Targets: Enable/Disable extended price target horizontal lines. Disable for better performance.
Multiple MAs Signals with RSI MA Filter & Signal About the Script
The "Multiple Moving Averages Signals with RSI MA Filter and Golden Signals" script is a comprehensive trading tool designed to provide traders with detailed insights and actionable signals based on multiple moving averages and RSI (Relative Strength Index). This script combines traditional moving average crossovers with RSI filtering to enhance the accuracy of trading signals and includes "golden" signals to highlight significant long-term trend changes.
This script integrates several technical indicators and concepts to create a robust and versatile trading tool. Here's why this combination is both original and useful:
1. Multiple Moving Averages:
- Why Use Multiple MAs: Different types of moving averages (SMA, EMA, SMMA, WMA, VWMA, Hull) offer unique perspectives on price trends and volatility. Combining them allows traders to capture a more comprehensive view of the market.
- Purpose: Using multiple moving averages helps identify trend direction, support/resistance levels, and potential reversal points.
2. RSI MA Filter:
- Why Use RSI: RSI is a momentum oscillator that measures the speed and change of price movements. It is used to identify overbought or oversold conditions in a market.
- Purpose: Filtering signals with RSI moving averages ensures that trades are taken in line with the prevailing momentum, reducing the likelihood of false signals.
3. Golden Signals:
- Why Use Golden Crosses: A golden cross (50-period MA crossing above the 200-period MA) is a well-known bullish signal, while a death cross (50-period MA crossing below the 200-period MA) is bearish. These signals are widely followed by traders and institutions.
- Purpose: Highlighting these significant long-term signals helps traders identify major buy or sell opportunities and align with broader market trends.
How the Script Works
1. Moving Average Calculations:
- The script calculates multiple moving averages (MA1 to MA5) based on user-selected types (SMA, EMA, SMMA, WMA, VWMA, Hull) and periods (9, 21, 50, 100, 200).
- Golden Moving Averages: Separately calculates 50-period and 200-period moving averages for generating golden signals.
2. RSI and RSI MA Filter:
- RSI Calculation: Computes the RSI for the given period.
- RSI MA: Calculates a moving average of the RSI to smooth out the RSI values and reduce noise.
- RSI MA Filter: Traders can enable/disable RSI filtering and set custom thresholds to refine long and short signals based on RSI momentum.
3. Long & Short Signal Generation:
- Long Signal: Generated when the short-term moving average crosses above both the mid-term and long-term moving averages, and the RSI MA is below the specified threshold (if enabled).
- Short Signal: Generated when the short-term moving average crosses below both the mid-term and long-term moving averages, and the RSI MA is above the specified threshold (if enabled).
4. Golden Signals:
- Golden Long Signal: Triggered when the 50-period golden moving average crosses above the 200-period golden moving average.
- Golden Short Signal: Triggered when the 50-period golden moving average crosses below the 200-period golden moving average.
How to Use the Script
1. Customize Inputs:
- Moving Averages: Choose the type of moving averages and set the periods for up to five different moving averages.
- RSI Settings: Adjust the RSI period and its moving average period. Enable or disable RSI filtering and set custom thresholds for long and short signals.
- Signal Colors: Customize the colors for long, short, and golden signals.
- Enable/Disable Signals: Toggle the visibility of long, short, and golden signals.
2. Observe Plots and Signals:
- The script plots the selected moving averages on the chart.
- Long and short signals are marked with labels on the chart, with customizable colors for easy identification.
- Golden signals are highlighted with specific labels to indicate significant long-term trend changes.
3. Analyze and Trade:
- Use the generated signals as part of your trading strategy. The script provides visual cues to help you make informed decisions about entering or exiting trades based on multiple technical indicators.
Unique Features
1. Integration of Multiple Moving Averages: Combines various moving average types to provide a holistic view of market trends.
2. RSI MA Filtering: Enhances signal accuracy by incorporating RSI momentum, reducing the likelihood of false signals.
3. Golden Signals: Highlights significant long-term trend changes, aligning with broader market movements.
4. Customizability: Offers extensive customization options, allowing traders to tailor the script to their specific trading strategies and preferences.
feel free to comments.
Total Death and Golden Crosses Calculator The Indicator calculates the total number of the death and golden crosses in the total chart which can help the moving average user to compare the number of signals generated by the moving average pair in the given timeframe.
All you need is to plot any two moving average then change the source of the indicator to get the total number of crosses.
If Indicator is not plotting anything then right click on the indicator's scale and click on "Auto(data fits the screen" option.
Phaser [QuantVue]The Phaser indicator is a tool to help identify inflection points by looking at price relative to past prices across multiple timeframes and assets.
Phase 1 looks for the price to be higher or lower than the closing price of the bar 4 bars earlier and is complete when 9 consecutive bars meet this criterion.
A completed Phase 1 is considered perfect when the highs (bearish) or lows (bullish) have been exceeded from bars 6 and 7 of the phase.
A bullish setup requires 9 consecutive closes less than the close 4 bars earlier.
A bearish setup requires 9 consecutive closes greater than the close 4 bars earlier.
Phase 2 begins once Phase 1 has been completed. Phase 2 compares the current price to the high or low of two bars earlier.
Unlike Phase 1, Phase 2 does not require the count to be consecutive.
Phase 2 is considered complete when 13 candles have met the criteria.
An important aspect to Phase 2 is the relationship between bar 13 and bar 8.
To ensure the end of Phase 2 is in line with the existing trend, the high or low of bar 13 is compared to the close of bar 8.
A bullish imperfect 13 occurs when the current price is less than the low of 2 bars earlier, but the current low is greater than the close of bar 8 in Phase 2.
A bearish imperfect 13 occurs when the current price is greater than the high of 2 bars earlier, but the current high is less than the close of bar 8 in Phase 2.
Phase 2 does not need to go until it is complete. A Phase 2 can be canceled if the price closes above or below the highest or lowest price from Phase 1.
Settings
3 Tickers
3 Timeframes
Show Phase 1
Show Phase 2
User-selected colors
Johnny's Trend Lines, Supports and ResistancesInspired and based on ismailcarlik's Trend Lines, Supports and Resistances.
Additions include an overall upgrade to Pinescript v5, changes in the way resistance and support levels are calculated, improved visual queues, and additional customization options.
This indicator is meticulously crafted to provide traders with visual tools for identifying trend lines, support, and resistance levels, enhancing the decision-making process in trading activities.
Features and Functionality
Trend Lines: The indicator allows users to enable or disable trend lines, adjust the number of points to check for establishing a trend, and set parameters for trend validation, including the maximum violation and exceptions for the last bars.
Support and Resistance: It offers tools to identify and visualize key support and resistance levels based on recent pivot points. This includes adjustable parameters for the maximum violations allowed and the exclusion of recent bars from the analysis.
Pivot Points: Users can define the pivot length for calculating highs and lows, which helps in marking significant pivot points that are instrumental in trend analysis.
Alerts and Notifications: The indicator is equipped with customizable alerts for trend line breaches and pivot point formations, which can be set to trigger at different frequencies based on user preference.
How It Works
Input Flexibility: Users can adjust various settings like the length of trend lines and pivot points, enabling or disabling specific features like marking pivots, and managing alert settings directly from the indicator’s input panel.
Dynamic Analysis: By analyzing the price action relative to the calculated trend lines and pivot points, the indicator dynamically identifies potential trend reversals, continuations, and significant price levels.
Visualization: It plots trend lines and marks support and resistance levels directly on the chart, with options to extend these lines and add labels for better clarity. Violated trend lines can be visually differentiated by changing their style and width.
Practical Application
Trend Line Strategy: Traders can use the trend lines to determine the strength of the current market trend and to spot potential reversal points.
Support and Resistance Strategy: By marking where the price has historically faced resistance or found support, traders can plan entry and exit points, set stop-loss orders, or identify breakout opportunities.
Pivot Points Strategy: Pivot points serve as vital indicators for intraday trading or long-term trend analysis, providing insights into potential support and resistance levels.
Customization and Alerts
Custom Alerts: Traders can set alerts for when the price crosses trend lines or when new support or resistance levels are formed, helping them stay informed of critical market movements without having to continuously monitor the charts.
Visual Customization: Users can personalize the appearance of trend lines and labels, choosing from a variety of colors and styles to match their chart setup or preferences.
"Johnny's Trend Lines, Supports and Resistances" is an essential tool for traders who rely on technical analysis, offering detailed insights and real-time updates on market conditions, trend strength, and potential price barriers.
Papercuts Recency CandlesPapercuts Recency Candles
V0.8 by Joel Eckert @PapercutsTrading
***This is currently an experimental visual exploratory concept.***
*** Experimental tools should only be explored by fellow coders and experienced traders.***
DESCRIPTION:
As coders, how can we seamlessly transition between actual and smoothed price data sets as data ages?
This is a visual experiment to see if and how data can be smoothly transitioned from one value to another over a set number of candles. If we visualize a chart in 3 zones, a head, a body, and a tail we can start to understand how this could work. The head zone would represent the first data set of actual asset prices. The body zone would represent the transition period from the first to the to the second data set. Last, the tail zone would represent the second data set made of a Hull Moving Average of the asset.
CONCEPT:
It is conceived that data and position precision constantly shift as they decay or age, therefore making older price levels act more like price regions or zones vs exact price points. This is what I am calling Recency.
This indicator utilizes the concept of "Recency" to explore the possibility of a new style of candle. It aims to maintain accurately on recent prices action but loosen up accuracy on older price action. The very nature of this requires ALTERING HISTORICAL DATA within the body zone or transition candles to achieve the effect. It is similar to trying to merge a line chart type with a candle chart type.
This experiment of using recency for candles was to create candles that stay more accurate near current price but fade away into a simple line as they age out, resulting in a simplified view of the big picture which consists of older price action.
This experimental design theoretically will help you stay focused only on what is currently unfolding and to minimize distractions from older price nuances.
USAGE:
WHO:
This is not recommended for new traders or novices that are unfamiliar with standard tools. Standardized tools should always be used to get grounded and build a foundation.
Active traders who are familiar with trading comfortably should experiment with this to see if they find it interesting or usable.
Pine coders may find this concept interesting enough, and may adapt the idea to other elements of their own scripts if they find it interesting… I just ask they give credit where credit is due.
HOW:
The best way to visualize how this works is to do the following:
Load it on a chart.
Turn off Standard candles in Chart Setting of the current window. I actually just turn off the bodies and borders, and dim the old wicks as I like the way the old wicks look when left alone with these new candles.
Enable chart replay at a faster speed, like 3x, and play back the chart to watch the behavior of the candles.
You’ll be able to see how the head of the candle type preserves OHLC, and indicates direction but as the candle starts to age it progressively flowers into the HMA
While it plays back try adjusting settings to see how they affect behavior.
You can see the data average in real-time which often reveals how unstable actual price noise really is.
The head candle diagonals indicate the candle body direction.
SETTINGS:
Coloring: You can choose your own bullish or bearish colors to match your scheme.
Price Line: The price line is colored according to the trend and
Head Length: These candles are true to the source high and low. They remain slightly brighter than transition candles. We have a max of 50 to keep things responsive.
Time Decay Length: This is the amount of candles it takes to transition to the tail. Max is 300 to keep things responsive.
Decay Continuity: This forces transition candles to complete the HMA curve instead of creating gaps when conforming to it. The best way to visualize this feature is to run a 3x replay of an asset, and toggle the result on and off. On is preferred.
Tail HMA Length: This is the smoothing amount for the resulting HMA stepline that calculates every close, but has a delayed draw until after the transition candles. You can optionally turn off the delayed visibility to help with comprehension.
Tail HMA Weight: This is simply an option to make the tail thicker or thinner. This also adjusts the border on the head candles to help them stand out.
Show Side Bias Dots: Default true: Draws a dot when bias to one side changes to help keep you on the right side of trade. Side bias is simply the alignment of 3 moving averages in one direction.
IMPORTANT NOTES:
You'll have to turn off or dim the standard candles in your view "Chart Settings" to see this properly.
Be aware that since the candles are based on boxes and utilize the “recency concept”, which means their data decays and changes as it ages. This results in a cleaner chart overall, but exact highs and lows will be averaged out as the data decays, forming a Hull Moving Average stepline of your defined length once decay has finished.
SUMMARY OF HOW IT WORKS:
First it takes candle information and creates unique boxes that represent each candle based on the high and low. It utilizes boxes because standard candles once written, cannot be later altered or removed… which is a key element for this effect to work.
Next it creates a second box and line from open to close for the body of the Head candles. This indicates direction at a glance.
As candles age beyond the defined distance of the “Head” they enter the "Body" aka "Time Decay" zone. Here the accuracy of the high and low will be averaged down using an incremental factor of the HMA, defined by "Time Decay Length" amount of candles.
The resulting tail is an HMA of Tail HMA Length. This tail is always calculate at close, but is not drawn instantly. The draw is delayed so that there is not overlapping data, and this makes the effect look more elegant.
There are also two EMAs within the script that do nothing but help candle coloring and help provide a trade side bias. When both EMA's and the HMA align, a side bias is defined. Only when the side bias changes will a new dot is formed.
Head candles have been simplified from previous versions to be easier to read at a a glance.
Net Buying/Selling Flows Toolkit [AlgoAlpha]🌟📊 Introducing the Net Buying/Selling Flows Toolkit by AlgoAlpha 📈🚀
🔍 Explore the intricate dynamics of market movements with the Net Buying/Selling Flows Toolkit designed for precision and effectiveness in visualizing money inflows and outflows and their impact on asset prices.
🔀 Multiple Display Modes : Choose from "Flow Comparison", "Net Flow", or "Sum of Flows" to view the data in the most relevant way for your analysis.
📏 Adjustable Unit Display : Easily manage the magnitude of the values displayed with options like "1 Billion", "1 Million", "1 Thousand", or "None".
🔧 Lookback Period Customization : Tailor the sum calculation window with a configurable lookback period, applicable in "Sum of Flows" mode.
📊 Deviation Thresholds : Set up lower and upper deviation thresholds to identify significant changes in flow data.
🔄 Reversal Signals and Deviation Bands : Enable signals for potential reversals and visualize deviation bands for comparative analysis.
🎨 Color-coded Visualization : Distinct colors for upward and downward movements make it easy to distinguish between buying and selling pressures.
🚀 Quick Guide to Using the Net Buying/Selling Flows Toolkit :
🔍 Add the Indicator : Add the indicator to you favorites. Customize the settings to fit your trading requirements.
👁️🗨️ Data Analysis : Compare the trend of Buying and Selling to help indicate whether bulls or bears are in control of the market. Utilize the different display modes to present the data in different form to suite your analysis style.
🔔 Set Alerts : Activate alerts for reversal conditions to keep abreast of significant market movements without having to monitor the charts constantly.
🌐 How It Works :
The toolkit processes volume data on a lower timeframe to distinguish between buying and selling pressures based on intra-bar price closing higher or lower than it opened. It aggregates these transactions and finds the net selling and buying that took place during that bar, offering a clearer view of market fundamentals. The indicator then plots this data visually with multiple modes including comparisons between buying/selling and the net flow of the asset. Deviation thresholds help in identifying significant changes, allowing traders to spot potential buying or selling opportunities based on the money flow dynamics. The "Sum of Flows" mode is unique from other trend following indicators as it does not determine trend based on price action, but rather based on the net buying/selling. Therefore in some cases the "Sum of Flows" mode can be a leading indicator showing bullish/bearish net flows even before the prices move significantly.
Embark on a more informed trading journey with this dynamic and insightful tool, tailor-made for those who demand precision and clarity in their trading strategies. 🌟📉📈
Seasonality Widget [LuxAlgo]The Seasonality Widget tool allows users to easily visualize seasonal trends from various data sources.
Users can select different levels of granularity as well as different statistics to express seasonal trends.
🔶 USAGE
Seasonality allows us to observe general trends occurring at regular intervals. These intervals can be user-selected from the granularity setting and determine how the data is grouped, these include:
Hour
Day Of Week
Day Of Month
Month
Day Of Year
The above seasonal chart shows the BTCUSD seasonal price change for every hour of the day, that is the average price change taken for every specific hour. This allows us to obtain an estimate of the expected price move at specific hours of the day.
Users can select when data should start being collected using the "From Date" setting, any data before the selected date will not be included in the calculation of the Seasonality Widget.
🔹 Data To Analyze
The Seasonality Widget can return the seasonality for the following data:
Price Change
Closing price minus the previous closing price.
Price Change (%)
Closing price minus the previous closing price, divided by the
previous closing price, then multiplied by 100.
Price Change (Sign)
Sign of the price change (-1 for negative change, 1 for positive change), normalized in a range (0, 100). Values above 50 suggest more positive changes on average.
Range
High price minus low price.
Price - SMA
Price minus its simple moving average. Users can select the SMA period.
Volume
Amount of contracts traded. Allow users to see which periods are generally the most /least liquid.
Volume - SMA
Volume minus its simple moving average. Users can select the SMA period.
🔹 Filter
In addition to the "From Date" threshold users can exclude data from specific periods of time, potentially removing outliers in the final results.
The period type can be specified in the "Filter Granularity" setting. The exact time to exclude can then be specified in the "Numerical Filter Input" setting, multiple values are supported and should be comma separated.
For example, if we want to exclude the entire 2008 period we can simply select "Year" as filter granularity, then input 2008 in the "Numerical Filter Input" setting.
Do note that "Sunday" uses the value 1 as a day of the week.
🔶 DETAILS
🔹 Supported Statistics
Users can apply different statistics to the grouped data to process. These include:
Mean
Median
Max
Min
Max-Min Average
Using the median allows for obtaining a measure more robust to outliers and potentially more representative of the actual central tendency of the data.
Max and Min do not express a general tendency but allow obtaining information on the highest/lowest value of the analyzed data for specific periods.
🔶 SETTINGS
Granularity: Periods used to group data.
From Data: Starting point where data starts being collected
🔹 Data
Analyze: Specific data to be processed by the seasonality widget.
SMA Length: Period of the simple moving average used for "Price - SMA" and "Volume - SMA" options in "Analyze".
Statistic: Statistic applied to the grouped data.
🔹 Filter
Filter Granularity: Period type to exclude in the processed data.
Numerical Filter Input: Determines which of the selected hour/day of week/day of month/month/year to exclude depending on the selected Filter Granularity. Only numerical inputs can be provided. Multiple values are supported and must be comma-separated.
MA Cross HeatmapThe Moving Average Cross Heatmap Created by Technicator , visualizes the crossing distances between multiple moving averages using a heat map style color coding.
The main purpose of this visualization is to help identify potential trend changes or trading opportunities by looking at where the moving averages cross over each other.
Key Features:
Can plot up to 9 different moving average with their cross lengths you set
Uses a heat map to show crossing distances between the MAs
Adjustable settings like crossing length percentage, color scheme, color ceiling etc.
Overlay style separates the heat map from the price chart
This is a unique way to combine multiple MA analysis with a visual heat map representation on one indicator. The code allows you to fine-tune the parameters to suit your trading style and preferences. Worth checking out if you trade using multiple moving average crossovers as part of your strategy.
Bulls And Bears [CHE]This Pine Script™ indicator, Bulls And Bears , aims to provide traders with potential entry points by analyzing market conditions. Here's how it works:
Calculation of Maximum and Minimum Values: The script calculates the highest and lowest values based on the high, open, close, and low prices of the asset.
Relative Strength Index (RSI) Condition: It evaluates whether the RSI value (with a period of 14) is above 50, indicating bullish momentum.
Bullish and Bearish Conditions: Based on the calculated maximum and minimum values, along with the RSI condition, it determines bullish and bearish conditions. If the current maximum value is higher than the previous maximum and the RSI condition is met, it suggests a bullish condition. Conversely, if the current maximum value is lower than the previous maximum and the RSI condition is not met, it suggests a bearish condition.
Super Smoother Function: This function is used to calculate a smoother moving average, reducing noise in the data.
Input Parameters: Traders can adjust the "Length Difference" and "Length threshold" parameters to customize the indicator according to their trading preferences.
Calculation of Super Smooth Moving Averages: The script calculates super smooth moving averages for both bullish and bearish conditions.
Plotting: It plots the super smooth moving averages on the chart, indicating potential entry points for bullish (green) and bearish (red) conditions.
Filling Areas: It fills the areas between the moving averages and the threshold line based on the conditions. Green filling represents bullish conditions, while red filling represents bearish conditions.
By using this indicator, traders can potentially identify favorable entry points based on market conditions, helping them make informed trading decisions.
Trend Quality IndicatorDescription
This indicator is my interpretation in Pinescript of the "Trend-Quality Indicator" by David Sepiashvili.
The Trend Quality indicator (Q-indicator) is an attempt to estimate trend in relation to noise. It answers the long-standing question of whether a trend change qualifies as significant and promising, or insignificant and better ignored. In terms of noise, trend estimation not only determines whether the trend is reliable, but also allows you to measure its strength gradually. Thus, regardless of their prices, trends of various securities can easily be compared to each other or against any index.
The Trend Quality indicator (or Q-indicator) is a trend detection and estimation tool that is based on a two-step filtering technique. It measures cumulative price changes over term-oriented semi-cycles and relates them to “noise.” The approach reveals congestion and trending periods of the price movement and focuses on the most important trends, evaluating their strength in the process. The indicator is presented in a centered oscillator and banded oscillator format.
Calculation and Logic
To estimate the price dynamics, the cumulative price change (CPC) indicator is used, which measures the amount that the price has changed from a fixed starting point within a given semi-cycle. The CPC indicator is calculated as a cumulative sum of differences between the current and previous prices over the period from the fixed starting point t0. The trend within the given semi cycle can be found by calculating the moving average of the cumulative price change:
Trend = MA (CPC, m, t => t0)
Segmenting the price time series and constructing trends within the extracted semi-cycles offers the smallest average gap between actual and averaged data points. This results in a better fit of the real price dynamics.
Estimating Trend Performance
A basic criterion for estimating trend performance is the amount the trend changes over up or down semi-cycles. If there is little or no visible progress in the trend, it may be considered as nonefficient. Further, significant changes in trend may be considered as promising trading opportunities, but the term “significant” is relative and subject to interpretation.
The Q-indicator is calculated by dividing trend by noise with an appropriate correction factor.
The denominator of the Q-indicator — noise — can be defined as the average deviation of the cumulative price change from the trend. To determine linear noise, first we calculate
the absolute value of the difference between CPC and trend, and then smooth it over the n-point period:
Noise1 = MA(I CPC Trend I,n)
High positive values suggest strong uptrend, low negative values signify strong downtrend, and values fluctuating around the zero level indicate that trend and noise are in equilibrium, i.e., non-trending conditions might be present.
The root mean square noise, similar to the conventional standard deviation, can be derived by summing the squares of the difference between CPC and trend over each of the preceding n-point periods, dividing the sum by n, and calculating the square root of the result.
The Q-indicator is intended to measure trend activity. Some benchmarks can be used to determine the strength of a trend. In the range of Q-indicator values from -1 to +1, the trend is buried beneath noise. It is preferable to stay out of this zone. The greater the Q, the less the risk of trading exceeds this level (absolute value of Q>2), it can be qualified as promising.
Readings in the range from +2 to +5, or from -2 to -5, can indicate moderate trending, and readings above Q=+5 or below Q=-5 indicate strong trending. Strong upward trending often leads to the security’s overvaluing, and strong downward trending often results in the security’s undervaluing. Readings exceeding strong trending benchmarks can indicate overbought or oversold conditions and signal that price action should be monitored closely.
Input Parameters’ Description
Fast Length - the number of bars used in calculation of fast SMA of Trending Periods.
Slow Length - the number of bars used in calculation of slow SMA of Trending Periods.
Trend Length - the number of bars upon which the trend is defined.
Noise Type - defines mechanism of defining noise: linear or root mean square.
Noise Length - the number of bars upon which noise is determined.
Correction Factor - multiplier used in noise calculation.
Threshold Value - In the range of Q-indicator values from -1 to +1, the trend is buried beneath noise. It is preferable to stay out of this zone. The greater the threshold Value of Q-Indicator, the less the risk of trading exceeds this level, it can be qualified as promising. Readings in the range from +2 to +5, or from -2 to -5, can indicate moderate trending, and readings above Q=+5 or below Q=-5 indicate strong trending.
Plots
• Green = buying pressure
• Red = selling pressure
• Yellow = sideways
• ZeroLine = the zero level
In the provided script, multi-timeframe analysis is achieved using the request.security function, which retrieves data from a different timeframe than the one on which the script is running.
Explanation of Multi-Timeframe Logic in Multi-Timeframe selection
• This option retrieves the Trend Quality (TQ) from a higher timeframe if the current chart is intraday.
• The higher timeframe is specified in minutes by the user and converted to a Pine Script timeframe string.
• If the current chart is not intraday or no higher timeframe is specified, the TQ is taken from the current timeframe
Summary:
• Trend Quality Indicator measures established TREND,
• can be used on different timeframes,
• works well on different timeframes,
• the threshold of 2 to 5 should be appropriate for most instruments. It can be modified in chart settings to adapt to your strategy.
The Trend Quality Indicator doesn't predict the future. It is intended to help traders assess the strength of the current trend, giving them a better understanding of the market conditions to make more informed trading choices.
Further Reading
1. "Trend-Quality Indicator" by David Sepiashvili. Technical Analysis of Stocks & Commodities, April 2004.