Open Range Volatility (High/Low %)Overview
The Open-to-High/Low Movement Indicator helps traders visualize the percentage change between the opening price and the highest & lowest points of each trading session. This indicator is particularly useful for identifying intraday volatility, momentum strength, and potential reversals.
Key Features
✅ Real-Time High/Low Percentage Movement – Calculates and plots the percentage movement from the opening price to both the session high (green line) and session low (red line).
✅ Separate Chart Pane – Keeps your main price chart clean while displaying movements in a separate panel.
✅ Zero Reference Line – Helps distinguish upward and downward movements.
✅ +10% and -10% Threshold Lines – Assists in identifying significant price swings.
✅ Customizable & Lightweight – Efficiently tracks market movements without slowing down your chart.
How to Use
When the green line moves higher, it indicates strong buying pressure after the open.
When the red line moves lower, it shows selling pressure from the open price.
If movements stay within a small range, the market is experiencing low volatility.
Extreme movements beyond ±10% can indicate potential breakout or reversal zones.
Best for:
📈 Day traders tracking intraday momentum
📊 Swing traders spotting volatility trends
⚡ Scalpers identifying quick price movements
💡 Volatility-based strategies
This indicator works across all timeframes and asset classes, including stocks, forex, commodities, and crypto.
🚀 Add this to your chart today and stay ahead of the market!
High-Low Index
Arbitrage Spot-Futures Don++Strategy: Spot-Futures Arbitrage Don++
This strategy has been designed to detect and exploit arbitrage opportunities between the Spot and Futures markets of the same trading pair (e.g. BTC/USDT). The aim is to take advantage of price differences (spreads) between the two markets, while minimizing risk through dynamic position management.
[Operating principle
The strategy is based on calculating the spread between Spot and Futures prices. When this spread exceeds a certain threshold (positive or negative), reverse positions are opened simultaneously on both markets:
- i] Long Spot + Short Futures when the spread is positive.
- i] Short Spot + Long Futures when the spread is negative.
Positions are closed when the spread returns to a value close to zero or after a user-defined maximum duration.
[Strategy strengths
1. Adaptive thresholds :
- Entry/exit thresholds can be dynamic (based on moving averages and standard deviations) or fixed, offering greater flexibility to adapt to market conditions.
2. Robust data management :
- The script checks the validity of data before executing calculations, thus avoiding errors linked to missing or invalid data.
3. Risk limitation :
- A position size based on a percentage of available capital (default 10%) limits exposure.
- A time filter limits the maximum duration of positions to avoid losses due to persistent spreads.
4. Clear visualization :
- Charts include horizontal lines for entry/exit thresholds, as well as visual indicators for spread and Spot/Futures prices.
5. Alerts and logs :
- Alerts are triggered on entries and exits to inform the user in real time.
[Points for improvement or completion
Although this strategy is functional and robust, it still has a few limitations that could be addressed in future versions:
1. [Limited historical data :
- TradingView does not retrieve real-time data for multiple symbols simultaneously. This can limit the accuracy of calculations, especially under conditions of high volatility.
2. [Lack of liquidity management :
- The script does not take into account the volumes available on the order books. In conditions of low liquidity, it may be difficult to execute orders at the desired prices.
3. [Non-dynamic transaction costs :
- Transaction costs (exchange fees, slippage) are set manually. A dynamic integration of these costs via an external API would be more realistic.
4. User-dependency for symbols :
- Users must manually specify Spot and Futures symbols. Automatic symbol validation would be useful to avoid configuration errors.
5. Lack of advanced backtesting :
- Backtesting is based solely on historical data available on TradingView. An implementation with third-party data (via an API) would enable the strategy to be tested under more realistic conditions.
6. [Parameter optimization :
- Certain parameters (such as analysis period or spread thresholds) could be optimized for each specific trading pair.
[How can I contribute?
If you'd like to help improve this strategy, here are a few ideas:
1. Add additional filters:
- For example, a filter based on volume or volatility to avoid false signals.
2. Integrate dynamic costs:
- Use an external API to retrieve actual costs and adjust thresholds accordingly.
3. Improve position management:
- Implement hedging or scalping mechanisms to maximize profits.
4. Test on other pairs:
- Evaluate the strategy's performance on other assets (ETH, SOL, etc.) and adjust parameters accordingly.
5. Publish backtesting results :
- Share detailed analyses of the strategy's performance under different market conditions.
[Conclusion
This Spot-Futures arbitrage strategy is a powerful tool for exploiting price differentials between markets. Although it is already functional, it can still be improved to meet more complex trading scenarios. Feel free to test, modify and share your ideas to make this strategy even more effective!
[Thank you for contributing to this open-source community!
If you have any questions or suggestions, please feel free to comment or contact me directly.
Previous Day, Week, Monday Liq + Asian, London & Ny session LiqGM Gs,
This indicator helps traders identify key liquidity levels from different market sessions (Asian, London, NY), as well as weekly and daily highs/lows. It automatically plots these levels on the chart, making it easier to spot potential support/resistance zones where price might react.
Key Features:
1. Multi-Timeframe Liquidity Zones
Previous Day High/Low – Tracks the prior day’s range.
Monday High/Low – Useful for weekly opening liquidity.
Previous Week High/Low – Helps identify broader weekly levels.
2. Customizable Session Times
Asian, London, and NY Session Highs/Lows – Automatically detects and plots key levels from each trading session.
Adjustable Time Zones – Supports multiple GMT offsets (GMT-8 to GMT+3), making it adaptable for traders worldwide.
3. Visual Customization
Color & Style Options – Each level type (e.g., London High, NY Low) can be customized in color, line style (solid, dashed, dotted), and width.
Faded Opacity for Swept Levels – When a level is swept (price breaks but closes beyond it), it becomes semi-transparent, helping traders distinguish active vs. invalidated levels.
4. Clean & Informative Labels
Each level has a clear label (e.g., "Asia High," "PW Low") for easy identification.
Adjustable label offsets prevent clutter on the chart.
Pros & Benefits for Traders:
✅ Helps Identify Key Liquidity Zones – Institutional traders often target session highs/lows for liquidity grabs. This indicator makes these levels visible at a glance.
✅ Adaptable to Different Trading Styles
Day Traders – Can use Asian/London/NY session levels for intraday setups.
Swing Traders – Can focus on weekly and Monday levels for broader trends.
✅ No Repainting – Levels are fixed once formed and do not change retroactively.
✅ Customizable for Personal Preference – Traders can adjust colors, line styles, and visibility to match their trading setup.
✅ Useful for Multiple Markets – Works well on Forex (major pairs), indices, and even crypto (due to 24/7 market structure similarities).
Suggested Use Cases:
Breakout Trading – Watch for price reactions at session highs/lows.
Mean Reversion – Fade moves into weekly or daily extremes.
Institutional Liquidity Analysis – Identify potential stop hunts or accumulation zones.
Conclusion:
This indicator is a powerful tool for traders who rely on session-based liquidity, institutional order flow, and key support/resistance levels. By automating the detection of these zones, it saves time and helps traders make more informed decisions.
Min-Max | Buy-Sell Alert with LevelsMin-Max | Buy-Sell Alert with Levels
Description:
The Min-Max | Buy-Sell Alert with Levels indicator is a powerful tool designed to help traders identify key levels of support and resistance based on the previous day's high and low prices. It plots horizontal lines for the previous day's minimum (Min) and maximum (Max) prices, along with four intermediate levels (Stop Loss 1 to Stop Loss 4) calculated as equal percentage steps between the Min and Max.
This indicator is perfect for traders who want to:
Identify potential entry points when the price returns within the Min-Max range.
Set stop-loss levels based on the calculated intermediate levels.
Receive alerts for buy, sell, and stop-loss conditions.
Key Features:
Previous Day's Min and Max Lines:
Automatically plots the Min (red line) and Max (green line) of the previous day.
These levels act as dynamic support and resistance zones.
Intermediate Stop Loss Levels:
Calculates and plots four intermediate levels (Stop Loss 1 to Stop Loss 4) between the Min and Max.
Each level is equally spaced, representing potential stop-loss or take-profit zones.
Customizable Alerts:
Buy Alert: Triggered when the price returns within the Min-Max range after breaking below the Min.
Sell Alert: Triggered when the price returns within the Min-Max range after breaking above the Max.
Stop Loss Alerts: Triggered when the price reaches any of the four intermediate levels (Stop Loss 1 to Stop Loss 4).
Customizable Appearance:
Adjust the thickness, color, and style (solid, dashed, dotted) of the lines.
Customize the colors of the Stop Loss labels for better visualization.
Labels on the Chart:
Displays "Buy" and "Sell" labels on the chart when the respective conditions are met.
Labels for Stop Loss levels are also displayed for easy reference.
How to Use:
Add the indicator to your chart.
Customize the settings (line colors, thickness, and alert preferences) in the indicator's settings panel.
Use the Min and Max lines as dynamic support and resistance levels.
Monitor the intermediate levels (Stop Loss 1 to Stop Loss 4) for potential stop-loss or take-profit zones.
Set up alerts for Buy, Sell, and Stop Loss conditions to stay informed about key price movements.
Why Use This Indicator?
Simple and Effective: Focuses on the most important levels from the previous day.
Customizable: Tailor the indicator to match your trading style and preferences.
Alerts: Never miss a trading opportunity with customizable alerts for key conditions.
Settings:
Line Thickness: Adjust the thickness of the Min, Max, and intermediate lines.
Line Colors: Customize the colors of the Min, Max, and intermediate lines.
Line Style: Choose between solid, dashed, or dotted lines.
Stop Loss Label Colors: Customize the colors of the Stop Loss labels.
Alerts: Enable or disable alerts for Buy, Sell, and Stop Loss conditions.
Ideal For:
Day traders and swing traders.
Traders who rely on support and resistance levels.
Anyone looking for a clear and customizable tool to identify key price levels.
Disclaimer:
This indicator is for educational and informational purposes only. It does not constitute financial advice. Always conduct your own analysis and trade responsibly.
Get Started Today!
Add the Min-Max | Buy-Sell Alert with Levels indicator to your chart and take your trading to the next level. Customize it to fit your strategy and never miss a key trading opportunity again!
Daily & Multi-Day High/LowDaily & Multi-Candle High/Low Indicator
This indicator clearly highlights essential price levels directly on your chart, significantly improving your trading decisions:
First Candle High/Low (Session Open):
Quickly identify the high and low of the first candle each trading day, ideal for session-open traders.
Previous Day's High/Low:
Automatically plots the highest and lowest prices from the previous trading day, crucial for daily breakout or reversal strategies.
Multi-Candle High/Low (Customizable Period):
Easily track the highest and lowest points of the last X candles (default: 108 candles). Perfect for spotting key support and resistance zones.
Customization Options:
Adjust colors, line styles (solid, dashed, dotted), and line thickness directly from the settings for personalized visibility.
Ideal for day traders, swing traders, and price-action traders looking for clear and actionable daily levels on their charts.
AlgoMaxx Prev OHLCThe AlgoMaxx Prev OHLC indicator provides a clear visualization of the previous day's Open, High, Low, and Close (OHLC) levels. These levels are crucial for understanding market structure, identifying support and resistance zones, and making informed trading decisions. The indicator is fully customizable and dynamically updates to ensure accuracy and clarity.
Key Features:
Prev. Day High/Low and Open/Close Levels:
Plots previous day's High/Low and Open/Close levels.
Toggle each level (lines and labels) on/off independently.
Customizable Lines and Labels:
Adjust line colors, styles (Solid, Dashed, Dotted), and widths.
Enable or disable labels for each level with customizable label colors.
Dynamic Updates:
Automatically updates levels daily.
Deletes old lines and labels to maintain a clean chart.
Efficient and Intuitive:
Designed to integrate seamlessly into any trading strategy with user-friendly customization options.
Indicator Logic:
Previous Day Levels Calculation:
The indicator uses Pine Script’s request.security function to fetch the previous day’s OHLC data from the daily timeframe ('D').
Dynamic Line and Label Management:
Persistent variables (var) store line and label references.
Old lines and labels are deleted and recreated at the start of each new day, ensuring a clutter-free chart.
Customizable Line Styles and Colors:
A mapping function (f_map_line_style) dynamically assigns line styles based on user input (Solid, Dashed, Dotted).
Separate inputs allow users to define distinct colors and styles for each level.
Independent Toggles:
Separate ON/OFF controls for High/Low and Open/Close lines and labels for maximum flexibility.
Clean Design:
The script ensures all plotted elements are dynamically adjusted to keep the chart clean and focused on actionable data.
How to Use:
Add the indicator to your chart.
Customize levels, colors, and styles via the "Inputs" and "Style" settings.
Analyze the plotted levels to identify key price zones for potential support, resistance, or breakout areas.
High and Low in a Given Date/Time RangeThis Pine Script v5 indicator plots horizontal lines at both the highest and lowest price levels reached within a user-defined date/time range.
Description:
Inputs:
The user specifies a start and an end date/time by providing the year, month, day, hour, and minute for each. These inputs are converted into timestamps based on the chart’s timezone.
How It Works:
Timestamp Conversion: The script converts the provided start and end dates/times into timestamps using the chart’s timezone.
Bar Check: It examines every bar and checks if the bar’s timestamp falls between the start and end timestamps.
Price Updates:
If a bar’s time is within the specified range, the indicator updates the highest price if the current bar's high exceeds the previously recorded high, and it updates the lowest price if the current bar's low is lower than the previously recorded low.
Drawing Lines:
A red horizontal line is drawn at the highest price, and a green horizontal line is drawn at the lowest price. Both lines start from the first bar in the range and extend dynamically to the current bar, updating as new high or low values are reached.
End of Range: Once a bar's time exceeds the end timestamp, the lines stop updating.
This tool offers a clear and straightforward way to monitor key price levels during a defined period without any extra fluff.
Pivot Point Calculator PPC V2 by [KhedrFx]📈 Trade Smarter with the Pivot Point Calculator (PPC) by KhedrFx
Want to spot key price levels and make better trading decisions? The Pivot Point Calculator (PPC) by KhedrFx is your go-to TradingView tool for identifying potential support and resistance zones. Whether you’re a Scalper trader, day trader, swing trader, or long-term investor, this script helps you plan precise entries and exits with confidence.
🔹 How to Use Pivot Points in Trading
📊 Step 1: Identify Key Levels
The PPC automatically plots:
Pivot Point (P): The main level where sentiment shifts between bullish and bearish.
Support Levels (S1, S2, S3): Areas where price may bounce higher.
Resistance Levels (R1, R2, R3): Areas where price may face selling pressure.
These levels act as dynamic price zones, helping you anticipate potential market movements.
🔥 Step 2: Choose Your Trading Strategy
1️⃣ Breakout Trading
Buy when the price breaks above the pivot point (P) with strong momentum.
Sell when the price drops below the pivot point (P) with strong momentum.
Use R1, R2, or R3 as profit targets in an uptrend and S1, S2, or S3 in a downtrend.
2️⃣ Reversal (Bounce) Trading
Buy when the price pulls back to S1, S2, or S3 and shows bullish confirmation (e.g., candlestick patterns like a bullish engulfing or hammer).
Sell when the price rallies to R1, R2, or R3 and shows bearish confirmation (e.g., rejection wicks or a bearish engulfing pattern).
🎯 Step 3: Set Smart Stop-Loss & Take-Profit Levels
Stop-Loss: Place it slightly below support (for buy trades) or above resistance (for sell trades).
Take-Profit: Use the next pivot level as a target.
Extreme Zones: R3 and S3 often signal strong reversals or breakouts—watch them closely!
🚀 How to Get Started
1️⃣ Add the PPC script to your TradingView chart.
2️⃣ Choose a timeframe that fits your strategy (5m, 15m, 30m, 1H, 4H, Daily, or Weekly).
3️⃣ Use the pivot points and support/resistance levels to fine-tune your trade entries, exits, and risk management.
⚠️ Trade Responsibly
This tool helps you analyze the market, but it’s not a guarantee of profits. Always do your own research, manage risk, and trade with caution.
💡 Ready to take your trading to the next level? Try the Pivot Point Calculator (PPC) by KhedrFx and start trading with confidence today! 🚀
ATR Stop Loss & 3 TP FinderATR Stop Loss & 3 TP Finder - By SeehraSingh
This indicator is designed to help traders automate Stop Loss (SL) and Take Profit (TP) placement based on the Average True Range (ATR). It dynamically calculates:
Stop Loss (SL): Set based on a user-defined ATR multiplier.
Three Take Profit (TP) levels: Configurable ATR multipliers for TP1, TP2, and TP3.
Customizable Price Sources: Allows traders to choose different price sources (Open, High, Low, Close, HL2, HLC3, OHLC4, HLCC4) for both SL and TP calculations.
Visual Representation: Plots dashed lines for Entry, SL, TP1, TP2, and TP3.
Table Display: Provides an easy-to-read table at the bottom showing SL, TP1, TP2, and TP3 values.
How It Works:
Select ATR length and smoothing type (RMA, SMA, EMA, WMA).
Set ATR multipliers for SL and TP levels.
Choose the price source for SL and TP calculations.
The indicator automatically plots entry, SL, and three TP levels on the chart.
Ideal For:
Traders who use ATR-based dynamic Stop Loss and Take Profit strategies.
Those who want to avoid fixed SL/TP placements and prefer volatility-based risk management.
Scalpers, Swing Traders, and Position Traders looking for automated SL/TP visualization.
Disclaimer
⚠️ Trading involves risk. This indicator is for educational purposes only and should not be considered financial advice. Always conduct your own analysis before entering any trade. The author is not responsible for any financial losses incurred while using this tool. Past performance does not guarantee future results.
Time-Weighted Price Action IndicatorThe Time-Weighted Price Action Indicator is a simple yet effective tool designed to detect consolidation zones based on time duration and highlight potential reversal points using a contrarian breakout logic. Instead of following traditional breakout strategies, this indicator aims to capitalize on false breakouts and reversal entries.
How It Works
• The indicator identifies a price range (zone) using a configurable lookback period.
• If the price remains within this range for a specified number of bars (threshold), a consolidation zone is confirmed.
• Once a breakout or breakdown from this zone occurs, the indicator triggers a reversed signal — suggesting a potential reversal instead of a trend-following entry.
• Support and resistance levels are marked visually, and BUY/SELL labels are plotted when price re-enters the zone, indicating potential exhaustion or traps.
Key Features
• ✅ Time-based consolidation detection
• ✅ Contrarian signal logic (Buy at breakdowns, Sell at breakouts)
• ✅ Dynamic zone plotting with support/resistance visualization
• ✅ Auto-reset after each breakout for fresh zone detection
• ✅ Visual labels and alerts for BUY/SELL signals
How to Use
• Ideal for range-bound markets or identifying trap zones around support/resistance.
• Use in conjunction with volume, momentum, or trend filters to refine entries.
• Can complement mean reversion strategies or be used as a signal confirmation tool.
Why This Combination?
This approach blends time-based consolidation logic with a contrarian price action perspective, offering traders a different lens to analyze markets. Instead of blindly following breakouts, it highlights areas where price rejections and false breakouts often occur — common in algorithm-driven markets.
Why It’s Worth Using
This indicator helps you stay ahead of trap zones, identify reversal spots, and understand price behavior in consolidation zones — a critical edge, especially in sideways or choppy markets. It adds context to price movement, helping traders avoid common breakout failures.
Note:
• No performance guarantees or exaggerated claims.
• No solicitation or promotional language used.
• This is a free, open-source educational tool meant to aid price action understanding.
Cumulative New Highs - New Lows IndicatorThis indicator is designed to track market momentum by calculating and plotting the cumulative sum of 52 weeks High-Low for different indices, alongside a customizable moving average.
Index Selection:
Users can choose from multiple indices, including:
Total Stock Market (default)
NYSE Composite
Nasdaq Composite
S&P 500
Nasdaq 100
Russell 2000
Moving Average Customization:
The script allows you to select between a Simple Moving Average (SMA) or an Exponential Moving Average (EMA) for smoothing the cumulative data. The window length of the moving average is also adjustable, letting you tailor the sensitivity of the trend analysis.
Dynamic Background Plotting:
With the background plot option enabled, the indicator changes the chart's background color dynamically:
Green: When the cumulative sum is above its moving average, suggesting bullish momentum.
Red: When it is below the moving average, indicating bearish conditions.
Visual Representation:
Two key lines are plotted:
Cumulative Index Line: Displayed in a subtle blue, representing the aggregated market movement.
Moving Average Line: Shown in an orange tone, offering a smoothed perspective that aids in identifying trend shifts.
Inspiration:
I took inspiration from the indicator made by YoxTrades (I can't put links, but you can check their profile) and added a few features I wanted on top of it.
Fibonacci Pivot Points & Previous D,W&M Highs/LowsIndicator Overview
This indicator combines Fibonacci Pivot Points with previous high and low levels for different timeframes (day, week, month). It plots these levels on the chart to provide traders with key support and resistance areas, making it easier to identify potential trading opportunities.
Features
Fibonacci Pivot Points:
The indicator calculates pivot points based on the high, low, and close prices.
Fibonacci levels are used to determine support (S1, S2, S3, S4, S5) and resistance (R1, R2, R3, R4, R5) levels.
Users can customize the Fibonacci levels for both support and resistance.
Previous Highs and Lows:
The indicator plots previous day, week, and month high and low levels.
Each of these lines can be customized in terms of visibility, color, and width.
This helps traders to see key historical levels that might act as support or resistance in the future.
Inputs and Customization:
Fibonacci Time Frame:
Users can select the timeframe for calculating the pivot points (Daily, Weekly, Monthly).
Fibonacci Levels:
Customizable input fields for each Fibonacci level (R1, R2, R3, R4, R5, S1, S2, S3, S4, S5).
Previous High/Low Lines:
Day Lines:
Options to show or hide previous day's high/low lines.
Customizable color and width for these lines.
Week Lines:
Options to show or hide previous week's high/low lines.
Customizable color and width for these lines.
Month Lines:
Options to show or hide previous month's high/low lines.
Customizable color and width for these lines.
Technical Calculations:
Fibonacci Pivot Points:
Calculated as:
pp = (High + Low + Close) / 3
S1 = pp - ((High - Low) * Fibonacci Level)
R1 = pp + ((High - Low) * Fibonacci Level)
Previous High/Low Levels:
Uses request.security to fetch previous high and low values for the selected timeframe.
Plotted using line.new to draw lines across the chart.
Plotting:
The indicator plots Fibonacci Pivot Points and previous high/low lines on the chart, using distinct colors for each level.
Customizable transparency and linewidths make it easier to visually interpret the levels.
This indicator is particularly useful for traders who rely on technical analysis to identify key support and resistance levels, offering a blend of historical data and Fibonacci-based predictions.
Feel free to ask if you have any specific questions or need further adjustments!
Long and Short Term Highs and LowsLong and Short Term Highs and Lows
Overview:
This indicator is designed to help traders identify significant price points by marking new highs and lows over two distinct timeframes—a long-term and a short-term period. It achieves this by drawing optional channel lines that outline the highest highs and lowest lows over the chosen time periods and by plotting visual markers (triangles) on the chart when a new high or low is detected.
Key Features:
Dual Timeframe Analysis:
Long Term: Uses a user-defined “Time Period” (default 52) and “Time Unit” (default: Weekly) to determine long-term high and low levels.
Short Term: Uses a separate “Time Period” (default 50) and “Time Unit” (default: Daily) to compute short-term high and low levels.
Optional Channel Display:
For both long and short term periods, you have the option to display a channel by plotting the highest and lowest values as lines. This visual channel helps to delineate the range within which the price has traded over the selected period.
New High/Low Markers:
The indicator identifies moments when the highest high or lowest low is updated relative to the previous bar.
When a new high is established, an up triangle is plotted above the bar.
Conversely, when a new low occurs, a down triangle is plotted below the bar.
Separate input toggles allow you to enable or disable these markers independently for the long-term and short-term setups.
Inputs and Settings:
Long Term High/Low Period Settings:
Show New High/Low? (STW): Toggle to enable or disable the plotting of new high/low markers for the long-term period.
Time Period: The number of bars used to calculate the highest high and lowest low (default is 52).
Time Unit: The timeframe on which the long-term calculation is based (default is Weekly).
Show Channel? (SCW): Toggle to display the channel lines that connect the long-term high and low levels.
Short Term High/Low Period Settings:
Show New High/Low?: Toggle to enable or disable the plotting of new high/low markers for the short-term period.
Time Period: The number of bars used for calculating the short-term extremes (default is 50).
Time Unit: The timeframe on which the short-term calculations are based (default is Daily).
Show Channel?: Toggle to display the channel lines for the short-term highs and lows.
Indicator Logic:
Channel Calculation:
The script uses the request.security function to pull data from the specified timeframes. For each timeframe:
It calculates the lowest low over the defined period using ta.lowest.
It calculates the highest high over the defined period using ta.highest.
These values can be optionally plotted as channel lines when the “Show Channel?” option is enabled.
New High/Low Detection:
For each timeframe, the indicator compares the current high (or low) with its immediate previous value:
New High: When the current high exceeds the previous bar’s high, an up triangle is drawn above the bar.
New Low: When the current low falls below the previous bar’s low, a down triangle is drawn below the bar.
Usage and Interpretation:
Trend Identification:
When new highs (or lows) occur, they can signal the start of a strong upward (or downward) movement. The indicator helps you visually track these critical turning points over both longer and shorter periods.
Channel Breakouts:
The optional channel display offers additional context. Price movement beyond these channels may indicate a breakout or a significant shift in trend.
Customizable Timeframes:
You can adjust both the time period and time unit to fit your trading style—whether you’re focusing on longer-term trends or short-term price action.
Conclusion:
This indicator provides a dual-layer analysis by combining long-term and short-term perspectives, making it a versatile tool for identifying key highs and lows. Whether you are looking to confirm trend strength or spot potential breakouts, the “Long and Short Term Highs and Lows” indicator adds a valuable visual element to your TradingView charts.
AdvancedLines (FiboBands) - PaSKaL
Overview :
AdvancedLines (FiboBands) - PaSKaL is an advanced technical analysis tool designed to automate the plotting of key Fibonacci retracement levels based on the highest high and lowest low over a customizable period. This indicator helps traders identify critical price zones such as support, resistance, and potential trend reversal or continuation points.
By using AdvancedLines (FiboBands) - PaSKaL , traders can easily spot key areas where the price is likely to reverse or consolidate, or where the trend may continue. It is particularly useful for trend-following, scalping, and range-trading strategies.
Key Features:
Automatic Fibonacci Level Calculation :
- The indicator automatically calculates and plots key Fibonacci levels (0.236, 0.382, 0.5, 0.618, and 0.764), which are crucial for identifying potential support and resistance levels in the market.
Adjustable Parameters :
- Bands Length: You can adjust the bands_length setting to change the number of bars used for calculating the highest high and lowest low. This gives flexibility for using the indicator on different timeframes and trading styles.
- Visibility: The Fibonacci levels, as well as the midline (0.5 Fibonacci level), can be shown or hidden based on your preference.
- Color Customization: You can change the color of each Fibonacci level and background fills to suit your chart preferences.
Fibonacci Levels
- The main Fibonacci levels plotted are:
- 0.236 – Minor support/resistance level
- 0.382 – Moderate retracement level
- 0.5 – Midpoint retracement, often used as a key level
- 0.618 – Golden ratio, considered one of the most important Fibonacci levels
- 0.764 – Strong reversal level, often indicating a continuation or change in trend
Background Fill
- The indicator allows you to fill the background between the Fibonacci levels and the bands with customizable colors. This makes it easier to visually highlight key zones on the chart.
How the Indicator Works:
AdvancedLines (FiboBands) - PaSKaL calculates the range (difference between the highest high and the lowest low) over a user-defined number of bars (e.g., 300). Fibonacci levels are derived from this range, helping traders identify potential price reversal points.
Mathematical Basis :
Fibonacci retracement levels are based on the Fibonacci sequence, where each number is the sum of the previous two (0, 1, 1, 2, 3, 5, 8, 13, etc.). The ratios derived from this sequence (such as 0.618 and 0.382) have been widely observed in nature, market cycles, and price movements. These ratios are used to forecast potential price retracements or continuation points after a major price move.
Fibonacci Levels Calculation :
Identify the Range: The highest high and the lowest low over the defined period are calculated.
Apply Fibonacci Ratios: Fibonacci ratios (0.236, 0.382, 0.5, 0.618, and 0.764) are applied to this range to calculate the corresponding price levels.
Plot the Levels: The indicator automatically plots these levels on your chart.
Customizing Fibonacci Levels & Colors:
The "AdvancedLines (FiboBands) - PaSKaL" indicator offers various customization options for Fibonacci levels, colors, and visibility:
Fibonacci Level Ratios:
- You can customize the Fibonacci level ratios through the following inputs:
- Fibo Level 1: 0.764
- Fibo Level 2: 0.618
- Fibo Level 3: 0.5
- Fibo Level 4: 0.382
- Fibo Level 5: 0.236
- These levels determine key areas where price may reverse or pause. You can adjust these ratios based on your trading preferences.
Fibonacci Level Colors:
- Each Fibonacci level can be assigned a different color to make it more distinguishable on your chart:
- Fibo Level 1 Color (default: Yellow)
- Fibo Level 2 Color (default: Orange)
- Fibo Level 3 Color (default: Green)
- Fibo Level 4 Color (default: Red)
- Fibo Level 5 Color (default: Blue)
- You can change these colors to fit your visual preferences or to align with your existing chart themes.
Visibility of Fibonacci Levels:
- You can choose whether to display each Fibonacci level using the following visibility inputs:
- Show Fibo Level 1 (0.764): Display or hide this level.
- Show Fibo Level 2 (0.618): Display or hide this level.
- Show Fibo Level 3 (0.5): Display or hide this level.
- Show Fibo Level 4 (0.382): Display or hide this level.
- Show Fibo Level 5 (0.236): Display or hide this level.
- This allows you to customize the indicator according to the specific Fibonacci levels that are most relevant to your trading strategy.
Background Fill Color
- The background between the Fibonacci levels and price bands can be filled with customizable colors:
- Fill Color for Upper Band & Fibo Level 1: This color will fill the area between the upper band and Fibonacci Level 1.
- Fill Color for Lower Band & Fibo Level 5: This color will fill the area between the lower band and Fibonacci Level 5.
- Adjusting these colors helps highlight critical zones where price may reverse or consolidate.
How to Use AdvancedLines (FiboBands) - PaSKaL in Trading :
Range Trading :
Range traders typically buy at support and sell at resistance. Fibonacci levels provide excellent support and resistance zones in a ranging market.
Example: If price reaches the 0.618 level in an uptrend, it may reverse, providing an opportunity to sell.
Conversely, if price drops to the 0.382 level, a bounce might occur, and traders can buy, anticipating the market will stay within the range.
Trend-following Trading :
For trend-following traders, Fibonacci levels act as potential entry points during a retracement. After a strong trend, price often retraces to one of the Fibonacci levels before continuing in the direction of the trend.
Example: In a bullish trend, when price retraces to the 0.382 level, it could be a signal to buy, as the price might resume its upward movement after the correction.
In a bearish trend, retracements to levels like 0.618 or 0.764 could provide optimal opportunities for shorting as the price resumes its downward movement.
Scalping :
Scalpers focus on short-term price movements. Fibonacci levels can help identify precise entry and exit points for quick trades.
Example: If price is fluctuating in a narrow range, a scalper can enter a buy trade at 0.236 and exit at the next Fibonacci level, such as 0.382 or 0.5, capturing small but consistent profits.
Stop-Loss and Take-Profit Levels :
Fibonacci levels can also help in setting stop-loss and take-profit levels.
Example: In a bullish trend, you can set a stop-loss just below the 0.236 level and a take-profit at 0.618.
In a bearish trend, set the stop-loss just above the 0.382 level and the take-profit at 0.764.
Identifying Reversals and Continuations :
Reversals: When price reaches a Fibonacci level and reverses direction, it may indicate the end of a price move.
Trend Continuation: If price bounces off a Fibonacci level and continues in the same direction, this may signal that the trend is still intact.
Conclusion :
AdvancedLines (FiboBands) - PaSKaL is an essential tool for any trader who uses Fibonacci retracements in their trading strategy. By automatically plotting key Fibonacci levels, this indicator helps traders quickly identify support and resistance zones, forecast potential reversals, and make more informed trading decisions.
For Trend-following Traders: Use Fibonacci levels to find optimal entry points after a price retracement.
For Range Traders: Identify key levels where price is likely to reverse or bounce within a range.
For Scalpers: Pinpoint small price movements and take advantage of quick profits by entering and exiting trades at precise Fibonacci levels.
By incorporating AdvancedLines (FiboBands) - PaSKaL into your trading setup, you will gain a deeper understanding of price action, improve your decision-making process, and enhance your overall trading performance.
Hammer Detector### Hammer Pattern Detector
The Hammer Pattern Detector is a specialized technical analysis tool designed to identify high-probability hammer candlestick patterns. This indicator uses precise mathematical calculations to detect hammer patterns that meet specific criteria, helping traders identify potential market reversals.
#### Key Features
- Precise detection of hammer patterns based on shadow-to-body ratios
- Customizable parameters for fine-tuning pattern recognition
- Visual alerts with markers above qualifying candles
- Built-in alert functionality for real-time notifications
#### Parameters
1. **Shadow Length Multiplier (min)**: Controls how many times longer the lower shadow must be compared to the candle body (default: 2.0)
2. **Maximum Upper Shadow (%)**: Sets the maximum allowed length for the upper shadow as a percentage of total candle length (default: 10%)
3. **Minimum Body to High Distance (%)**: Defines how close the body must be to the high of the candle (default: 90%)
#### Detection Criteria
The indicator identifies hammer patterns based on three main conditions:
- Lower shadow must be at least twice the length of the body (adjustable)
- Upper shadow must be minimal (max 10% of total candle length by default)
- Candle body must be positioned near the high of the candle
#### Use Cases
- Identifying potential trend reversals
- Finding entry points in oversold conditions
- Confirming support levels
- Part of a broader reversal strategy
#### Tips for Best Results
- Use in conjunction with support/resistance levels
- Combine with volume analysis for confirmation
- Consider overall market context and trend
- Adjust parameters based on your trading timeframe
#### Installation
1. Add the indicator to your chart
2. Adjust the parameters according to your trading style
3. Optional: Set up alerts for real-time notifications
#### About
Created by WK
Version: 1.0
All rights reserved ©WK
For questions or suggestions, please reach out through TradingView.
Automatic Fibonacci retracement based on the highest high and loThe chart is fractal, meaning that what happens can always be broken down into smaller portions.
This is often seen in various AR (Algorithmic Rules) concepts, such as breakers, order blocks, etc., where the price reacts.
I’ve visualized this behavior with this indicator.
This indicator takes the highest high and the lowest low from the past 5 weeks, excluding the current week.
The lowest low will represent 0%, and the highest high will represent 100% (green lines).
It then divides this range into 25%, 50%, 75%, and 100% levels (red and blue lines).
The indicator works on all charts and all timeframes, automatically adjusting when you switch charts or timeframes. No manual input is required.
Additionally, above 100%, it will create levels at 125%, 150%, 175%, and 200%, while below 0%, it will create levels at -25%, -50%, -75%, and -100%.
Your chart will now be divided into these 25% levels, allowing you to observe how the price either respects or breaks through them.
Again, this isn’t something “groundbreaking,” but simply a visual aid to identify levels where the price finds support/resistance or breaks through.
It helps me gain a broader perspective and determine whether my trade is moving in the right direction or if I should remain cautious.
Chained Inside BarsThis script identifies consecutive inside bars by referencing only the most recent non-inside bar, so it avoids excessive lookback. An “inside” bar means its high is lower than the reference bar’s high, and its low is higher than the reference bar’s low. If the current bar is inside, it’s colored white; once price breaks outside, the script updates that new bar as the next reference.
Key Points
• Bars are compared against the last non-inside bar, chaining consecutive inside bars off that same reference bar.
• Inside bars are highlighted in white (non-inside bars retain default chart colors).
• Includes an alert condition for when a new inside bar forms.
• Prevents large dynamic indexing, making it more stable and efficient.
Use this indicator to quickly spot consecutive inside-bar formations without needing to track every single bar-to-bar relationship.
GL_Prev Week HighThe GL_Prev Week High Indicator is a powerful tool designed to enhance your trading analysis by displaying the previous week's high price directly on your chart. With clear and customizable visuals, this indicator helps traders quickly identify critical price levels, enabling more informed decision-making.
Key Features:
Previous Week's High Line:
Displays the previous week's high as a red line on your chart for easy reference.
Customizable Horizontal Line:
Includes a white horizontal line for enhanced clarity, with adjustable length, color, and width settings.
All-Time High Tracking:
Automatically tracks the all-time high from the chart's history and places a dynamic label above it.
Real-Time Updates:
The indicator updates in real-time to ensure accuracy as new bars are added.
User Inputs for Personalization:
Adjust the left and right span of the horizontal line.
Customize line width and color to suit your preferences.
Use Case:
This indicator is ideal for traders looking to integrate the previous week's high as a key support or resistance level in their trading strategy. Whether you are analyzing trends, identifying breakout zones, or planning entry/exit points, this tool provides valuable insights directly on the chart.
How to Use:
Add the indicator to your chart.
Customize the settings (line length, width, and color) through the input panel to match your preferences.
Use the red line to track the previous week's high and the label to monitor all-time highs effortlessly.
License:
This script is shared under the Mozilla Public License 2.0. Feel free to use and adapt the script as per the license terms.
HTF Hi-Lo Zones [CHE]HTF Hi-Lo Zones Indicator
The HTF Hi-Lo Zones Indicator is a Pine Script tool designed to highlight important high and low values from a selected higher timeframe. It provides traders with clear visual zones where price activity has reached significant points, helping in decision-making by identifying potential support and resistance levels. This indicator is customizable, allowing users to select the resolution type, control the visualization of session ranges, and even display detailed information about the chosen timeframe.
Key Functionalities
1. Timeframe Resolution Selection:
- The indicator offers three modes to determine the resolution:
- Automatic: Dynamically calculates the higher timeframe based on the current chart's resolution.
- Multiplier: Allows users to apply a multiplier to the current chart's timeframe.
- Manual: Enables manual input for custom resolution settings.
- Each resolution type ensures flexibility to suit different trading styles and strategies.
2. Data Fetching for High and Low Values:
- The indicator retrieves the current high and low values for the selected higher timeframe using `request.security`.
- It also calculates the lowest and highest values over a configurable lookback period, providing insights into significant price movements within the chosen timeframe.
3. Session High and Low Detection:
- The indicator detects whether the current value represents a new session high or low by comparing the highest and lowest values with the current data.
- This is crucial for identifying breakouts or significant turning points during a session.
4. Visual Representation:
- When a new session high or low is detected:
- Range Zones: A colored box marks the session's high-to-low range.
- Labels: Optional labels indicate "New High" or "New Low" for clarity.
- Users can customize colors, transparency, and whether range outlines or labels should be displayed.
5. Information Box:
- An optional dashboard displays details about the chosen timeframe resolution and current session activity.
- The box's size, position, and colors are fully customizable.
6. Session Tracking:
- Tracks session boundaries, updating the visualization dynamically as the session progresses.
- Displays session-specific maximum and minimum values if enabled.
7. Additional Features:
- Configurable dividers for session or daily boundaries.
- Transparency and styling options for the displayed zones.
- A dashboard for advanced visualization and information overlay.
Key Code Sections Explained
1. Resolution Determination:
- Depending on the user's input (Auto, Multiplier, or Manual), the script determines the appropriate timeframe resolution for higher timeframe analysis.
- The resolution adapts dynamically based on intraday, daily, or higher-period charts.
2. Fetching Security Data:
- Using the `getSecurityDataFunction`, the script fetches high and low values for the chosen timeframe, including historical and real-time data management to avoid repainting issues.
3. Session High/Low Logic:
- By comparing the highest and lowest values over a lookback period, the script identifies whether the current value is a new session high or low, updating session boundaries and initiating visual indicators.
4. Visualization:
- The script creates visual representations using `box.new` for range zones and `label.new` for session labels.
- These elements update dynamically to reflect the most recent data.
5. Customization Options:
- Users can configure the appearance, behavior, and displayed data through multiple input options, ensuring adaptability to individual trading preferences.
This indicator is a robust tool for tracking higher timeframe activity, offering a blend of automation, customization, and visual clarity to enhance trading strategies.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Best regards and happy trading
Chervolino
Fair Value Gap DetectorHow this indicator works:
It detects two types of FVGs:
Bullish FVG: Occurs when the low of the current candle is higher than the high of the candle from 2 bars ago (creates an upward gap)
Bearish FVG: Occurs when the high of the current candle is lower than the low of the candle from 2 bars ago (creates a downward gap)
Features:
Allows users to toggle both bullish and bearish FVG detection independently
Customizable colors for both bullish (default green) and bearish (default red) FVGs
Visualizes FVGs using:
Boxes that highlight the gap area (with 80% transparency)
Labels that mark each FVG ("Bull FVG" or "Bear FVG")
Visual representation:
Bullish FVGs are marked with green boxes and downward-pointing labels
Bearish FVGs are marked with red boxes and upward-pointing labels
This indicator can be useful for :
Identifying potential areas where price might return to
Finding potential support and resistance zones
Understanding market structure and momentum shifts
Alert Kabi Family Unlimited Alarm indicator for any time frame and any type of currency, stock and index
اندییکاتور آلارم نامحدود برای هر تایم فریم و هر شاخص و ارز و سهام
Settings :
1- Before starting, clear all alarms in the trading view alarm section
2- Specify your alarm areas and currency pairs in the indicator settings section
3- Go to the trading view alarm section, click create alert, select the name of the indicator and click OK
4- Good Luck
T e L : @Ar3781
1- قبل از شروع تمام آلارم های تریدینگ ویو را پاک کنید
2- در قسمت تنظیمات اندیکاتور نواحی آلارم و جفت ارز خود را مشخص کنید
3- به قسمت الارم تریدینگ ویو رفته ایجاد هشدار را زده و اسم اندیکاتور را انتخاب کنید و اوکی کنید
4- مـــــــوفق بــــــاشـید
Cumulative volume analysisAfter user define the ragion area. While break out the region area, you can try this indicator to notice when the power is ended and maybe reverse the trend.
1. The user enters the start time, and end time
2. The indicator will record the highest, lowest price, and cumulative amount during this period.
The cumulative amount is calculated by adding up the amount of each K bar, regardless of whether it rises or falls.
3. When the cumulative amount is reduced to less than or equal to 0, make a plotshape arrow
4.There are two diferent method to record the volume. Try the better way to different product.
Dynamic RSI with Overbought/Oversold LinesDynamic RSI with Overbought/Oversold Lines
This indicator enhances the traditional RSI (Relative Strength Index) by dynamically adjusting the overbought and oversold levels based on the highest and lowest RSI values over a user-defined period. The indicator plots these levels as horizontal lines, allowing traders to visually identify when the market is "overbought" or "oversold."
Features:
Dynamic Overbought/Oversold Levels: Automatically adjusts the overbought and oversold levels based on the highest and lowest RSI values within the defined period, ensuring more accurate signals tailored to the current market conditions.
Customizable RSI Period: Choose your preferred RSI period to suit your trading strategy.
Signal Alerts: Visual signals are displayed when the RSI crosses into the overbought or oversold zone, indicating potential reversal points.
Background Color Alerts: The background changes color when the RSI exceeds overbought or oversold levels, making it easier to spot these important zones at a glance.
Clean and Simple: A minimalist design focusing on the key elements, making it suitable for all traders.
How to Use:
Overbought Zone: When the RSI moves above the overbought line (red), it may indicate that the asset is overbought, signaling a potential price reversal or pullback.
Oversold Zone: When the RSI moves below the oversold line (green), it may indicate that the asset is oversold, signaling a potential price bounce or reversal.
This dynamic RSI indicator is perfect for those looking to capture market extremes and improve their trading decisions. It's especially useful for timeframes like 30-minute and 1-hour charts, where market conditions tend to shift more rapidly.
Volume Index (0-100)Volume Index (0-100) Indicator
The Volume Index (0-100) indicator is a powerful tool designed to help traders understand current volume levels in relation to past activity over a specified period. By normalizing volume data to a scale from 0 to 100, this indicator makes it easy to compare today's volume against recent history and gauge the strength of market movements.
Key Features:
Normalized Volume Index: The indicator indexes volume between 0 and 100, allowing traders to easily determine if the current volume is unusually high or low compared to recent trends.
Colored Visualization: The line graph is colored green for positive volume (increasing activity) and red for negative volume (decreasing activity). This helps traders quickly grasp the market sentiment and volume direction.
User-Defined Lookback Period: Traders can customize the lookback period to best fit their trading strategy, providing flexibility for different market conditions.
How Traders Can Use It:
Identifying Volume Extremes: The Volume Index helps identify periods of unusually high or low volume. Values approaching 100 indicate high volume, while values close to 0 indicate low volume.
Confirmation Tool: During price movements, high volume (near 100) can act as a confirmation signal for the strength of the trend. For instance, a high volume during an uptrend may indicate strong buying interest.
Divergence Analysis: Traders can look for divergences between volume and price. For example, if the price is consolidating while the Volume Index remains high, it could signal an impending breakout.
Volume Alerts: The indicator includes an alert feature when the Volume Index exceeds 80, helping traders stay informed about potential shifts in market volatility.