Automatic Fibonacci Retracement + Golden Ratio | by Octopu$👑 Automatic Fibonacci Retracement on Specific Timeframes + Golden Ratio | by Octopu$
Fibonacci Retracement is a method of technical analysis for determining support and resistance levels.
It is named after the famous Fibonacci sequence of numbers: 23.6%, 38.2%, 61.8%, and 78.6%
These ratios provide price levels to which markets tend to retrace a portion of a move.
Also used as a potential spot before a trend continues (or reverses) original direction.
While not officially a Fibonacci ratio, 50% is also used.
Fibonacci Levels can be drawn between any two significant price points or time frames.
(Such as a High and a Low or also on Daily and Weekly charts)
The indicator will then Automatically create the levels between those selected points.
Golden ratio, also known as the divine proportion, in mathematics, is the irrational number:
(1 + Square root of√5)/2, often denoted by the Greek letter ϕ or τ
Which is approximately equal to 1.618.
(Two quantities are in the golden ratio if their ratio is the same as the ratio of their sum to the larger of the two quantities.)
That's The Magic of the Fibonaccis, as well the Golden Ratio itself.
And this is exactly where this Indicator by Octopu$ kicks in:
This indicator Automatically sets all the Fibonacci Levels within the Retracement selected.
On top of that, it Highlights the Golden Ratio for the Fibonacci Levels drawn.
Additionally, it sets the Golden Ratio as possible Support or Resistance level,
Doing so by having visual identification to the Up or Down side.
This changes the game! Along with Price Action, Trend Direction, Chart Analysis and other Indicators as well.
(The combination relies on your own knowledge about Confluence Factors along with your Due Diligence)
www.tradingview.com
SPY
ANY Ticker. ANY Timeframe.
(SPY 5m as an example only)
Features:
• Multiple Timeframes
• Automatic Lines
• Fibonacci Setup
• Golden Ratio
• S/R Highlight
Options:
• Timeframe Selection
• Fibonacci Rates
• Line Customization
• Color Pickers
• Toggle On/Off
Notes:
v1.0
Indicator release.
Changes and updates can come in the future for additional functionalities or per requests. Follow and Stay Tuned!
Did you like it? Please Support and Shoot me a message! I'd appreciate if you dropped by to say thanks! Thank you.
- Octopu$
🐙
Cerca negli script per "spy"
Engulfing Candles (Bullish and Bearish) + Trend | by Octopu$⛳ Engulfing Candles (Bullish and Bearish ) with Trend Recognition | by Octopu$
This Indicator identifies and plots Engulfing Candlestick Patterns.
Engulfing Candles are a combination of two bars on a price chart.
They are used to indicate/anticipate a market reversal.
The second candlestick must be bigger than the first, so it 'engulfs' the previous bar.
This indicator identifies both Price Movements:
Bullish stands for Upside
Bearish stands for Downside
These are NOT entry/exit signals to buy or sell securities*
(*The combination of your understanding and analysis as well as other Indicators and Factors as Confluence, you can improve your Charting Analysis.)
www.tradingview.com
SPY
ANY Ticker. ANY Timeframe.
( SPY 5m as an example only.)
Features:
• Engulfing Candles
• Bullish Setups
• Bearish Setups
• Symbol Signals
Options:
• Color Picker
• Symbol Selector
• Toggle On/Off
• Show name
• Trend Direction
Notes:
v1.0
Indicator release.
Changes and updates can come in the future for additional functionalities or per requests. Follow and Stay Tuned!
Did you like it? Please Support and Shoot me a message! I'd appreciate if you dropped by to say thanks! Thank you.
- Octopu$
🐙
Donchian Channels with Limits and Shadows | by Octopu$ 🌊 Donchian Channels with Middle Line, Limits and Shadows | by Octopu$
Donchian Channels are three lines generated by Moving Average calculations.
These lines formed by upper and lower bands around a midrange or median band.
The Upper Band marks the Highest price of a security over X periods of time.
While the Lower Band marks the Lowest price over the same period.
Now, the Limit bands are the High and Low prices over a Y period of time (different than X)
The difference about using Limits with the Bands on Donchian Channels is the time length:
By using different time comparisons (X and Y) you are able to identify previous Highs and Lows.
This is very useful for Support and Resistance levels regarding the Price Action
As well as Pivot Points, considering the possibility off Breakouts or Bounces.
Usually - as a General Rule - the Price tends to navigate in-between these channels
That's where DC Channels + Limits w/ Shadows come into play!
Highs and Lows serve as Supply and Demand Zones as well.
The Middle Line can be used as a spot for Reversal/Continuation.
All of this also makes the Donchian Channels a great tool for Trend Identification.
The combination of your understanding and analysis as well as other Indicators and Factors as Confluence, you can improve your Charting Analysis.
www.tradingview.com
AMEX:SPY
ANY Ticker. ANY Timeframe.
( SPY 5m as an example only.)
Features:
• Upper Channel
• Lower Channel
• Limit High
• Limit Low
• Middle Line
• Shadow
Options:
• Color Picker
• Line Styling
• Toggle On/Off
• Length Customization
• Background Transparency
Notes:
v1.0
Indicator release.
Changes and updates can come in the future for additional functionalities or per requests. Follow and Stay Tuned!
Did you like it? Please Support and Shoot me a message! I'd appreciate if you dropped by to say thanks! Thank you.
- Octopu$
🐙
Mind the GAP! (Automatic Intraday GAP Overnight) | by Octopu$🤏 Mind the GAP! (Automatic Intraday GAP Overnight) | by Octopu$
Gaps are areas on a chart where the price of a stock moves sharply up or down, with little or no trading in between.
When it happens overnight (not considering Extended Hours), it is just considered as Price Level, for possible revisit.
A Gap is defined when the Open current Candle is Higher or Lower than the Close of the Last Candle:
When the Open of the current Candle is Higher than the Close of the Last Candle it is considered a Gap UP;
When the Open of the current Candle is Lower than the Close of the Last Candle it is considered a Gap DOWN;
Something interesting about Gap is that:
1. The Price Action can travel fast between these levels (Volatility);
2. One (or both) of these levels (Hi/Lo) can act as Support (or Breakout);
3. One (or both) of these levels (Hi/Lo) can act as Resistance (or Breakout).
This Indicator includes these Gaps added Automatically to your Chart.
It is also built-in with a Shadow between the lines for easy visualization.
Colors are also customizable and the Lines are also editable according t your preferences.
Any Time Frame. Any Ticker.
(Using SPY 5m just as an example:)
www.tradingview.com
AMEX:SPY
Features:
• Identifies Gaps on MC/MO
• Automatically adds Lines to these levels
• Includes shadow for easy visualization
Options:
• Customizable: Colors and Lines
• On/Off Switches for the Levels
• Show/Hide Previous Days
Notes:
v1.0
Indicator release
Changes and updates can come in the future for additional functionalities or per requests.
Did you like it? Boost it. Shoot a message! I'd appreciate if you dropped by to say thanks.
- Octopu$
🐙
⚖ Volume BUYxSELL Pressure | by Octopu$⚖ Volume BUYxSELL Pressure | by Octopu$
Volume is the number of shares traded in a particular stock, index, or other investment over a specific period of time.
It can indicate market strength, as rising markets on increasing volume are typically viewed as strong and healthy.
In fact, the more, the better. Institutions tend to get more involved in a stock with daily dollar volume in the hundreds of millions or more
But also, when prices fall on increasing volume, the trend is gathering strength to the downside.
That's where BUYxSELL Pressure | by Octopu$ comes in.
Typically, Volume bars follow the candles.
If the Candle is Green (Close > Open), the Volume Bar is also Green.
Now if the Candle is Red (Close < Open) the Volume Bar is also Red.
You never know if it is being Bought or Sold.
This changes the game: along with Price Action, Trend Direction, and other factors. This is possible!
This indicator is composed of:
Volume itself (all of it), displayed by Gray bars;
Identifies Buying Pressure on Green Bars;
And Selling Pressure with Red Bars.
Volume Average as a White Line, for the last "X" Days
Additionally,
It presents a Yellow Triangle as and indication of when the Volume is above the Average in the current TF you are in.
Additionally, this can be set up via an Input: Means if you like to watch it 10% above Average, you got it. 25%? 50%?... You name it.
On top of that,
Includes an indication for Volume Spike as well. So if informs you visually on the Volume Bars of any surges on the TF you are in.
For example: 2x the Volume from the last Candle. Or maybe 3x? 5x... The way you like it the best.
This way, with the combination of your understanding as well as other Indicator and Factor as Confluence, you can improve your analysis and figure out what is going on.
www.tradingview.com
(SPY 5m as an example only)
SPY
Features:
• Total Volume
• Average Volume
• Buying Pressure
• Selling Pressure
• % Above Average
• Volume Spike/Surge (Multiplier)
• Custom Settings
Options:
• Show/Hide Average Line
• Change Length of Average (Days)
• Select/Personalize % of Above Avg
• Add Personalized X Multiplier
• Fully customizable on Style and Colors
• Change shapes and Location
Notes:
v1.0
Indicator release.
Changes and updates can come in the future for additional functionalities or per requests. Follow and Stay Tuned!
Did you like it? Please Support and Shoot me a message! I'd appreciate if you dropped by to say thanks! Thank you.
- Octopu$
🐙
The $trat | by Octopu$1️⃣2️⃣3️⃣ The $trat | by Octopu$
The $trat: The Strat by Octopu$
Absolute Solution for The Strat Traders!
The Strat is a Strategy created by Rob Smith's and is well known by being an innovative trading system.
Continues to grow in popularity as more traders discover this method.
It is a simplified way to understand Price Action. It is based on three principles: Types of candles, 1, 2, and 3.
Other things to be known about The Strat are Actionable Signals and Time Frame Continuity.
The $trat has it all.
This Indicator includes Bar Types (1, 2 and 3) also known as Inside Bars, Twos (Up or Down) and Outside Bars.
It is also well crafted with a built-in Time Frame Continuity (TFC) which shows Price Movement at a glimpse.
On top of that, in the best of both worlds, also comes with information about the Bars Status for other TFs as well.
It means that you can know how another TF of you preference is performing. Right there.
Works in Any Time Frame.
On Any Ticker.
(Using SPY 5m just as an example:)
www.tradingview.com
SPY
Features:
• Candle Types (1, 2 and 3) IB, 2U & 2D and OB.
• Time Frame Continuity (TFC) for Price Movement/Trend Check
• Bar Status shortcut. So you can know Price Action/Direction fast.
• Reversal indicators for Action-taking and Situational Awareness
• Combos Labels. So nothing ever goes unnoticed.
Options:
• Absolutely fully Customizable: Colors, Sizes, Numbers. Everything.
• On/Off Switches for most of the Information and Optionable Selections
• Hammer/Shooter Indicator automatically inserted to Chart
• Candle/Bars Coloring for ease of reading.
• Highlight options for specific setups
Notes:
v1.0
$trat Indicator release
Changes and updates can come in the future for additional functionalities or per requests.
Did you like it? Boost it. Shoot a message! I'd appreciate if you dropped by to say thanks.
- Octopu$
🐙
ORBox | by Octopu$📈 ORBox | by Octopu$
ORBox is a Box for the Opening Range Breakout
The Box is added automatically according to the User preferences through GUI
This Indicator includes a Dropdown selection for which Range for the Breakout you want to use
ORBox has built-in Alerts for when the Breakout happens according to your preferences
Works in any Timeframe with any Ticker
(Using SPY 5m just as an example:)
www.tradingview.com
SPY
Features:
• Opening Breakout Range (ORB)
• Dropdown menu selection to choose which TF to watch
• Built-in Alerts for Momentum Awareness
Options:
• Customization for Box Colors and Sizes
• Display ORB for Current Day or Previous
Notes:
v1.0
ORBox Indicator release
Changes and updates can come in the future for additional functionalities or per requests.
Did you like it? Shoot me a message! I'd appreciate if you dropped by to say thanks.
- Octopu$
🐙
Previous Day/Week High & Low + 50% w/ Alerts| by Octopu$
📈 Previous Day/Week High & Low + 50% w/ Alerts| by Octopu$
This Indicator includes Previous Day High and Low Levels and 50% (Half of High & Low)
As well as Previous Week High and Low Levels ((Half of High & Low))
And also Pre-Market Session High and Low.
All of them with Built-in alerts.
Can be used in any timeframe with any ticker.
(Using SPY 5m just as an example:)
www.tradingview.com
SPY
Features:
• D High: Green Top Line
• D Low: Red Bottom Line
• D 50%: White 50% Line
• Week High and Low: Blue Top and Bottom Lines
• Pre-Market and Afterhours Session: Gray Lines
• Labels for Identification
Options:
• Toggle on/off for Day High, Low and 50%
• Toggle on/off for DWeek High, Low and 50%
• Toggle on/off for PM and AH Sessions
• Show/Hide the Labels with names
• Show/Hide the Lines themselves
• Fully Customizable Style and Color
Alerts:
• Triggers for Day (above or below level)
• Triggers for Week (above or below level)
Notes:
v1.0
Release of the Indicator
Changes and updates can come in the future for additional functionalities or per requests.
Did you like it? Shoot me a message! I'd appreciate if you dropped by to say thanks.
- Octopu$
🐙
FANGMANT Performance TableThis is a simple performance table for QQQ, SPY and the main FANGMANT stocks shown left to right by current order of weighting.
Importantly, the performance is intraday from session open time.
It is NOT a daily change - credit to ShadowTrader for this distinction.
Credit also to PineCoders for their string manipluation instructions for Pine Script.
Each of the 12 symbols in the table can be set by the user.
For publication purposes I have included QQQ, SPY, VXN and TNX as these are all relevant to Nasdaq performance too
The table can be placed Top or Bottom, Left or Right
The user will need to set the cell width and height and transparency and bulilsh/bearish colors to best suit their own displays.
There are two color gradients built in to help illustrate which symbols are leading or lagging
I will also publish one for the SPY sectors that will otherwise be very similar to this
NEXT Stochastic 3xVW (Triple Volume Weighted)Overview:
This responsive version of the Stochastic oscillator modifies and extends the original to incorporate volume. It does so on 2 levels: by using Volume-Weighted Moving Average (VWMA) as input and applying a triple volume weighting filter within the internal algorithm, intelligently blending volume with what is otherwise pure momentum/distribution analysis. The result is more binary-like curve behavior (%K and %D oscillator lines), whose polarizing movement acts as both a signal and filter.
Below is a screenshot comparing NEXT Stochastic 3xVW with default settings to the original Stochastic oscillator on NQ M1 chart.
Application and Strategy Ideas:
NEXT Stochastic 3xVW is intended to be used like the original Stochastic oscillator within the context of technical analysis: identifying overvalued (above upper limit) and undervalued (below lower limit) price action, as well as establishing a bias baseline (bullish if over 50; bearish if under 50). Higher NEXT Stochastic 3xVW bottoms compared to lower price bottoms signify bullish divergence; lower NEXT Stochastic 3xVW tops compared to higher price tops signify bearish divergence. Trading %K/%D line crossing is also a popular strategy, with %K crossing over %D indicating bullish sentiment and %K crossing under %D indicating bearish sentiment.
Below is a screenshot showing NEXT Stochastic 3xVW overbought/oversold intraday strategy on SPY M1 chart. NEXT Stochastic 3xVW is set to 5,10,1,3 with long signal issued at lower limit of 30 and short at upper limit of 70.
Input Parameters:
VWMA Length - controls the averaging length of the volume-weighted moving average (based on close price and volume); used as Stochastic input
%K Length - volume-driven averaging length of the %K oscillator line - this is the faster of the two Stochastic lines
%K Smoothing - volume-driven smoothing factor of the %K line
%D Smoothing - volume-driven averaging length of the %D oscillator line (a %K derivative, post smoothing) - this is the slower of the two Stochastic lines
Upper Limit - the NEXT Stochastic 3xVW level above which market is considered overbought, default is 80
Base Bias - the NEXT Stochastic 3xVW level above which market bias is considered bullish, and below bearish
Lower Limit - the NEXT Stochastic 3xVW level below which market is considered oversold, default is 20
Signals and Alerts:
Discover and visualize NEXT Stochastic 3xVW strategies using the companion NEXT Strategy Visualizer indicator. While the %K/%D cross alerts can be set via NEXT Stochastic 3xVW indicator, the Strategy Visualizer will only plot long/short signals when %K or %D cross over or under overbought/oversold levels (as hown in the above SPY M1 screenshot). That being said, the next version of the Strategy Visualizer will also support %K/%D crosses.
Here is how to set NEXT Stochastic 3xVW %K/%D crossing alerts: open a chart, attach NEXT Stochastic 3xVW, and right-click on chart -> Add Alert. Condition: Next Stochastic >> %K >> Crossing >> Next Stochastic >> %D
Waindrops [Makit0]█ OVERALL
Plot waindrops (custom volume profiles) on user defined periods, for each period you get high and low, it slices each period in half to get independent vwap, volume profile and the volume traded per price at each half.
It works on intraday charts only, up to 720m (12H). It can plot balanced or unbalanced waindrops, and volume profiles up to 24H sessions.
As example you can setup unbalanced periods to get independent volume profiles for the overnight and cash sessions on the futures market, or 24H periods to get the full session volume profile of EURUSD
The purpose of this indicator is twofold:
1 — from a Chartist point of view, to have an indicator which displays the volume in a more readable way
2 — from a Pine Coder point of view, to have an example of use for two very powerful tools on Pine Script:
• the recently updated drawing limit to 500 (from 50)
• the recently ability to use drawings arrays (lines and labels)
If you are new to Pine Script and you are learning how to code, I hope you read all the code and comments on this indicator, all is designed for you,
the variables and functions names, the sometimes too big explanations, the overall structure of the code, all is intended as an example on how to code
in Pine Script a specific indicator from a very good specification in form of white paper
If you wanna learn Pine Script form scratch just start HERE
In case you have any kind of problem with Pine Script please use some of the awesome resources at our disposal: USRMAN , REFMAN , AWESOMENESS , MAGIC
█ FEATURES
Waindrops are a different way of seeing the volume and price plotted in a chart, its a volume profile indicator where you can see the volume of each price level
plotted as a vertical histogram for each half of a custom period. By default the period is 60 so it plots an independent volume profile each 30m
You can think of each waindrop as an user defined candlestick or bar with four key values:
• high of the period
• low of the period
• left vwap (volume weighted average price of the first half period)
• right vwap (volume weighted average price of the second half period)
The waindrop can have 3 different colors (configurable by the user):
• GREEN: when the right vwap is higher than the left vwap (bullish sentiment )
• RED: when the right vwap is lower than the left vwap (bearish sentiment )
• BLUE: when the right vwap is equal than the left vwap ( neutral sentiment )
KEY FEATURES
• Help menu
• Custom periods
• Central bars
• Left/Right VWAPs
• Custom central bars and vwaps: color and pixels
• Highly configurable volume histogram: execution window, ticks, pixels, color, update frequency and fine tuning the neutral meaning
• Volume labels with custom size and color
• Tracking price dot to be able to see the current price when you hide your default candlesticks or bars
█ SETTINGS
Click here or set any impar period to see the HELP INFO : show the HELP INFO, if it is activated the indicator will not plot
PERIOD SIZE (max 2880 min) : waindrop size in minutes, default 60, max 2880 to allow the first half of a 48H period as a full session volume profile
BARS : show the central and vwap bars, default true
Central bars : show the central bars, default true
VWAP bars : show the left and right vwap bars, default true
Bars pixels : width of the bars in pixels, default 2
Bars color mode : bars color behavior
• BARS : gets the color from the 'Bars color' option on the settings panel
• HISTOGRAM : gets the color from the Bearish/Bullish/Neutral Histogram color options from the settings panel
Bars color : color for the central and vwap bars, default white
HISTOGRAM show the volume histogram, default true
Execution window (x24H) : last 24H periods where the volume funcionality will be plotted, default 5
Ticks per bar (max 50) : width in ticks of each histogram bar, default 2
Updates per period : number of times the histogram will update
• ONE : update at the last bar of the period
• TWO : update at the last bar of each half period
• FOUR : slice the period in 4 quarters and updates at the last bar of each of them
• EACH BAR : updates at the close of each bar
Pixels per bar : width in pixels of each histogram bar, default 4
Neutral Treshold (ticks) : delta in ticks between left and right vwaps to identify a waindrop as neutral, default 0
Bearish Histogram color : histogram color when right vwap is lower than left vwap, default red
Bullish Histogram color : histogram color when right vwap is higher than left vwap, default green
Neutral Histogram color : histogram color when the delta between right and left vwaps is equal or lower than the Neutral treshold, default blue
VOLUME LABELS : show volume labels
Volume labels color : color for the volume labels, default white
Volume Labels size : text size for the volume labels, choose between AUTO, TINY, SMALL, NORMAL or LARGE, default TINY
TRACK PRICE : show a yellow ball tracking the last price, default true
█ LIMITS
This indicator only works on intraday charts (minutes only) up to 12H (720m), the lower chart timeframe you can use is 1m
This indicator needs price, time and volume to work, it will not work on an index (there is no volume), the execution will not be allowed
The histogram (volume profile) can be plotted on 24H sessions as limit but you can plot several 24H sessions
█ ERRORS AND PERFORMANCE
Depending on the choosed settings, the script performance will be highly affected and it will experience errors
Two of the more common errors it can throw are:
• Calculation takes too long to execute
• Loop takes too long
The indicator performance is highly related to the underlying volatility (tick wise), the script takes each candlestick or bar and for each tick in it stores the price and volume, if the ticker in your chart has thousands and thousands of ticks per bar the indicator will throw an error for sure, it can not calculate in time such amount of ticks.
What all of that means? Simply put, this will throw error on the BITCOIN pair BTCUSD (high volatility with tick size 0.01) because it has too many ticks per bar, but lucky you it will work just fine on the futures contract BTC1! (tick size 5) because it has a lot less ticks per bar
There are some options you can fine tune to boost the script performance, the more demanding option in terms of resources consumption is Updates per period , by default is maxed out so lowering this setting will improve the performance in a high way.
If you wanna know more about how to improve the script performance, read the HELP INFO accessible from the settings panel
█ HOW-TO SETUP
The basic parameters to adjust are Period size , Ticks per bar and Pixels per bar
• Period size is the main setting, defines the waindrop size, to get a better looking histogram set bigger period and smaller chart timeframe
• Ticks per bar is the tricky one, adjust it differently for each underlying (ticker) volatility wise, for some you will need a low value, for others a high one.
To get a more accurate histogram set it as lower as you can (min value is 1)
• Pixels per bar allows you to adjust the width of each histogram bar, with it you can adjust the blank space between them or allow overlaping
You must play with these three parameters until you obtain the desired histogram: smoother, sharper, etc...
These are some of the different kind of charts you can setup thru the settings:
• Balanced Waindrops (default): charts with waindrops where the two halfs are of same size.
This is the default chart, just select a period (30m, 60m, 120m, 240m, pick your poison), adjust the histogram ticks and pixels and watch
• Unbalanced Waindrops: chart with waindrops where the two halfs are of different sizes.
Do you trade futures and want to plot a waindrop with the first half for the overnight session and the second half for the cash session? you got it;
just adjust the period to 1860 for any CME ticker (like ES1! for example) adjust the histogram ticks and pixels and watch
• Full Session Volume Profile: chart with waindrops where only the first half plots.
Do you use Volume profile to analize the market? Lucky you, now you can trick this one to plot it, just try a period of 780 on SPY, 2760 on ES1!, or 2880 on EURUSD
remember to adjust the histogram ticks and pixels for each underlying
• Only Bars: charts with only central and vwap bars plotted, simply deactivate the histogram and volume labels
• Only Histogram: charts with only the histogram plotted (volume profile charts), simply deactivate the bars and volume labels
• Only Volume: charts with only the raw volume numbers plotted, simply deactivate the bars and histogram
If you wanna know more about custom full session periods for different asset classes, read the HELP INFO accessible from the settings panel
EXAMPLES
Full Session Volume Profile on MES 5m chart:
Full Session Unbalanced Waindrop on MNQ 2m chart (left side Overnight session, right side Cash Session):
The following examples will have the exact same charts but on four different tickers representing a futures contract, a forex pair, an etf and a stock.
We are doing this to be able to see the different parameters we need for plotting the same kind of chart on different assets
The chart composition is as follows:
• Left side: Volume Labels chart (period 10)
• Upper Right side: Waindrops (period 60)
• Lower Right side: Full Session Volume Profile
The first example will specify the main parameters, the rest of the charts will have only the differences
MES :
• Left: Period size: 10, Bars: uncheck, Histogram: uncheck, Execution window: 1, Ticks per bar: 2, Updates per period: EACH BAR,
Pixels per bar: 4, Volume labels: check, Track price: check
• Upper Right: Period size: 60, Bars: check, Bars color mode: HISTOGRAM, Histogram: check, Execution window: 2, Ticks per bar: 2,
Updates per period: EACH BAR, Pixels per bar: 4, Volume labels: uncheck, Track price: check
• Lower Right: Period size: 2760, Bars: uncheck, Histogram: check, Execution window: 1, Ticks per bar: 1, Updates per period: EACH BAR,
Pixels per bar: 2, Volume labels: uncheck, Track price: check
EURUSD :
• Upper Right: Ticks per bar: 10
• Lower Right: Period size: 2880, Ticks per bar: 1, Pixels per bar: 1
SPY :
• Left: Ticks per bar: 3
• Upper Right: Ticks per bar: 5, Pixels per bar: 3
• Lower Right: Period size: 780, Ticks per bar: 2, Pixels per bar: 2
AAPL :
• Left: Ticks per bar: 2
• Upper Right: Ticks per bar: 6, Pixels per bar: 3
• Lower Right: Period size: 780, Ticks per bar: 1, Pixels per bar: 2
█ THANKS TO
PineCoders for all they do, all the tools and help they provide and their involvement in making a better community
scarf for the idea of coding a waindrops like indicator, I did not know something like that existed at all
All the Pine Coders, Pine Pros and Pine Wizards, people who share their work and knowledge for the sake of it and helping others, I'm very grateful indeed
I'm learning at each step of the way from you all, thanks for this awesome community;
Opensource and shared knowledge: this is the way! (said with canned voice from inside my helmet :D)
█ NOTE
This description was formatted following THIS guidelines
═════════════════════════════════════════════════════════════════════════
I sincerely hope you enjoy reading and using this work as much as I enjoyed developing it :D
GOOD LUCK AND HAPPY TRADING!
Short in Bollinger Band Down trend (Weekly and Daily) // © PlanTradePlanMM
// 6/14/2020
// ---------------------------------------------------
// Name: Short in Bollinger Band Down trend (Weekly and Daily)
// ---------------------------------------------------
// Key Points in this study:
// 1. Short in BB Lower band, probability of price going down is more than 50%
// 2. Short at the top 1/4 of Lower band (EMA - Lower line), Stop is EMA, tartget is Lower line; it matches risk:/reward=1:3 naturally
//
// Draw Lines:
// BB Lower : is the Target (Black line)
// BB EMA : is the initial Stop (Black line)
// ShortLine : EMA - 1/4 of (Stop-target), which matches risk:/reward=1:3
// Prepare Zone : between EMA and ShortLine
// shortPrice : Blue dot line only showing when has Short position, Which shows entry price.
// StopPrice : Black dot line only showing when has Short position, Which shows updated stop price.
//
// Add SMA50 to filter the trend. Price <= SMA, allow to short
//
// What (Condition): in BB down trend band
// When (Price action): Price cross below ShortLine;
// How (Trading Plan): Short at ShortLine;
// Initial Stop is EMA;
// Initial Target is BB Lower Line;
// FollowUp: if price moves down first, and EMA is below Short Price. Move stop to EMA, At least "make even" in this trade;
// if Price touched Short Line again and goes down, new EMA will be the updated stop
//
// Exit: 1. Initial stop -- "Stop" when down first, Close above stop
// 2. Target reached -- "TR" when down quickly, Target reached
// 3. make even -- "ME" when small down and up, Exit at Entry Price
// 4. Small Winner -- "SM" when EMA below Entry price, Exit when Close above EMA
//
// --------------
// Because there are too many flags in up trend study already, I created this down trend script separately.
// Uptrend study is good for SPY, QQQ, and strong stocks.
// Downtrend Study is good for weak ETF, stock, and (-2x, -3x) ETFs, such as FAZ, UVXY, USO, XOP, AAL, CCL
// -----------------------------------------------------------------------------------------------------------------
// Back test Weekly and daily chart for SPY, QQQ, XOP, AAL, BA, MMM, FAZ, UVXY
// The best sample is FAZ Weekly chart.
// When SPY and QQQ are good in long term up trend, these (-2x, -3x) ETFs are always going down in long term.
// Some of them are not allowed to short. I used option Put/Put spread for the short entry.
//
Buy in Bollinger Band uptrend (Weekly and Daily) // © PlanTradePlanMM 6/14/2020
// ---------------------------------------------------
// Name: Buy in Bollinger Band uptrend (Weekly and Daily)
// ---------------------------------------------------
// Key Points in this study:
// 1. Long in BB Upper band, probability of price going up is more than 50%
// 2. Buy at the bottom 1/4 of upper band (Upper line - EMA), Stop is EMA, tartget is Upper line; it matches risk:reward=1:3;
//
// Draw Lines:
// BB Upper : is the Target (Black line)
// BB EMA : is the initial Stop (Black line)
// BuyLine : EMA20 + 1/4 of (Target-Stop), which matches risk:/reward=1:3 naturally
// Prepare Zone : between EMA and BuyLine
// buyPrice : Blue dot line only showing when has long position, Which shows entry price.
// StopPrice : Black dot line only showing when has long position, Which shows updated stop price.
//
// Add SMA(50) to filter the trend. Price >= SMA, allow to long
//
// What (Condition): in BB uptrend band
// When (Price action): Price cross over BuyLine;
// How (Trading Plan): Buy at BuyLine;
// Initial Stop is EMA;
// Initial Target is BB Upper Line;
//
// FollowUp: if price moves up first, and the EMA is higher than Entry point, Use EMA as new stop. At least "make even" in this trade;
//
// Exit: 1. Initial stop -- "Stop" when down first, close below stop price.
// 2. Target reached -- "TR" when up quickly, Target reached
// 3. make even -- "ME" when small up and down, Exit at entry Price
// 4. Small Winner -- "SM" when EMA above Entry price, Exit when close below EMA, and higher than entry Price
//
// --------------
// Because there are too many flags in up trend study already, I will create a down trend script separately.
// Uptrend study is good for SPY, QQQ, and strong stocks.
// Downtrend Study is good for weak ETF, stock, and (-2x, -3x) ETFs, such as FAZ, UVXY, USO, XOP, AAL, CCL
// -----------------------------------------------------------------------------------------------------------------
// Back test Weekly and daily chart for SPY, QQQ
// If it will be a big Gap down or a big down move, stop at close price could be a big loss; But this way could avoid may noise, to stay in a trending position longer.
// When buy in trending move, the position could be hold for a big range.
// The best samples are SPY and QQQ daily chart.
//
// Better to use another way to verify the long term up trend first.
// For single stock, it is better shows more relative strength than SPY.
Benchmark Above MA SignalBenchmark Above MA Signal (Configurable Visual)
This tool provides a simple ON/OFF signal showing whether a selected benchmark asset (e.g., SPY, BTC, QQQ, etc.) is currently trading above a specified moving average.
🔧 Customizable Settings:
Choose the benchmark symbol
Set the timeframe (e.g., daily, 4H, weekly)
Select SMA or EMA type
Define the MA length (e.g., 21, 50, 200)
Pick between two display modes:
Stepline (default): plots a clean binary signal in the lower pane
Background Only: visually highlights confluence periods without a line plot
✅ Ideal for macro filters, trend confirmation, or dashboard-style layouts
📊 Common use case: staying aware of the daily trend of SPY while trading lower intraday timeframes
VeroTrade Key LevelsAbout: VeroTrade Key Levels is a versatile indicator designed for traders who rely on key price levels to make informed decisions. It was created for the community members of VeroTrade by @gabe580. This indicator overlays previous monthly, weekly, and daily high/low levels, along with user-defined custom levels, directly on your TradingView chart. With customizable visibility, colors, and line styles, it’s perfect for technical analysis across various markets and timeframes.
Features:
- Monthly, Weekly, and Daily Levels: Displays previous period high and low levels for monthly, weekly, and daily timeframes, helping you identify significant support and resistance zones.
- Custom Levels: Add up to 10 sets of user-defined price levels (e.g., for specific tickers like SPY) with dynamic coloring (red for levels above the current price, green for below).
- Toggleable Display: Enable or disable monthly, weekly, daily, and custom levels individually to suit your analysis needs.
- Customizable Appearance: Adjust line widths and colors for each level type, and choose whether to show labels for clarity.
- Stable and Efficient: Lines remain fixed during chart panning, ensuring a seamless user experience without clutter or redraw issues.
How To Use:
1. Add the indicator to your chart.
2. Enable/disable levels via inputs.
3. Input custom levels in the format: "Ticker, level1, level2, ..." (e.g., "SPY, 555, 556").
4. Adjust colors and line widths to suit your style.
Ergodic Market Divergence (EMD)Ergodic Market Divergence (EMD)
Bridging Statistical Physics and Market Dynamics Through Ensemble Analysis
The Revolutionary Concept: When Physics Meets Trading
After months of research into ergodic theory—a fundamental principle in statistical mechanics—I've developed a trading system that identifies when markets transition between predictable and unpredictable states. This indicator doesn't just follow price; it analyzes whether current market behavior will persist or revert, giving traders a scientific edge in timing entries and exits.
The Core Innovation: Ergodic Theory Applied to Markets
What Makes Markets Ergodic or Non-Ergodic?
In statistical physics, ergodicity determines whether a system's future resembles its past. Applied to trading:
Ergodic Markets (Mean-Reverting)
- Time averages equal ensemble averages
- Historical patterns repeat reliably
- Price oscillates around equilibrium
- Traditional indicators work well
Non-Ergodic Markets (Trending)
- Path dependency dominates
- History doesn't predict future
- Price creates new equilibrium levels
- Momentum strategies excel
The Mathematical Framework
The Ergodic Score combines three critical divergences:
Ergodic Score = (Price Divergence × Market Stress + Return Divergence × 1000 + Volatility Divergence × 50) / 3
Where:
Price Divergence: How far current price deviates from market consensus
Return Divergence: Momentum differential between instrument and market
Volatility Divergence: Volatility regime misalignment
Market Stress: Adaptive multiplier based on current conditions
The Ensemble Analysis Revolution
Beyond Single-Instrument Analysis
Traditional indicators analyze one chart in isolation. EMD monitors multiple correlated markets simultaneously (SPY, QQQ, IWM, DIA) to detect systemic regime changes. This ensemble approach:
Reveals Hidden Divergences: Individual stocks may diverge from market consensus before major moves
Filters False Signals: Requires broader market confirmation
Identifies Regime Shifts: Detects when entire market structure changes
Provides Context: Shows if moves are isolated or systemic
Dynamic Threshold Adaptation
Unlike fixed-threshold systems, EMD's boundaries evolve with market conditions:
Base Threshold = SMA(Ergodic Score, Lookback × 3)
Adaptive Component = StDev(Ergodic Score, Lookback × 2) × Sensitivity
Final Threshold = Smoothed(Base + Adaptive)
This creates context-aware signals that remain effective across different market environments.
The Confidence Engine: Know Your Signal Quality
Multi-Factor Confidence Scoring
Every signal receives a confidence score based on:
Signal Clarity (0-35%): How decisively the ergodic threshold is crossed
Momentum Strength (0-25%): Rate of ergodic change
Volatility Alignment (0-20%): Whether volatility supports the signal
Market Quality (0-20%): Price convergence and path dependency factors
Real-Time Confidence Updates
The Live Confidence metric continuously updates, showing:
- Current opportunity quality
- Market state clarity
- Historical performance influence
- Signal recency boost
- Visual Intelligence System
Adaptive Ergodic Field Bands
Dynamic bands that expand and contract based on market state:
Primary Color: Ergodic state (mean-reverting)
Danger Color: Non-ergodic state (trending)
Band Width: Expected price movement range
Squeeze Indicators: Volatility compression warnings
Quantum Wave Ribbons
Triple EMA system (8, 21, 55) revealing market flow:
Compressed Ribbons: Consolidation imminent
Expanding Ribbons: Directional move developing
Color Coding: Matches current ergodic state
Phase Transition Signals
Clear entry/exit markers at regime changes:
Bull Signals: Ergodic restoration (mean reversion opportunity)
Bear Signals: Ergodic break (trend following opportunity)
Confidence Labels: Percentage showing signal quality
Visual Intensity: Stronger signals = deeper colors
Professional Dashboard Suite
Main Analytics Panel (Top Right)
Market State Monitor
- Current regime (Ergodic/Non-Ergodic)
- Ergodic score with threshold
- Path dependency strength
- Quantum coherence percentage
Divergence Metrics
- Price divergence with severity
- Volatility regime classification
- Strategy mode recommendation
- Signal strength indicator
Live Intelligence
- Real-time confidence score
- Color-coded risk levels
- Dynamic strategy suggestions
Performance Tracking (Left Panel)
Signal Analytics
- Total historical signals
- Win rate with W/L breakdown
- Current streak tracking
- Closed trade counter
Regime Analysis
- Current market behavior
- Bars since last signal
- Recommended actions
- Average confidence trends
Strategy Command Center (Bottom Right)
Adaptive Recommendations
- Active strategy mode
- Primary approach (mean reversion/momentum)
- Suggested indicators ("weapons")
- Entry/exit methodology
- Risk management guidance
- Comprehensive Input Guide
Core Algorithm Parameters
Analysis Period (10-100 bars)
Scalping (10-15): Ultra-responsive, more signals, higher noise
Day Trading (20-30): Balanced sensitivity and stability
Swing Trading (40-100): Smooth signals, major moves only Default: 20 - optimal for most timeframes
Divergence Threshold (0.5-5.0)
Hair Trigger (0.5-1.0): Catches every wiggle, many false signals
Balanced (1.5-2.5): Good signal-to-noise ratio
Conservative (3.0-5.0): Only extreme divergences Default: 1.5 - best risk/reward balance
Path Memory (20-200 bars)
Short Memory (20-50): Recent behavior focus, quick adaptation
Medium Memory (50-100): Balanced historical context
Long Memory (100-200): Emphasizes established patterns Default: 50 - captures sufficient history without lag
Signal Spacing (5-50 bars)
Aggressive (5-10): Allows rapid-fire signals
Normal (15-25): Prevents clustering, maintains flow
Conservative (30-50): Major setups only Default: 15 - optimal trade frequency
Ensemble Configuration
Select markets for consensus analysis:
SPY: Broad market sentiment
QQQ: Technology leadership
IWM: Small-cap risk appetite
DIA: Blue-chip stability
More instruments = stronger consensus but potentially diluted signals
Visual Customization
Color Themes (6 professional options):
Quantum: Cyan/Pink - Modern trading aesthetic
Matrix: Green/Red - Classic terminal look
Heat: Blue/Red - Temperature metaphor
Neon: Cyan/Magenta - High contrast
Ocean: Turquoise/Coral - Calming palette
Sunset: Red-orange/Teal - Warm gradients
Display Controls:
- Toggle each visual component
- Adjust transparency levels
- Scale dashboard text
- Show/hide confidence scores
- Trading Strategies by Market State
- Ergodic State Strategy (Primary Color Bands)
Market Characteristics
- Price oscillates predictably
- Support/resistance hold
- Volume patterns repeat
- Mean reversion dominates
Optimal Approach
Entry: Fade moves at band extremes
Target: Middle band (equilibrium)
Stop: Just beyond outer bands
Size: Full confidence-based position
Recommended Tools
- RSI for oversold/overbought
- Bollinger Bands for extremes
- Volume profile for levels
- Non-Ergodic State Strategy (Danger Color Bands)
Market Characteristics
- Price trends persistently
- Levels break decisively
- Volume confirms direction
- Momentum accelerates
Optimal Approach
Entry: Breakout from bands
Target: Trail with expanding bands
Stop: Inside opposite band
Size: Scale in with trend
Recommended Tools
- Moving average alignment
- ADX for trend strength
- MACD for momentum
- Advanced Features Explained
Quantum Coherence Metric
Measures phase alignment between individual and ensemble behavior:
80-100%: Perfect sync - strong mean reversion setup
50-80%: Moderate alignment - mixed signals
0-50%: Decoherence - trending behavior likely
Path Dependency Analysis
Quantifies how much history influences current price:
Low (<30%): Technical patterns reliable
Medium (30-50%): Mixed influences
High (>50%): Fundamental shift occurring
Volatility Regime Classification
Contextualizes current volatility:
Normal: Standard strategies apply
Elevated: Widen stops, reduce size
Extreme: Defensive mode required
Signal Strength Indicator
Real-time opportunity quality:
- Distance from threshold
- Momentum acceleration
- Cross-validation factors
Risk Management Framework
Position Sizing by Confidence
90%+ confidence = 100% position size
70-90% confidence = 75% position size
50-70% confidence = 50% position size
<50% confidence = 25% or skip
Dynamic Stop Placement
Ergodic State: ATR × 1.0 from entry
Non-Ergodic State: ATR × 2.0 from entry
Volatility Adjustment: Multiply by current regime
Multi-Timeframe Alignment
- Check higher timeframe regime
- Confirm ensemble consensus
- Verify volume participation
- Align with major levels
What Makes EMD Unique
Original Contributions
First Ergodic Theory Trading Application: Transforms abstract physics into practical signals
Ensemble Market Analysis: Revolutionary multi-market divergence system
Adaptive Confidence Engine: Institutional-grade signal quality metrics
Quantum Coherence: Novel market alignment measurement
Smart Signal Management: Prevents clustering while maintaining responsiveness
Technical Innovations
Dynamic Threshold Adaptation: Self-adjusting sensitivity
Path Memory Integration: Historical dependency weighting
Stress-Adjusted Scoring: Market condition normalization
Real-Time Performance Tracking: Built-in strategy analytics
Optimization Guidelines
By Timeframe
Scalping (1-5 min)
Period: 10-15
Threshold: 0.5-1.0
Memory: 20-30
Spacing: 5-10
Day Trading (5-60 min)
Period: 20-30
Threshold: 1.5-2.5
Memory: 40-60
Spacing: 15-20
Swing Trading (1H-1D)
Period: 40-60
Threshold: 2.0-3.0
Memory: 80-120
Spacing: 25-35
Position Trading (1D-1W)
Period: 60-100
Threshold: 3.0-5.0
Memory: 100-200
Spacing: 40-50
By Market Condition
Trending Markets
- Increase threshold
- Extend memory
- Focus on breaks
Ranging Markets
- Decrease threshold
- Shorten memory
- Focus on restores
Volatile Markets
- Increase spacing
- Raise confidence requirement
- Reduce position size
- Integration with Other Analysis
- Complementary Indicators
For Ergodic States
- RSI divergences
- Bollinger Band squeezes
- Volume profile nodes
- Support/resistance levels
For Non-Ergodic States
- Moving average ribbons
- Trend strength indicators
- Momentum oscillators
- Breakout patterns
- Fundamental Alignment
- Check economic calendar
- Monitor sector rotation
- Consider market themes
- Evaluate risk sentiment
Troubleshooting Guide
Too Many Signals:
- Increase threshold
- Extend signal spacing
- Raise confidence minimum
Missing Opportunities
- Decrease threshold
- Reduce signal spacing
- Check ensemble settings
Poor Win Rate
- Verify timeframe alignment
- Confirm volume participation
- Review risk management
Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial advice. Trading involves substantial risk of loss and is not suitable for all investors. Past performance does not guarantee future results.
The ergodic framework provides unique market insights but cannot predict future price movements with certainty. Always use proper risk management, conduct your own analysis, and never risk more than you can afford to lose.
This tool should complement, not replace, comprehensive trading strategies and sound judgment. Markets remain inherently unpredictable despite advanced analysis techniques.
Transform market chaos into trading clarity with Ergodic Market Divergence.
Created with passion for the TradingView community
Trade with insight. Trade with anticipation.
— Dskyz , for DAFE Trading Systems
Custom Sector Relative Strength (sector rotation)📌 Indicator Summary for “Custom Sector Relative Strength (sector rotation)”
🔹 Overview:
This Pine Script indicator calculates and displays the relative strength performance of up to 25 customizable sectors or ETFs compared to a user-defined benchmark index (e.g., SPY, TASI.TAD, etc.).
It helps traders and analysts identify which sectors are outperforming or underperforming relative to the benchmark over different time frames.
________________________________________
🔹 Calculation Method:
For each sector, the indicator:
1. Retrieves the current and past closing prices for both the sector and the benchmark.
2. Computes the ratio of the sector's price to the benchmark at both time points.
3. Calculates the percentage change in this ratio over the selected lookback period:
4. Relative Strength (%) = ((Current_Ratio / Past_Ratio) - 1) * 100
5. Assigns a direction symbol:
o ↑ for positive outperformance
o ↓ for underperformance
o → for no significant change
6. Applies a color code for clarity:
o Green for ↑
o Red for ↓
o Gray for →
________________________________________
🔹 How to Use:
1. Set your benchmark index (e.g., SPY or TASI.TAD) from the settings panel.
2. Choose a lookback period: 1 Day, 1 Week, 1 Month, 3 Months, 6 Months, or 1 Year.
3. Define up to 25 sectors:
o Enter the symbol and name of each sector.
o Toggle the Show option on/off to include/exclude any sector.
4. The script will sort the sectors from strongest to weakest based on their relative performance.
5. Results are displayed in a dynamic table on the chart showing:
o Ticker
o Sector Name
o Relative % Performance
o Direction Indicator (↑ ↓ →)
________________________________________
🔹 Practical Uses:
• Sector rotation strategies
• Market breadth analysis
• Benchmark-relative strength monitoring
• Multi-sector ETFs or custom group comparisons
• Saudi, US, or global sector analysis
________________________________________
Let me know if you'd like an Arabic version or want this formatted as a PDF or used as a code comment section.
Sector Relative StrengthDescription
This script compares sector performance relative to the S&P 500. Sector price levels or charts alone can mislead, because they tend to move with the broader market. An increase in a sector’s price does not necessarily indicate strength, as it may simply be following the index.
For more a more reliable picture, the script calculates a ratio between each sector ETF and SPY. If the ratio has increased, the sector has outperformed the index. In case it has declined, the sector has underperformed. If the value is near zero, the sector has moved in line with the index. The sectors are presented in a table and sorted on relative performance.
Calculation Method
The performance is expressed as a percentage change in the ratio over a user-defined lookback period. The default lookback is set to 21 bars, which corresponds to one month on a daily chart. This value can be adopted in the settings to match preferred time period.
Z-Score
In addition to the percentage change, the script calculates a Z-score of the ratio, which measures how far the current value deviates from its recent mean. A high positive Z-score indicates that the ratio is significantly above its average, while a negative value indicates it is below. This normalization allows for comparison between sectors with different price levels or volatility profiles.
Table Columns
- Relative %: The sector's performance relative to SPY over the selected lookback period
- Z-Score: Standardized measure of current performance ratio is relative to its average
- Trend Arrow: Indicates the direction of relative performance up down or flat
Example Interpretation
For example, if XLK shows a 3.7% change, it has outperformed SPY over the selected period. Another sector might show a -2.1% change, which indicates underperformance. While both values shows relative strength or weakness, the Z-score is optional and can provide additional context based on how unusual that performance is compared to the sector's own recent behavior.
Use Case
This approach helps evaluate overall market conditions and supports a top-down method. By starting with sector performance, it becomes easier to identify where the market is showing leadership or weakness. This allows the stock selection process to be more deliberate and can help refine or customize screeners based on certain sectors.
Multi-Timeframe Continuity Custom Candle ConfirmationMulti-Timeframe Continuity Custom Candle Confirmation
Overview
The Timeframe Continuity Indicator is a versatile tool designed to help traders identify alignment between their current chart’s candlestick direction and higher timeframes of their choice. By coloring bars on the current chart (e.g., 1-minute) based on the directional alignment with selected higher timeframes (e.g., 10-minute, daily), this indicator provides a visual cue for confirming trends across multiple timeframes—a concept known as Timeframe Continuity. This approach is particularly useful for day traders, swing traders, and scalpers looking to ensure their trades align with broader market trends, reducing the risk of trading against the prevailing momentum.
Originality and Usefulness
This indicator is an original creation, built from scratch to address a common challenge in trading: ensuring that price action on a lower timeframe aligns with the trend on higher timeframes. Unlike many trend-following indicators that rely on moving averages, oscillators, or other lagging metrics, this script directly compares the bullish or bearish direction of candlesticks across timeframes. It introduces the following unique features:
Customizable Timeframes: Users can select from a range of higher timeframes (5m, 10m, 15m, 30m, 1h, 2h, 4h, 1d, 1w, 1M) to check for alignment, making it adaptable to various trading styles.
Neutral Candle Handling: The script accounts for neutral candles (where close == open) on the current timeframe by allowing them to inherit the direction of the higher timeframe, ensuring continuity in trend visualization.
Table: A table displays the direction of each selected timeframe and the current timeframe, helping identify direction in the event you don't want to color bars.
Toggles for Flexibility: Options to disable bar coloring and the debug table allow users to customize the indicator’s visual output for cleaner charts or focused analysis.
This indicator is not a mashup of existing scripts but a purpose-built tool to visualize timeframe alignment directly through candlestick direction, offering traders a straightforward way to confirm trend consistency.
What It Does
The Timeframe Continuity Indicator colors bars on your chart when the direction of the current timeframe’s candlestick (bullish, bearish, or neutral) aligns with the direction of the selected higher timeframes:
Lime: The current bar (e.g., 1m) is bullish or neutral, and all selected higher timeframes (e.g., 10m) are bullish.
Pink: The current bar is bearish or neutral, and all selected higher timeframes are bearish.
Default Color: If the directions don’t align (e.g., 1m bar is bearish but 10m is bullish), the bar remains the default chart color.
The indicator also includes a debug table (toggleable) that shows the direction of each selected timeframe and the current timeframe, helping traders diagnose alignment issues.
How It Works
The script uses the following methodology:
1. Direction Calculation: For each timeframe (current and selected higher timeframes), the script determines the candlestick’s direction:
Bullish (1): close > open / Bearish (-1): close < open / Neutral (0): close == open
Higher timeframe directions are fetched using Pine Script’s request.security function, ensuring accurate data retrieval.
2. Alignment Check: The script checks if all selected higher timeframes are uniformly bullish (full_bullish) or bearish (full_bearish).
o A higher timeframe must have a clear direction (bullish or bearish) to trigger coloring. If any selected timeframe is neutral, alignment fails, and no coloring occurs.
3. Coloring Logic: The current bar is colored only if its direction aligns with the higher timeframes:
Lime if the higher timeframes are bullish and the current bar is bullish or neutral.
Maroon if the higher timeframes are bearish and the current bar is bearish or neutral.
If the current bar’s direction opposes the higher timeframe (e.g., 1m bearish, 10m bullish), the bar remains uncolored.
Users can disable bar coloring entirely via the settings, leaving bars in their default chart color.
4. Direction Table:
A table in the top-right corner (toggleable) displays the direction of each selected timeframe and the current timeframe, using color-coded labels (green for bullish, red for bearish, gray for neutral).
This feature helps traders understand why a bar is or isn’t colored, making the indicator accessible to users unfamiliar with Pine Script.
How to Use
1. Add the Indicator: Add the "Timeframe Continuity Indicator" to your chart in TradingView (e.g., a 1m chart of SPY).
2. Configure Settings:
Timeframe Selection: Check the boxes for the higher timeframes you want to compare against (default: 10m). Options include 5m, 10m, 15m, 30m, 1h, 2h, 4h, 1D, 1W, and 1M. Select multiple timeframes if you want to ensure alignment across all of them (e.g., 10m and 1d).
Enable Bar Coloring: Default: true (bars are colored lime or maroon when aligned). Set to false to disable coloring and keep the default chart colors.
Show Table: Default: true (table is displayed in the top-right corner). Set to false to hide the table for a cleaner chart.
3. Interpret the Output:
Colored Bars: Lime bars indicate the current bar (e.g., 1m) is bullish or neutral, and all selected higher timeframes are bullish. Maroon bars indicate the current bar is bearish or neutral, and all selected higher timeframes are bearish. Uncolored bars (default chart color) indicate a mismatch (e.g., 1m bar is bearish while 10m is bullish) or no coloring if disabled.
Direction Table: Check the table to see the direction of each selected timeframe and the current timeframe.
4. Example Use Case:
On a 1m chart of SPY, select the 10m timeframe.
If the 10m timeframe is bearish, 1m bars that are bearish or neutral will color maroon, confirming you’re trading with the higher timeframe’s trend.
If a 1m bar is bullish while the 10m is bearish, it remains uncolored, signaling a potential misalignment to avoid trading.
Underlying Concepts
The indicator is based on the concept of Timeframe Continuity, a strategy used by traders to ensure that price action on a lower timeframe aligns with the trend on higher timeframes. This reduces the risk of entering trades against the broader market direction. The script directly compares candlestick directions (bullish, bearish, or neutral) rather than relying on lagging indicators like moving averages or RSI, providing a real-time, price-action-based confirmation of trend alignment. The handling of neutral candles ensures that minor indecision on the lower timeframe doesn’t interrupt the visualization of the higher timeframe’s trend.
Why This Indicator?
Simplicity: Directly compares candlestick directions, avoiding complex calculations or lagging indicators.
Flexibility: Customizable timeframes and toggles cater to various trading strategies.
Transparency: The debug table makes the indicator’s logic accessible to all users, not just those who can read Pine Script.
Practicality: Helps traders confirm trend alignment, a key factor in successful trading across timeframes.
Session Times + Strenght M7This Script Aims to Define Session Times, and Rank those. It can help to adjust your Strategy to Higher Volatility, if you choose to use the Session Volatility and Strenght Index from 1-10. Your timezone on Trading View should be NY. You can customize the Following in Settings: Weight of Volatility & Narrative Regarding the ranking + Transparency of the Lines. SP:SPX FX:EURUSD OANDA:EURUSD CAPITALCOM:USDJPY AMEX:SPY NASDAQ:QQQ TVC:DXY CAPITALCOM:USDJPY CME_MINI:NQ1! OANDA:XAUUSD FX:GBPUSD
TradeSmart Morning GloryThe Morning Glory Indicator by TradeSmart University is a pre-market volume visualization tool designed to help traders quickly assess the quality of a morning gap. By highlighting volume levels before the market opens, this indicator helps distinguish between a professional gap (likely to continue running) and a retail/news-driven gap (likely to fade or reverse).
💡 What It Does:
This indicator plots color-coded volume bars in the pre-market session and highlights when volume crosses two key thresholds:
Teal Bars – Low institutional interest
Yellow Bars – Medium institutional interest (100K+ volume)
Red Bars – High institutional interest (400K+ volume)
These thresholds are most effective on AMEX:SPY and other high-volume ETFs or stocks, but may be customized to fit your trading style. Consider using a 15-minute chart for the above settings.
🧠 How to Use It:
This indicator works best in conjunction with the Morning Glory Strategy and Qualified Trade Setup . On its own, the indicator gives a real-time read on pre-market strength , helping you:
Confirm gap-and-go setups (gap + high volume = likely continuation)
Fade the gap (gap + low volume = higher likelihood of reversal)
While the indicator focuses exclusively on volume, the full Morning Glory strategy adds an important price gap size filter to create powerful trade signals.
📊 Probabilities of Success (Based on Full Strategy):
When used as part of the Morning Glory Qualified Trade Setup, here are the historical win rates by day of the week:
Monday: 65%
Tuesday: 77%
Wednesday: 79%
Thursday: 82%
Friday: 78%
If used in conjunction with an artificial intelligence like the Deep Sky Trading Assistant™, win-loss ratios improve to 89% or better across all days of the week.
🔔 Note: For best results, activate premium ARCA data on your TradingView account. This ensures the most accurate and complete pre-market volume data.
FordOverview
The "Ford Trading Assistant" is an indicator crafted to support traders during the fast-paced New York trading session. This tool overlays a customizable table on your chart, delivering real-time insights from key market internals—NYSE and Nasdaq Advance/Decline (A/D), Volume Difference (VOLD), and TICK—alongside a unique Trend Score and actionable trading instructions. Its innovative design blends multiple data points into a cohesive market analysis tool, offering visual clarity and contextual guidance to help traders navigate intraday momentum shifts.
Purpose and Usefulness
Unlike typical price-based indicators, the Ford Trading Assistant taps into broad market internals to reveal underlying sentiment and momentum, making it an essential companion for intraday trading in the New York session for ETFs such as SPY/QQQ/IWM and Futures Markets(ES/NQ/RTY). It’s ideal for scalpers, day traders, and swing traders looking to confirm trend strength, spot potential reversals, or avoid choppy conditions. The indicator’s dual-table interface—one for data and signals, another for instructions—provides a streamlined way to assess current market dynamics and anticipate what’s ahead, enhancing decision-making in real time.
How It Works
The indicator pulls live data from six critical market internals using a 1-second timeframe:
NYSE Advance/Decline (A/D) - Tracks the balance of advancing versus declining NYSE stocks.
Nasdaq Advance/Decline (A/D) - Monitors the same for Nasdaq stocks.
NYSE VOLD - Measures the net volume difference between buying and selling on the NYSE.
Nasdaq VOLD - Captures the equivalent for Nasdaq.
NYSE TICK - Gauges the net number of NYSE stocks ticking up versus down.
Nasdaq TICK - Reflects the same for Nasdaq.
These internals are analyzed to determine their trend state (e.g., bullish, bearish, or neutral), displayed with color-coded backgrounds and emojis for instant recognition. The indicator then:
Assesses Trend Conditions: Evaluates the alignment of internals to identify varying degrees of bullish or bearish momentum, reflected in bar colors on the chart.
Calculates a Trend Score: Combines the strength of all internals into a single, proprietary metric that summarizes market direction and intensity.
Generates Signals: Detects changing states in market internals like reversals, acceleration, exhaustion, divergence, breakouts, and mean reversion, presented with directional cues and timestamps.
A separate instruction panel interprets these conditions, delivering guidance tailored to the market’s current state—whether it’s trending strongly, leaning one way, or stuck in divergence—helping traders understand the auction’s behavior and adjust their approach.
Internal Signals and Their Role
Each internal signal plays a distinct role in confirming the market’s current state and the conditions you’re trading into:
NYSE and Nasdaq A/D: Reflects market breadth. Strong positive readings indicate widespread buying interest, while negative readings suggest broad selling pressure, helping confirm if a move has solid participation.
NYSE and Nasdaq VOLD: Tracks volume momentum. High positive values signal aggressive buying, while deep negatives point to heavy selling, validating whether price action is supported by volume.
NYSE and Nasdaq TICK: Captures short-term sentiment. Extreme values highlight overbought or oversold conditions, offering clues about potential continuation or exhaustion.
How Signals Confirm Conditions
Trend Score: A positive score suggests bullish control, a negative score indicates bearish control, and a neutral score points to indecision. It acts as a quick gauge of overall market health with a low score of -24 and a max score of +24 with calculations based on overall internal conditions.
Reversal: Warns of potential trend shifts, triggered by significant changes in momentum or conflicting internals. Useful for exiting trends or preparing for counter-moves.
Acceleration: Highlights strengthening momentum, confirming conditions for trading a trend with confidence.
Exhaustion: Flags overextended moves, signaling fading momentum—ideal for profit-taking or fading trades.
Divergence: Indicates a disconnect between price and internals, cautioning against chasing moves that lack internal support.
Breakout: Identifies sharp momentum surges, confirming conditions for high-probability breakout trades.
Mean Reversion: Signals a pullback from extremes, suggesting a return to balance for range-bound strategies.
How to Use It
Add to Chart: Apply the indicator to any symbol (e.g., SPY, QQQ) on a 1-second or higher timeframe. It displays an "Internals Table" (default bottom right) and an "Instructions" panel (top right).
Track Internals: Watch the table for real-time data, trend states, and the Trend Score. The Bar colors also reflect the strength of bullish or bearish conditions.
Read Instructions: Use the instruction panel to understand the market’s state—e.g., "Trending Bullish" suggesting buying conditions, while "Diverging" would suggests caution.
Leverage Signals: Act on signals like "Breakout" or "Exhaustion" to enter new trades, exit old trades, manage current trades or continue to remain sidelined. Adjust table settings (position, size, colors) via inputs.
Pair with Price: Combine with your favorite price tools (e.g., support/resistance) to align internals with chart setups.
Customization
Modify the lookback period (default 100 bars), table orientation (vertical/horizontal), text size, colors, and transparency to fit your workflow.
Limitations
Requires real-time NYSE/Nasdaq data, which may depend on your TradingView plan.
Signals reflect current conditions, not future predictions, and may lag in extreme volatility.
Best used alongside price analysis for a complete trading strategy.
Requires a TradingView Subscription that supports the 1s Time Frame
Why It’s Original
The Ford Trading Assistant stands apart by integrating NYSE and Nasdaq internals into a unified, trader-friendly tool with a custom Trend Score and dynamic instructions. Rather than simply mashing up existing indicators, it offers a fresh approach to interpreting market momentum, enhanced by real-time signal detection and actionable guidance—making it a standout assistant for the New York session.
BIN Based Support and Resistance [SS]This indicator presents a version of an alternative way to determine support and resistance, using a method called "Bins".
Bins provide for a flexible and interesting way to determine support and resistance levels.
First off, let's discuss BINS:
Bins are ranges or containers into which your data points can be sorted. For example, if you're grouping ages, you might have bins like 0–18, 19–35, 36–50, and 51+. Any data point within these intervals gets placed in the corresponding bin.
Binning simplifies complex data sets by grouping values into categories. This is useful for such things as
Visualizing data in histograms or bar charts.
Reducing noise and highlighting trends.
This indicator groups the price action into 10 separate bins. It determines the Support / Resistance level by averaging the values in the Bins to find an iteration of the "central tendency" or average reoccurring value.
Pros and Cons
Since this is a different approach to support and resistance, I think its important to highlight some of the pros and advantages, but also be open about the cons.
First off the PROS
Bin Based Support and Resistance Levels dynamically adjust to ranges as opposed to hard / fast peaks and valleys. This makes them better at analyzing price action vs simply drawing lines at random peaks and valleys.
Because Bins are analyzing ALL PA within a period's max and min range, Bin Support and Resistance can actually be used similar to Volume profile, where you are able to identify a pseudo-POC, or areas where price tends to consolidate. Take a look at this example on SPY:
You can see these 2 SR lines are close together. This represents that this general price range is an area where price likes to accumulate/consolidate. You can see the SPY ended up coming back to this range and consolidating there for a bit.
This is a strength of using a BIN based approach to calculating support and resistance, because as indicated before, it looks at price action vs peaks and valleys.
As a tip, these areas are areas you want to wait for a break in one direction or the other.
The indicator provides for backtest results of the support and resistance lines, to see how many times certain areas acted as resistance or support. Because this is analyzing and distributing PA evenly throughout the period's max and min, the indicator can tell you which areas tend to have higher rejection zones and which have higher support zones.
Now the CONS
Because bin based SR take an average approach, the SR lines can sometimes be slightly broken before the ticker finds rejection:
To combat this, make sure there is confirmed support. How the indicator actually backtests these lines is by waiting to see if the ticker has 3 consecutive closes above the support line or below the resistance line. So these are things to be mindful of.
It doesn't consider pivots. Most support and resistance indicators either identify max and min peaks and valleys or use pivot points. Pivot points are a great way to identify peaks and valleys and thus by extension support and resistance. However, this is also somewhat of a strength, as using BINS forces the indicator to consider ALL price action and not just the extremes (highs and lows).
Can be slightly skewed in highly volatile environments. Any time there is a massive drop or rally, it can skew the indicator to give extreme ranges to both ends. For example, the Tariff news collapse on ES1!:
Owning to limitations in lookback length, sometimes the min and max range can be exceeded and other traditional areas of support / resistance is where a ticker will find support.
Using the indicator
Here are some basic use/functionalities of the indicator:
Selecting display of backtest results: You can select to have the backtest results shown in a table:
Or directly on the lines:
Inversely, you can toggle them off completely:
You can modify the lookback length. The suggested lookback length is between 250 to 500 candles on smaller timeframes. I also suggest 252 on daily timeframes (which represents 1 trading year).
And that's the indicator!
It is very easy to use, so you should pick it up in no time!
Enjoy and as always, 🚀🚀 safe trades! 🚀🚀