Track Highest/Lowest last[n] CandlesThis indicator will track the last , (defval=8), Highest and Lowest and previous close price by placing LINES. I created this to make it easier to place lines in the 25%, 50%, 75% , and 100% of take profits depending if I'm going Long or Short using MTT or MMS. Part of the auto -GannBox i'm trying to finish. Anyways, this makes it easier. I hope everyone can benefit from it.
ค้นหาในสคริปต์สำหรับ "gann"
SQ9+ : A Index Trading System(Intraday) By TruStoxHi Fellow Traders,
Around 6 months back I launched Excel based SQ9 Index Trading System(Intraday) here , With the feedback from our users the SQ9 System is updated to Tradingview for ease of charting, efficient trailing & some more fantastic features that no normal trader can have .
Please Note: SQ9+ is a full fledged trading system with defined rules to entry , exits & risk to reward management ( Check Reviews )
To know more & register for SQ9 : Click Here!
I hope this simply advanced trading system assists you in trading.
Do Visit Us @ TruStox
Enjoy & Happy Trading
#A Happy Note : SQ9+ for scripts will be launched soon..
LA - EMA Bands with MTF DashboardDetailed Explanation of the LA - EMA Bands with MTF Dashboard Indicator
This custom Pine Script v6 indicator, designed for Trading View, overlays EMA-based price channels on the chart while incorporating a multi-timeframe (MTF) dashboard for broader market context. It focuses on visualizing trend direction and momentum through three sets of EMA bands, each representing different time horizons, and extends this with a tabular dashboard that summarizes signals across user-selected timeframes. The bands help identify support, resistance, and trend shifts, while the dashboard provides at-a-glance alignment across multiple periods, aiding in confirming trades or spotting divergences. Unlike volatility-based channels (e.g., Bollinger or Keltner), it relies solely on EMAs for simplicity and lag-reduced responsiveness.
Inputs Section
The script begins with user-configurable options grouped for ease. A timeframe input allows specifying a resolution for the EMA bands' data fetching, defaulting to the chart's timeframe if left empty—this enables higher-timeframe overlays on lower charts for context.
Next, a shared source input defines the price data for all midlines, defaulting to the midpoint of high and low (hl2) but customizable to close, open, or others.
The EMA bands have dedicated toggles and length inputs for each of the three sets: the first (long-term) defaults to 144 periods, the second (medium-term) to 72, and the third (short-term) to 12. These are inlined for compact settings panels, with minimum lengths of 1 to prevent errors.
A boolean toggle controls the visibility of the MTF dashboard. Following this are nine pairs of inputs for dashboard timeframes: each pair includes a show/hide toggle and an editable timeframe string (e.g., '1' for 1-minute, 'D' for daily). Defaults progress from short (1, 3, 5 minutes) to longer (15, 30, 60 minutes, daily, weekly, monthly), grouped in inlines for organization. Only enabled and non-empty timeframes appear in the dashboard.
Helpers Section
Two utility functions are defined here. The first computes an EMA on any source series over a specified length using Trading View's built-in function, reused throughout for midlines and bands.
The second function generates a signal string ("B" for buy/bullish, "S" for sell/bearish, or "-" for neutral) based on the direction of an EMA applied to high prices. It compares the current EMA value to the previous one, mirroring the band fill logic for consistency in the dashboard.
Core Components per Band Set:
Midline: An EMA calculated on a user-selectable source price (default: hl2, which is the midpoint between high and low prices). This acts as the central trend line.
Upper Band: An EMA applied directly to the high prices of each bar.
Lower Band: An EMA applied to the low prices of each bar.
These form a channel that captures the smoothed range of price action, highlighting potential support (lower band), resistance (upper band), and overall trend direction (midline).
Multiple Band Sets: The indicator includes three independent EMA band sets, each with its own length parameter for customization:
EMA1 (default length: 144) – Focuses on long-term trends.
EMA2 (default length: 72) – Targets medium-term trends.
EMA3 (default length: 12) – Emphasizes short-term momentum.
Each set can be toggled on or off via input checkboxes, allowing users to reduce chart clutter if needed.
Visual Elements:
Midline Plot: Displayed as a line colored based on its direction compared to the previous bar: green for rising (bullish), red for falling (bearish), and black for neutral (flat).
Band Fill: The area between the upper and lower bands is filled with a semi-transparent color indicating the trend of the upper band: light green for rising (suggesting expanding highs/upward momentum) and light pink for falling (contracting highs/downward pressure). The bands themselves are plotted in blue with a thin linewidth.
Multi-Timeframe Support: Users can input a custom timeframe (e.g., 'D' for daily), and the indicator fetches data from that resolution. This enables higher-timeframe context on lower-timeframe charts, such as viewing daily EMA bands on a 1-hour chart.
Calculation Mechanics:
All EMAs are computed using Trading View's built-in ta.ema() function.
Data is retrieved in a single request.security() call for efficiency, with lookahead enabled to avoid repainting.
No multipliers or volatility adjustments are included, making it a simple EMA-based envelope rather than a true volatility channel.
In practice, this indicator helps traders identify trend strength, potential breakouts (price crossing bands), or mean-reversion opportunities (price bouncing within bands). It's particularly useful for swing or position trading where multi-period alignment (e.g., all midlines green) signals conviction.
Pros
Multi-Period Insight: By combining short (12), medium (72), and long (144) periods, it offers a layered view of trends across time horizons, helping confirm alignments or divergences without needing multiple separate indicators.
Visual Clarity: Color-coded trends and fills make it easy to spot bullish/bearish shifts at a glance, reducing analysis time.
Flexibility: Custom timeframe input allows for multi-timeframe analysis, while shared source and toggles provide user control.
Simplicity and Efficiency: Purely EMA-based, it's computationally light and avoids overcomplication, making it accessible for beginners while still useful for spotting channel-based setups like squeezes or expansions.
No Repainting: With lookahead, plots are stable once bars close.
Cons
Lagging Nature: EMAs inherently lag price action, especially longer ones like 144-period, which may cause delayed signals in fast-moving or ranging markets.
Lack of Volatility Adjustment: Unlike Keltner Channels or Bollinger Bands, it doesn't incorporate ATR or standard deviation, so bands may not accurately reflect true volatility—potentially leading to false breakouts in high-volatility environments.
Chart Clutter: Displaying all three band sets simultaneously can overcrowd the chart, particularly on lower timeframes or volatile assets.
Subjective Interpretation: Color changes and band interactions require trader discretion; there's no built-in alerting or quantitative signals, which might lead to inconsistent results.
Market Dependency: Defaults may not suit all assets (e.g., stocks vs. crypto); shorter periods like 12 could whipsaw in noisy markets, while 144 might be too slow for intraday trading.
Justification for Default Values (12, 72, and 144)
The default lengths of 12, 72, and 144 are not arbitrary but draw from established trading principles, particularly W.D. Gann's geometric and numerical theories, as well as Fibonacci sequences, to create a harmonic progression for short-, medium-, and long-term analysis. Here's the rationale:
12 (Short-Term): This is a common period for capturing recent momentum in technical indicators, often seen in setups like the MACD (which uses 12- and 26-day EMAs). It aligns with natural cycles, such as the 12 months in a year, and in Gann theory, 12 serves as a base unit for squaring price and time (e.g., in the "Square of 12" where multiples like 12, 24, etc., measure cycles in days, weeks, or months). At 12 periods, the EMA reacts quickly to price changes without excessive noise, making it ideal for short-term trend detection.
72 (Medium-Term): This acts as an intermediate bridge, derived from Gann's divisions of the 360-degree circle (a key Gann concept representing a full cycle). Specifically, 72 is 360/5 (relating to pentagonal geometry and natural harmonics) and appears in Gann's time cycle measurements (e.g., as a multiple in the Square of 12: 12×6=72). It's roughly half of 144, providing a balanced midpoint for medium-term trends without overlapping too closely with the others. In practice, 72 periods smooth out short-term fluctuations while still responding to developing trends.
144 (Long-Term): This is a powerhouse number in trading lore, being both 12 squared (12×12=144, central to Gann's "Square of 144" for monthly charts and major cycle turns, as there are 12 months in a year) and a Fibonacci sequence value (1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144...). Fibonacci periods are popular in moving averages for their alignment with natural growth patterns in markets, and 144 is often used for long-term regime definition (e.g., confirming trends over 144 bars). It helps identify major support/resistance in extended cycles.
Overall, these values form a geometric/harmonic series (12, 72=12×6, 144=12×12), promoting alignment with market cycles as per Gann and Fibonacci principles, rather than generic lengths like 50 or 200. They can be adjusted based on the asset or timeframe, but the defaults provide a starting point rooted in time-tested trading numerology for balanced multi-period analysis.
Please use this along with other indicators (eg. Pivot, MACD, etc) for better results.
Ultimate Indicator [CSN]youtu.be Strategy Rules
Key Levels Identification
Mark Gann Levels on the chart.
These act as major support and resistance zones.
Trade Trigger (Remaining Box Indicator)
If the Remaining Box indicator shows more than 6 ticks in one direction, prepare for a trade in that direction.
This ensures momentum is strong enough to sustain a move.
Supply & Demand Zone Filter
Avoid entries if a strong Supply (for longs) or Demand (for shorts) zone is nearby.
Only take trades in clean zones where price has space to move.
Entry Criteria
Long Trade:
Price bounces or sustains above a Gann Support level.
Remaining Box indicator shows >6 bullish ticks.
No immediate Supply zone above.
Short Trade:
Price rejects or sustains below a Gann Resistance level.
Remaining Box indicator shows >6 bearish ticks.
No immediate Demand zone below.
Risk Management
Stop Loss: Just beyond the Gann level or nearest minor swing point.
Target: Next major Gann level or until momentum weakens (Remaining Box ticks reduce).
Risk-Reward: Minimum 1:2 ratio.
This way, your system becomes rule-based:
Gann levels = structure
Remaining Box = momentum filter
Supply & Demand zones = safety filter
MastersCycleSignal(Mastersinnifty)Overview
MastersCycleSignal is a high-precision market timing and projection indicator for trend-following and swing traders.
It combines an adaptive cycle detection algorithm, forward-looking sine wave projections, dynamic momentum confirmation, and Gann Square of 9-based geometric targets into a complete structured trading framework.
The script continuously analyzes price oscillations to detect dominant cycles, projects expected price behavior with future-facing sine approximations, and generates buy/sell signals once confirmed by adaptive momentum filtering.
Upon confirmation, it calculates mathematically consistent Gann-based target levels and risk-managed stop-loss suggestions.
Users also benefit from auto-extending targets as price action unfolds — helping traders anticipate rather than react to market shifts.
---
Uniqueness
MastersCycleSignal stands apart through a unique fusion of techniques:
- Dynamic Cycle Detection
- Detects dominant cycles using a cosine correlation maximization method between detrended price (close minus SMA) and theoretical cosine curves, dynamically recalibrated across a sliding window.
- Sine Wave Future Projection
- Smooths and projects future price paths by approximating a forward sine wave based on the real-time detected dominant cycle.
- Adaptive Momentum Filtering
- Volatility is scaled by divergence between normalized returns and a 5-period EMA, further adjusted by an RSI(2) factor.
- This makes buy/sell signal confirmation robust against noise and false breakouts.
- Gann-Based Target Computation
- Uses a square-root transformation of price, incremented by selectable Gann Square of 9 degrees, for calculating progressive and dynamically expanding price targets.
- Auto-Extending Targets
- As price achieves a projected target, the system automatically draws subsequent new targets based on the prior target differential — providing continuous guidance in trending conditions.
---
Usefulness
MastersCycleSignal is built to help traders:
- Identify early trend reversals through cycle shifts.
- Forecast probable price paths in advance.
- Plan systematic target and stop-loss zones with geometric accuracy.
- Reduce guesswork in trend-following and swing trading.
- Maintain structured discipline across intraday, swing, and positional strategies.
It works seamlessly across stocks, indices, forex, commodities, and crypto markets — on any timeframe.
---
How to Use
- Attach the indicator to your desired chart.
- When a Buy Signal or Sell Signal appears (green or red markers):
- Use the attached stop-loss labels to manage risk.
- Monitor the automatically plotted target lines for partial exits or full profits.
- The orange projected sine wave illustrates the expected future market path.
- Customization Options:
- Cycle Detection Length — adjust to fine-tune cycle sensitivity.
- Projection Length — modify the forward distance of sine wave forecast.
- Gann Square of 9 Degrees — personalize target increments.
- Toggle Signals and Target visibility as needed.
---
Disclaimer
- MastersCycleSignal uses no future data or lookahead bias.
- All projections are based on geometric extrapolations from historical price action — not guaranteed predictions.
- Trading involves risks, and historical cycle behavior may differ in future conditions.
Dynamic Horizontal Lines
Gann levels (squares of 9) have multiple levels. Adding lines at all these levels would add too much noise on the chart.
This indicator adds horizontal lines as per the Gann levels (Squares of 9) closest to the days close.
The current indicator add horizontal lines at the Gann level closest to the days close. It also adds 4 lines above & below the closest Gann level
I have considered Gann levels from 1 to 10000. You can append the Gann levels based on your requirements.
Liquidity tool [Influxum]One of the most widespread concepts that can give you an edge when trading in the markets is liquidity. There are several ways to identify and plot liquidity. This indicator aims to show how liquidity can be plotted entirely objectively, thus laying the foundation for a consistent trading system.
Pivot
One of the ways to identify liquidity is using pivots. Pivots are candles that are locally the highest or the lowest. We identify them using strength, which is a number that determines how many candles to the left and right of the pivot candle are lower for a pivot high and higher for a pivot low. It is important to keep in mind that a pivot candle is only confirmed when the last candle to the right closes. If I have the pivot number set to 10, it means that a pivot high is a candle that has 10 lower candles on the left and 10 lower candles on the right. Only after the 10th candle to the right closes is the pivot candle confirmed as a pivot high. Within this indicator, the liquidity line is drawn at this moment.
Tip for traders:
If you work with liquidity from both lower and higher timeframes, try adding two Liquidity Tool indicators to your chart: set a lower pivot number, for example, 5 for one, and a higher pivot number, for example, 20 for the other. At the same time, adjust the line width for liquidity with a higher pivot number to a higher value. This way, you achieve a combination of liquidity from significant higher timeframe structures and lower timeframe structures.
Gann Swing
The Gann swing is another objective way to mark liquidity in the market. Unlike pivot liquidity, which is based on the highest highs or lowest lows of candles, the Gann swing is based on the highest or lowest closes. We then mark liquidity when the current candle closes above the highest close of the last few candles or below the lowest close of the last few candles. While a pivot high might only show a local extreme in price development, the Gann swing deals with the actual closing of the price. Liquidity points determined by the Gann swing may thus be more indicative of where the price actually wants to go, not just where it was at a particular moment before sharply rebounding (as with pivot liquidity).
Percent Change
One of the most objective ways to identify liquidity is the percentage change in price. We plot liquidity only in places where there has been a sufficiently large swing/significant price movement. This can be particularly relevant for filtering out moments when the price is moving within a narrow range. In such a situation, many pivot highs and lows or Gann swings can occur, which may be only a few pips or fractions of a percent apart. If you set it so that you want liquidity to be plotted only on a swing of 0.1% (for forex, where this is a sufficiently large movement), you can easily filter out moments when the price was moving in a narrow range.
Liquidity Session
For Pivot, Gann, and Percentage liquidity, you have the option to set a trading session. This determines the time period for which you want liquidity to be plotted. You might want to see only the liquidity from the Asian session, for example. Check the checkbox with BG. This will display the background for the currently selected session. You can then check if you are working only with the liquidity of your intended session.
Note:
Sometimes you may notice that liquidity lines start even outside the selected session. This is not a mistake. As mentioned above with pivot liquidity, if the pivot number (strength) is 10, we wait for the tenth candle to close before liquidity is confirmed. The pivot candle itself is thus located 10 candles back, and that is where the liquidity line also begins. However, the crucial moment for this indicator is when the liquidity point is confirmed.
Visual Settings
To customize the indicator to your preferences as much as possible, you have the option to set the style of the liquidity line, its color, and its thickness. The analyses you share will then match your exact vision.
Delete Grabbed Liquidity
Check this option when you want to see only uncrossed liquidity on the charts, meaning liquidity lines that have not yet been crossed by the price.
Display Liquidity Grab Point
When you check this option, it highlights the points on the candles where liquidity was grabbed.
Liquidity Duration
Some strategies require that only internal liquidity be taken, meaning liquidity that was created recently. To accommodate this, we have embedded several options in the indicator to work with the validity duration of liquidity.
Delete Liquidity End of Day
This option deletes the liquidity line at the end of the calendar day. This way, you can display only intraday liquidity.
Tip for traders: If you check both "delete liquidity end of day" and "delete grabbed liquidity," only the liquidity of the current day will be displayed on the chart.
Delete Liquidity End of Next Day
This option works similarly to the above. By deleting liquidity only at the end of the next day, you can work with yesterday's liquidity. Many strategies use the liquidity of the previous day (or the high and low of the previous day), allowing you to focus exclusively on yesterday's and today's liquidity.
Liquidity Duration in Bars
The final option allows you to delete liquidity after a certain time has elapsed. For the purposes of the indicator, we have set the time in terms of the number of bars. So, if you are on a 5-minute timeframe and want liquidity to be deleted after an hour, set the liquidity duration to 12 bars (12 x 5 minutes is 60 minutes).
Angles v3 [Med]Greetings,
This indicator is about Gann Angles, based on the idea that the market is geometric and cyclical in nature, it consists of a series of lines and shapes (ex: Gann Angles) to illustrate potential support/resistance levels and price cycles. The resulting image is supposed to help technical analysts predict price changes and shifts over time. this is v3 of the indicator, with so many changes and additions.
The indicator contains:
- Price/time grid
- Three types of Gann fans
- Gann star
- Squares that englobe the price direction (with future support and resistance and possible direction change dates)
- Channels
- Two types of diagonal Grids
- Price Angles
- Time cycles
- Alerts
and many more helpful and interactive features!
* All of the above using two different ways of calculations, Gann and Fibo-Gann,
* The indicator projects different lines into the future to help predict future price changes
* Total control of everything in the chart (colorings, size, place ..etc.)
This is a paid indicator, Only available to selected people. Use the links below to contact us or for more information about how you can gain access.
Good luck!
Angles 540 By MedHello All,
This indicator is about Gann Angles, it consist of a series of horizontal lines ( Gann Angles), time vertical levels along with Gann Star to show potential support and resistance levels. The resulting image is supposed to help technical analysts predict price changes and shifts over time.
The indicator contains:
- Price/time grid
- Gann star
- Price Angles
* All of the above using Gann calculations and methods
* The indicator projects different lines into the future to help predict future price changes
* Total control of line coloring and styles!
This is a paid indicator, Only available to the 540 R&D team, and 540 Group
(Use the links below to contact me for more information about how you can obtain access to this indicator
Good luck!
[VIP] Trading ToolkitIndicator includes:
Auto fibonacci retracement
Auto Gannfan (modified)
Linear Regression
Buy and Sell Signal
Fibonacci extension
Moving averages
Alert includes:
When Buy signal appear
When Sell signal appear
Touch Top Linear Regression
Touch Bottom Linear Regression
Crossunder Middle Linear Regression
Crossover Middle Linear Regression
Disclaimer:
Chart colours and styles are dedicated for Dark template (soon for bright version)
More question or request trial? check links below
Square of natural number_RAMLAKSHMANDASThis indicator draws horizontal lines at square-number price levels around the square root of the current closing price. Inspired by Gann’s geometric approach, these lines serve as potential support and resistance levels. Each line is labeled with its price for easy identification. Traders can use it to visualize mathematically significant zones, identify reversal points, and enhance numerical trading strategies.
Pine Script Indicator: Odd Square Levels
This Pine Script indicator, designed for TradingView v6, plots dynamic horizontal support and resistance levels on the chart based on the square root of the current close price. It adheres to the specific principles of Gann theory, focusing exclusively on odd square numbers.
How it Works:
The indicator first calculates a base number by taking the square root of the current bar's close price and rounding it. This base number acts as the center of a user-defined range. The script then iterates through all the natural numbers within this range.
For each number in the range, it performs a check:
If the number is odd, the script calculates its square and plots a horizontal line at that price level.
If the number is even, the script adds 1 to the number before squaring it and plotting the line. This ensures that only levels corresponding to odd squares are ever drawn.
Key Features:
Dynamic Levels: The levels automatically adjust as the market price changes, providing real-time support and resistance zones.
Customizable Range: The user can specify an offset (e.g., ±10) around the square root of the price to control the number of levels displayed.
Visual Customization: Users can modify the color and width of the lines to suit their preference.
On-Chart Labels: The indicator can be configured to display a label next to each line, showing the number squared and the resulting price level (e.g., 3² = 9).
Performance Optimization: The indicator is designed to run efficiently by deleting old drawings on each new bar, preventing chart clutter and ensuring a smooth experience.
Ideal Usage:
This indicator is a powerful tool for traders who follow Gann theory or are looking for unconventional support and resistance levels. The levels are particularly useful for identifying potential trend reversals or areas of strong confluence with other trading strategies. It is recommended to use the indicator on volatile asset classes where price movements are significant, such as cryptocurrencies, as these assets tend to follow these types of mathematical relationships.
PSP Gyani Baba 9 Number [Good for all types of trading]The PSP Gyani Baba 9 Number indicator is a powerful tool based on the Gann Square of 9 methodology, designed to identify key support and resistance levels on your chart. This indicator calculates dynamic price levels using the square root of the current price, incorporating Gann's incremental adjustments to plot up to 10 customizable support and resistance lines. It features:
Support/Resistance Levels: Automatically displays bullish (green) and bearish (red) levels with adjustable line styles (solid, dashed, or dotted).
Cardinal Points: Highlights critical North, South, East, and West cardinal levels in orange for high-impact trading zones.
Trading Signals: Generates buy and sell signals based on price crossing cardinal East and West levels, with visual alerts and optional notifications.
Info Table: Provides a real-time summary of current price, square root, and next support/resistance levels.
Customization: Offers adjustable inputs for level count, colors, and alert preferences.
Ideal for traders seeking Gann-based insights, this indicator enhances decision-making with clear visual cues and actionable alerts. Perfect for all timeframes and markets!
CirclesCircles - Support & Resistance Levels
Overview
This indicator plots horizontal support and resistance levels based on W.D. Gann's mathematical approach of dividing 360 degrees by 2 and by 3. These divisions create natural price magnetism points that have historically acted as significant support and resistance levels across all markets and timeframes.
How It Works
360÷2 Levels (Blue): 5.63, 11.25, 33.75, 56.25, 78.75, etc.
360÷3 Levels (Red): 7.5, 15, 30, 37.5, 52.5, 60, 75, etc.
Both Levels (Yellow): 22.5, 45, 67.5, 90, 112.5, 135, 157.5, 180 - These are "doubly strong" as they appear in both calculations
Key Features
Auto-Scaling: Automatically adjusts for any price range (from $0.001 altcoins to $100K+ Bitcoin)
Manual Scaling: Choose from 0.001x to 1000x multipliers or set custom values
Full Customization: Colors, line widths, styles (solid/dashed/dotted)
Historical View: Option to show all levels regardless of current price
Clean Display: Adjustable label positioning and line extensions
Use Cases
Identify potential reversal zones before price reaches them
Set profit targets and stop losses at key mathematical levels
Confirm breakouts when price decisively moves through major levels
Works on all timeframes and all markets (stocks, crypto, forex, commodities)
Gann Theory
W.D. Gann believed that markets move in mathematical harmony based on geometric angles and time cycles. These 360-degree divisions represent natural balance points where price often finds support or resistance, making them valuable for both short-term trading and long-term analysis.
Perfect for traders who use:
Support/Resistance trading
Fibonacci levels
Pivot points
Mathematical/geometric analysis
Multi-timeframe analysis
NoNoiseMA & SlopeHappy trade,
This is a noise-reduced moving average — let's call it the No-Noise MA. A MA where false breakout price action should have little to no impact, while the main trend remains fully represented. In comparison to previous MAs this one's trend appear more linear, and sideways price actions becomes easier to detect thanks to it's unique two filter stages.
In short, the No-Noise-MA (Noise-Reduced Moving Average) is calculated as the cumulative sum of the slopes derived from the center line of the last x pivot points. Let’s break it down step by step:
Pivot Detection:
A pivot algorithm (an adapted variant of the Bilson-Gann-Count method) identifies consecutive pivot points (high, low, high, low, etc.) in the close price series. Let's call this set of Pivots S.
Center Line Calculation:
Out of the set S the last x pivots are used to compute a center line (linear regression line). Always when a new pivot is confirmed, the oldest pivot in the queue is removed, and the new pivot is added.
Slope Extraction:
The center line is defined by its equation shown in the image below
Image 1
Cumulative Slope Sum:
As shown in the image 1 the slope is a series with values around zero. The No-Noise-MA is then just the cumulative sum of the slope series and a correction term. A correction term is needed otherwise the No-Noise-MA would run away over time from the original close price. The correction term is just the deviation between close price and cumulative slope sum multiply with a factor around 0.01 added to the No-Noise-MA.
Noise Reduction:
The goal of noise reduction is done by two filter stages. First Filter is the reduction of the input values. As shown above not all bars close prices are use, instead it uses just the pivot points delivered by the Bilson-Gann-Count method. Favorable the Bilson-Gann-Count method delivers the Pivot points in most cases much faster as other Pivot methods. Already after two bars a new Pivot is confirmed. This takes out all ups and downs between two consecutive Pivots. This first filter stage is legit because all price action in between is hedged by the Pivots.
The second filter stage is the done by the length of the center line. As more pivots are used to calculate the center line as smoother the slope becomes. Out liners just gets less impact if the base is bigger. So the number of involved Pivots has the same meaning as the lengths in any other MA.
Comparison with usual MAs:
For a comparison with other MAs this script also calculate the average lengths of the center line, shown in the upper right chart. So choose for example SMA and set the length parameter to the average length of the center line. As shown in the following image 2.
Image 2
This way both MAs have the same data base and can be objectively compared.
Trend detection:
The slope of the center line can be used for trend confirmation. A slope bigger then zero is an up trend while a slope smaller then zero is a down trend. And side way price action is indicated when the slope is around zero within a certain threshold.
Image 3
One hint should be mentioned here. The side way section gets indicated much later. About the number of bars as the center line is long. Before that there are just up or down trend predicted. In the image 2 you see the slope is firstly tin and as more bars past by the slope becomes more thick. This should indicate the point where no side way predictions will happens anymore.
Variation of calculation
In the settings menu you can find the setting "Include last close to center line". With this activated the center line is calculated with the last pivots and the last close price. The last close price is assumed as a pivot too. This gives the slope a more early reaction to volatile price action. But also brings back some noise.
Democratic MultiAsset Strategy [BerlinCode42]Happy Trade,
Intro
Included Trade Concept
Included Indicators and Compare-Functions
Usage and Example
Settings Menu
Declaration for Tradingview House Rules on Script Publishing
Disclaimer
Conclusion
1. Intro
This is the first multi-asset strategy available on TradingView—a market breadth multi-asset trading strategy with integrated webhooks, backtesting capabilities, and essential strategy components like Take Profit, Stop Loss, Trailing, Hedging, Time & Session Filters, and Alerts.
How It Trades? At the start of each new bar, one asset from a set of eight is selected to go long or short. As long there is available cash and the selected asset meets the minimum criteria.
The selection process works through a voting system, similar to a democracy. Each asset is evaluated using up to five indicators that the user can choose. The asset with the highest overall voting score is picked for the trade. If no asset meets all criteria, no trade is executed, and the cash reserve remains untouched for future opportunities.
How to Set Up This Market Breadth Strategy:
Choose eight assets from the same market (e.g., cryptos or big tech stocks).
Select one to five indicators for the voting system.
Refine the strategy by adjusting Take Profit, Stop Loss, Hedging, Trailing, and Filters.
2. Voting as the included Trade Concept
The world of financial trading is filled with both risks and opportunities, and the key challenge is to identify the right opportunities, manage risks, and do both right on time.
There are countless indicators designed to spot opportunities and filter out risks, but no indicator is perfect—they only work statistically, hitting the right signals more often than the wrong ones.
The goal of this strategy is to increase the accuracy of these Indicators by:
Supervising a larger number of assets
Filtering out less promising opportunities
This is achieved through a voting system that compares indicator values across eight different assets. It doesn't just compare long trades—it also evaluates long vs. short positions to identify the most promising trade.
Why focus on one asset class? While you can randomly select assets from different asset classes, doing so prevents the algorithm from identifying the strongest asset within a single class. Think about, within one asset class there is often a major trend whereby different asset classes has not really such behavior.
And, you don’t necessarily need trading in multiple classes—this algorithm is designed to generate profits in both bullish and bearish markets. So when ever an asset class rise or fall the voting system ensure to jump on the strongest asset. So this focusing on one asset class is an integral part of this strategy. This all leads to more stable and robust trading results compared to handling each asset separately.
3. Included Indicators and Compare-Functions
You can choose from 17 different indicators, each offering different types of signals:
Some provide a directional signal
Some offer a simple on/off signal
Some provide both
Available Indicators: RSI, Stochastic RSI, MFI, Price, Volume, Volume Oscillator, Pressure, Bilson Gann Trend, Confluence, TDI, SMA, EMA, WMA, HMA, VWAP, ZLMA, T3MA
However, these indicators alone do not generate trade signals. To do so, they must be compared with thresholds or other indicators using specific comparison functions.
Example – RSI as a Trade Signal. The RSI provides a value between 0 and 100. A common interpretation is:
RSI over 80 → Signal to go short or exit a long trade
RSI under 20 → Signal to go long or exit a short trade
Here, two comparison functions and two thresholds are used to determine trade signals.
Below is the full set of available comparison functions, where: I represents the indicator’s value and A represents the comparator’s value.
I < A if I smaller A then trade signal
I > A if I bigger A then trade signal
I = A if I equal to A then trade signal
I != A if I not equal to A then trade signal
A <> B if I bigger A and I smaller B then trade signal
A >< B if I smaller A then long trade signal or if I bigger B then short trade signal
Image 1
In Image 1, you can see one of five input sections, where you define an indicator along with its function, comparator, and constants. For our RSI example, we select:
Indicator: RSI
Function: >< (greater/less than)
Comparator: Constant
Constants: A = 20, B = 80
With these settings a go short signal is triggered when RSI crosses above 80. And a go long signal is triggered when RSI crosses below 20.
Relative Strength Indicator: The RSI from the public TradingView library provides a directional trade signal. You can adjust the price source and period length in the indicator settings.
Stochastic Relative Strength Indicator: As above the Stoch RSI offers a trade signal with direction. It is calculated out of the RSI, the stochastic derivation and the SMA from the Tradingview library. You can set the in-going price source and the period length for the RSI, for the Stochastic Derivation and for the SMA as blurring in the Indicator settings section.
Money Flow Indicator: As above the MFI from the public Tradingview library offers a trade signal with direction. You can set the in-going price source and the period length in the Indicator settings section.
Price: The Price as Indicator is as simple as it can be. You can chose Open, High, Low or Close or combinations of them like HLC3 or even you can import an external Indicator. The absolute price or value can later be used to generate a trade signals when certain constant thresholds or other indicators signals are crossed.
Volume: Similar as above the Volume as Indicator offers the average volume as absolute value. You can set the period length for the smoothing and you can chose where it is presented in the base currency $ or is the other. For example the trade pair BTCUSD you can chose to present the value in $ or in BTC.
Volume Oscillator: The Volume Oscillator Indicator offers a value in the range of . Whereby a value close to 0 means that the volume is very low. A value around 1 means the volume is same high as before and Values higher as 1 means the volume is bigger then before. You can set the period length for the smoothing and you can chose where it is presented in the base currency $ or is the other. For example the trade pair BTCUSD you can chose to present the value in $ or in BTC.
Pressure Indicator: The Pressure is an adapted version of LazyBear's script (Squeeze Momentum Indicator) Pressure is a Filter that highlight bars before a bigger price move in any direction. The result are integer numbers between 0 and 4 whereby 0 means no bigger price move excepted, while 4 means huge price move expected. You can set the in-going price source and the period length in the Indicator settings section.
Bilson Gann Trend: The Bilson Gann Trend Indicator is a specific re-implementation of the widely known Bilson Gann Count Algorithm to detect Highs and Lows. On base of the last four Highs and Lows a trend direction can be calculated. It is based on 2 rules to confirm a local pivot candidate. When a local pivot candidate is confirmed, let it be a High then it looks for Lows to confirm. The result range is whereby -1 means down trend, 1 means uptrend and 0 sideways.
Confluence: The Confluence Indicator is a simplified version of Dale Legan's "Confluence" indicator written by Gary Fritz. It uses five SMAs with different periods lengths. Whereby the faster SMA get compared with the (slower) SMA with the next higher period lengths. Is the faster SMA smaller then the slower SMA then -1, otherwise +1. This is done with all SMAs and the final sum range between . Whereby values around 0 means price is going side way, Crossing under 0 means trend change from bull to bear. Is the value>2 means a strong bull trend and <-2 a strong bear trend.
Trades Dynamic Index: The TDI is an adapted version from the "Traders Dynamic Index" of LazyBear. The range of the result is whereby 2 means Top goShort, -2 means Bottom goLong, 0 is neutral, 1 is up trend, -1 is down trend.
Simple Moving Average: The SMA is the one from the Tradingview library. You can compare it with the last close price or any other moving average indicator to indicate up and down trends. You can set the in-going price source and the period length in the Indicator settings section.
Exponential Moving Average: The EMA as above is the one from the Tradingview library. You can compare it with the last close price or any other moving average indicator to indicate up and down trends. You can set the in-going price source and the period length in the Indicator settings section.
Weighted Moving Average: The WMA as above is the one from the Tradingview library. You can compare it with the last close price or any other moving average indicator to indicate up and down trends. You can set the in-going price source and the period length in the Indicator settings section.
Hull Moving Average: HMA as above is the one from the Tradingview library. You can compare it with the last close price or any other moving average indicator to indicate up and down trends. You can set the in-going price source and the period length in the Indicator settings section.
Volume Weighted Average Price: The VWAP as above is the one from the Tradingview library. You can compare it with the last close price or any other moving average indicator to indicate up and down trends. You can set the in-going price source in the Indicator settings section.
Zero Lag Moving Average: The ZLMA by John Ehlers and Ric Way describe in their paper: www.mesasoftware.com
As the other moving averages you can compare it with the last close price or any other moving average indicator to indicate up and down trends. You can set the in-going price source and the period length in the Indicator settings section.
T3 Moving Average: The T3MA is the one from the Tradingview library. You can compare it with the last close price or any other moving average indicator to indicate up and down trends. You can set the in-going price source, the period length and a factor in the Indicator settings section. Keep this factor at 1 and the T3MA swing in the same range as the input. Bigger 1 and it swings over. Factors close to 0 and the T3MA becomes a center line.
All MA's following the price. The function to compare any MA Indicators would be < or > to generate a trade direction. An example follows in the next section.
4. Example and Usage
In this section, you see how to set up the strategy using a simple example. This example was intentionally chosen at random and has not undergone any iterations to refine the trade results.
We use the RSI as the trade signal indicator and apply a filter using a combination of two moving averages (MAs). The faster MA is an EMA, while the slower MA is an SMA. By comparing these two MAs, we determine a trend direction. If the faster MA is above the slower MA the trend is upwards etc. This trend direction can then be used for filtering trades.
The strategy follows these rules:
If the RSI is below 20, a buy signal is generated.
If the RSI is above 80, a sell signal is generated.
However, this RSI trade signal is filtered so that a trade is only given the maximum voting weight if the RSI trade direction aligns with the trend direction determined by the MA filter.
So first, you need to add your chosen assets or simply keep the default ones. In Image 2, you can see one of the eight asset input sections.
Image 2
This strategy offers some general trade settings that apply equally to all assets and some asset-specific settings. This distinction is necessary because some assets have higher volatility than others, requiring asset-specific Take Profit and Stop Loss levels.
Once you have made your selections, proceed to the Indicators and Compare Functions for the voting. Image 3 shows an example of this setup.
Image 3
Later on go to the Indicator specific settings shown in Image 4 to refine the trade results.
Image 4
For refine the trade results take also a look on the result summary table, development of capital plot, on the list of closed and open trades and screener table shown in Image 5.
Image 5
To locate any trade for any asset in the chronological and scroll-able trade list, each trade is marked with a label:
An opening label displaying the trade direction, ticker ID, trade number, invested amount, and remaining cash reserves.
A closing label showing the closing reason, ticker ID, trade number, trade profit (%), trade revenue ($), and updated cash reserves.
Additionally: a green line marks each Take Profit level. An orange line indicates the (trailing) Stop Loss.
The summary table in the bottom-left corner provides insights into how effective the trade strategy is. By analyzing the trade list, you can identify trades that should be avoided.
To find those bad trades on the chart, use the trade number or timestamp. With replay mode, you can go back in time to review a specific trade in detail.
Image 6
In Image 6, you can see an example where replay mode and the start time filter are used to display specific trades within a narrow time range. By identifying a large number of bad trades, you may recognize patterns and formulate conditions to avoid them in the future.
This is the backtesting tool that allows you to develop and refine your trading strategy continuously. With each iteration—from general adjustments to detailed optimizations—you can use these tools to improve your strategy. You can:
Add other indicators with trade signals and direction
Add more indicators signals as filter
Adjust the settings of your indicators to optimize results
Configure key strategy settings, such as Time and Session Filters, Stop Loss, Take Profit, and more
By doing so, you can identify a profitable strategy and its optimal settings.
5. Settings Menu
In the settings menu you will find the following high-lighted sections. Most of the settings have a i mark on their right side. Move over it with the cursor to read specific explanation.
Backtest Results: Here you can decide about visibility of the trade list, of the Screener Table and of the Results Summary. And the colors for bullish, side ways, bearish and no signal. Go above and see Image 5.
Time Filter: You can set a Start time or deactivate it by leave it unhooked. The same with End Time and Duration Days . Duration Days can also count from End time in case you deactivate Start time.
Session Filter: Here, you can chose to activate trading on a weekly basis, specifying which days of the week trading is allowed and which are excluded. Additionally, you can configure trading on a daily basis, setting the start and end times for when trades are permitted. If activated, no new trades will be initiated outside the defined times and sessions.
Trade Logic: Here you can set an extra time frame for all indicators. You can enable Longs or Shorts or both trades.
The min Criteria percentage setting defines the minimum number of voices an asset has to get to be traded. So if you set this to 50% or less also weak winners of the voting get traded while 100% means that the winner of the voting has to get all possible voices.
Additionally, you have the option to delay entry signals. This feature is particularly useful when trade signals exhibit noise and require smoothing.
Enable Trailing Stop and force the strategy to trade only at bar closing. Other-ways the strategy trade intrabar, so when ever a voting present an asset to trade, it will send the alert and the webhooks.
The Hedging is basic as shown in the following Image 7 and serves as a catch if price moves fast in the wrong direction. You can activate a hedging mechanism, which opens a trade in the opposite direction if the price moves x% against the entry price. If both the Stop Loss and Hedging are triggered within the same bar, the hedging action will always take precedence.
Image 6
Indicators to use for Trade Signal Generating: Here you chose the Indicators and their Compare Function for the Voting . Any activated asset will get their indicator valuation which get compared over all assets. The asset with the highest valuation is elected for the trade as long free cash is present and as long the minimum criteria are met.
The Screener Table will show all indicators results of the last bar of all assets. Those indicator values which met the threshold get a background color to high light it. Green for bullish, red for bearish and orange for trade signals without direction. If you chose an Indicator here but without any compare function it will show also their results but with just gray background.
Indicator Settings: here you can setup the indicator specific settings. for deeper insights see 3. Included Indicators and Compare-Functions .
Assets, TP & SL Settings: Asset specific settings. Chose here the TickerID of all Assets you wanna trade. Take Profit 1&2 set the target prices of any trade in relation to the entry price. The Take Profit 1 exit a part of the position defined by the quantity value. Stop Loss set the price to step out when a trade goes the wrong direction.
Invest Settings: Here, you can set the initial amount of cash to start with. The Quantity Percentage determines how much of the available cash is allocated to each trade, while the Fee percentage specifies the trading fee applied to both opening and closing positions.
Webhooks: Here, you configure the License ID and the Comment . This is particularly useful if you plan to use multiple instances of the script, ensuring the webhooks target the correct positions. The Take Profit and Stop Loss values are displayed as prices.
6. Declaration for Tradingview House Rules on Script Publishing
The unique feature of this Democratic Multi-Asset Strategy is its ability to trade multiple assets simultaneously. Equipped with a set of different standard Indicators, it's new democratic Voting System does more robust trading decisions compared to single-asset. Interchangeable Indicators and customizable strategy settings allowing for a wide range of trading strategies.
This script is closed-source and invite-only to support and compensate for over a year of development work. Unlike other single asset strategies, this one cannot use TradingView's strategy functions. Instead, it is designed as an indicator.
7. Disclaimer
Trading is risky, and traders do lose money, eventually all. This script is for informational and educational purposes only. All content should be considered hypothetical, selected post-factum and is not to be construed as financial advice. Decisions to buy, sell, hold, or trade in securities, commodities, and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results. Using this script on your own risk. This script may have bugs and I declare don't be responsible for any losses.
8. Conclusion
Now it’s your turn! Chose an asset class and pick 8 of them and chose some indicators to see the trading results of this democratic voting system. Refine your multi-asset strategy to favorable settings. Once you find a promising configuration, you can set up alerts to send webhooks directly. Configure all parameters, test and validate them in paper trading, and if results align with your expectations, you even can deploy this script as your trading bit.
Cheers
Options Overlay [Pro] IVR IV Skew Delta Exp.mv MurreyMath Expiry
𝗧𝗵𝗲 𝗳𝗶𝗿𝘀𝘁 𝗿𝗲𝗮𝗹 𝗼𝗽𝘁𝗶𝗼𝗻𝘀 𝗱𝗮𝘁𝗮 𝗶𝗻𝗱𝗶𝗰𝗮𝘁𝗼𝗿 𝗼𝗻 𝗧𝗿𝗮𝗱𝗶𝗻𝗴𝗩𝗶𝗲𝘄, 𝗮𝘃𝗮𝗶𝗹𝗮𝗯𝗹𝗲 𝗳𝗼𝗿 𝗼𝘃𝗲𝗿 𝟭𝟱𝟬+ 𝗹𝗶𝗾𝘂𝗶𝗱 𝗨𝗦 𝗺𝗮𝗿𝗸𝗲𝘁 𝘀𝘆𝗺𝗯𝗼𝗹𝘀.
🔃 Auto-Updating Option Metrics without refresh!
🍒 Developed and maintained by option traders for option traders.
📈 Specifically designed for TradingView users who trade options.
Our indicator provides essential key metrics such as:
✅ IVRank
✅ IVx
✅ 5-Day IVx Change
✅ Delta curves and interpolated distances
✅ Expected move curve
✅ Standard deviation (STD1) curve
✅ Vertical Pricing Skew
✅ Horizontal IVx Skew
✅ Delta Skew
like TastyTrade, TOS, IBKR etc, but in a much more visually intuitive way. See detailed descriptions below.
If this isn't enough, we also include a unique grid system designed specifically for options traders. This package features our innovative dynamic grid system:
✅ Enhanced Murrey Math levels (horizontal scale)
✅ Options expirations (vertical scale)
Designed to help you assess market conditions and make well-informed trading decisions, this tool is an essential addition for every serious options trader!
Ticker Information:
This indicator is currently implemented for more than 150 liquid US market tickers and we are continuously expanding the list:
SP:SPX AMEX:SPY NASDAQ:QQQ NASDAQ:TLT AMEX:GLD
NYSE:AA NASDAQ:AAL NASDAQ:AAPL NYSE:ABBV NASDAQ:ABNB NASDAQ:AMD NASDAQ:AMZN AMEX:ARKK NASDAQ:AVGO NYSE:AXP NYSE:BA NYSE:BABA NYSE:BAC NASDAQ:BIDU AMEX:BITO NYSE:BMY NYSE:BP NASDAQ:BYND NYSE:C NYSE:CAT NYSE:CCJ NYSE:CCL NASDAQ:COIN NYSE:COP NASDAQ:COST NYSE:CRM NASDAQ:CRWD NASDAQ:CSCO NYSE:CVNA NYSE:CVS NYSE:CVX NYSE:DAL NASDAQ:DBX AMEX:DIA NYSE:DIS NASDAQ:DKNG NASDAQ:EBAY NASDAQ:ETSY NASDAQ:EXPE NYSE:F NYSE:FCX NYSE:FDX AMEX:FXI AMEX:GDX AMEX:GDXJ NYSE:GE NYSE:GM NYSE:GME NYSE:GOLD NASDAQ:GOOG NASDAQ:GOOGL NYSE:GPS NYSE:GS NASDAQ:HOOD NYSE:IBM NASDAQ:IEF NASDAQ:INTC AMEX:IWM NASDAQ:JD NYSE:JNJ NYSE:JPM NYSE:JWN NYSE:KO NYSE:LLY NYSE:LOW NYSE:LVS NYSE:MA NASDAQ:MARA NYSE:MCD NYSE:MET NASDAQ:META NYSE:MGM NYSE:MMM NYSE:MPC NYSE:MRK NASDAQ:MRNA NYSE:MRO NASDAQ:MRVL NYSE:MS NASDAQ:MSFT AMEX:MSOS NYSE:NCLH NASDAQ:NDX NYSE:NET NASDAQ:NFLX NYSE:NIO NYSE:NKE NASDAQ:NVDA NASDAQ:ON NYSE:ORCL NYSE:OXY NASDAQ:PEP NYSE:PFE NYSE:PINS NYSE:PLTR NASDAQ:PTON NASDAQ:PYPL NASDAQ:QCOM NYSE:RBLX NYSE:RCL NASDAQ:RIOT NASDAQ:RIVN NASDAQ:ROKU NASDAQ:SBUX NYSE:SHOP AMEX:SLV NASDAQ:SMCI NASDAQ:SMH NYSE:SNAP NYSE:SQ NYSE:T NYSE:TGT NASDAQ:TQQQ NASDAQ:TSLA NYSE:TSM NASDAQ:TTD NASDAQ:TXN NYSE:U NASDAQ:UAL NYSE:UBER AMEX:UNG NYSE:UPS NASDAQ:UPST AMEX:USO NYSE:V AMEX:VXX NYSE:VZ NASDAQ:WBA NYSE:WFC NYSE:WMT NASDAQ:WYNN NYSE:X AMEX:XHB AMEX:XLE AMEX:XLF AMEX:XLI AMEX:XLK AMEX:XLP AMEX:XLU AMEX:XLV AMEX:XLY NYSE:XOM NYSE:XPEV CBOE:XSP NASDAQ:ZM
How does the indicator work and why is it unique?
This Pine Script indicator is a complex tool designed to provide various option metrics and visualization tools for options market traders. The indicator extracts raw options data from an external data provider (ORATS), processes and refines the delayed data package using pineseed, and sends it to TradingView, visualizing the data using specific formulas (see detailed below) or interpolated values (e.g., delta distances). This method of incorporating options data into a visualization framework is unique and entirely innovative on TradingView.
The indicator aims to offer a comprehensive view of the current state of options for the implemented instruments, including implied volatility (IV), IV rank (IVR), options skew, and expected market movements, which are objectively measured as detailed below.
The options metrics we display may be familiar to options traders from various major brokerage platforms such as TastyTrade, IBKR, TOS, Tradier, TD Ameritrade, Schwab, etc.
🟨 𝗗𝗘𝗧𝗔𝗜𝗟𝗘𝗗 𝗗𝗢𝗖𝗨𝗠𝗘𝗡𝗧𝗔𝗧𝗜𝗢𝗡 🟨
🔶 Auto-Updating Option Metrics and Curved Lines
🔹 Interpolated DELTA Curves (16,20,25,30,40)
In our indicator, the curve layer settings allow you to choose the delta value for displaying the delta curve: 16, 20, 25, 30, or even 40. The color of the curve can be customized, and you can also hide the delta curve by selecting the "-" option.
It's important to mention that we display interpolated deltas from the actual option chain of the underlying asset using the Black-Scholes model. This ensures that the 16 delta truly reflects the theoretical, but accurate, 16 delta distance. (For example, deltas shown by brokerages for individual strikes are rounded; a 0.16 delta might actually be 0.1625.)
🔹 Expected Move Curve (Exp.mv)
The expected move is the predicted dollar change in the underlying stock's price by a given option's expiration date, with 68% certainty. It is calculated using the expiration's pricing and implied volatility levels. We chose the TastyTrade method for calculating expected move, as we found it to be the most expressive.
Expected Move Calculation
Expected Move = (ATM straddle price x 0.6) + (1st OTM strangle price x 0.3) + (2nd OTM strangle price x 0.1)
For example , if stock XYZ is trading at 121 and the ATM straddle is 4.40, the 120/122 strangle is 3.46, and the 119/123 strangle is 2.66, the expected move is calculated as follows: 4.40 x 0.60 = 2.64; 3.46 x 0.30 = 1.04; 2.66 x 0.10 = 0.27; Expected move = 2.64 + 1.04 + 0.27 = ±3.9
In this example below, the TastyTrade platform indicates the expected move on the option chain with a brown color, and the exact value is displayed behind the ± symbol for each expiration. By default, we also use brown for this indication, but this can be changed or the curve display can be turned off.
🔹 Standard Deviation Curve (1 STD)
One standard deviation of a stock encompasses approximately 68.2% of outcomes in a distribution of occurrences based on current implied volatility.
We use the expected move formula to calculate the one standard deviation range of a stock. This calculation is based on the days-to-expiration (DTE) of our option contract, the stock price, and the implied volatility of a stock:
Calculation:
Standard Deviation = Closing Price * Implied Volatility * sqrt(Days to Expiration / 365)
According to options literature, there is a 68% probability that the underlying asset will fall within this one standard deviation range at expiration.
If the 1 STD and Exp.mv displays are both enabled, the indicator fills the area between them with a light gray color. This is because both represent probability distributions that appear as a "bell curve" when graphed, making it visually appealing.
Tip and Note:
The 1 STD line might appear jagged at times , which does not indicate a problem with the indicator. This is normal immediately after market open (e.g., during the first data refresh of the day) or if the expirations are illiquid (e.g., weekly expirations). The 1 STD value is calculated based on the aggregated IVx for the expirations, and the aggregated IVx value for weekly expirations updates less frequently due to lower trading volume. In such cases, we recommend enabling the "Only Monthly Expirations" option to smooth out the bell curve.
∑ Quant Observation:
The values of the expected move and the 1st standard deviation (1STD) will not match because they use different calculation methods, even though both are referred to as representing 68% of the underlying asset's movement in options literature. The expected move is based on direct market pricing of ATM options. The 1STD, on the other hand, uses the averaged implied volatility (IVX) for the given expiration to determine its value. Based on our experience, it is better to consider the area between the expected move and the 1STD as the true representation of the original 68% rule.
🔶 IVR Dashboard Panel Rows
🔹 IVR (IV Rank)
The Implied Volatility Rank (IVR) indicator helps options traders assess the current level of implied volatility (IV) in comparison to the past 52 weeks. IVR is a useful metric to determine whether options are relatively cheap or expensive. This can guide traders on whether to buy or sell options. We calculate IVrank, like TastyTrade does.
IVR Calculation:
IV Rank = (current IV - 52 week IV low) / (52 week IV high - 52 week IV low)
IVR Levels and Interpretations:
IVR 0-10 (Green): Very low implied volatility rank. Options might be "cheap," potentially a good time to buy options.
IVR 10-35 (White): Normal implied volatility rank. Options pricing is relatively standard.
IVR 35-50 (Orange): Almost high implied volatility rank.
IVR 50-75 (Red): Definitely high implied volatility rank. Options might be "expensive," potentially a good time to sell options for higher premiums.
IVR above 75 (Highlighted Red): Ultra high implied volatility rank. Indicates very high levels, suggesting a favorable time for selling options.
The panel refreshes automatically if the symbol is implemented. You can hide the panel or change the position and size.
🔹IVx (Implied Volatility Index)
The Implied Volatility Index (IVx) displayed in the option chain is calculated similarly to the VIX. The Cboe uses standard and weekly SPX options to measure the expected volatility of the S&P 500. A similar method is utilized to calculate IVx for each option expiration cycle.
For our purposes on the IVR Panel, we aggregate the IVx values specifically for the 35-70 day monthly expiration cycle . This aggregated value is then presented in the screener and info panel, providing a clear and concise measure of implied volatility over this period.
IVx Color coding:
IVx above 30 is displayed in orange.
IVx above 60 is displayed in red
IVx on curve:
The IVx values for each expiration can be viewed by hovering the mouse over the colored tooltip labels above the Curve.
IVx avg on IVR panel :
If the option is checked in the IVR panel settings, the IVR panel will display the average IVx values up to the optimal expiration.
Important Note:
The IVx value alone does not provide sufficient context. There are stocks that inherently exhibit high IVx values. Therefore, it is crucial to consider IVx in conjunction with the Implied Volatility Rank (IVR), which measures the IVx relative to its own historical values. This combined view helps in accurately assessing the significance of the IVx in relation to the specific stock's typical volatility behavior.
This indicator offers traders a comprehensive view of implied volatility, assisting them in making informed decisions by highlighting both the absolute and relative volatility measures.
🔹IVx 5 days change %
We are displaying the five-day change of the IV Index (IVx value). The IV Index 5-Day Change column provides quick insight into recent expansions or decreases in implied volatility over the last five trading days.
Traders who expect the value of options to decrease might view a decrease in IVX as a positive signal. Strategies such as Strangle and Ratio Spread can benefit from this decrease.
On the other hand, traders anticipating further increases in IVX will focus on the rising IVX values. Strategies like Calendar Spread or Diagonal Spread can take advantage of increasing implied volatility.
This indicator helps traders quickly assess changes in implied volatility, enabling them to make informed decisions based on their trading strategies and market expectations.
🔹 Vertical Pricing Skew
At TanukiTrade, Vertical Pricing Skew refers to the difference in pricing between put and call options with the same expiration date at the same distance (at expected move). We analyze this skew to understand market sentiment. This is the same formula used by TastyTrade for calculations.
We calculate the interpolated strike price based on the expected move , taking into account the neighboring option prices and their distances. This allows us to accurately determine whether the CALL or PUT options are more expensive.
PUT Skew (red): Put options are more expensive than call options, indicating the market expects a downward move (▽). If put options are more expensive by more than 20% at the same expected move distance, we color it lighter red.
CALL Skew (green): Call options are more expensive than put options, indicating the market expects an upward move (△). If call options are priced more than 30% higher at the examined expiration, we color it lighter green.
Vertical Skew on Curve:
The degree of vertical pricing skew for each expiration can be viewed by hovering over the points above the curve. Hover with mouse for more information.
Vertical Skew on IVR panel:
We focus on options with 35-70 days to expiration (DTE) for optimal analysis in case of vertical skew. Hover with mouse for more information.
This approach helps us gauge market expectations accurately, providing insights into potential price movements. Remember, we always evaluate the skew at the expected move using linear interpolation to determine the theoretical pricing of options.
🔹 Delta Skew 🌪️ (Twist)
We have a new metric that examines which monthly expiration indicates a "Delta Skew Twist" where the 16 delta deviates from the monthly STD. This is important because, under normal circumstances, the 16 delta is positioned between the expected move and the standard deviation (STD1) line (see Exp.mv & 1STD exact definitions above). However, if the interpolated 16 delta line exceeds the STD1 line either upwards or downwards, it represents a special case of vertical skew on the option chain.
Normal case : exp.move < delta16 < std1
Delta Skew Twist: exp.move < std1 < delta16
We indicate this with direction-specific colors (red/green) on the delta line. We also color the section of the delta curve affected by the delta skew in this case, even if you choose to display a lower delta, such as 30, instead of 16.
If "Colored Labels with Tooltips" is enabled, we also display a 🌪️ symbol in the tooltip for the expirations affected by Delta Skew.
If you have enabled the display of 'Vertical Pricing Skew' on the IVR Panel, a 🌪️ symbol will also appear next to the value of the vertical skew, and the tooltip will indicate from which expiration Delta Skew is observed.
🔹 Horizontal IVx Skew
In options pricing, it is typically expected that the implied volatility (IVx) increases for options with later expiration dates. This means that options further out in time are generally more expensive. At TanukiTrade, we refer to the phenomenon where this expectation is reversed—when the IVx decreases between two consecutive expirations—as Horizontal Skew or IVx Skew.
Horizontal IVx Skew occurs when: Front Expiry IVx < Back Expiry IVx
This scenario can create opportunities for traders who prefer diagonal or calendar strategies . Based on our experience, we categorize Horizontal Skew into two types:
Weekly Horizontal Skew:
When IVx skew is observed between two consecutive non-monthly expirations, the displayed value is the rounded-up percentage difference. On hover, the approximate location of this skew is also displayed. The precise location can be seen on this indicator.
Monthly Horizontal Skew:
When IVx skew is observed between two consecutive monthly expirations , the displayed value is the rounded-up percentage difference. On hover, the approximate location of this skew is also displayed. The precise location can be seen on our Overlay indicator.
The Monthly Vertical IVx skew is consistently more liquid than the weekly vertical IVx skew. Weekly Horizontal IVx Skew may not carry relevant information for symbols not included in the 'Weeklies & Volume Masters' preset in our Options Screener indicator.
If the options chain follows the normal IVx pattern, no skew value is displayed.
Color codes or tooltip labels above curve:
Gray - No horizontal skew;
Purple - Weekly horizontal skew;
BigBlue - Monthly horizontal skew
The display of monthly and weekly IVx skew can be toggled on or off on the IVR panel. However, if you want to disable the colored tooltips above the curve, this can only be done using the "Colored labels with tooltips" switch.
We indicate this range with colorful information bubbles above the upper STD line.
🔶 The Option Trader’s GRID System: Adaptive MurreyMath + Expiry Lines
At TanukiTrade, we utilize Enhanced MurreyMath and Expiry lines to create a dynamic grid system, unlike the basic built-in vertical grids in TradingView, which provide no insight into specific price levels or option expirations.
These grids are beneficial because they provide a structured layout, making important price levels visible on the chart. The grid automatically resizes as the underlying asset's volatility changes, helping traders identify expected movements for various option expirations.
The Option Trader’s GRID System part of this indicator can be used without limitations for all instruments . There are no type or other restrictions, and it automatically scales to fit every asset. Even if we haven't implemented the option metrics for a particular underlying asset, the GRID system will still function!
🔹 SETUP OF YOUR OPTIONS GRID SYSTEM
You can setup your new grid system in 3 easy steps!
STEP1: Hide default horizontal grid lines in TradingView
Right-click on an empty area of your chart, then select “Settings.” In the Chart settings -> Canvas -> Grid lines section, disable the display of horizontal lines to avoid distraction.
SETUP STEP2: Scaling fix
Right-click on the price scale on the right side, then select "Scale price chart only" to prevent the chart from scaling to the new horizontal lines!
STEP3: Enable Tanuki Options Grid
As a final step, make sure that both the vertical (MurreyMath) and horizontal (Expiry) lines are enabled in the Grid section of our indicator.
You are done, enjoy the new grid system!
🔹 HORIZONTAL: Enhanced MurreyMath Lines
Murrey Math lines are based on the principles observed by William Gann, renowned for his market symmetry forecasts. Gann's techniques, such as Gann Angles, have been adapted by Murrey to make them more accessible to ordinary investors. According to Murrey, markets often correct at specific price levels, and breakouts or returns to these levels can signal good entry points for trades.
At TanukiTrade, we enhance these price levels based on our experience , ensuring a clear display. We acknowledge that while MurreyMath lines aren't infallible predictions, they are useful for identifying likely price movements over a given period (e.g., one month) if the market trend aligns.
Our opinion: MurreyMath lines are not crystal balls (like no other tool). They should be used to identify that if we are trading in the right direction, the price is likely to reach the next unit step within a unit time (e.g. monthly expiration).
One unit step is the distance between Murrey Math lines, such as between the 0/8 and 1/8 lines. This interval helps identify different quadrants and is crucial for recognizing support and resistance levels.
Some option traders use Murrey Math lines to gauge the movement speed of an instrument over a unit time. A quadrant encompasses 4 unit steps.
Key levels, according to TanukiTrade, include:
Of course, the lines can be toggled on or off, and their default color can also be changed.
🔹 VERTICAL: Expiry Lines
The indicator can display monthly and weekly expirations as dashed lines, with customizable colors. Weekly expirations will always appear in a lighter shade compared to monthly expirations.
Monthly Expiry Lines:
You can turn off the lines indicating monthly expirations, or set the direction (past/future/both) and the number of lines to be drawn.
Weekly Expiry Lines:
You can display weekly expirations pointing to the future. You can also turn them off or specify how many weeks ahead the lines should be drawn.
Of course, the lines can be toggled on or off, and their default color can also be changed.
TIP: Hide default vertical grid lines in TradingView
Right-click on an empty area of your chart, then select “Settings.” In the Chart settings -> Canvas -> Grid lines section, disable the display of vertical lines to avoid distraction. Same, like steps above at MurreyMath lines.
🔶 ADDITIONAL IMPORTANT COMMENTS
- U.S. market only:
Since we only deal with liquid option chains: this option indicator only works for the USA options market and do not include future contracts; we have implemented each selected symbol individually.
- Why is there a slight difference between the displayed data and my live brokerage data? There are two reasons for this, and one is beyond our control.
- Brokerage Calculation Differences:
Every brokerage has slight differences in how they calculate metrics like IV and IVx. If you open three windows for TOS, TastyTrade, and IBKR side by side, you will notice that the values are minimally different. We had to choose a standard, so we use the formulas and mathematical models described by TastyTrade when analyzing the options chain and drawing conclusions.
- Option-data update frequency:
According to TradingView's regulations and guidelines, we can update external data a maximum of 5 times per day. We strive to use these updates in the most optimal way:
(1st update) 15 minutes after U.S. market open
(2nd, 3rd, 4th updates) 1.5–3 hours during U.S. market open hours
(5th update) 10 minutes before market close.
You don’t need to refresh your window, our last refreshed data-pack is always automatically applied to your indicator , and you can see the time elapsed since the last update at the bottom of your indicator.
- Skewed Curves:
The delta, expected move, and standard deviation curves also appear relevantly on a daily or intraday timeframe. Data loss is experienced above a daily timeframe: this is a TradingView limitation.
- Weekly illiquid expiries:
Especially for instruments where weekly options are illiquid: the weekly expiration STD1 data is not relevant. In these cases, we recommend checking in the "Display only Monthly labels" checkbox to avoid displaying not relevant weekly options expirations.
-Timeframe Issues:
Our option indicator visualizes relevant data on a daily resolution. If you see strange or incorrect data (e.g., when the options data was last updated), always switch to a daily (1D) timeframe. If you still see strange data, please contact us.
Disclaimer:
Our option indicator uses approximately 15min-3 hour delayed option market snapshot data to calculate the main option metrics. Exact realtime option contract prices are never displayed; only derived metrics and interpolated delta are shown to ensure accurate and consistent visualization. Due to the above, this indicator can only be used for decision support; exclusive decisions cannot be made based on this indicator . We reserve the right to make errors.This indicator is designed for options traders who understand what they are doing. It assumes that they are familiar with options and can make well-informed, independent decisions. We work with public data and are not a data provider; therefore, we do not bear any financial or other liability.
The Square of NineThe Square of Nine
█ OVERVIEW
This script is made to make it easy for traders to visualize the movement of price along the square of nine table. This script Places the square of nine table right infront of you in the middle of the screen, which is why it's suggested that you would use it on the side of your main chart.
This script gives you ability to adjust number of revolutions which is the number of rings making the square of nine table up to 9 revs.
You can also change the price unit ( increments ) for each step.
You can use this indicator as a visual reference to track the price action along the square of 9 and make sense of the mechanism behind turning points. It is made to complement both :
- Gann Static Square of 9
- Gann Dynamic Square of 9
You can enable all of the following degrees and adjust their visual appearances on the chart :
360, 45, 90, 135, 180, 225, 270, 315
█ Future Plans and upgrades to this script may include :
1. Adjustable starting price.
2. Astro Integrations.
3. Visuals and matching prices.
and more! feel free to let me know what you'd like to see!
█ How to use :
1. Put the script on your chart
2. Selected your desired levels to activate and the number of desired revolutions.
give the script a few seconds and you should be set.
[HuD] MasterMaster is a trend indicator that uses Bollinger Band (BB) and Exponential Moving Average ( EMA ) as its main components.
1️⃣ Two EMA lines are used to create the band, which are EMA 8 and EMA 21
When EMA 8 value > EMA21 value, the band color is filled with green and when EMA 8 < EMA21, band is grey
Green means uptrend mode and grey downtrend mode.
2️⃣ EMA50 (purple color)
EMA50 act as a trend indicator, which indicates whether the chart is uptrend or downtrend
3️⃣ Simple Moving Average (SMA200), red line act as a long-term trend guide.
Chart is in strong uptrend when candles are above EMA50 and SMA200
4️⃣ There are 5 signals generated that act as signals to help traders (Bursa Malaysia) in making decisions for Long position.
🔸BUY Signal (B) and SELL (S)
- generated using ATR with default setting set to, ATR Length = 20 , and ATR Multification = 1.7
- trader can make Buy position from that candle or monitor and enter enter after few candle after BUY Signal
- SELL (S) signal is exit signal = red candle, when it break ATR Trailing stop
🔸PB Signal
- signal generated using Stochastic and when candle rebound from EMA10, EMA20 and EMA50
- this is the most safest Entry since it nearest to support area
🔸BO5 ( Light Green Candle )
- When candle breakout the highest previous five candles with significant volume
- Indicates that there's a sign of interest in buying power in the market
- Another opportunity to enter the market either at the current candle or wait for the right time when it retraces
🔸BO20 ( Green Candle )
- When candle breakout the highest previous twenty candles with significant volume
- In daily chart this candle is consider very important as it is the highest monthly candle.
v. ATOM ( Yellow Candle )
- when candle able to break the LineAtom
- LineAtom = sma (close, 20) + (1 * stdev(close, 20))
- ATOM candle indicates there is momentum for candle to move forward towards Top BB
5️⃣ Other Features from Indicator :
🔹Built-in Gann Lines
- Gann Lines is generated from the calculation and reference of Gann Square 9 Table
- It act as a guide for support and resistance .
- Exit position when it breaks the support or as Take Profit (TP) when it reaches the desired resistance.
🔹Tables
- showing the value of All Time High and 52-Week-High
- show the estimation value of current trade ( volume * close price )
- show the value of volume relative
🔹Golden Cross and Death Cross
- act as guide when there's a crossing between short EMA and long EMA lines
- Below are pair of EMAs used :
🔘EMA5 and EMA20
🔘EMA20 and EMA50
🔘EMA50 and SMA200
HiLo Screener█ OVERVIEW
This is a screener script for the Gann Hilo Indicator . It's an excellent trend analysis indicator to spot trend reversals.
█ DESCRIPTION
The screener works by scanning through up to 10 symbols and list down symbols that are currently breaking the high or low mean averages as definied by the Gann Hilo Indicator. Once you add it, 2 panels will be added to your chart - the green panel will list the symbols reversing into a bullish trend and the red panel will show the symbols reversing into a bearish trend.
█ HOW TO USE
After adding the indicator, open the script settings and type the symbol name and length to be used on the Gann Hilo Indicator for each stock.
█ FEATURES
The screener can scan up to 10 symbols each time.
█ LIMITATIONS
The screener will scan the symbols reversing trend on the current bar, and as such, there maybe some delays depending on the stock/etf/crypto you choose. Some exchanges require an additional subscription to get realtime data.
Noya Alpha - Venus Planetary LinesOne of W.D. Gann's most powerful planetary tools was the Gann Planetary Lines. These convert planetary angles to price in order to determine areas of support and resistance. Like many of W.D. Gann's other tools, these can be very very accurate with the right settings but requires user input and tuning to refine the lines to fit each individual asset's price action.
Inputs:
Radix: Default is 1. This represents the price/angle scale, adjust this in multiplies of 2 for best results. Negative and decimal values are supported and encouraged for use as well.
Angle Divisions (stdsplit): The amount each major angle is split.
Number of Lines: Number of Plots to draw.
Featured are also crossovers for when the planet moves across each major area into a new constellation.
Noya Alpha - Mercury Planetary LinesOne of W.D. Gann's most powerful planetary tools was the Gann Planetary Lines. These convert planetary angles to price in order to determine areas of support and resistance. Like many of W.D. Gann's other tools, these can be very very accurate with the right settings but requires user input and tuning to refine the lines to fit each individual asset's price action.
Inputs:
Radix: Default is 1. This represents the price/angle scale, adjust this in multiplies of 2 for best results. Negative and decimal values are supported and encouraged for use as well.
Angle Divisions (stdsplit): The amount each major angle is split.
Number of Lines: Number of Plots to draw.
Featured are also crossovers for when the planet moves across each major area into a new constellation.
Noya Alpha - Jupiter Planetary LinesOne of W.D. Gann's most powerful planetary tools was the Gann Planetary Lines. These convert planetary angles to price in order to determine areas of support and resistance . Like many of W.D. Gann's other tools, these can be very very accurate with the right settings but requires user input and tuning to refine the lines to fit each individual asset's price action.
Inputs:
Radix: Default is 1. This represents the price/angle scale, adjust this in multiplies of 2 for best results. Negative and decimal values are supported and encouraged for use as well.
Angle Divisions (stdsplit): The amount each major angle is split.
Number of Lines : Number of Plots to draw.
Featured are also crossovers for when the planet moves across each major area into a new constellation.
Bonfire 2021 by CaptBlackBeardSee original (balanced scale) chart here:
See a local price version squared to the start of this cycle.
Published chart is focusing on the squaring feature of Bonfire.
Updates to Pinescript have allowed some additional options that allow a better experience.
If you are unfamiliar with squaring price and time or finding 1:1 ratios , you should look into the subject along with the (45 degree) concept creator (W.D. Gann).
Squaring price/time is just the very first steps in setting up your Bonfire chart.
Once you have properly scaled the chart to your liking -> Right Click the scale on the left -> Click Lock Scale to preserve the price time squaring .
Here you see just how natural the price is to 45 degrees. Now adding additional drawings such as Gann and Fibonacci tools along with symmetry based geometry are a breeze.
Once you have your chart setup, there are endless possibilities in building your prediction models.
Again, this is just the first step and showing one feature of Bonfire. There's arguably more powerful and unique features included with the next layer of advanced indicators once zoomed in.
I'm working hard to build and release a website, forum, detailed information, guides and videos for all of Bonfire's features as well as my other indictors so stay tuned.
Just a few of the advantages of Bonfire squaring
Unique square offsets and settings capture common time pivots and price level ratios that help you to align price/time 1:1 (from major pivots or the event of your choice ).
When the price is square you have a greater chance of being accurate with trend predictions, targets, price levels, Gann tools and geometry.
When the price and trends are truly square you have built-in confluence for your current system and indicators.
One factor not considered by most is the massive variable of scaling charts. Finding 45 degrees is just your opinion unless you scale a chart properly. Using a static square is not enough.
Many people find that having a structured and consistent method for visualizing an asset helps them understand the state of the asset faster but also provides a stable way to compare assets quickly.
Aside from finding the true 45 degree trends,90 degree pivots, 0 degree levels, you can use the corners, midlines, and tangents from any and all squares to add some very powerful trendlines and pivots.
This is the newest version of Bonfire with updates to make it easier to customize and adjust inputs/settings to your preference. The key is to allow adjustments while maintaining the core Bonfire parameters.
Some new features:
-Lightmode and Darkmode switch. * Recommend a plain white or black background.
-More Bonfire specific built-in sizing options
-Display options = Squares Only | Indicators Only | Both
-User preferances = Square line thickness