Friday-Monday Pattern Backtest (Market Rebellion)Tests the "Friday-Monday Pattern" popularized by Tom Hougaard / Market Rebellion.
PATTERN LOGIC:
• When Friday's high is LOWER than Thursday's high (setup condition)
• Then Friday's low is often revisited on the following Monday
WHAT THIS INDICATOR SHOWS:
• Orange background highlights valid setup bars (Thu-Fri-Mon)
• Red horizontal line marks Friday's low (the target level)
• Green "SUCCESS" label = Monday hit Friday's low
• Red "FAIL" label = Monday did not reach Friday's low
• Stats table (top-right) shows total setups, successes, and success rate
USE THIS TO:
• Backtest the pattern on any daily chart (works best on indices, forex, futures)
• Verify the claimed "overwhelming" tendency statistically
• Identify which markets/timeframes show the highest success rate
CREDITS:
Pattern idea from Tom Hougaard / Market Rebellion: x.com
Indicator by BacktestBay for transparent pattern verification.
USAGE NOTES:
• Must be applied to DAILY charts
• Uses time_close("D") for accurate day-of-week detection on forex pairs
• No trading signals - purely for statistical backtesting
Biểu đồ theo Tuần
Session, Weekly, Daily LevelsScroll down for hungarian description!
Magyar leíráshoz görgess lejjebb!
Overview
This script provides a unified market structure mapping tool that automatically identifies and visualizes key intraday, daily, and weekly reference levels. It helps traders contextualize price action throughout the trading week by marking true session opens, previous day highs/lows, weekly highs/lows, and weekday opens, all with accurate historical anchoring and correct timezone handling.
What This Script Does
1. Intraday Session Opens (Tokyo, London, New York)
- Detects the exact candle where each session opens.
- Draws horizontal rays with labels.
- Automatically clears lines at the start of each new day.
- Uses a custom local-to-exchange timezone conversion system.
2. Weekly Levels
- Last week high and low (precise bar anchoring, not HTF aggregation)
- Current week open (also Monday open)
- Auto-reset on new week
- Levels are always drawn from the true candle where they formed.
3. Previous Day High & Low
- Continuously tracks intraday highs and lows.
- On a new day, stores yesterday’s values and anchors rays to the exact bars.
- Levels remain visible for the full current day and reset the next day.
4. Weekday Opens (Tue–Fri)
- Captures the exact opening price of Tuesday–Friday.
- Monday open = Week open, so it is not shown separately.
- Auto-reset on new week.
Timezone Logic (Original Feature)
The script converts:
local session times → exchange timezone → chart timestamps
It works correctly regardless of chart timezone or instrument exchange location.
Line Drawing Logic
- Finds the exact bar_index where each level forms.
- Draws rays extending to the right.
- Labels are placed ahead of price.
- Safe updating prevents “bar index too far” errors.
How to Use
- Identify daily/weekly structure.
- Track bias relative to session opens.
- Observe reactions around weekday opens.
- Compare price action to last week's range.
Originality
- Custom timezone conversion engine.
- True historical bar anchoring.
- Fully automated weekly/daily structural resets.
- Independent styling for each level type.
- Not a mashup; all components follow one unified logic.
Limitations
- Does not predict trend or direction.
- Structural tool only.
Summary
A precise and reliable market structure tool that unifies weekly, daily, and intraday reference levels with full timezone automation and true-candle anchoring.
MAGYAR LEÍRÁS
--------------
Áttekintés
Ez az indikátor egy összetett piaci szerkezet-feltérképező eszköz, amely automatikusan megjeleníti a legfontosabb intraday, napi és heti referenciaértékeket. A célja, hogy a kereskedő tisztán lássa a piac aktuális környezetét: hol nyíltak a főbb devizapiaci szekciók, hogyan alakult a tegnapi tartomány, hol volt a múlt heti csúcs/mélypont, és hogyan nyitottak az egyes hétköznapok.
Mit tud a script?
1. Szekciónyitások (Tokyo, London, New York)
- Megkeresi a pontos gyertyát, amely a szekciónyitáskori árat tartalmazza.
- Vízszintes vonalat és címkét rajzol.
- Minden nap elején automatikusan törli a korábbi nap szintjeit.
- Egyedi időzóna-konverziós rendszerrel működik (helyi idő → tőzsdei idő → chart idő).
2. Heti szintek
- Múlt heti maximum és minimum (pontos gyertyapontra horgonyozva)
- Aktuális heti nyitóár (egyben a hétfői nyitó is)
- Új hét kezdetekor automatikusan frissül.
- A múlt heti high/low nem fix időpontra, hanem a valódi gyertyára kerül.
3. Előző napi High és Low
- Folyamatosan követi a napi maximumot és minimumot.
- Napváltáskor elmenti és pontos gyertyáról indítja a ray-t.
- A szintek a teljes nap folyamán megmaradnak, majd a következő nap törlődnek.
4. Hétköznapok nyitóárai (Kedd–Péntek)
- A kedd, szerda, csütörtök és péntek nyitóárát rögzíti és megjeleníti.
- A hétfői nyitó a Week Open, ezért külön nem jelenik meg.
- Heti váltáskor automatikusan törlődnek.
Időzóna-kezelés (egyedi megoldás)
A script a felhasználó helyi idejét átszámítja az instrumentum tőzsdei időzónájára, majd a chartra vetíti.
Ez biztosítja, hogy minden szekciónyitás helyesen jelenik meg, bármely chart vagy instrumentum esetén.
Vonalrajzolási logika
- A szintek a valódi bar_index alapján kerülnek rögzítésre.
- Jobbra nyúló ray-eket rajzol.
- A címkék mindig a jobb oldalon, előre helyezve jelennek meg.
- Biztonságos frissítési rendszer akadályozza meg a hibákat (pl. “bar index too far”).
Használat
- Napi/heti szerkezet meghatározása.
- Bias követése a session openekhez viszonyítva.
- Reakciók figyelése a hétköznapok nyitóárai körül.
- Összevetés a múlt heti tartománnyal.
Eredetiség
- Egyedi időzóna-kezelő motor.
- Igazi gyertyapont-alapú horgonyzás.
- Automatikus napi/heti reset.
- Minden szint külön stílusban konfigurálható.
- Nem mashup; egységes rendszer.
Összegzés
Professzionális, pontos eszköz a piaci szerkezet feltérképezésére, amely egyesíti a heti, napi és intraday szinteket, teljes időzóna-automatizálással és gyertyapontra horgonyzott kijelölésekkel.
End Of Week LineThis indicator will show a vertical line top to bottom on the last candle of the week.
Will show on all timeframes except daily.
Helps me visually with keeping this neat on the chart.
Hope this can help you out as well!
Weekly Open Range - TatoshiDisplays a weekly open range for both current and previous weeks. Gives users the flexibility to adjust the number of hours that the weekly open range is determined by. I personally use the first 3 hours, but play around with it.
A GOAT of a indicator, allows the user to easily set their bias for the week and extremely simple to build a strategy around.
Sunday Open & Friday Close LinesSunday Open & Friday Close Lines — © Erica Lorrai | Trade Tribe HQ
A clean weekly anchor tool for traders who love simple, high-signal charting.
Clean charts, clean mind, clean trades.
This script marks the two most important moments of every trading week:
where the market closed… and where it truly reopened.
Designed for traders who use dealer-cycle logic, market structure, or BTMM-style timing, these lines help you instantly:
Spot weekend gaps
Identify weekly narrative shifts
See where the dealers reset liquidity
Anchor your weekly analysis with precision
Track the beginning of new cycles and the end of old ones
No clutter. No noise. Just two high-value levels that quietly run your entire week.
Customize the color, width, and line type to match your chart style and make weekly transitions impossible to miss.
Whether you're new to trading or deep into pattern-cycle logic, this little tool becomes one of those “how did I trade without this?” markers.
© Erica Lorrai — Trade Tribe HQ
Aloha & welcome to the Tribe. 🌺
How to Use
Add the script to your chart on any timeframe.
The indicator automatically detects each new trading week.
Two vertical lines will appear:
Friday Close Line – last candle before the weekend
Sunday Open Line – first candle of the new week
Use the settings panel to customize color, width, and line style.
These weekly anchors help you identify weekend gaps, weekly resets, and structural shifts in real time.
If you’re new here — welcome to the Tribe. 🌺
This little tool is one of the first things I teach my traders:
“See the week clearly, and the trades get clearer too.”
If you want more BTMM-style tools, weekly breakdowns, or want to learn the system behind these levels, come hang out at Trade Tribe HQ.
Happy trading.
— Erica Lorrai
POC Lines (Daily / Weekly / Monthly)This indicator plots the Point of Control (POC) on your chart for three key timeframes — daily, weekly, and monthly. The POC is the price level at which the highest trading volume occurred during a given period, highlighting where market participants were most active.
How to Trade Using the Daily / Weekly / Monthly POC Indicator
Identify Market Bias
Use the monthly POC as a major structural reference. If price is above the monthly POC, bias may be bullish; below it may signal caution or potential bearish bias.
Use the weekly POC for intermediate trend context. Price respecting the weekly POC can enhance confidence in direction.
Use the daily POC for fine-tuning entries, exits or intraday structure.
Use POC as Support/Resistance Zones
When price approaches a POC from above, the level can act as support — look for bullish reversal signals.
When price approaches a POC from below, it can act as resistance — look for bearish rejection setups.
If price breaks through a POC convincingly (with strong volume or momentum), then the level may flip: the broken POC becomes a new reference zone for opposite side trades.
Timeframe Confluence = Higher Probability
A trade setup is stronger when the daily, weekly, and monthly POCs align or cluster near the same price zone. This confluence raises the chance that price will react.
Conversely, avoid setups where the POCs are widely scattered across timeframes — these have less structural weight.
Entry, Stop & Target Strategy
Entry: Enter once price touches a significant POC level and shows confirmation (e.g., candlestick reversal, volume spike, or confluence with other level).
Stop-Loss: Place stop just beyond the POC level (for support trades, slightly below; for resistance trades, slightly above).
Target: Use the next major POC or price structure level (previous high/low, value area edges) as your initial target. If price moves through the POC, target a breakout to the next structural zone.
Be patient — price may test a POC level multiple times or ignore it entirely before reacting.
Use the POC indicator as a guiding framework, not a guarantee. Combine with other tools (trend direction, price action, volume, market context) to refine your execution.
P1 - Multi-Instrument Weekly Levels - Version 11.9.25.5Levels based on RDGD channels.
// ===========================================================================
// Multi-Instrument Weekly Levels + MSL X + Alerts + ES to SPX Converter
// Version: 11.9.25.5
//
// VERSION TRACKING:
// Format: xx.xx.xx.x (Month.Day.Year.Revision)
// - First number: Month (11 = November)
// - Second number: Day (9 = 9th)
// - Third number: Year (25 = 2025)
// - Fourth number: Revision (5 = updated MSL/NPL values and reorganized settings)
//
// CHANGE LOG:
// 11.9.25.5 - Updated MSL/NPL values and reorganized settings layout
// 11.9.25.4 - Updated NQ Monday and Weekly levels
// 11.9.25.3 - Fixed showSPXLevels variable name (capital L)
// 11.9.25.2 - Updated SPY, QQQ, ES, YM, RTY, GC weekly and daily levels
// 11.9.25.1 - Initial version saved as starting script
// ===========================================================================
Trap LineOverview
Trap Line is a higher-timeframe trend framework designed to define market regimes using smoothed weekly (1W) and three-week (3W) baselines. Price trading above the line reflects a bullish regime; price below the line reflects a bearish one. The goal is regime discipline—stay aligned with the dominant higher-timeframe direction and avoid late, emotional entries. All parameters are fixed to ensure consistent behavior across symbols.
Core logic (concepts, not full code)
• Computes a Hull-type moving average on 1W and 3W closes (with optional linear-regression pre-filtering) and projects them onto lower timeframes via interpolation.
• Produces a smooth, lag-reduced structural baseline that tracks the weekly trend path.
• Observing price vs. the baseline highlights potential trap zones—temporary breaches that often fail without a confirmed weekly close.
• The 3-Week Trap Line adds a macro confirmation layer and is hidden by default in the Style tab to keep charts clean.
Inputs
• Parameters (length, smoothing type, regression toggle, interpolation mode) are fixed to prevent overfitting and preserve repeatability.
How to read it
• Above the line => bullish regime.
• Below the line => bearish regime.
• A confirmed weekly close through the line suggests a regime transition.
• A weekly close above the line with a green candle supports bullish continuation; a weekly close below the line with a red candle supports bearish continuation.
• Intraweek deviations near the line are often noise and may fade.
Practical use cases
• Weekly bias filter for swing/position frameworks.
• Regime confirmation across related assets or sectors.
• Portfolio overlay: favor long exposure in bullish regimes; reduce risk in bearish regimes.
• Combine with volume or ATR-based tools to assess trend quality.
Best practices
• Wait for the weekly close before declaring regime flips.
• Avoid overreacting to intraweek moves around the baseline.
• Combine with structure analysis (HH/HL vs. LH/LL) and higher-timeframe S/R.
• Use standard time-based candles; avoid interpreting signals on Heikin Ashi, Renko, Kagi, Point & Figure, or Range charts.
Technical notes
• Built on locked higher-timeframe data (1W and 3W).
• Interpolation is used to render HTF structure smoothly on lower charts.
• Non-repainting : values finalize when the higher timeframe closes; lower-TF plotting is interpolated, not forward-looking.
Who it is for
• Traders who want a consistent, rules-based higher-timeframe bias filter.
• Systematic users who prefer fixed-parameter baselines for regime context.
Limitations & disclosures
• Closed-source; educational and analytical use only.
• Not financial advice. Markets involve risk; past performance does not guarantee future results.
Release notes
• Includes the 3-Week Trap Line (3W). It is hidden by default in the Style tab; enable it if you want an additional macro confirmation layer.
• Fixed-parameter design (no user-tweakable inputs) for consistent behavior across symbols.
• Non-repainting values finalize on 1W/3W candle close.
Originality & why closed-source
This is not a reimplementation of public open-source scripts. Trap Line uses a specific combination of higher-timeframe Hull smoothing, optional linear-regression pre-filtering, and lower-timeframe interpolation designed to expose trap zones (temporary regime breaches that often fail without a confirmed weekly close). The integration and thresholds are proprietary and tuned to retain weekly structure with reduced lag. The source is closed to protect this implementation.
Integration, not a mashup
Trap Line is a single, self-contained framework. It does not merely merge other indicators; its components are integrated to produce a unified higher-timeframe baseline (1W/3W) with a defined reading protocol (above/below line, weekly-close confirmation, optional candle-color confirmation).
Indicator, not a strategy
This publication provides an indicator overlay , not a trading strategy. It includes no backtests, position logic, performance claims, or risk assumptions. Use it as an analytical bias filter within your own risk management.
Comparison to common tools
Compared to standard MAs or SuperTrend-style bands, Trap Line prioritizes (1) higher-timeframe structure fidelity, (2) reduced lag via HMA-type smoothing, and (3) explicit weekly-close confirmation to avoid premature regime flips. The optional 3-Week line acts as a macro confirmation layer and is hidden by default in the Style tab.
Key LevelsKey Levels Indicator
Description
The Key Levels indicator is a powerful tool for traders, displaying major institutional price levels from daily, weekly, and monthly timeframes on your chart. It plots horizontal lines for previous period highs, lows, and midpoints (50% levels), as well as current period opens, helping you identify critical support and resistance zones used by institutional traders. Labels are provided for the most recent levels, positioned at the rightmost bar for easy reference.
Features
Daily Levels: Plots Previous Day High, Previous Day Low, Day Open, and Previous Day 50% Level.
Weekly Levels: Plots Previous Week High, Previous Week Low, Week Open, and Previous Week 50% Level.
Monthly Levels: Plots Previous Month High, Previous Month Low, Month Open, and Previous Month 50% Level.
Customizable Colors: Adjust the color of each line via the settings panel to suit your chart preferences.
Customizable Labels: Enable/disable labels, adjust label size, and change the label background color for optimal visibility.
Clean Visualization: Lines are plotted with breaks at the start of each period, ensuring a clear and uncluttered display.
Settings
Show Labels: Toggle to show or hide all labels (default: enabled).
Label Size: Choose from "tiny," "small," "normal," "large," or "huge" to adjust label text size (default: normal).
Label Background Color: Customize the background color of labels to ensure text visibility (default: black).
Line Colors: Individual color pickers for each level (e.g., Previous Day High, Day Open), allowing full customization of line colors.
Usage
The Key Levels indicator is designed for futures markets, such as S&P 500 futures (ES), Nasdaq futures (NQ), or crude oil futures (CL), where institutional price levels like daily, weekly, and monthly highs, lows, and opens are critical for identifying key support and resistance zones. Apply the indicator to a 1-hour or 15-minute timeframe to capture precise market structure for day trading or swing trading strategies in futures. While optimized for futures, the indicator can be applied to any chart for versatile trading applications. Customize line colors and label settings in the panel to match your chart preferences.
Notes
Labels are shown only for the current day, week, and month to focus on recent price action.
For best visibility, adjust the label background color if text blends into your chart background.
Ideal for traders analyzing major institutional levels for market structure and trading decisions.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
njammu123
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by T
Smart Weekly Lines — Clean & Scroll-Proof (Pine v6)Because your chart deserves structure. Elegant weekly dividers that stay aligned, scroll smoothly, and project future weeks using your wished UTC offset.
Smart Weekly Lines draws precise, full-height vertical lines marking each new week — perfectly aligned to your local UTC offset. It stays clean, smooth, and consistent no matter how far you scroll.
Features
• Accurate weekly boundaries based on your local UTC offset (supports half-hour zones like India +5.5)
• Clean, full-height lines that never cut off with zoom or scroll
• Adjustable color, opacity, width, and style (solid, dashed, dotted)
• Future week projection for planning and alignment
• Optional visibility: show only on Daily and Intraday charts
Works with any market — stocks, crypto, forex, or futures.
Built for traders who value clarity, structure, and precision.
Developed collaboratively with the assistance of ChatGPT under my direction and testing.
1W Overlay (triss)Overlay of the Weekly candle, simple one color with a line inside the candle to show direction.
ICT Daily+Weekly BiasPrevious Day & Week Levels — Daily+Weekly Bias Visualizer
Plots previous-day (PDH/PDL/PDEQ) and previous-week (PWH/PWL) reference levels.
Use them to frame bias and identify the Draw on Liquidty.
Definitions
• PDH/PDL: Prior day high/low.
• PDEQ: Prior day equilibrium = (PDH + PDL) / 2.
• PWH/PWL: Prior week high/low.
Features
• PDH/PDL lines with optional labels at left or right edge.
• PDEQ line (0.5 of PD Range) with optional label.
• PWH/PWL lines with optional labels.
• Custom colors, styles, and width controls.
• Optional Price Labels
• Timeframe visibility limit.
• Lines extend and stop on mitigation (when breached).
*Also included in ICT ULT (All In One) Indicator
*Feel free to suggest improvement in the comments
Killzone za Indexe - @mladja123This indicator highlights the Kill Zones on index charts, showing key market sessions where high-probability price movements are likely to occur. It helps traders identify optimal entry and exit points based on session dynamics and market rhythm, enhancing strategy precision for swing and intraday trading on indices.
Dani u nedelji + midnight open @mladja123This indicator breaks the weekly timeframe into cycles and marks the midnight open for each day. It helps traders visualize weekly structure, identify key daily openings, and track market rhythm within the week. Perfect for analyzing trend patterns, swing setups, and session-based strategies.
ICT ULT
This indicator is for lazy people like me who want to automate the process of marking certain ICT key levels using the indicator's features, such as:
Custom Killzone/Session Liquidity Levels in form of Highs and Lows
Killzone Drawings (Boxes)
Previous Day High/Low (PDH/PDL)
Previous Day Equlibrium (PDEQ)
Previous Week High/Low
New Day/Week Opening Gaps (NDOG/NWOG)
Custom Opening Prices (horizontal) (e.g. Midnight Open)
Custom Timestamps (vertical)
*Note: All features are completely customizable
inspired by: @tradeforopp
LevelsThis Indicator is meant to plot some of the most common levels that traders use.
The display of these levels is highly customizable, as you can choose the line type , color , thickness and whether it shows you no label, price only, reduced label or full label next to the line. All labels (except for "no Label") will show the price at this level.
Also You have the option to mark the start on each timeframe with either a individually colored background or a vertical line where you can choose the line style and color.
Full List of available Levels and Optional inputs to these levels:
Previous HTF Candle Levels:
• Previous HTF Candle Open
• Previous HTF Candle High
• Previous HTF Candle Low
• Previous HTF Candle Close
Optional:
• Choose any higher timeframe
• Mark start of new HTF candle
Session Levels:
• Session Open
• Session High
• Session Low
• Session Close
Optional:
• Choose any time as start and end of your session
• Mark start of session
• Mark full session
Daily Levels:
• Current Day Open
• Current Day High
• Current Day Low
• Previous Day Open
• Previous Day High
• Previous Day Low
• Previous Day Close
Optional:
• Choose start of day (standard, NY Midnight, custom start time)
• Mark start of day
Weekly Levels:
• Current Week Open
• Current Week High
• Current Week Low
• Previous Week Open
• Previous Week High
• Previous Week Low
• Previous Week Close
Optional:
• Mark start of Week
Monthly Levels:
• Current Month Open
• Current Month High
• Current MonthLow
• Previous Month Open
• Previous Month High
• Previous Month Low
• Previous Month Close
Optional:
• Mark start of Month
Weekly and Daily EMA levelsThis Pine Script indicator provides important weekly and daily levels for lower time frame traders, whom trades based on reaction of these levels.
Dedicated to Prof Michael G
Key Features:
Multi-timeframe EMAs: Shows 12, 21, 50, 100, and 200 period EMAs from both Weekly and Daily timeframes
Horizontal dotted lines: Uses plot.style_linebr to create the dotted/dashed line effect
Works on all timeframes: The lines will appear on any chart timeframe you're viewing
Customizable: Individual toggles for each EMA period and timeframe
Settings Available:
Toggle Weekly/Daily EMAs on/off
Enable/disable individual EMA periods (12, 21, 50, 100, 200)
Customize colors for each EMA line
Adjust line width
Optional labels showing current EMA values
How to Use:
Copy the code into TradingView's Pine Editor
Click "Add to Chart"
Adjust settings in the indicator's Style tab as needed
The weekly EMAs appear with slightly more opacity (30%) while daily EMAs have higher transparency (60%) to help distinguish between timeframes. The lines will automatically update as new bars form and will be visible regardless of what timeframe you're currently viewing on your chart.
Straddle Charts - Live (Enhanced)Track options straddles with ease using the Straddle Charts - Live (Enhanced) indicator! Originally inspired by @mudraminer, this Pine Script v5 tool visualizes live call, put, and straddle prices for instruments like BANKNIFTY. Plotting call (green), put (red), and straddle (black) prices in a separate pane, it offers real-time insights for straddle strategy traders.
Key Features:
Live Data: Fetches 1-minute (customizable) option prices with error handling for invalid symbols.
Price Table: Displays call, put, straddle prices, and percentage change in a top-left table.
Volatility Alerts: Highlights bars with straddle price changes above a user-defined threshold (default 5%) with a yellow background and concise % labels.
Robust Design: Prevents plot errors with na checks and provides clear error messages.
How to Use: Input your call/put option symbols (e.g., NSE:NIFTY250814C24700), set the timeframe, and adjust the volatility threshold. Monitor straddle costs and volatility for informed trading decisions.
Perfect for options traders seeking a simple, reliable tool to track straddle performance. Check it out and share your feedback!
Previous VWAP Levels by Riotwolftrading The "Previous VWAP" indicator calculates and displays the previous session's Volume Weighted Average Price (VWAP) for five timeframes (Daily, Weekly, Monthly, Quarterly, Yearly).
Each VWAP is plotted as a horizontal line extending to the right edge of the chart, with customizable labels at the right to identify each level. The indicator is designed for traders who want to visualize key price levels from prior periods without cluttering the chart with current VWAPs or additional metrics like standard deviations.
**Functionality**:
- **Calculates Previous VWAPs**: Computes the VWAP for the previous session of each timeframe (Daily, Weekly, Monthly, Quarterly, Yearly) based on the input source (default: `hlc3`) and volume.
- **Visual Style** : Uses `line.new` to draw horizontal lines from five bars back to the current bar, ensuring the lines extend to the right edge of the chart. Labels are placed at the right edge using `label.new` for clear identification.
- **Customization** : Allows users to toggle visibility, adjust line styles, widths, colors, and label sizes, and choose between abbreviated or full label text.
- **Minimalist Design**: Focuses solely on previous VWAPs, omitting current VWAPs, rolling VWAPs, and standard deviation bands to keep the chart clean.
**Intended Use**: This indicator is useful for traders who rely on historical VWAP levels as support/resistance or reference points for trading decisions, particularly in strategies involving mean reversion or breakout trading.
---
### Rules and Features
*VWAP Calculation**:
- The VWAP is calculated as the cumulative sum of price (`src`) multiplied by volume (`sumSrcVol`) divided by the cumulative volume (`sumVol`) for each timeframe.
- The "previous VWAP" is the VWAP value from the prior session, captured when a new session begins (e.g., new day, week, month, etc.).
- The indicator uses the `hlc3` (average of high, low, close) as the default source, but users can modify this in the settings.
**Timeframes**:
- **Daily**: Previous day's VWAP.
- **Weekly**: Previous week's VWAP.
- **Monthly**: Previous month's VWAP.
- **Quarterly**: Previous quarter's VWAP (3 months).
- **Yearly**: Previous year's VWAP (12 months).
- New sessions are detected using `ta.change(time(period))` for each timeframe.
**Line Drawing**:
- Lines are drawn using `line.new` from `time ` (five bars back) to the current bar (`time`), ensuring they extend to the right edge of the chart.
- Lines are updated only on the last confirmed bar (`barstate.islast`) to optimize performance and avoid repainting.
- Previous lines are deleted (`line.delete`) to prevent overlapping or clutter.
**Labels**:
- Labels are drawn at the right edge (`x=time`, `xloc=xloc.bar_time`) with `label.new`.
- Users can choose between abbreviated labels (e.g., "pvD" for Previous Daily VWAP) or full labels (e.g., "Prev Daily VWAP").
- Label sizes are customizable (`tiny`, `small`, `normal`, `large`, `huge`).
- Labels are deleted (`label.delete`) on each update to maintain a clean chart.
5. **Customization Options**:
- **Visibility**: Toggle each VWAP (Daily, Weekly, Monthly, Quarterly, Yearly) on or off.
- **Colors**: Individual color settings for each VWAP line and label (default colors: Daily=#E12D7B, Weekly=#F67B52, Monthly=#EDCD3B, Quarterly=#3BBC54, Yearly=#2665BD).
- **Line Style**: Choose from `solid`, `dotted`, or `dashed` lines.
- **Line Width**: Adjustable from 1 to 4 pixels.
- **Label Settings**: Enable/disable labels, abbreviate text, and select label size.
- **Source**: Customize the price source (default: `hlc3`).
**Performance Optimization**:
- The indicator only updates lines and labels on the last confirmed bar to minimize computational overhead.
- Uses `var` to initialize variables and avoid unnecessary recalculations.
- Deletes previous lines and labels to prevent chart clutter.
---
### Usage Instructions
1. **Add to Chart**:
- In TradingView, go to the Pine Editor, paste the script, and click "Add to Chart."
- The indicator will overlay on the price chart, showing previous VWAP lines and labels.
2. **Configure Settings**:
- Open the indicator settings to customize:
- Toggle visibility of each VWAP timeframe.
- Adjust colors, line style, and width.
- Enable/disable labels, choose abbreviation, and set label size.
- Modify the source if needed (e.g., use `close` instead of `hlc3`).
3. **Interpretation**:
- **Previous VWAPs**: Act as dynamic support/resistance levels based on the prior session's volume-weighted price.
- **Timeframes**: Use shorter timeframes (Daily, Weekly) for intraday/swing trading, and longer timeframes (Monthly, Quarterly, Yearly) for positional trading.
- **Labels**: Identify each VWAP level at the right edge of the chart for quick reference.
4. **Best Practices**:
- Use on charts with sufficient volume data, as VWAP relies on volume (a warning is triggered if no volume data is available).
- Combine with other indicators (e.g., moving averages, RSI) for confirmation in trading strategies.
- Adjust line styles and colors to avoid visual overlap with other chart elements.
---
### Example Use Case
A trader using a 1-hour chart can add the "Previous VWAP" indicator to identify key levels from the prior day, week, or month. For example:
- The Previous Daily VWAP might act as a support level for a bullish trend.
- The Previous Weekly VWAP could serve as a target for a swing trade.
- Labels at the right edge make it easy to identify these levels without cluttering the chart.
This indicator provides a clean, customizable way to visualize previous VWAPs, making it ideal for traders who want historical price context with minimal chart noise. For the complete Pine Script code, refer to the artifact provided in the previous response.
Daily, Weekly, Monthly Separators (ScalpTheTicker)I put together this Daily, Weekly and Monthly separating indictor after I couldn't find one on Tradingview that did what I was looking for.
It is basic but it does the job I needed.
Feel free to use this indicator and hopefully it does what you need.
Weekly and Daily SeparatorI put together this Weekly and Daily separating indicator as I couldn't find one already done that suited what I was trying to find.
This indicator is basic but it does the job I needed.
Feel free to use it and I hope it is what you are looking for.
HTF 3rd Weekly High/LowThis indicator plots horizontal lines for the high and low of a selected past weekly candle, allowing traders to visualize higher time frame (HTF) structure on lower time frame charts (e.g., 1H, 4H, etc.).
Features:
Custom Weekly Range Selection: Use the dropdown to choose which weekly candle to reference — from the current week (0) to up to five weeks back.
Clean Horizontal Lines: High and low levels of the selected week are drawn as persistent horizontal lines.
Automatic Text Labels: Labels like Week-3H and Week-3L are shown on the right side of the chart, matching the week selected.
Customization:
Line colors
Line width and style (solid, dotted, dashed)
Text label offset
Automatic Refresh: Levels and labels are redrawn at the start of each new week to stay current with your selection.
Weekly Moving Averages (MAs) to Intraday ChartThis indicator overlays key weekly timeframe moving averages onto your intraday chart, allowing you to visualize important long-term support and resistance levels while trading shorter timeframes. The indicator includes:
330-period Simple Moving Average (white): Ultra long-term trend indicator
200-period Simple Moving Average (fuchsia): Major long-term trend indicator often watched by institutional traders
100-period Simple Moving Average (purple): Medium-to-long term trend indicator
50-period Exponential Moving Average (blue): Medium-term trend indicator, more responsive to recent price action
21-period Exponential Moving Average (teal): Short-to-medium term trend indicator
9-period Exponential Moving Average (aqua): Short-term trend indicator, highly responsive to recent price movements
This multi-timeframe approach helps identify significant support/resistance zones that might not be visible on your current timeframe. When price interacts with these weekly moving averages during intraday trading, it often signals important areas where institutional orders may be placed.
The indicator uses color-coding with increasing line thickness to help you quickly distinguish between different moving averages. Consider areas where multiple MAs cluster together as particularly strong support/resistance zones.
Perfect for day traders and swing traders who want to maintain awareness of the bigger picture while focusing on shorter-term price action.






















