VEGAS tunnel 4hrs - 8c;55hlsimple script for the 4hrs/ weekly Vegas tunnel
weekly script is seperate
Cerca negli script per "weekly"
MA Study: Different Types and More [NeoButane]A study of moving averages that utilizes different tricks I've learned to optimize them. Included is Bollinger Bands, Guppy (GMMA) and Super Guppy.
The method used to make it MtF should be more precise and smoother than regular MtF methods that use the security function. For intraday timeframes, each number represents each hour, with 24 equal to 1 day. For daily, 3 is 3 day, for weekly, 4 is the 4 weekly, etc. If you're on a higher timeframe than the one selected, the length will not change.
Log-space is used to make calculations work on many cryptos. The rules for color changing Guppy is changed to make it not as choppy on MAs other than EMA. Note that length does not affect SWMA and VWAP and source does not affect VWAP.
A short summary of each moving average can be found here: medium.com
List of included MAs:
ALMA: Arnaud Legoux
Double EMA
EMA: Exponential
Hull MA
KAMA: Kaufman Adaptive
Linear Regression Curve
LSMA: Least Squares
SMA: Simple
SMMA/RMA: Smoothed/Running
SWMA: Symm. Weighted
TMA: Triangular
Triple EMA
VWMA: Volume Weighted
WMA: Weighted
ZLEMA: Zero Lag
VWAP: Vol Weighted Average
Welles Wilder MA
Buy/Sell Strategy Traderspro 21EMA/200SMA & PivotsBuy Signal: If price closes over EMA 21 and SMA 200 and over Montly and weekly pivots.
Sell Signal: If price closes below EMA 21 and SMA 200 and below Montly and weekly pivots.
Use buystops sellstops over signal bar close
For EURUSD Daily Timeframe works better. Check other pairs to see which timeframe has better profits. I apreciate your comments
Inverted Yield Curve with VIX Fear IndexUS 2 year and US 10 year comparison, inverted yield curve with VIX. I use this on a weekly chart with 2 moving averages, the 40 week (ma200 daily) and the 520 week (10 year median).
The bottom histogram is the VIX and the plot is the yield curve. When the VIX is above a certain level (you can set it in settings) and the ýield curve is close to or at inversion the background goes red.
The last seven recessions were preceded by an inverted yield curve. Here I combined the two main fear indexes, the VIX and the run for safe US treasuries (Inverted Yield Curve).
This is preset to the 2 year and 10 year US bond, weekly, and the normal VIX ticker but you can set it to whatever you like.
Published with source code for anyone to modify. Please comment below if you do so! This is the second in a series of indicators I intend to publish as a package of economic recoverty/recession symptom indicators.
Follow me for updates, next one up is commodities with dr Copper and oil!
Automatic Support, Resistance, Fibonacci LevelsThis indicator plots absolute high and low values for up to five completely adjustable time periods (in months, weeks, days, hours, minutes) and optionally calculates the Fibonacci levels on the pair of absolutes of your choice, ascending or descending, and mimics the shading available in the built-in Fib charting tools (e.g. retracement).
Here are a few screenshots of the same chart with various options selected.
3-Month, 4-Week, and 5-Day absolutes with 3-Monthly Fib plotted:
The same chart with 4-Weekly Fib:
The same chart with 5-Daily Fib:
5-Day, 12-Hour, 90-Minute absolutes with 12-Hourly Fib:
Zoomed in, on a 30-minute interval, with 90-minute Fib:
With descending ("inverted") 90-minute Fib:
I started putting this together for Vazzyb, who was looking for a way to automate plotting horizontal support and resistance levels for monthly, weekly, and daily extremes, and then I added additional features as they occurred to me. Special thanks to Paaax, who suggested I add Fib levels.
I am leaving the code open, so you may feel free to grab snippets you like and use them for your own purposes. Of particular interest may be my custom "calc_fib()" function, which accepts any series pair, as well as a Boolean indicating whether to invert, and returns an array with each of the major Fibonacci levels: .
If anyone likes this enough to feel generous, please feel free:
BTC
3KmFchJ18QvMzAJKDcFQXvyK9p1EHWQdhP
BCH
qqtrw64ptuwprk5vtj3z8qwkvh3v0jawxq7khqng7x
ETH
0x9b51361A278910Ba3945C7519C9f0FA8a77df18d
LTC
MDeWWsP7XCG2zQuZ2dYALZXQ52u2qkc8fh
P.S. If you want the time lengths to be as close to accurate as possible, don't forget to change the number of days per week when using for cryptocurrency!
Dual Timeframe SMA Ribbon CrossoverCopyright by RJ 3/2018
Should be used with lower timeframe and higher timeframe charts
First set your chart to the lower timeframe you'd like to analyze
see f.bpcdn.co
For this method, low timeframe/high suitable timeframe pairs are:
5min with 30min parent
15min with 1hr parent
30min with 4hr parent
4hr with daily parent
daily with weekly parent
weekly with monthly parent
On lower timeframe chart - Plot of 2 smas length 6, 1 Offset
If smas cross - and bar crosses the sma convergence, and full body of bar crosses SMAs - then this is a buy or sell opportunity
For confirmation - on the higher timeframe chart, check if bar is above or below the smas for that day
Auto DayWeekMonth Fib Levels R2 by JustUncleLThis indicator automatically draws up to Three Sets of Fibonacci Pivot levels based on the previous Candle period's Range (High-Low). The HLC3 is used as the default Pivotal level. Only the most Recent period Candle Levels are displayed. The longer Weekly and Monthly sets are particularly useful in finding long term Supply and Demand levels.
The three sets of selectable periods are spit into the following sets:
Daily Set (1,2,3,4,5,7,10 or 14 Days)
Weekly Set (1,2,3,4,5,10, or 13 Weeks)
Monthly Set (1,2,3,4,5,6,9 or 12 months)
Each set has the option to display Extension levels.
The Pivotal Level HLC3 and Range = (High - Low), are extracted from previous Period Candle.
FIB LEVELS Colours (same in each period set):
Yellow = Pivot and Pivot Zone (HLC3 by default)
Fuchsia = R1,S1 Levels 0.368 * Range
Lime = R2,S2 Levels 0.618 * Range
Red = R3,S3 Levels 0.786 * Range
Aqua = R4,S4 Levels 1.000 * Range
Green = R5,S5 Levels 1.236 * Range
Orange = R6,S6 Levels 1.382 * Range
Black = R7,S7 Levels 1.618 * Range
Maroon = R8,S8 Levels 2.000 * Range
Pullback Trading Tool R5-65 by JustUncleLBy request this is an updated version of the "PullBack Trading Tool": removes experimental "OCC" channel, added option to display ribbons or just single moving average lines, added alert arrows for "PB" exits, added alertcondition for TV alarm subsystem, added some extract options for Pivot points and general cleanup of code.
Description:
This project incorporates the majority of the indicators needed to analyse and trade Trends for Pullbacks, swings and reversals.
Incorporated within this tool are the following indicators:
1. Major industry (Banks) recognised important EMAs in an EMA Ribbon:
Lime = EMA5 (Optional Display)
DodgerBlue = EMA12 (Optional Display)
Red = EMA36 (Optional display)
Green = EMA89
Blue = EMA200
Black = EMA633
2. The 5 EMA (default) High/Low/Close Price Action Channel (PAC), the PAC channel display is disabled by default.
3. Optionally display Fractals and optional Fractal levels
4. Optional HH, LH, LL, HL finder.
5. Optional Buy/Sell "PB" exit Alerts with Optional 200EMA filter.
6. Coloured coded Bar high lighting based on the PAC:
blue = bar closed above PAC
red = bar closed below PAC
gray = bar closed inside PAC
7. Alert condition sent to TradingView's Alarm subsystem for PB exits.
8. Pivot points with optional labels.
9. EMA5-12 Ribbon is displayed by default.
10.EMA12-36 Ribbon is displayed by default
Set up and hints:
I am unable to provide a full description here, as Pullback Trading incorporates a full trading Methodology, there are a number of articles and books written on the subject.
Set the chart to Heikin Ashi Candles (optional).
I also add a "Sweetspot Gold R3" indicator to the chart as well to help with support and resistance finding and shows where the important "00" lines are.
First on a weekly basis say Sunday night or Monday morning, analyse the Daily and Weekly charts to establish overall trends, and support/resistant levels. Draw significant mini trend lines (2/3 TL), vertical trend lines (VTL) and S/R levels. Can use the Pivots points to guide VTL drawing and Fractals to help guide 2/3 TL drawing.
Once the trend direction and any potential major reversals highlighted, drop down to lower timeframe chart and draw appropriate mini Trend line (2/3 TL) matching the established momentum direction. Take note of potential pull backs from and of the EMAs, in particular the EMA5-12 ribbon, EMA12-36 Ribbon and the 200EMA. Can use the Pivots and/or Fractals points to guide your 2/3 TL drawing.
Set a TradingView alarm on the "PBTOOL alert", with the default settings this normally occurs before or during the Break of the manually drawn TL lines.
Once alerted check to see if the TL is broken and is returning to trend away from the EMA lines, this is indicated by bar colour change to trend directional colour.
You can trade that alert or drop down to even lower time frames and perform the same TL analysis there to find trades at the lower TF. Trading at lower TF you will allow tighter Stop loss settings.
Other than the "SweetSpot Gold R3" indicator, you should not need any other indicator to successfully trade trends for Pullbacks and reversals. If you really want another indicator I suggest a momentum one for example: AO ( Awesome Oscillator ), MACD or Squeeze Momentum.
KK_Average Directional Index (ADX) Higher TFHey guys,
sometimes you just want to plot an Indicator value from a higher Timeframe on your Chart. For most Indicators this is pretty straightforward however there is one Indicator that has been giving me quite a headache while trying to do this: The Average Directional Index . Anyway after going through almost 200 versions of this script I finally found a solution that works and thought I would share this with you, since I'm sure some of you have encountered the same problem.
How it works
Go to your desired Instrument/Timeframe and add the Script
Under Settings in the field for "Higher ADX TF" put the Timeframe-code you want to pull the ADX Values from.
- Codes: Monthly - M, Weekly W, Daily - D
- Codes Intraday: The amount of hours in minutes, e.g. if you want to pull values from the 4h-Chart the code is 240 (60 for 1h, 15 for 15m ...)
In some cases (see below) the calculation might not be correct. So make sure the values are correct:
a) Write down the latest ADX of the higher TF while you are on the lower TF
b) Switch the Resolution to the higher TF
c) Compare the value you have just written down to the next to last value. They should be the same.
d) Switch back the Resolution to the lower TF and you're good to go.
Limitations
You can only pull values from higher Timeframes, e.g. you're on a 4h Chart, so you can only pull values from the Daily, Weekly and Monthly Chart. You can't pull values from the 1h Chart.
You can only pull values from Timeframes, where the higher Timeframe Close always has a corresponding Close on the lower Timeframe, e.g. you can't pull values from the 3h Chart when you are on a 2h Chart. This should be pretty rare.
The Script needs a certain amount of Data from the Higher TF before the calculated values are correct. I have tested this on several Instruments and the Script usually needs approximately 100 Bars on the higher Timeframe (often less) for the values to be correct (error < 1%).
So when the difference between your lower Timeframe and you higher Timeframe is large, e.g. you want to pull the Daily ADX value on a 15m-Chart, the calculation can be wrong. This can lead to errors in 2 Cases:
a) Backtesting: When you go over old data and get close to the last available Bar the Data will be wrong. This will limit the amount of data you can backtest.
b) Live values: When the difference between the two Timeframes is too large, it is possible that even live values are wrong, e.g. this will be the case when you are trying to pull the Daily ADX value on a 5 minute Chart. Always check if the calculation works with your desired combination of Timeframes before using it (see above).
I hope this is useful for you and whish all of you successful trading!
Best regards
Kurbelklaus
Range Delta Heiken Ashi Bollinger|Buy/Sell |OB & OS CandlesPurpose: Mathematically represent buying and selling zones for Daily/ Weekly Traders
Indicator: Calculates moving average of the candle's body with respect to the daily trading range
Buy and Sell Signals: Calculates Bollinger Range with Max/Min and Buy/Sell Bollinger signals
Overbought and Oversold Signals: Candlesticks show overbought and oversold conditions
Level of Difficulty: This indicator was written to make life easier. Follow the Rules and anyone can use it.
Rule 1: Buy when candlestick is below "purple" line
Rule 2: Sell when candlestick is above "blue" line
Rule 3: Add bollinger bands to your currency chart
Rule 4: Confirm indicator bollinger bands with currency chart's bollinger bands
Rule 5: Trade in direction of trend
Rule 6: As with all trading; no indicators are fool proof. Please trade responsibly.
****Full Customization for you****
Suggestion 1: Add bollinger bands to currency chart to improve probability
Suggestion 2: Trade the direction of Trend
Suggestion 3: This indicator works very well with Ranged Markets (or use Suggestion 2)
Disclaimer 1: This Indicator words best on Daily and Weekly time frames
Disclaimer 2: Enjoy the Indicator and feel free to ADD COMMENTS; I worked very hard for you and me :)
Auto Pivots with S/R LevelsPlots out the pivot point with corresponding Support / Resistance levels.
It will automatically determine the time frame to calculate pivots based on the current view resolution.
Monthly resolution will pull a yearly pivot
Weekly resolution will pull a monthly pivot
Daily view will pull a weekly pivot
Intraday view will pull a daily pivot.
You have the choice of using Standard pivots or Fibonacci pivots
You can choose to only display the most recent pivot or all pivots
You can chose to extend the most recent pivot across the whole chart as a price line
TODO:
- Add in the ability to choose how far back historically to display pivots
- Add in calculations for smaller resolutions to calculate off lower time frames. EX: minute resolution should pull hour time frame to calculate pivots.
Herrick Payoff Index for Quandl DataUpdate to my previous Herrick Payoff Index script. This script pulls Quandl futures data with daily open interest. The prior version only used the weekly Commitment of Traders open interest data so could only be used on weekly bars. Note: Must use Quandl Symbol methodology in chart (i.e. enter symbol as QUANDL:CHRIS/CME_FC2, QUANDL:CME/FCX2016, ect.). Unfortunately, I haven't been able to program this to pull from the embedded futures data.
UCS_S_Stochastic Pop and Drop StrategyMy Contribution to Jake Bernstein Educational Series, Initiated by Chris Moody.
The Stochastic Pop was developed by Jake Bernstein and modified by David Steckler. Bernstein's original Stochastic Pop is a trading strategy that identifies price pops when the Stochastic Oscillator surges above 80. Steckler modified this strategy by adding conditional filters using the Average Directional Index (ADX) and the weekly Stochastic Oscillator.
Modifications
1. Weekly Stochastic Oscillator for Trading Bias = 5* Daily Stochastic
2. Optional Volume Confirmation, Custom Average Volume Length
Future Plans
1. Adding Triggers for Entry, Stops and Target. - This will be release when we have ability to code the complete Strategy. Although it can be done with the current pinescript options, it would be far more easier if we have strategy ability.
Link for Educational Purpose
stockcharts.com
-
Good Luck Trading
UCSgears
Pivot Matrix & Multi-Timeframe Support-Resistance Analytics________________________________________
📘 Study Material for Pivot Matrix & Multi Timeframe Support-Resistance Analytics
(By aiTrendview — Educational Use Only)
________________________________________
🎯 Introduction
The Pivot Matrix & Multi Timeframe Support-Resistance Analytics indicator is designed to help traders visualize pivot points, support/resistance levels, VWAP, and volume flow analytics all in one place. Rather than giving explicit buy/sell calls, the dashboard provides reference insights so a learner may understand how different technical levels interact in real time.
This document explains its functionality step by step with formulas and usage guides.
________________________________________
1️⃣ Pivot System Logic
Pivot points are classic tools for mapping market support and resistance levels.
✦ How Calculated?
Using the Traditional Method:
• Pivot Point (PP):
PP=Highprev+Lowprev+Closeprev3PP = \frac{High_{prev} + Low_{prev} + Close_{prev}}{3}PP=3Highprev+Lowprev+Closeprev
• First Support/Resistance:
R1=2×PP−Lowprev,S1=2×PP−HighprevR1 = 2 \times PP - Low_{prev}, \quad S1 = 2 \times PP - High_{prev}R1=2×PP−Lowprev,S1=2×PP−Highprev
• Second Support/Resistance:
R2=PP+(Highprev−Lowprev),S2=PP−(Highprev−Lowprev)R2 = PP + (High_{prev} - Low_{prev}), \quad S2 = PP - (High_{prev} - Low_{prev})R2=PP+(Highprev−Lowprev),S2=PP−(Highprev−Lowprev)
• Third Levels:
R3=Highprev+2×(PP−Lowprev),S3=Lowprev−2×(Highprev−PP)R3 = High_{prev} + 2 \times (PP - Low_{prev}), \quad S3 = Low_{prev} - 2 \times (High_{prev} - PP)R3=Highprev+2×(PP−Lowprev),S3=Lowprev−2×(Highprev−PP)
• Similarly, R4/R5 and S4/S5 are extrapolated from extended range multipliers.
✦ How Used?
• Price above PP → bullish control bias.
• Price below PP → bearish control bias.
• R1–R5 levels act as resistances; S1–S5 act as supports.
Learners should watch how candles behave when approaching R/S zones to spot breakout vs. rejection conditions.
________________________________________
2️⃣ Multi Timeframe Logic
The indicator allows using daily-based pivot values (via request.security). This ensures alignment with institutional daily levels, not just intraday recalculations.
✦ Teaching Value
Understanding MTF pivots shows how markets respect higher timeframe levels (daily > intraday, weekly > daily). This helps learners grasp nested support-resistance structures.
________________________________________
3️⃣ VWAP (Volume Weighted Average Price)
Formula:
VWAPt=∑(Pricei×Volumei)∑(Volumei),Pricei=High+Low+Close3VWAP_t = \frac{\sum (Price_i \times Volume_i)}{\sum (Volume_i)}, \quad Price_i = \frac{High + Low + Close}{3}VWAPt=∑(Volumei)∑(Pricei×Volumei),Pricei=3High+Low+Close
Usage:
• VWAP is used as an institutional benchmark of fair value.
• Above VWAP = bullish flow.
• Below VWAP = bearish flow.
Learners should check whether price respects VWAP as a magnet or uses it as support/resistance.
________________________________________
4️⃣ Volume Flow Analysis
The script classifies buy volume, sell volume, and neutral volume.
• Buy Volume = if close > open.
• Sell Volume = if close < open.
• Neutral Volume = if close = open.
For daily tracking:
Buy%=DayBuyVolDayTotalVol×100,Sell%=DaySellVolDayTotalVol×100Buy\% = \frac{DayBuyVol}{DayTotalVol} \times 100, \quad Sell\% = \frac{DaySellVol}{DayTotalVol} \times 100Buy%=DayTotalVolDayBuyVol×100,Sell%=DayTotalVolDaySellVol×100
Usage for Learners:
• Dominant Buy% → accumulation/ bullish pressure.
• Dominant Sell% → distribution/ bearish pressure.
• Balanced → sideways liquidity building.
This teaches observation of order flow bias rather than relying only on price.
________________________________________
5️⃣ Dashboard Progress Bars & Colors
The script uses visual progress bars and dynamic colors for clarity. For example:
• VWAP Backgrounds: Green shades when price strongly above VWAP, Red when below.
• Volume Bars: More green blocks mean buying dominance, red means selling pressure.
This visual design turns concepts into easy-to-digest cues, useful for training.
________________________________________
6️⃣ Market Status Summary
Finally, the dashboard synthesizes all data points:
• Price vs Pivot (above or below).
• Price vs VWAP (above or below).
• Volume Pressure (buy side vs sell side).
Status Rule:
• If all three align bullish → Status box turns green.
• If mixed → Neutral grey.
• If bearish dominance → weaker tone.
Why Important?
This teaches learners that market conditions should align in confluence across indicators before confidence arises.
________________________________________
⚠️ Strict Disclaimer (aiTrendview)
The Pivot Matrix & Multi Timeframe Support-Resistance Analytics tool is developed by aiTrendview for strictly educational and research purposes.
❌ It does NOT provide buy/sell recommendations.
❌ It does NOT guarantee profits.
❌ Unauthorized use, copying, or redistribution of this code is prohibited.
⚠️ Trading Risk Warning:
• Trading involves high risk of financial loss.
• You may lose more than your capital.
• Past levels and indicators do not predict future outcomes.
This tool must be viewed as a visual education aid to practice technical analysis skills, not as trading advice.
________________________________________
✅ Now you have a step by step study guide:
• Pivot calculations explained
• VWAP with logic
• Volume breakdown
• Visual analytics
• Status confluence logic
• Disclaimer for compliance
________________________________________
⚠️ Warning:
• Trading financial markets involves substantial risk.
• You can lose more money than you invest.
• Past performance of indicators does not guarantee future results.
• This script must not be copied, resold, or republished without authorization from aiTrendview.
By using this material or the code, you agree to take full responsibility for your trading decisions and acknowledge that this is not financial advice.
________________________________________
⚠️ Disclaimer and Warning (From aiTrendview)
This Dynamic Trading Dashboard is created strictly for educational and research purposes on the TradingView platform. It does not provide financial advice, buy/sell recommendations, or guaranteed returns. Any use of this tool in live trading is completely at the user’s own risk. Markets are inherently risky; losses can exceed initial investment.
The intellectual property of this script and its methodology belongs to aiTrendview. Unauthorized reproduction, modification, or redistribution of this code is strictly prohibited. By using this study material or the script, you acknowledge personal responsibility for any trading outcomes. Always consult professional financial advisors before making investment decisions.
Trapped Traders [ScorsoneEnterprises]This indicator identifies and visualizes trapped traders - market participants caught on the wrong side of price movements with significant volume imbalances. By analyzing volume delta at specific price levels, it reveals where traders are likely experiencing unrealized losses and may be forced to exit their positions.
The point of this tool is to identify where the liquidity in a trend may be.
var lowerTimeframe = switch
useCustomTimeframeInput => lowerTimeframeInput
timeframe.isseconds => "1S"
timeframe.isintraday => "1"
timeframe.isdaily => "5"
=> "60"
= ta.requestVolumeDelta(lowerTimeframe)
price_quantity = map.new()
is_red_candle = close < open
is_green_candle = close > open
for i=0 to lkb-1 by 1
current_vol = price_quantity.get(close)
new_vol = na(current_vol) ? lastVolume : current_vol + lastVolume
price_quantity.put(close, new_vol)
if is_green_candle and new_vol < 0
price_quantity.put(close, new_vol)
else if is_red_candle and new_vol > 0
price_quantity.put(close, new_vol)
We see in this snippet, the lastVolume variable is the most recent volume delta we can receive from the lower timeframe, we keep updating the price level we're keeping track of with that lastVolume from the lower timeframe.
This is the bulk of the concept as this level and size gives us the idea of how many traders were on the wrong side of the trend, and acting as liquidity for the profitable entries. The more, the stronger.
There are 3 ways to visualize this. A basic label, that will display the size and if positive or negative next to the bar, a gradient line that goes 10 bars to the future to be used as a support or resistance line that includes the quantity, and a bubble chart with the quantity. The larger the quantity, the bigger the bubble.
We see in this example on NYMEX:CL1! that there are lines plotted throughout this price action that price interacts with in meaningful way. There are consistently many levels for us.
Here on CME_MINI:ES1! we see the labels on the chart, and the size set to large. It is the same concept just another way to view it.
This chart of CME_MINI:RTY1! shows the bubble chart visualization. It is a way to view it that is pretty non invasive on the chart.
Every timeframe is supported including daily, weekly, and monthly.
The included settings are the display style, like mentioned above. If the user would like to see the volume numbers on the chart. The text size along with the transparency percentage. Following that is the settings for which lower timeframe to calculate the volume delta on. Finally, if you would like to see your inputs in the status line.
No indicator is 100% accurate, use "Trapped Traders" along with your own discretion.
RSI-MACD-trade"Strategic trading strategy using RSI and MASCD
Highest returns when applied to weekly charts"
Dove Capital Liquidity Expansion Map — Weekly 250‑pip Bands (v6)The Best Market Maker Liqudation zone Trap. Trade The highs and lows and make some money
Institutional Candles at Weekly/Monthly ExtremesMarket Makers use institutional candles to reverse price and they profit on the short and the long. That being said its important to know they will always come back and reverse price to close out their losing positions.
Daily Open/Close + Weekday ADR (price & pips) Market Maker TTMarket development for trading weekly highs and lows during consolidation markets
Sector Analysis BhupeshSector Analysis on a Daily, Weekly and Monthly Basis. We can check and track sectors through this.
Close Above/Below Prev 2 Candle Strategy (Any Timeframe)Title: Close Above/Below Previous 2 Candle Strategy (Any Timeframe)
Description:
This strategy identifies potential breakout and trend continuation signals by analyzing the closing price relative to the highs and lows of the previous two candles. It works on any chart timeframe, making it versatile for intraday, swing, and daily trading.
How it works:
Long Entry (Bullish Signal): Triggered when the current candle closes above the highs of the previous two candles.
Short Entry (Bearish Signal): Triggered when the current candle closes below the lows of the previous two candles.
Visual Indicators:
Green triangles above the bar indicate bullish signals.
Red triangles below the bar indicate bearish signals.
Strategy Features:
Works on any timeframe, from 1-minute charts to daily/weekly charts.
Configurable risk/reward ratio for automatic stop-loss and take-profit levels.
Alerts trigger immediately when the condition is met, helping traders react to potential breakouts.
Provides clean visual signals for easy chart reading and decision-making.
Benefits:
Reduces noise by focusing on candle close confirmations.
Versatile and suitable for intraday, swing, and long-term trading.
Easy to combine with other indicators or strategies.
RSI Dynamic Bands█ OVERVIEW
The "RSI Dynamic Bands" indicator is a variant of the Relative Strength Index (RSI) oscillator that brings its signals directly onto the price chart. It displays dynamic bands around the price, adjusted based on RSI levels, enabling easy identification of potential overbought or oversold conditions. The indicator also integrates a multi-timeframe RSI table, facilitating the analysis of trend strength across different timeframes.
█ CONCEPTS
The "RSI Dynamic Bands" indicator is designed to simplify the interpretation of price levels in the context of support and resistance zones, which can be correlated with other technical indicators and RSI values. Since the price itself does not display RSI values, a table showing RSI for four selected timeframes has been added, allowing traders to quickly assess trend strength across different time intervals. The most effective approach is to combine the indicator with other technical analysis tools, such as Fibonacci levels or pivot points, to confirm signals when the price approaches the bands and RSI values indicate a potential reversal.
Band Calculation
The bands are calculated based on the current closing price and RSI values, incorporating dynamic scaling to better adapt to market conditions. The formulas for the bands are as follows:
• Upper Band: close + (rsiUpper - rsi) * scaleFactor, where rsiUpper is the upper RSI level (default: 70), and scaleFactor accounts for market volatility.
• Lower Band: close + (rsiLower - rsi) * scaleFactor, where rsiLower is the lower RSI level (default: 30).
• Midline: The arithmetic average of the upper and lower bands: (upperBand + lowerBand) / 2.
Why Scaling? Without scaling, the bands would be chaotic and jagged, making them difficult to interpret. Scaling smooths the bands, making them wider during periods of high volatility and narrower during consolidation, better reflecting potential support and resistance levels.
Indicator Features
• Dynamic Price Bands: The bands adapt to market conditions, facilitating the identification of key price levels.
• Multi-Timeframe RSI Table: Displays RSI values for four selected timeframes (default: 15m, 1h, 4h, Daily), enabling comparison of trend strength across different perspectives.
• Style Customization: Users can adjust band colors, line thickness, and toggle the visibility of bands, fills, and the table.
How to Set Up the Indicator
1 — Add the "RSI Dynamic Bands" indicator to your TradingView chart.
2 — Configure parameters in the settings, such as RSI length, upper/lower levels, and scaling multiplier, to match your trading style.
3 — Enable or disable the display of bands, fills, or the RSI table based on your needs.
4 — Adjust band and table colors in the input section and line thickness in the "Style" section to better align the indicator with your chart.
█ OTHER SECTIONS
FEATURES
• RSI Length: The period for calculating RSI (default: 14).
• RSI Levels: Thresholds for overbought (default: 70) and oversold (default: 30).
• Scaling Multiplier: Adjusts bands based on market volatility (default: 0.15).
• Table Timeframes: Select four timeframes for the RSI table (default: 15m, 1h, 4h, Daily).
• Style Options: Customize band colors, fills, table, and line thickness.
HOW TO USE
Add the indicator to your chart, configure the parameters, and observe price interactions with the bands to identify potential entry and exit points. The RSI table allows you to compare RSI values across different timeframes, aiding in trading decisions. The most effective approach is to combine the indicator with other technical analysis tools, such as Fibonacci levels or pivot points, to confirm signals when the price approaches the bands and RSI values indicate a potential reversal.
Trading Strategies:
• Scalping: Use lower timeframes (e.g., 5m, 15m) in the RSI table to quickly identify short-term lows and highs. Wait for the price to approach the lower band in the RSI oversold zone, with RSI on lower timeframes starting to rise, and other tools, such as Fibonacci levels (e.g., 38.2%) or pivot points, confirming support.
• Medium-Term Trading: Focus on 1h and 4h timeframes. Look for confirmation of a low on a lower timeframe (e.g., 1h), where RSI indicates oversold conditions or starts rising, then check if RSI on a higher timeframe (e.g., 4h) confirms the trend. Confirmation from other tools, such as a Fibonacci level (e.g., 50%) or pivot point near the bands, strengthens the signal.
• Long-Term Trading: Use Daily and higher timeframes (e.g., Weekly). Wait for all relevant timeframes to confirm a low (e.g., RSI near oversold and price at the lower band), with lower timeframes (e.g., 4h) showing rising RSI. Other tools, such as Fibonacci levels (e.g., 61.8%) or pivot points near the bands, can further confirm a trend reversal signal.
Realized Volatility (StdDev of Returns, %)📌 Realized Volatility (StdDev of Returns, %)
This indicator measures realized volatility directly from price returns, instead of the common but misleading approach of calculating standard deviation around a moving average.
🔹 How it works:
Computes close-to-close log returns (the most common way volatility is measured in finance).
Calculates the standard deviation of these returns over a chosen lookback period (default = 200 bars).
Converts results into percentages for easier interpretation.
Provides three key volatility measures:
Daily Realized Vol (%) – raw standard deviation of returns.
Annualized Vol (%) – scaled by √250 trading days (market convention).
Horizon Vol (%) – volatility over a custom horizon (default = 5 days, i.e. weekly).
🔹 Why use this indicator?
Shows true realized volatility from historical returns.
More accurate than measuring deviation around a moving average.
Useful for traders analyzing risk, position sizing, and comparing realized vs implied volatility.
⚠️ Note:
It is best used on the Daily Chart!
By default, this uses log returns (which are additive and standard in quant finance).
If you prefer, you can easily switch to simple % returns in the code.
Volatility estimates depend on your chosen lookback length and may vary across timeframes.