Daily Returns & STDWhat happened last time when xx increased by xx%? - Start collecting some stats!
You can choose the ticker and the timeframe you're interested in
在腳本中搜尋"daily"
RSI Oversold/UndersoldThe study script will place GREEN BUY arrows BELOW oversold conditions and RED SHORT arrows ABOVE overbought conditions. You can configure the period
Most RSI(14) indicators use a 14-period, I prefer a 5-period. The period, overbought and oversold periods are settings that can easily be changed by adding this study to your chart and clicking the "gear" icon next to the study inside your chart.
Daily SMAThis pine script on intraday chart is exactly the same SMA as built-in MovingAverage on a 1Day chart (with the same lengths)
ICT First Presented FVG - Multi-Sessions All TimeframeIf you know, you know.
Use "Monday Only" and you will find things you never seen before.
Recommended time ranges for beginners:
- 09:30 (M1)
- 13:30 (M1)
- 00:00 (M1, M15)
Some gibberish by AI below:
# ICT First Presented FVG - Multiple Sessions
## Overview
An advanced Fair Value Gap (FVG) indicator that identifies the **first FVG** within multiple customizable trading sessions. Based on ICT (Inner Circle Trader) concepts, this tool tracks price imbalances that often act as magnets for future price movement.
**Fair Value Gap (FVG)**: A three-candle pattern where the middle candle's range doesn't overlap with the first and third candles, creating an imbalance.
- **BISI** (Buy Side Imbalance, Sell Side Inefficiency): Bullish FVG
- **SIBI** (Sell Side Imbalance, Buy Side Inefficiency): Bearish FVG
## Key Features
### 🎯 8 Customizable Time Ranges
- Each time range tracks its own first FVG independently
- Smart validation ensures FVG forms within session boundaries
- Automatically adapts to instrument's timezone
- Works on all timeframes
### 📊 Display Options
- **BISI/SIBI Labels**: Shows type and date (e.g., "BISI 0614")
- **Custom Colors**: Separate bullish/bearish colors per time range
- **Extension Modes**:
- Standard: Box extends only during session
- End of Day: Extends to market close (auto-detects instrument's trading hours)
- End of Time: Extends indefinitely
### 🔧 Advanced Filters
- **Monday Only**: Show FVGs only on Mondays
- **First BISI/SIBI**: Display only the first bullish and first bearish FVG of each day
## Quick Setup
### Default Time Ranges:
1. **00:00-00:30** - Asia Open
2. **02:00-02:30** - London Prep
3. **08:30-09:00** - Pre-Market
4. **09:30-10:00** - First 30min
5. **11:30-12:00** - Lunch
6. **13:30-14:00** - Afternoon
7. **20:00-20:30** - Asia Session
8. **21:00-21:30** - Late Asia
*Note: Times are automatically adjusted to your instrument's timezone*
### Settings:
- **Time Ranges**: Toggle on/off, customize times and colors
- **Text Color**: Choose custom or auto-match box color
- **Max Days**: Limit historical FVGs (default: 3)
- **Extension Options**: EOD/EOT for different strategies
## Usage Examples
**Day Trading**: Enable Time Ranges 2 (02:00), 4 (09:30), and 5 (11:30) with EOD extension
**Scalping**: Focus on one time range, use 1-5m timeframes, standard extension
**ICT Concepts**: Enable "First BISI/SIBI" to identify daily bias, watch Time Range 1 (00:00) and 3 (08:30) for manipulation
## Tips
- Start with 2-3 time ranges to avoid clutter
- Lower timeframes (1-5m) show more precise FVGs
- Each timeframe may show different FVGs for the same session
- Disable unused time ranges for better performance
- Times automatically adjust to instrument's exchange timezone
Raana - Price BandAutomatic detection of daily UC/LC limits based on %.
Alerts when price touches or breaks UC/LC.
Bands for opening 15-minute range instead.
Bandas de MANCUSOThe lower band is calculated by taking the average of the minimum prices over the last ten days, minus the average range of the last three days multiplied by two.
The upper band is derived from the average of the maximum prices over the last ten days, plus the average range of the last three days multiplied by two.
The middle band is calculated as the average between the upper and lower bands.
This middle band serves as a buy or sell signal, depending on the direction in which the price crosses it.
The upper band acts as an upward target, and the lower band as a downward target.
The average range that is added to the upper band and subtracted from the lower band (multiplied by two in both cases) is calculated by averaging the ranges of the last three days.
Each daily range is obtained as the difference between the high and the low of each day. These three values are then averaged and applied as described above.
Bandas de MANCUSOThe lower band is calculated by taking the average of the minimum prices over the last ten days, minus the average range of the last three days multiplied by two.
The upper band is derived from the average of the maximum prices over the last ten days, plus the average range of the last three days multiplied by two.
The middle band is calculated as the average between the upper and lower bands.
This middle band serves as a buy or sell signal, depending on the direction in which the price crosses it.
The upper band acts as an upward target, and the lower band as a downward target.
The average range that is added to the upper band and subtracted from the lower band (multiplied by two in both cases) is calculated by averaging the ranges of the last three days.
Each daily range is obtained as the difference between the high and the low of each day. These three values are then averaged and applied as described above.
Bandas de MANCUSOThe lower band is calculated by taking the average of the minimum prices over the last ten days, minus the average range of the last three days multiplied by two.
The upper band is derived from the average of the maximum prices over the last ten days, plus the average range of the last three days multiplied by two.
The middle band is calculated as the average between the upper and lower bands.
This middle band serves as a buy or sell signal, depending on the direction in which the price crosses it.
The upper band acts as an upward target, and the lower band as a downward target.
The average range that is added to the upper band and subtracted from the lower band (multiplied by two in both cases) is calculated by averaging the ranges of the last three days.
Each daily range is obtained as the difference between the high and the low of each day. These three values are then averaged and applied as described above.
Contrarian 100 MAPairs nicely with Enhanced-Stock-Ticker-with-50MA-vs-200MA located here:
Description
The Contrarian 100 MA is a sophisticated Pine Script v6 indicator designed for traders seeking to identify key market structure shifts and trend reversals using a combination of a 100-period Simple Moving Average (SMA) envelope and Inner Circle Trader (ICT) Break of Structure (BoS) and Market Structure Shift (MSS) logic. By overlaying a semi-transparent SMA-based shadow on the price chart and plotting bullish and bearish structure signals, this indicator helps traders visualize critical price levels and potential trend changes. It leverages higher timeframe (HTF) pivot points and dynamic logic to adapt to various chart timeframes, making it ideal for swing and contrarian trading strategies. Customizable colors, timeframes, and alert conditions enhance its versatility for manual and automated trading setups.
Key Features
SMA Envelope: Plots a 100-period SMA for high and low prices, creating a semi-transparent (50% opacity) purple shadow to highlight the price range and provide context for price movements.
ICT BoS/MSS Logic: Identifies Break of Structure (BoS) and Market Structure Shift (MSS) signals for both bullish and bearish conditions, based on HTF pivot points.
Dynamic Timeframe Support: Adjusts pivot detection based on user-selected HTF (default: 1D) and chart timeframe (1M, 5M, 15M, 30M, 1H, 4H, 1D), ensuring adaptability across markets.
Visual Signals: Draws dotted lines for BoS (bullish/bearish) and MSS (bullish/bearish) signals at pivot levels, with customizable colors for easy identification.
Contrarian Approach: Signals potential reversals by combining SMA context with ICT structure breaks, ideal for traders looking to capitalize on trend shifts.
Alert Conditions: Supports alerts for bullish/bearish BoS and MSS signals, enabling integration with TradingView’s alert system for automated trading.
Performance Optimization: Uses efficient pivot detection and line management to minimize resource usage while maintaining accuracy.
Technical Details
SMA Calculation:
Computes 100-period SMAs for high (smaHigh) and low (smaLow) prices.
Plots invisible SMAs (fully transparent) and fills the area between them with 50% transparent purple for visual context.
Pivot Detection:
Uses ta.pivothigh and ta.pivotlow to identify HTF swing points, with dynamic lookback periods (rlBars: 5 for daily, 2 for intraday).
Tracks pivot highs (pH, nPh) and lows (pL, nPl) using a custom piv type for price and time.
BoS/MSS Logic:
Bullish BoS: Triggered when price breaks above a pivot high in a bullish trend, drawing a line at the pivot level.
Bearish BoS: Triggered when price breaks below a pivot low in a bearish trend.
Bullish MSS: Occurs when price breaks a pivot high in a bearish trend, signaling a potential trend reversal.
Bearish MSS: Occurs when price breaks a pivot low in a bullish trend.
Lines are drawn using line.new with xloc.bar_time for precise alignment, styled as dotted with customizable colors.
HTF Integration: Fetches HTF close prices and pivot data using request.security with lookahead_on for accurate signal timing.
Line Management: Maintains an array of lines (lin), removing outdated lines when new MSS signals occur to keep the chart clean.
Pivot Reset: Clears broken pivots (e.g., when price exceeds a pivot high or falls below a pivot low) to ensure fresh signal generation.
How to Use
Add to Chart:
Copy the script into TradingView’s Pine Editor and apply it to your chart.
Configure Settings:
SMA Length: Adjust the SMA period (default: 100 bars) to suit your trading style.
Structure Timeframe: Set the HTF for pivot detection (default: 1D).
Chart Timeframe: Select the chart timeframe (1M, 5M, 15M, 30M, 1H, 4H, 1D) to adjust pivot sensitivity.
Colors: Customize bullish/bearish BoS and MSS line colors via input settings.
Interpret Signals:
Bullish BoS: White dotted line (default) at a broken pivot high in a bullish trend, indicating trend continuation.
Bearish BoS: White dotted line at a broken pivot low in a bearish trend.
Bullish MSS: White dotted line at a broken pivot high in a bearish trend, suggesting a reversal to bullish.
Bearish MSS: White dotted line at a broken pivot low in a bullish trend, suggesting a reversal to bearish.
Use the SMA shadow to gauge price position within the recent range.
Set Alerts:
Create alerts for bullish/bearish BoS and MSS signals using TradingView’s alert system.
Customize Visuals:
Adjust line colors or SMA fill transparency via TradingView’s settings for better visibility.
Example Use Cases
Swing Trading: Use MSS signals to enter trades at potential trend reversals, with the SMA envelope confirming price extremes.
Contrarian Trading: Capitalize on BoS and MSS signals to trade against prevailing trends, using the SMA shadow for context.
Automated Trading: Integrate BoS/MSS alerts with trading bots for systematic entries and exits.
Multi-Timeframe Analysis: Combine HTF signals (e.g., 1D) with lower timeframe charts (e.g., 1H) for precise entries.
Notes
Testing: Backtest the indicator on your chosen market and timeframe to validate performance.
Compatibility: Built for Pine Script v6 and tested on TradingView as of June 19, 2025.
Limitations: Signals rely on HTF pivot accuracy, which may lag in fast-moving markets. Adjust rlBars or timeframe for sensitivity.
Optional Enhancements: Consider uncommenting or adding a histogram for SMA divergence (e.g., smaHigh - smaLow) for additional insights.
Acknowledgments
This indicator combines ICT’s market structure concepts with a dynamic SMA envelope to provide a unique contrarian trading tool. Share your feedback or suggestions in the TradingView comments, and happy trading!
Modified Fractal Open/CloseModified Fractal (Open/Close Based) - Indicator
The Modified Fractal (Open/Close Based) indicator offers a new way to detect fractal patterns on your chart by analyzing the open and close prices instead of the traditional high and low values.
🧮 How it works:
The indicator evaluates a group of 5 consecutive candles.
The central candle (2 bars ago) is analyzed.
For a Bullish Fractal:
The open or close of the central candle must be lower than the open and close of the other 4 surrounding candles.
For a Bearish Fractal:
The open or close of the central candle must be higher than the open and close of the other 4 surrounding candles.
Once a valid pattern is detected, a visual symbol (triangle) is plotted directly on the chart and an alert can be triggered.
✅ Key Features:
Non-repainting signals (evaluated after candle close)
Fully mechanical detection logic
Easy-to-use visual signals
Alert conditions ready to be integrated into TradingView’s alert system
Suitable for multiple timeframes (can be used from M1 to Daily and beyond)
🎯 Use case:
This modified fractal approach can help traders:
Spot potential swing points
Identify possible reversals
Confirm price exhaustion zones
Support breakout or mean reversion strategies
⚠ Note:
This indicator does not provide trade signals by itself. It is recommended to be combined with additional tools, price action analysis, or risk management rules.
ADR % RangesThis indicator is designed to visually represent percentage lines from the open of the day. The % amount is determined by X amount of the last days to create an average...or Average Daily Range (ADR).
1. ADR Percentage Lines: The core function of the script is to apply lines to the chart that represent specific percentage changes from the daily open. It first calculates the average over X amount of days and then displays two lines that are 1/3rd of that average. One line goes above the other line goes below. The other two lines are the full "range" of the average. These lines can act as boundaries or targets to know how an asset has moved recently. *Past performance is not indicative of current or future results.
The calculation for ADR is:
Step 1. Calculate Today's Range = DailyHigh - DailyLow
Step 2. Store this average after the day has completed
Step 3. Sum all day's ranges
Step 4. Divide by total number of days
Step 5. Draw on chart
2. Customizable Inputs: Users have the flexibility to customize the script through various inputs. This includes the option to display lines only for the current trading day (`todayonly`), and to select which lines are displayed. The user can also opt to show a table the displays the total range of previous days and the average range of those previous days.
3. No Secondary Timeframe: The ADR is computed based on whatever timeframe the chart is and does not reference secondary periods. Therefore the script cannot be used on charts greater than daily.
This script is can be used by all traders for any market. The trader might have to adjust the "X" number of days back to compute a historical average. Maybe they only want to know the average over the past week (5 days) or maybe the past month (20 days).
Humble Student OB/OS Trifecta indicatorAfter reading Cam Hui's blog post about his "Trifecta" bottom spotting model I thought I'd try my hand at scripting it as an indicator. The results are pretty close to what he describes. Though the data TradingView feeds me doesn't seem to be identical to what he's using on StockCharts.com the results are close enough that I will call the effort a success worth publishing.
BTC Backwardation SearcherThis Pine Script code is a custom indicator named "BTC Backwardation Searcher" designed for the TradingView platform. The indicator aims to identify and visualize the price difference between two Bitcoin futures contracts: CME:BTC1! and CME:BTC2!.
Here's a breakdown of the code:
1. The script fetches the daily close prices of CME:BTC1! and CME:BTC2! using the security() function.
2. It calculates the percentage price difference between the two contracts using the formula: (btc1Price - btc2Price) / btc2Price * 100.
3. The script also calculates the price difference for the previous two days (2 days ago and 3 days ago) using the same formula.
4. Two conditions are defined:
(1) dailyGreenCondition: If the price difference is greater than or equal to 0.3% for three
consecutive days, including the current day and the previous two days.
(2) dailyRedCondition(commented): If the price difference is less than or equal to -1% for three consecutive days, including the current day and the previous two days.
(I commented it out because I don't think it's useful.)
5. The plotshape() function is used to display green triangles on the chart when the dailyGreenCondition is met, and red triangles when the dailyRedCondition is met. These triangles are displayed on the daily, weekly, and monthly timeframes.
The purpose of this indicator is to help traders identify potential trading opportunities based on the price difference between the two Bitcoin futures contracts. The green triangles suggest a bullish scenario where CME:BTC1! is significantly higher than CME:BTC2!, while the red triangles indicate a bearish scenario where CME:BTC2! is significantly lower than CME:BTC1!.
However, it's important to note that this indicator should be used in conjunction with other technical analysis tools and fundamental analysis. Traders should also consider their risk tolerance, investment goals, and market conditions before making any trading decisions based on this indicator.
HMA & D1 crossover FX (Study)Can work on other Forex pairs if change settings: Period
This example tuned for AUDUSD (FX Version)
Enter new order on HMA ( Hull Moving Average ) and D1 ( Daily Candle) crossovers, Exit orders as basket when profit = Your Target Profit
This study version built for users of Alerts. Crossover of HMA and DailyCandle1 (and/or DailyCandle1 cross DailyCandle2) (also possible Price cross HMA)
AnyTimeAndPrice
This indicator allows users to input a specific start time and display the price of a lower timeframe on a higher timeframe chart. It offers customization options for:
- Display name
- Label color
- Line extension
By adding multiple instances of the AnyTimeframeTimeAndPrice indicator, each customized for different times and prices, you can create a powerful and flexible tool for analyzing market data. Here's a potential setup:
1. Instance 1:
- Time: 08:23
- Price: Open
- Display Name: "8:23 Open"
- Label Color: Green
2. Instance 2:
- Time: 12:47
- Price: High
- Display Name: "12:47 High"
- Label Color: Red
3. Instance 3:
- Time: 15:19
- Price: Low
- Display Name: "3:19 Low"
- Label Color: Blue
4. Instance 4:
- Time: 16:53
- Price: Close
- Display Name: "4:53 Close"
- Label Color: Yellow
By having multiple instances, you can:
- Track different times and prices on the same chart
- Customize the display names, label colors, and line extensions for each instance
- Easily compare and analyze the relationships between different times and prices
This setup can be particularly useful for:
- Identifying key levels and support/resistance areas
- Analyzing market trends and patterns
- Making more informed trading decisions
Inputs:
1. AnyStartHour: Integer input for the start hour (default: 09, range: 0-23)
2. AnyStartMinute: Integer input for the start minute (default: 30, range: 0-59)
3. Sourcename: String input for the display name (default: "Open", options: "Open", "Close", "High", "Low")
4. Src_col: Color input for the label color (default: aqua)
5. linetimeExtMulti: Integer input for the line time extension (default: 1, range: 1-5)
Calculations:
1. AnyinputStartTime: Timestamp for the input start time
2. inputhour and inputminute: Hour and minute components of the input start time
3. formattedAnyTime: Formatted string for the input start time (HH:mm)
4. currenttime: Current timestamp
5. currenthour and currentminute: Hour and minute components of the current time
6. formattedTime: Formatted string for the current time (HH:mm)
7. onTime and okTime: Boolean flags for checking if the current time matches the input start time or is within the session
8. firstbartime: Timestamp for the first bar of the session
9. dailyminutesfromSource: Calculation for the daily minutes from the source
10. anyminSrcArray: Request security lower timeframe array for the source
11. ltf (lower timeframe): Integer variable for tracking the lower timeframe
12. Sourcevalue: Float variable for storing the source value
13. linetimeExt: Integer variable for line extension (calculated from linetimeExtMulti)
Logic:
1. Check if the current time matches the input start time or is within the session
2. If true, plot a line and label with the source value and formatted time
3. If not, check if the current time is within the daily session and plot a line and label accordingly
Notes:
- The script uses request.security_lower_tf to request data from a lower timeframe
- The script uses line.new and label.new to plot lines and labels on the chart
- The script uses str.format_time to format timestamps as strings (HH:mm)
- The script uses xloc.bar_time to position lines and labels at the bar time
This script allows users to input a specific start time and display the price of a lower timeframe on a higher timeframe chart, with options for customizing the display name, label color, and line extension.
Previous Days High & LowRenders the high and low values from previous days.
Useful alert conditions are provided: "Less than low" and "Greater than high".
Configuration:
The number of days is configurable with a default of 1.
The source of the high and low values.
Use the close value instead of high and low values. Default is false.
The example above uses 2 days to demonstrate an exit strategy.
Real-Time Open Levels with Labels + Info TableReal-Time Multi-Timeframe Open Levels with Labels & Info Panel
Overview
This indicator displays real-time opening price levels across multiple timeframes (Monthly, Weekly, Daily, 4H) directly on your chart. It features:
• Dynamic horizontal lines extending through each timeframe period
• Customizable labels with text/colors
• Special 4H line treatment for the last hour (5-min charts only)
• Integrated information panel showing symbol, timeframe, and price changes
! (www.tradingview.com)
*Example showing multiple timeframe levels with labels and info panel*
---
Features & Configuration
1. Monthly Settings
! (www.tradingview.com)
Show Monthly: Toggle visibility of monthly opening price
Color: Semi-transparent blue (#2196F3 at 70% opacity)
Width: 2px line thickness
Style: Solid/Dotted/Dashed
Label: Display "M-Open" text with white text on blue background
2. Weekly Settings
! (www.tradingview.com)
Show Weekly: Toggle weekly opening price visibility
Color: Semi-transparent red (#FF5252 at 70% opacity)
Width: 1px thickness
Style: Dotted by default
Label: "W-Open" text in white on red background
3. Daily Settings
! (www.tradingview.com)
Show Daily: Toggle daily opening price
Color: Amber (#FFA000 at 70% opacity)
Width: 2px thickness
Style: Solid
Label: "D-Open" in white on orange background
---
4. 4-Hour Settings (5-Minute Charts Only)
Special Features for 5-Min Timeframe:
1. Standard 4H Line
• First 3 hours: Green (#4CAF50) dashed line
• Last hour: Bright red solid line (configurable)
• Vertical divider between 3rd/4th hours
2. Configuration Options
• Main 4H Line:
◦ Color/Width/Style for initial 3 hours
◦ Toggle label ("H4-Open") visibility and styling
• Final Hour Enhancement:
*Last Hour Line*
◦ Unique red color and line style
◦ Separate width (1px) and style (Solid)
*Divider Line*
◦ Vertical red dotted line marking last hour
◦ Adjustable position/width/transparency
! (www.tradingview.com)
*4H levels showing 3-hour segment and final hour treatment*
---
5. Info Panel Settings
Positioning:
• Anchor to any chart corner (Top/Bottom + Left/Right combinations)
• Three text sizes: Title (Huge), Change % (Large), Signature (Small)
Display Elements:
• Symbol: Show exchange prefix (e.g., "NASDAQ:")
• Timeframe: Current chart period (e.g., "5m")
• Change %: 24-hour price movement ▲/▼ percentage
• Custom Signature: Add text/username in footer
Styling:
• Semi-transparent white text (#ffffff77)
• Currency pair formatting (e.g., BTC/USD vs BTC-USD)
! (www.tradingview.com)
*Sample info panel with all elements enabled*
---
Usage Tips
1. Multi-Timeframe Context: Use levels to identify key daily/weekly support/resistance
2. 4H Trading: On 5-min charts, watch for price reactions near final hour transition
3. Customization:
• Match line colors to your chart theme
• Use different labels for clarity (e.g., "Weekly Open")
• Disable unused elements to reduce clutter
4. Divider Lines: Helps identify institutional trading periods (hour closes)
---
*Created using Pine Script v6. For optimal performance, use on charts <1H timeframe. ()*
Highs & Lows - Multi TimeFrame### **📌 HL-MWD (Highs & Lows - Multi Timeframe Indicator) – Community Release**
#### **🔹 Overview**
The **HL-MWD Indicator** is a **multi-timeframe support & resistance tool** that plots **historical highs and lows** from **daily, weekly, and monthly timeframes** onto an intraday chart. It helps traders **identify key levels of support and resistance** that have influenced price action over different timeframes.
This indicator is useful for **day traders, swing traders, and position traders** who rely on **multi-timeframe analysis** to spot critical price levels.
---
### **🔥 Key Features**
✅ **Plots Highs & Lows for Daily, Weekly, and Monthly Timeframes**
✅ **Customizable Lookback Periods for Each Timeframe**
✅ **Adjustable Line Colors, Styles (Solid, Dotted, Dashed), and Widths**
✅ **Extend Lines into the Future to Identify Key Price Levels**
✅ **Option to Display Price Labels for Each Level**
✅ **Gradient Option to Highlight Recent Highs & Lows (Disabled by Default)**
✅ **Compatible with Intraday, Daily, and Weekly Charts**
---
### **📈 How It Works**
- **Daily Highs & Lows:** Captures the **highest and lowest prices** within the selected lookback period (default: **14 bars**).
- **Weekly Highs & Lows:** Marks the **highest and lowest prices** within the chosen weekly lookback (default: **52 bars**).
- **Monthly Highs & Lows:** Displays the **high and low points** from the monthly timeframe (default: **36 bars**).
- **Extended Lines:** Project past highs and lows **into the future** to help identify **potential support & resistance zones**.
---
### **⚠️ TradingView Lookback Limitations**
🔹 **TradingView has a limit on how many historical bars can be accessed per timeframe**, which affects how far back the indicator can retrieve data.
🔹 **Intraday charts (e.g., 5m, 15m) have a limited number of past bars**, meaning:
- **You won’t be able to view 36 months' worth of monthly levels** on a **5-minute chart**, because TradingView doesn’t store that much data in lower timeframes.
- **If multiple timeframes (e.g., weekly + monthly) are enabled at the same time**, some historical data may **not be available on shorter timeframes**.
🔹 **Recommendation:**
- If using **monthly lookbacks (36 months+), view them on a daily or higher timeframe**.
- If using **weekly lookbacks (52 weeks+), higher intraday timeframes (e.g., 1-hour, 4-hour) are better suited**.
- **Lower timeframes (1m, 5m, 15m) may miss some levels** if TradingView's bar limit is exceeded.
---
### **⚙️ Customization Options**
| **Setting** | **Default Value** | **Description** |
|------------------|----------------|----------------|
| **Daily Lookback** | `14` | Number of bars used to calculate daily highs/lows. |
| **Weekly Lookback** | `52` | Number of bars used to calculate weekly highs/lows. |
| **Monthly Lookback** | `36` | Number of bars used to calculate monthly highs/lows. |
| **Line Colors** | Daily: `Blue` Weekly: `Green` Monthly: `Red` | Customizable colors for each timeframe. |
| **Line Style** | `Solid` | Options: Solid, Dashed, Dotted. |
| **Line Width** | `1` | Thickness of the plotted lines. |
| **Extend Line** | `1` | Controls how far the highs/lows extend into the future. |
| **Display Price Labels** | `Enabled` | Shows price labels on each level. |
---
### **🛠️ How to Use It**
- **Enable/disable different timeframes** based on your strategy.
- **Customize colors, line styles, and widths** to match your charting style.
- **Use extended lines to identify support & resistance zones.**
- **Watch price reactions at these levels** for potential entries, exits, and stop-loss placements.
---
### **🚀 Final Thoughts**
The **HL-MWD Indicator** is a **powerful multi-timeframe tool** that helps traders **visualize key support & resistance levels** from higher timeframes on an intraday chart.
⚠️ **However, TradingView’s lookback limits apply—so for longer-term levels, higher timeframes are recommended.**
📌 **Now published for the community!** Let me know if you need any last-minute tweaks! 🔥
MTF Moving Averages (only EMA)MTF Moving Averages (only EMA)
This script provides a Multi-Timeframe (MTF) Exponential Moving Average (EMA) indicator for traders to visualize multiple EMAs across different timeframes directly on a single chart.
The indicator dynamically calculates and plots up to four EMAs per timeframe (15-minute, 30-minute, 1-hour, and Daily) with user-defined lengths, offering valuable insight into price trends and potential entry or exit points.
Key Features:
Multiple Timeframe Support: The script allows you to view EMAs from different timeframes simultaneously. This is especially useful for traders who follow trends across different timeframes to make more informed decisions.
Customizable Lengths: For each timeframe, the lengths of the EMAs are fully customizable. You can adjust the length of up to four EMAs per timeframe to suit your strategy.
EMA Calculation: The Exponential Moving Average (EMA) is used, which gives more weight to recent prices and reacts faster to price changes compared to the simple moving average (SMA).
Timeframe Flexibility: The indicator supports the following timeframes:
15-minute: Ideal for short-term traders and scalpers.
30-minute: For intraday trading with a slightly longer perspective.
1-hour: Suitable for swing traders and those who prefer a more medium-term view.
Daily: Great for longer-term trend-following strategies.
Interactive and User-Friendly: You can toggle the visibility of each EMA on each timeframe, allowing you to choose exactly which EMAs you wish to display, depending on your trading strategy.
Color-Coded for Clarity: The script uses distinct colors for each EMA on the chart:
Blue: EMA1
Green: EMA2
Red: EMA3
Purple: EMA4
Line Width Customization: Each plotted EMA line has a customizable width for better visual clarity.
Use Case:
Traders who use multiple timeframes for analysis (e.g., those using the "multi-timeframe analysis" technique) will find this script particularly useful. For example, a trader may look at the 15-minute chart to catch short-term movements, the 30-minute chart for intraday trends, the 1-hour chart for swing positions, and the Daily chart for identifying the overarching market trend. The script enables them to view the EMAs for all these timeframes in one glance without having to manually switch between them.
By observing the relationships between EMAs across multiple timeframes, traders can gain valuable insights into market conditions such as:
Crossovers: When a shorter-term EMA crosses above or below a longer-term EMA, it can signal a potential trend reversal or continuation.
Trend Strength: Multiple EMAs in alignment across different timeframes can indicate strong trend strength.
Support and Resistance: EMAs can act as dynamic support and resistance levels, guiding traders on price action levels to watch for potential price reversals.
Instructions:
Enable/Disable EMAs: Toggle on or off the EMAs for each timeframe (15-min, 30-min, 1-hour, Daily) using the script’s settings.
Adjust EMA Lengths: Change the default lengths for each EMA to match your preferred settings for different timeframes.
Monitor Key Levels: Watch how price interacts with the plotted EMAs to spot potential trading signals based on your strategy.
This indicator is designed to enhance your multi-timeframe analysis and help make more informed, data-driven trading decisions.
Previous Day and Current Day High/LowKey Features:
Previous Day High and Low Lines:
Displays the high (PDH) and low (PDL) levels of the previous trading day.
Allows customization of line colors, styles (solid, dashed, or dotted), and widths.
Extends these lines by a specified number of candles into the current day for better visualization.
Current Day High and Low Lines:
Displays the high (CDH) and low (CDL) levels during the current day's regular trading hours.
Customizable line attributes, including color, style, width, and extension length.
Customizable Input Options:
User-configurable settings for both the previous and current day high/low lines, grouped under respective sections for clarity.
Regular trading hours can be defined manually (default is 9:30 AM to 4:00 PM).
Ability to toggle the visibility of the lines for both the previous and current days.
Automatic Reset at the Start of a New Day:
Captures the high and low values of the completed day and resets for the new day.
Deletes old lines and labels to ensure clarity and avoid overlap.
Dynamic Updates:
Updates the current day's high and low lines and labels as new data comes in.
Adjusts previous day lines dynamically based on the user-defined number of candles to extend.
Session-Based Filtering:
Ensures the calculations and updates are restricted to the defined regular trading hours.
Code Logic:
Input Groups: The script uses grouped inputs to allow users to configure settings for previous and current day levels separately.
Line and Label Management: It creates and deletes lines and labels dynamically to prevent clutter and keep the chart organized.
Session Check: Uses the session input to determine if a bar falls within regular trading hours.
High/Low Calculation: Tracks the high and low for both the previous and current days during regular trading hours.
New Day Detection: Identifies the start of a new trading day to update previous day values and reset current day variables.
Applications:
Intraday Trading: Helps traders identify critical support and resistance levels from the previous and current days.
Trend Analysis: Provides visual cues for price movement trends across consecutive days.
Custom Visualization: With extensive customization options, traders can adapt the indicator to suit their trading style and chart aesthetics.
This script is highly configurable, making it versatile for a wide range of trading strategies and styles.