Clean Support/Resistance Rejection (Strict Filtering)Best buy and Sell signal based on support and resistance levels.
You can edit how many candle rejections you want after rejection on each level.
Enjoy!
樞軸點和水平
DrawZigZag🟩 OVERVIEW
This library draws zigzag lines for existing pivots. It is designed to be simple to use. If your script creates pivots and you want to join them up while handling edge cases, this library does that quickly and efficiently. If you want your pivots created for you, choose one of the many other zigzag libraries that do that.
🟩 HOW TO USE
Pine Script libraries contain reusable code for importing into indicators. You do not need to copy any code out of here. Just import the library and call the function you want.
For example, for version 1 of this library, import it like this:
import SimpleCryptoLife/DrawZigZag/1
See the EXAMPLE USAGE sections within the library for examples of calling the functions.
For more information on libraries and incorporating them into your scripts, see the Libraries section of the Pine Script User Manual.
🟩 WHAT IT DOES
I looked at every zigzag library on TradingView, after finishing this one. They all seemed to fall into two groups in terms of functionality:
• Create the pivots themselves, using a combination of Williams-style pivots and sometimes price distance.
• Require an array of pivot information, often in a format that uses user-defined types.
My library takes a completely different approach.
Firstly, it only does the drawing. It doesn't calculate the pivots for you. This isn't laziness. There are so many ways to define pivots and that should be up to you. If you've followed my work on market structure you know what I think of Williams pivots.
Secondly, when you pass information about your pivots to the library function, you only need the minimum of pivot information -- whether it's a High or Low pivot, the price, and the bar index. Pass these as normal variables -- bools, ints, and floats -- on the fly as your pivots confirm. It is completely agnostic as to how you derive your pivots. If they are confirmed an arbitrary number of bars after they happen, that's fine.
So why even bother using it if all it does it draw some lines?
Turns out there is quite some logic needed in order to connect highs and lows in the right way, and to handle edge cases. This is the kind of thing one can happily outsource.
🟩 THE RULES
• Zigs and zags must alternate between Highs and Lows. We never connect a High to a High or a Low to a Low.
• If a candle has both a High and Low pivot confirmed on it, the first line is drawn to the end of the candle that is the opposite to the previous pivot. Then the next line goes vertically through the candle to the other end, and then after that continues normally.
• If we draw a line up from a Low to a High pivot, and another High pivot comes in higher, we *extend* the line up, and the same for lines down. Yes this is a form of repainting. It is in my opinion the only way to end up with a correct structure.
• We ignore lower highs on the way up and higher lows on the way down.
🟩 WHAT'S COOL ABOUT THIS LIBRARY
• It's simple and lightweight: no exported user-defined types, no helper methods, no matrices.
• It's really fast. In my profiling it runs at about ~50ms, and changing the options (e.g., trimming the array) doesn't make very much difference.
• You only need to call one function, which does all the calculations and draws all lines.
• There are two variations of this function though -- one simple function that just draws lines, and one slightly more advanced method that modifies an array containing the lines. If you don't know which one you want, use the simpler one.
🟩 GEEK STUFF
• There are no dependencies on other libraries.
• I tried to make the logic as clear as I could and comment it appropriately.
• In the `f_drawZigZags` function, the line variable is declared using the `var` keyword *inside* the function, for simplicity. For this reason, it persists between function calls *only* if the function is called from the global scope or a local if block. In general, if a function is called from inside a loop , or multiple times from different contexts, persistent variables inside that function are re-initialised on each call. In this case, this re-initialisation would mean that the function loses track of the previous line, resulting in incorrect drawings. This is why you cannot call the `f_drawZigZags` function from a loop (not that there's any reason to). The `m_drawZigZagsArray` does not use any internal `var` variables.
• The function itself takes a Boolean parameter `_showZigZag`, which turns the drawings on and off, so there is no need to call the function conditionally. In the examples, we do call the functions from an if block, purely as an illustration of how to increase performance by restricting the amount of code that needs to be run.
🟩 BRING ON THE FUNCTIONS
f_drawZigZags(_showZigZag, _isHighPivot, _isLowPivot, _highPivotPrice, _lowPivotPrice, _pivotIndex, _zigzagWidth, _lineStyle, _upZigColour, _downZagColour)
This function creates or extends the latest zigzag line. Takes real-time information about pivots and draws lines. It does not calculate the pivots. It must be called once per script and cannot be called from a loop.
Parameters:
_showZigZag (bool) : Whether to show the zigzag lines.
_isHighPivot (bool) : Whether the current bar confirms a high pivot. Note that pivots are confirmed after the bar in which they occur.
_isLowPivot (bool) : Whether the current bar confirms a low pivot.
_highPivotPrice (float) : The price of the high pivot that was confirmed this bar. It is NOT the high price of the current bar.
_lowPivotPrice (float) : The price of the low pivot that was confirmed this bar. It is NOT the low price of the current bar.
_pivotIndex (int) : The bar index of the pivot that was confirmed this bar. This is not an offset. It's the `bar_index` value of the pivot.
_zigzagWidth (int) : The width of the zigzag lines.
_lineStyle (string) : The style of the zigzag lines.
_upZigColour (color) : The colour of the up zigzag lines.
_downZagColour (color) : The colour of the down zigzag lines.
Returns: The function has no explicit returns. As a side effect, it draws or updates zigzag lines.
method m_drawZigZagsArray(_a_zigZagLines, _showZigZag, _isHighPivot, _isLowPivot, _highPivotPrice, _lowPivotPrice, _pivotIndex, _zigzagWidth, _lineStyle, _upZigColour, _downZagColour, _trimArray)
Namespace types: array
Parameters:
_a_zigZagLines (array)
_showZigZag (bool) : Whether to show the zigzag lines.
_isHighPivot (bool) : Whether the current bar confirms a high pivot. Note that pivots are usually confirmed after the bar in which they occur.
_isLowPivot (bool) : Whether the current bar confirms a low pivot.
_highPivotPrice (float) : The price of the high pivot that was confirmed this bar. It is NOT the high price of the current bar.
_lowPivotPrice (float) : The price of the low pivot that was confirmed this bar. It is NOT the low price of the current bar.
_pivotIndex (int) : The bar index of the pivot that was confirmed this bar. This is not an offset. It's the `bar_index` value of the pivot.
_zigzagWidth (int) : The width of the zigzag lines.
_lineStyle (string) : The style of the zigzag lines.
_upZigColour (color) : The colour of the up zigzag lines.
_downZagColour (color) : The colour of the down zigzag lines.
_trimArray (bool) : If true, the array of lines is kept to a maximum size of two lines (the line elements are not deleted). If false (the default), the array is kept to a maximum of 500 lines (the maximum number of line objects a single Pine script can display).
Returns: This function has no explicit returns but it modifies a global array of zigzag lines.
ICT Killzones & Pivots [TFO] [FJK]Originally by tradeforopp I added the concept of Open Ranges.
ToDo:
- configure alerts
- add more box style options
Volume Point of Control with Fib Based Profile🍀Description:
This indicator is a comprehensive volume profile analysis tool designed to identify key price levels based on trading activity within user-defined timeframes. It plots the Point of Control (POC), Value Area High (VAH), and Value Area Low (VAL), along with dynamically calculated Fibonacci levels derived from the developing period's range. It offers extensive customization for both historical and developing levels.
🍀Core Features:
Volume Profiling (POC, VAH, VAL):
Calculates and plots the POC (price level with the highest volume), VAH, and VAL for a selected timeframe (e.g., Daily, Weekly).
The Value Area percentage is configurable. 70% is common on normal volume profiles, but this script allows you to configure multiple % levels via the fib levels. I recommend using 2 versions of this indicator on a chart, one has Value Area at 1 (100% - high and low of lookback) and the second is a specified VA area (i.e. 70%) like in the chart snapshot above. See examples at the bottom.
Historical Levels:
Plots POC, VAH, and VAL from previous completed periods.
Optionally displays only "Unbroken" levels – historical levels that price has not yet revisited, which can act as stronger magnets or resistance/support.
The user can manage the number of historical lines displayed to prevent chart clutter.
Developing Levels:
Shows the POC, VAH, and VAL as they form in real-time during the current, incomplete period. This provides insight into intraday/intra-period value migration.
Dynamic Fibonacci Levels:
Calculates and plots Fibonacci retracement/extension levels based dynamically on the range between the developing POC and the developing VAH/VAL.
Offers 8 configurable % levels above and below POC that can be toggled on/off.
Visual Customization:
Extensive options for colors, line styles, and widths for all plotted levels.
Optional gradient fill for the Value Area that visualizes current price distance from POC - option to invert the colors as well.
Labels for developing levels and Fibonacci levels for easy identification.
🍀Characteristics:
Volume-Driven: Levels are derived from actual trading volume, reflecting areas of high participation and price agreement/disagreement.
Timeframe Specific: The results are entirely dependent on the chosen profile timeframe.
Dynamic & Static Elements: Developing levels and Fibs update live, while historical levels remain fixed once their period closes.
Lagging (Historical) & Potentially Leading: Historical levels are based on the past, but are often respected by future price action. Developing levels show current dynamics.
🍀How to Use It:
Identifying Support & Resistance: Historical and developing POCs, VAHs, and VALs are often key areas where price may react. Unbroken levels are particularly noteworthy.
Market Context & Sentiment: Trading above the POC suggests bullish strength/acceptance of higher prices, while trading below suggests bearishness/acceptance of lower prices.
Entry/Exit Zones: Interactions with these levels (rejections, breakouts, tests) can provide potential entry or exit signals, especially when confirming with other analysis methods.
Dynamic Targets: The Fibonacci levels calculated from the developing POC-VA range offer potential intraday/intra-period price targets or areas of interest.
Understanding Value Migration: Observing the movement of the developing POC/VAH/VAL throughout the period reveals where value is currently being established.
🍀Potential Drawbacks:
Input Sensitivity: The choice of timeframe, Value Area percentage, and volume resolution heavily influences the generated levels. Experimentation is needed for optimal settings per instrument/market. (I've found that Range Charts can provide very accurate volume levels on TV since the time element is removed. This helps to refine the accuracy of price levels with high volume.)
Volume Data Dependency: Requires accurate volume data. May be less reliable on instruments with sparse or questionable volume reporting.
Chart Clutter: Enabling all features simultaneously can make the chart busy. Utilize the line management inputs and toggle features as needed.
Not a Standalone Strategy: This indicator provides context and key levels. It should be used alongside other technical analysis tools and price action reading for robust decision-making.
Developing Level Fluctuation: Developing POC/VA/Fib levels can shift considerably, especially early in a new period, before settling down as more volume accumulates and time passes.
🍀Recommendations/Examples:
I recommend have this indicator on your chart twice, one has the VA set at 1 (100%) and has the fib levels plotted. The second has the VA set to 0.7 (70%) to highlight the defined VA.
Here is an example with 3 on a chart. VA of 100%, VA of 80%, and VA of 20%
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.
Previous Day High/Low (8AM–4PM)A simple indicator for NQ and ES futures that marks the previous day high and low on the current trading day excluding premarket.
Bounce Zone📘 Bounce Zone – Indicator Description
The "Bounce Zone" indicator is a custom tool designed to highlight potential reversal zones on the chart based on volume exhaustion and price structure. It identifies sequences of candles with low volume activity and marks key price levels that could act as "bounce zones", where price is likely to react.
🔍 How It Works
Volume Analysis:
The indicator calculates a Simple Moving Average (SMA) of volume (default: 20 periods).
It looks for at least 6 consecutive candles (configurable) where the volume is below this volume SMA.
Color Consistency:
The candles must all be of the same color:
Green candles (bullish) for potential downward bounce zones.
Red candles (bearish) for potential upward bounce zones.
Zone Detection:
When a valid sequence is found:
For green candles: it draws a horizontal line at the low of the last red candle before the sequence.
For red candles: it draws a horizontal line at the high of the last green candle before the sequence.
Bounce Tracking:
Each horizontal line remains on the chart until it is touched twice by price (high or low depending on direction).
After two touches, the line is automatically removed, indicating the zone has fulfilled its purpose.
📈 Use Cases
Identify areas of price exhaustion after strong directional pushes.
Spot liquidity zones where institutions might step in.
Combine with candlestick confirmation for reversal trades.
Useful in both trending and range-bound markets for entry or exit signals.
⚙️ Parameters
min_consecutive: Minimum number of consecutive low-volume candles of the same color (default: 6).
vol_ma_len: Length of the volume moving average (default: 20).
🧠 Notes
The indicator does not repaint and is based purely on historical candle and volume structure.
Designed for manual strategy confirmation or support for algorithmic setups.
High Volume + High Price Change Candles (Relative to Volume SMA)The indicator marks days on which high volume was accompanied by high price change. Important to see where there was aggressive buying or selling. The High and Low of these candles may act as crucial support/resistance price points for a better interpretation of the price action.
Previous Two Days HL + Asia H/L + 4H Vertical Lines📊 Indicator Overview
This custom TradingView indicator visually marks key market structure levels and session data on your chart using lines, labels, boxes, and vertical guides. It is designed for traders who analyze intraday and multi-session behavior — especially around the New York and Asia sessions — with a focus on 4-hour price ranges.
🔍 What the Indicator Tracks
1. Previous Two Days' Ranges (6PM–5PM NY Time)
PDH/PDL (Day 1 & Day 2): Draws horizontal lines marking the previous two trading days’ highs and lows.
Midlines: Calculates and displays the midpoint between each day’s high and low.
Color-Coded: Uses strong colors for Day 1 and more transparent versions for Day 2, to help differentiate them.
2. Asia Session High/Low (6 PM – 2 AM NY Time)
Automatically tracks the high and low during the Asia session.
Extends these levels until the following day’s NY close (4 PM).
Shows a midline of the Asia session (optional dotted line).
Highlights the Asia session background in gray.
Labels Asia High and Low on the chart for easy reference.
3. Last Closed 4-Hour Candle Range
At the start of every new 4H candle, it:
Draws a box from the last closed 4H candle.
Box spans horizontally across a set number of bars (adjustable).
Top and bottom lines indicate the high and low of that 4H candle.
Midline, 25% (Q1) and 75% (Q3) levels are also drawn inside the box using dotted lines.
Helps traders identify premium/discount zones within the previous 4H range.
4. Vertical 4H Time Markers
Draws vertical dashed lines to mark the start and end of the last 4H candle range.
Based on the standard 4H bar timing in NY (e.g. 5:00, 9:00, 13:00, 17:00).
⚙️ Inputs & Options
Line thickness, color customization for all levels.
Option to place labels on the right or left side of the chart.
Toggle for enabling/disabling the 4H box.
Adjustable box extension length (how far to extend the range visually).
✅ Ideal Use Cases
Identifying reaction zones from prior highs/lows.
Spotting reversals during Asia or NY session opens.
Trading intraday setups based on 4H structure.
Anchoring scalping or swing entries off major session levels.
Zero Lag Trend Strategy (MTF) [AlgoAlpha]# Zero Lag Trend Strategy (MTF) - Complete Guide
## Overview
The Zero Lag Trend Strategy is a sophisticated trading system that combines zero-lag exponential moving averages with volatility bands and EMA-based entry/exit filtering. This strategy is designed to capture trending movements while minimizing false signals through multiple confirmation layers.
## Core Components
### 1. Zero Lag EMA (ZLEMA)
- **Purpose**: Primary trend identification with reduced lag
- **Calculation**: Uses a modified EMA that compensates for inherent lag by incorporating price momentum
- **Formula**: `EMA(price + (price - price ), length)` where lag = (length-1)/2
- **Default Length**: 70 periods (adjustable)
### 2. Volatility Bands
- **Purpose**: Define trend strength and entry/exit zones
- **Calculation**: Based on ATR (Average True Range) multiplied by a user-defined multiplier
- **Upper Band**: ZLEMA + (ATR * multiplier)
- **Lower Band**: ZLEMA - (ATR * multiplier)
- **Default Multiplier**: 1.2 (adjustable)
### 3. EMA Filter/Exit System
- **Purpose**: Entry filtering and exit signal generation
- **Default Length**: 9 periods (fully customizable)
- **Color**: Blue line on chart
- **Function**: Prevents counter-trend entries and provides clean exit signals
## Entry Logic
### Long Entry Conditions
1. **Primary Signal**: Price crosses above the upper volatility band (strong bullish momentum)
2. **Additional Entries**: Price crosses above ZLEMA while already in an uptrend (if enabled)
3. **EMA Filter**: Price must be above the EMA filter line
4. **Confirmation**: All conditions must align simultaneously
### Short Entry Conditions
1. **Primary Signal**: Price crosses below the lower volatility band (strong bearish momentum)
2. **Additional Entries**: Price crosses below ZLEMA while already in a downtrend (if enabled)
3. **EMA Filter**: Price must be below the EMA filter line
4. **Confirmation**: All conditions must align simultaneously
## Exit Logic
**Simple and Clean**: Positions are closed when price crosses the EMA filter line in the opposite direction:
- **Long Exit**: Price crosses below the EMA filter
- **Short Exit**: Price crosses above the EMA filter
## Multi-Timeframe Analysis
The strategy includes a real-time table showing trend direction across 5 different timeframes:
- Default timeframes: 5m, 15m, 1h, 4h, 1D (all customizable)
- Color-coded signals: Green for bullish, Red for bearish
- Helps confirm overall market direction before taking trades
## Key Parameters
### Main Calculations
- **Length (70)**: Zero-lag EMA calculation period
- **Band Multiplier (1.2)**: Controls volatility band width
### Strategy Settings
- **Enable Additional Trend Entries**: Allow multiple entries during strong trends
- **EMA Exit Length (9)**: Period for the entry filter and exit EMA
### Timeframes
- **5 customizable timeframes** for multi-timeframe trend analysis
### Appearance
- **Bullish Color**: Default green (#00ffbb)
- **Bearish Color**: Default red (#ff1100)
## Visual Elements
### Chart Display
- **ZLEMA Line**: Color-coded trend line (green/red based on trend direction)
- **Volatility Bands**: Dynamic upper/lower bands that appear based on trend
- **EMA Filter**: Blue line for entry filtering and exits
- **Entry Signals**:
- Large arrows (▲▼) for primary trend signals
- Small arrows for additional trend entries
- Tiny letters (L/S) for actual strategy entries
### Information Table
- **Position**: Top-right corner
- **Content**: Real-time trend status across all configured timeframes
- **Updates**: Continuously updated with current market conditions
## Strategy Advantages
### Trend Following Excellence
- Captures strong trending moves with reduced whipsaws
- Multiple confirmation layers prevent false entries
- Dynamic bands adapt to market volatility
### Risk Management
- Clear, objective exit rules
- EMA filter prevents counter-trend trades
- Multi-timeframe confirmation reduces bad trades
### Flexibility
- Fully customizable parameters
- Works across different timeframes and instruments
- Optional additional trend entries for maximum profit potential
### Visual Clarity
- Clean, professional chart display
- Easy-to-read signals and trends
- Comprehensive multi-timeframe overview
## Best Practices
### Parameter Optimization
- **Length**: Higher values (50-100) for longer-term trends, lower values (20-50) for shorter-term
- **Band Multiplier**: Higher values (1.5-2.0) reduce signals but increase quality
- **EMA Length**: Shorter periods (5-13) for quick exits, longer periods (20-50) for trend riding
### Market Conditions
- **Trending Markets**: Enable additional trend entries for maximum profit
- **Choppy Markets**: Use higher band multiplier and longer EMA for fewer, higher-quality signals
- **Different Timeframes**: Adjust all parameters proportionally when changing chart timeframes
### Multi-Timeframe Usage
- Align trades with higher timeframe trends
- Use lower timeframes for precise entry timing
- Avoid trades when timeframes show conflicting signals
## Risk Considerations
- Like all trend-following strategies, may struggle in ranging/choppy markets
- EMA exit system prioritizes trend continuation over quick profit-taking
- Multiple timeframe analysis requires careful interpretation
- Backtesting recommended before live trading with any parameter changes
## Conclusion
The Zero Lag Trend Strategy provides a comprehensive approach to trend trading with built-in risk management and multi-timeframe analysis. Its combination of advanced technical indicators, clear entry/exit rules, and customizable parameters makes it suitable for both novice and experienced traders seeking to capture trending market movements.
🔥Scalping Fusion Strategy v6🔥Scalping Fusion (v6)
✅ Overview:
This is a powerful intraday scalping strategy that combines two Super Trend systems:
Pivot Super Trend – uses dynamic pivot highs/lows and ATR-based bands.
Classic Super Trend – a traditional ATR-based trailing trend filter.
By combining both, the strategy ensures strong trend confirmation before taking trades.
⚙️ Core Logic:
Buy Entry:
Pivot Super Trend turns Bullish (Trend = 1)
Classic Super Trend also Bullish
Pivot Trend must have just changed from Bearish to Bullish
Sell Entry:
Pivot Super Trend turns Bearish (Trend = -1)
Classic Super Trend also Bearish
Pivot Trend must have just changed from Bullish to Bearish
🎯 Stop Loss / Take Profit:
Based on ATR (14):
Stop Loss = Entry ± 1.5 × ATR
Target = Entry ± 3.0 × ATR
This ensures dynamic SL/TP based on market volatility.
📈 Key Features:
Dual Super Trend Confirmation = Reduces false entries
ATR-based Stop Loss & Target = Adaptive to volatility
Pivot-based Trend Detection = Detects strong reversals
Buy/Sell labels + alerts for easy visual and automated trading
⏱️ Recommended Timeframe:
3-Minute or 5-Minute charts
Ideal for fast scalping and high-frequency trading sessions.
🧪 Backtest Suggestions:
Use during high volume hours (e.g., 9:15 AM – 2:30 PM)
Filter trades using volume or session-based logic
Consider adding maximum trades per day for better risk control
Hedge Lines {RumRunner}Lines for hedging. Semi customizable. Thick blue lines for entry and take profits and the dotted lines for adding hedge position. Its 10 pips away from the blue lines and allows for some wiggle room before you have to add the hedge in opposite direction.
Last Week's APM & Daily % Move(Corrected)Last Week's Average Price Movement + Daily Percentage Move (based on NY time)
This indicator accurately displays last week's Average Pip Movement (APM) consistently across all timeframes and tracks the true daily percentage move relative to that APM in a clear table in the top-right corner.
Key Features:
-Consistent Last Week's APM: Calculates the average pip movement from Monday to Friday of the previous trading week (based on daily wick-to-wick ranges, divided by 5). This APM value is now stable and the same across all chart timeframes.
-Accurate Live Daily % Move: Tracks the maximum percentage the price has moved (either up or down) since the 5 PM New York time daily open, compared to last week's APM. The percentage holds the maximum value reached during the day and resets at the next 5 PM NY open.
-NY Time Alignment: All time-based calculations are aligned with the New York time zone
Pip Adjustment: Automatically adjusts for JPY pairs.
⚠️ Important: For the intended display and relevance of the daily percentage move, this indicator is best used on timeframes 4-hour and under. On Daily and Weekly timeframes, the APM display will show a message indicating this.
We hope this indicator enhances your trading analysis.
TrendMaster Pro 2.3 with Alerts
Hello friends,
A member of the community approached me and asked me how to write an indicator that would achieve a particular set of goals involving comprehensive trend analysis, risk management, and session-based trading controls. Here is one example method of how to create such a system:
Core Strategy Components
Multi-Moving Average System - Uses configurable MA types (EMA, SMA, SMMA) with short-term (9) and long-term (21) periods for primary signal generation through crossovers
Higher Timeframe Trend Filter - Optional trend confirmation using a separate MA (default 50-period) to ensure trades align with broader market direction
Band Power Indicator - Dynamic high/low bands calculated using different MA types to identify price channels and volatility zones
Advanced Signal Filtering
Bollinger Bands Volatility Filter - Prevents trading during low-volatility ranging markets by requiring sufficient band width
RSI Momentum Filter - Uses customizable thresholds (55 for longs, 45 for shorts) to confirm momentum direction
MACD Trend Confirmation - Ensures MACD line position relative to signal line aligns with trade direction
Stochastic Oscillator - Adds momentum confirmation with overbought/oversold levels
ADX Strength Filter - Only allows trades when trend strength exceeds 25 threshold
Session-Based Trading Management
Four Trading Sessions - Asia (18:00-00:00), London (00:00-08:00), NY AM (08:00-13:00), NY PM (13:00-18:00)
Individual Session Limits - Separate maximum trade counts for each session (default 5 per session)
Automatic Session Closure - All positions close at specified market close time
Risk Management Features
Multiple Stop Loss Options - Percentage-based, MA cross, or band-based SL methods
Risk/Reward Ratio - Configurable TP levels based on SL distance (default 1:2)
Auto-Risk Calculation - Dynamic position sizing based on dollar risk limits ($150-$250 range)
Daily Limits - Stop trading after reaching specified TP or SL counts per day
Support & Resistance System
Multiple Pivot Types - Traditional, Fibonacci, Woodie, Classic, DM, and Camarilla calculations
Flexible Timeframes - Auto-adjusting or manual timeframe selection for S/R levels
Historical Levels - Configurable number of past S/R levels to display
Visual Customization - Individual color and display settings for each S/R level
Additional Features
Alert System - Customizable buy/sell alert messages with once-per-bar frequency
Visual Trade Management - Color-coded entry, SL, and TP levels with fill areas
Session Highlighting - Optional background colors for different trading sessions
Comprehensive Filtering - All signals must pass through multiple confirmation layers before execution
This approach demonstrates how to build a professional-grade trading system that combines multiple technical analysis methods with robust risk management and session-based controls, suitable for algorithmic trading across different market sessions.
Good luck and stay safe!
SPX to ES/MES**SPX to ES/MES Level Converter**
This indicator is designed for traders who work with SPX price levels but execute trades on ES or MES futures. It allows you to input SPX-based key levels—such as call walls, put walls, vanna/charm zones, volatility triggers, and profit targets—and automatically converts them into their real-time ES/MES equivalents.
### 📌 Features:
- Manual input of SPX levels (e.g. 5900, 5850, etc.)
- Live conversion to ES or MES levels using a dynamic spot ratio
- Plots include:
- 🟢 Call Wall
- 🔴 Put Wall
- 🟠 Vanna
- 🟣 Charm
- 🟡 Volatility Trigger
- ✅ Long Profit Targets
- ❌ Short Profit Targets
- Smoothing parameter to stabilize visual line display
### 🧠 How it Works:
- The indicator calculates a dynamic ratio between the ES/MES price and your manually input SPX spot.
- This ratio is applied to each SPX level to determine its corresponding ES/MES equivalent.
- It plots each line at its translated futures level so your chart reflects accurate futures-aligned decision points.
> Tip: Adjust the `Current SPX Spot` input daily to match live spot values for maximum precision.
This version does not include text labels on the chart. For a labeled version, check out the updated release with `label.new()` annotations for each level.
**Use case:** Great for traders who generate levels off SPX options flow, but execute on ES/MES contracts intraday.
Created by pogchamp99 | Inspired by SPY → ES conversion by ItsAnders81
Key Levels with Alerts
Introducing the "Key Levels with Alerts" Indicator
This powerful and fully customizable indicator for the TradingView platform helps you easily identify and monitor crucial **daily, weekly, and monthly price levels** directly on your chart. Beyond just visual representation, the indicator offers advanced alert capabilities to notify you of any price breaks at these significant areas.
Key Levels Identified by the Indicator
This indicator calculates and displays six vital price levels based on the previous day's, week's, and month's closed candles:
1. **PDH (Previous Day High):** The highest price of the previous day.
2. **PDL (Previous Day Low):** The lowest price of the previous day.
3. **PWH (Previous Week High):** The highest price of the previous week.
4. **PWL (Previous Week Low):** The lowest price of the previous week.
5. **PMH (Previous Month High):** The highest price of the previous month.
6. **PML (Previous Month Low):** The lowest price of the previous month.
Core Features
* **Visual Line Display:** Each of these six levels is plotted as a **horizontal line** on your chart. These lines start from the current candle and extend forward for a specified number of candles (defaulting to 20 candles).
* **Complete Style Customization:** For every level (PDH, PDL, PWH, PWL, PMH, PML), you can **independently customize** the line's color, width, and style (solid, dashed, dotted) directly through the indicator's settings. This feature allows you to easily differentiate between the various levels.
* **Toggleable Labels:** You can choose whether to display text labels like "PDH", "PDL", "PWH", "PWL", "PMH", "PML" at the end of each line. The style of these labels will also automatically match their corresponding line colors.
* **Line Visibility Control:** Beyond just labels, you can also independently **show or hide the lines themselves** for PDH, PDL, PWH, PWL, PMH, and PML.
* **Price Break Alerts:** This is one of the indicator's most important features. You can set up alerts for each of these levels:
* **PDH Break Alert:** Triggers when the price moves above the **Previous Day High**.
* **PDL Break Alert:** Triggers when the price moves below the **Previous Day Low**.
* **PWH Break Alert:** Triggers when the price moves above the **Previous Week High**.
* **PWL Break Alert:** Triggers when the price moves below the **Previous Week Low**.
* **PMH Break Alert:** Triggers when the price moves above the **Previous Month High**.
* **PML Break Alert:** Triggers when the price moves below the **Previous Month Low**.
* **Clear Alert Messages:** Each alert message includes the **symbol or ticker name** (e.g., ` `) so you can quickly identify which asset the alert pertains to and which level has been broken.
* **Enable/Disable Alerts:** You have the flexibility to enable or disable each PDH, PDL, PWH, PWL, PMH, and PML alert independently via the indicator's settings.
Why This Indicator Is Useful
Daily, weekly, and monthly High and Low levels often act as **key support and resistance areas**. Traders use these levels to identify potential entry and exit points, set stop-loss and take-profit targets, and understand overall market sentiment. This indicator, with its clear visualization and timely alerts, helps you effectively leverage this crucial information in your trading strategies.
FX Fix with Adjustable TimezoneFX Fix Time Highlighter
This indicator visually highlights candlesticks at a user-defined time and timezone to help traders easily identify when the FX fix occurs. Simply set your preferred timezone and the exact time you want to mark on the chart, and the indicator will automatically highlight the corresponding candlesticks.
Ideal for forex traders who want a clear visual reference of the FX fix window, aiding in analysis of price behavior during this key market event.
Features:
Customizable timezone selection
Adjustable highlight time (hour and minute)
Automatic candlestick highlighting at the chosen time
Supports all timeframes
Use this tool to better understand market dynamics around the FX fix and improve your trading decisions.
XAU/USD Custom Levels
XAU/USD Dynamic Support & Resistance Levels
This indicator automatically draws horizontal support and resistance levels for Gold (XAU/USD) based on the current market price, eliminating the need for manual price range adjustments.
**Key Features:**
- **Dynamic Price Range**: Automatically calculates levels above and below the current price using a customizable percentage range (default 5%)
- **Multi-Tier Level System**: Four distinct level types with different visual styling:
- Major Levels (100s) - Blue, thick lines
- Sub Levels (50s) - Red, medium lines
- Sub-Sub Levels (25s) - Yellow, thin lines
- Mini Levels (12.5s) - Gray, dotted lines
- **Fully Customizable**: Adjust range percentage, step size, colors, and line history through input settings
- **Universal Compatibility**: Works at any gold price level - whether $1800, $2500, $3300 or beyond
**How It Works:**
The script centers the level grid around the current closing price and extends lines from a specified number of bars back to the right edge of the chart. The hierarchical level system helps identify key psychological price points and potential support/resistance zones commonly used in gold trading.
**Settings:**
- Price Range %: Control how far above/below current price to draw levels (1-20%)
- Level Step Size: Adjust spacing between levels (1.0-50.0)
- Bars Back: Set how far back in history to start the lines
- Color Customization: Personalize colors for each level type
Perfect for gold traders who need clean, automatically-updating support and resistance levels without manual configuration.
Essa - Multi-Timeframe LevelsEnhanced Multi‐Timeframe Levels
This indicator plots yearly, quarterly and monthly highs, lows and midpoints on your chart. Each level is drawn as a horizontal line with an optional label showing “ – ” (for example “Apr 2025 High – 1.2345”). If two or more timeframes share the same price (within two ticks), they are merged into a single line and the label lists each timeframe.
A distance table can be shown in any corner of the chart. It lists up to five active levels closest to the current closing price and shows for each level:
level name (e.g. “May 2025 Low”)
exact price
distance in pips or points (calculated according to the instrument’s tick size)
percentage difference relative to the close
Alerts can be enabled so that whenever price comes within a user-specified percentage of any level (for example 0.1 %), an alert fires. Once price decisively crosses a level, that level is marked as “broken” so it does not trigger again. Built-in alertcondition hooks are also provided for definite breaks of the current monthly, quarterly and yearly highs and lows.
Monthly lookback is configurable (default 6 months), and once the number of levels exceeds a cap (calculated as 20 + monthlyLookback × 3), the oldest levels are automatically removed to avoid clutter. Line widths and colours (with adjustable opacity for quarterly and monthly) can be set separately for each timeframe. Touches of each level are counted internally to allow future extension (for example visually emphasising levels with multiple touches).
Niveaux Majeurs/MineursMajor & Minor Institutional Levels Indicator
This script automatically draws major and minor institutional price levels on your chart for any instrument.
Major levels (green lines) are plotted every 10 units (default, customizable).
Minor levels (red lines) are plotted ±2 units above and below each major level (default, customizable).
Features:
Lines are thin and semi-transparent for a clean visual experience.
Levels are dynamically centered around the current price.
No repainting or lag; all levels are updated in real time.
Fully adjustable parameters for both major and minor levels.
Ideal for traders who want to visualize key price zones often respected by algorithms and large market participants.
Works on any timeframe and any asset.
How to use:
Simply add the indicator to your chart. Adjust the “Major Step” and “Minor Offset” parameters to fit your instrument or trading style.