ATR Price Range Prediction V.2### ATR Price Range Prediction V.2
This script calculates the expected high and low prices for the current day based on the Average True Range (ATR) and displays the proportion of days where the daily range (high - low) is greater than or equal to the ATR. Additionally, the script provides an option to adjust the size of the text displayed in the top-right corner of the chart.
#### How It Works
1. **ATR Calculation**: The script calculates the ATR for a specified period (`atrPeriod`). ATR is a measure of volatility that represents the average range between the high and low prices over a specified number of periods.
2. **Expected High and Low Calculation**:
- **Expected High**: Calculated by adding the ATR value to the low price of the current day.
- **Expected Low**: Calculated by subtracting the ATR value from the high price of the current day.
3. **Proportion Calculation**: The script calculates the proportion of days where the daily range (high - low) is greater than or equal to the ATR value. This proportion is updated in real-time as new data comes in.
4. **Table Display**: Instead of displaying labels on each candle, the script shows the expected high, expected low, and the calculated proportion in a table located at the top-right corner of the chart. The size of the text in this table can be adjusted using the `Table Size` input.
5. **Color Coding**: The script changes the color of the bars to yellow if the daily range is greater than or equal to the ATR value, making it easy to identify these bars visually.
#### How to Use
- **ATR Period (`atrPeriod`)**: Adjust the period for the ATR calculation using the input parameter. The default value is 14.
- **Table Size (`tableSizeOption`)**: Choose the size of the text displayed in the table. Options include `tiny`, `small`, `normal`, `large`, and `huge`.
- **Expected High and Low**: Use the green and red lines to identify potential target prices or stop-loss levels for your trades. The green line represents the expected high, and the red line represents the expected low.
- **Proportion**: The table in the top-right corner of the chart shows the proportion of days where the daily range is greater than or equal to the ATR value. This can provide insight into the volatility of the asset.
- **Color Coding**: Yellow bars indicate days where the daily range is greater than or equal to the ATR value.
---
### ภาษาไทย
### ATR คาดการณ์ราคาสูงสุดและต่ำสุด พร้อมสัดส่วน
สคริปต์นี้คำนวณราคาสูงสุดและต่ำสุดที่คาดการณ์สำหรับวันปัจจุบันโดยอิงจากค่าเฉลี่ยช่วงที่แท้จริง (ATR) และแสดงสัดส่วนของวันที่ช่วงราคาต่อวัน (สูง - ต่ำ) มากกว่าหรือเท่ากับค่า ATR นอกจากนี้ยังมีตัวเลือกในการปรับขนาดข้อความที่แสดงในกล่องข้อความมุมขวาบนของกราฟ
#### วิธีการทำงาน
1. **การคำนวณ ATR**: สคริปต์คำนวณค่า ATR สำหรับช่วงเวลาที่กำหนด (`atrPeriod`) ATR เป็นมาตรวัดความผันผวนที่แสดงช่วงเฉลี่ยระหว่างราคาสูงสุดและต่ำสุดในช่วงเวลาที่กำหนด
2. **การคำนวณราคาสูงสุดและต่ำสุดที่คาดการณ์**:
- **ราคาสูงสุดที่คาดการณ์**: คำนวณโดยการบวกค่า ATR กับราคาต่ำสุดของวันปัจจุบัน
- **ราคาต่ำสุดที่คาดการณ์**: คำนวณโดยการลบค่า ATR จากราคาสูงสุดของวันปัจจุบัน
3. **การคำนวณสัดส่วน**: สคริปต์คำนวณสัดส่วนของวันที่ช่วงราคาต่อวัน (สูง - ต่ำ) มากกว่าหรือเท่ากับค่า ATR สัดส่วนนี้จะอัปเดตแบบเรียลไทม์เมื่อมีข้อมูลใหม่เข้ามา
4. **การแสดงผลในตาราง**: แทนที่จะแสดงป้ายกำกับบนแท่งเทียนแต่ละแท่ง สคริปต์จะแสดงราคาสูงสุดที่คาดการณ์ ราคาต่ำสุดที่คาดการณ์ และสัดส่วนที่คำนวณในตารางที่มุมขวาบนของกราฟ โดยสามารถปรับขนาดข้อความในตารางได้
5. **การใช้สี**: สคริปต์จะเปลี่ยนสีของแท่งเทียนเป็นสีเหลืองหากช่วงราคาต่อวันมากกว่าหรือเท่ากับค่า ATR ทำให้สามารถระบุแท่งเทียนเหล่านี้ได้ง่ายขึ้น
#### วิธีการใช้งาน
- **ATR Period (`atrPeriod`)**: ปรับช่วงเวลาสำหรับการคำนวณ ATR โดยใช้พารามิเตอร์การป้อนค่า ค่าเริ่มต้นคือ 14
- **Table Size (`tableSizeOption`)**: เลือกขนาดข้อความที่แสดงในตาราง ตัวเลือกได้แก่ `tiny`, `small`, `normal`, `large`, และ `huge`
- **ราคาสูงสุดและต่ำสุดที่คาดการณ์**: ใช้เส้นสีเขียวและสีแดงเพื่อระบุราคาที่เป็นเป้าหมายหรือระดับการหยุดขาดทุนสำหรับการซื้อขายของคุณ เส้นสีเขียวแสดงถึงราคาสูงสุดที่คาดการณ์และเส้นสีแดงแสดงถึงราคาต่ำสุดที่คาดการณ์
- **สัดส่วน**: ตารางที่มุมขวาบนของกราฟแสดงสัดส่วนของวันที่ช่วงราคาต่อวันมากกว่าหรือเท่ากับค่า ATR ซึ่งสามารถให้ข้อมูลเชิงลึกเกี่ยวกับความผันผวนของสินทรัพย์
- **การใช้สี**: แท่งเทียนสีเหลืองบ่งบอกถึงวันที่ช่วงราคาต่อวันมากกว่าหรือเท่ากับค่า ATR
_____
Точки разворота и уровни
Open Interest liquidation map [Ox_kali]This script is inspired by @LeviathanCapital work on aggregating Open Interest , as presented in the Open Interest Suite Aggregated script. This script aims to provide a liquidation map of Open Interest by identifying significant anomalies across multiple trading platforms. By integrating data from Binance, BitMEX, and Kraken, this script tries to offer a comprehensive and detailed view of Open Interest movements and attempts to define zones of interest.
Key Points
1. Multiple Data Sources : The script retrieves Open Interest data from several trading platforms, including Binance (USDT, USD, BUSD), BitMEX (USD, USDT), and Kraken (USD).
2. Anomaly Detection : Utilizes a simple moving average (SMA) to calculate the average size of Open Interest candles and identify anomalies based on a user-specified size factor.
3. Background Coloring : Offers an option to color the background of the charts based on detected anomalies, allowing for clear visualization of significant movements.
4. Dynamic Support and Resistance Zones : Defines and dynamically updates support and resistance zones based on Open Interest anomalies.
5. Alerts : Configures alerts to notify the user when an Open Interest anomaly is detected.
Trading Utility
This script can be useful for monitoring significant changes in Open Interest and potential liquidation zones across multiple platforms. The main trading applications include:
1. Identifying Liquidation Points : By detecting Open Interest anomalies, it is possible to identify potential liquidation points where significant price movements might occur.
2. Multi-Platform Analysis : By aggregating Open Interest data from multiple platforms, a more comprehensive market overview is obtained.
3. Detecting Support and Resistance Zones : Dynamic support and resistance zones help identify key price levels where trend reversals might occur.
4. Customized Alerts: Anomaly alerts allow for automated responses to market changes.
Conclusion
The “Open Interest liquidation map ” script is an experimental tool for analyzing Open Interest across multiple trading platforms. Inspired by Leviathan’s work, this script attempts to identify liquidation and interest zones. This is an experimental version, and I welcome any comments and feedback for improvement.
Please note that the Open Interest liquidation map is not a guarantee of future market performance and should be used in conjunction with proper risk management. Always ensure that you have a thorough understanding of the indicator’s methodology and its limitations before making any investment decisions. Additionally, past performance is not indicative of future results.
Grid TraderGrid Trader Indicator ( GTx ):
Overview
The Grid Trader Indicator is a tool that helps traders visualize key levels within a specified trading range. The indicator plots accumulation and distribution levels, an entry level, an exit level, and a midpoint. This guide will help you understand how to use the indicator and its features for effective grid trading.
Basics of Trading Range, Grid Buy, and Grid Sell
Trading Range
A trading range is the horizontal price movement between a defined upper ( resistance ) and lower ( support ) level over a period of time. When a security trades within a range, it repeatedly moves between these two levels without trending upwards or downwards significantly. Traders often use the trading range to identify potential buy and sell points:
Upper Level (Resistance): This is the price level at which selling pressure overcomes buying pressure, preventing the price from rising further.
Lower Level (Support): This is the price level at which buying pressure overcomes selling pressure, preventing the price from falling further.
Grid Trading Strategy
Grid trading is a type of trading strategy that involves placing buy and sell orders at predefined intervals around a set price. It aims to profit from the natural market volatility by buying low and selling high in a range-bound market. The strategy divides the trading range into several grid levels where orders are placed.
Grid Buy
Grid buy orders are placed at intervals below the current price . When the price drops to these levels, buy orders are triggered . This strategy ensures that the trader buys more as the price falls, potentially lowering the average purchase price .
Grid Sell
Grid sell orders are placed at intervals above the current price . When the price rises to these levels, sell orders are triggered . This ensures that the trader sells portions of their holdings as the price increases, potentially securing profits at higher levels .
Key Points of Grid Trading
Grid Size : The interval between each buy and sell order. This can be constant (e.g., $2 intervals) or variable based on certain conditions.
Accumulation Range : The lower part of the trading range where buy orders are placed.
Distribution Range : The upper part of the trading range where sell orders are placed.
Midpoint : The average price of the entry and exit levels, often used as a reference point for balance.
As the price moves up and down within this range, your buy orders will be triggered as the price drops and your sell orders will be triggered as the price rises. This allows you to accumulate more of the asset at lower prices and sell portions at higher prices, profiting from the price oscillations within the defined range. Grid trading can be particularly effective in a sideways market where there is no clear long-term trend. However, it requires careful monitoring and adjustment of grid levels based on market conditions to minimize risks and maximize returns .
Configuring the Indicator :
Once the indicator is added, you will see a settings icon next to it. Click on it to open the settings menu.
Adjust the Upper Level , Lower Level , Entry Level , and Exit Level to match your trading strategy and market conditions.
Set the Levels Visibility to control how many bars back the levels will be plotted.
Interpreting the Levels :
Accumulation Levels : These are plotted below the entry level and are potential buy zones. They are labeled as Accumulation Level 1, 2, and 3.
Distribution Levels : These are plotted above the exit level and are potential sell zones. They are labeled as Distribution Level 1, 2, and 3.
Upper Level : Marked in fuchsia, indicating the top boundary of the trading range.
Exit Level : Marked in yellow, indicating the level at which you plan to exit trades.
Midpoint : Marked in white, indicating the average of the entry and exit levels.
Entry Level : Marked in yellow, indicating the level at which you plan to enter trades.
Lower Level : Marked in aqua, indicating the bottom boundary of the trading range.
By visualizing key levels, you can make informed decisions on where to place buy and sell orders, potentially maximizing your trading profits through systematic grid trading.
Leading MACDThe Moving Average Convergence Divergence (MACD) indicator is one of the most popular and versatile tools used by traders to identify potential buy and sell signals. It helps traders determine the strength and direction of a trend by comparing different moving averages of a security's price. The traditional MACD uses two exponential moving averages (EMAs), a fast EMA (typically 12 periods) and a slow EMA (typically 26 periods), along with a signal line (typically a 9-period EMA of the MACD line) to generate trading signals.
Our "Custom MACD with Leading Length" script for TradingView enhances the traditional MACD by introducing an additional smoothing factor called the "leading length." This customization aims to reduce noise and provide a potentially earlier indication of trend changes, making it a valuable tool for traders seeking to optimize their trading strategies.
- **Purpose:** This additional smoothing factor is designed to reduce noise and provide a potentially leading signal, enhancing the accuracy of trend identification.
## How It Works
1. **Calculate the MACD Line:**
The MACD line is calculated by subtracting the slow EMA from the fast EMA. This difference represents the convergence or divergence between the two EMAs.
2. **Calculate the Signal Line:**
The signal line is an EMA of the MACD line. This additional smoothing helps to generate clearer buy and sell signals based on crossovers with the MACD line.
3. **Calculate the Histogram:**
The histogram represents the difference between the MACD line and the signal line. It visually indicates the strength and direction of the trend. A positive histogram suggests a bullish trend, while a negative histogram indicates a bearish trend.
4. **Apply Leading Length Smoothing:**
To incorporate the leading length, the script applies a simple moving average (SMA) to both the MACD and signal lines using the leading length parameter. This additional smoothing helps to further reduce noise and potentially provides earlier signals of trend changes.
## Benefits of the Leading MACD
### Reduced Noise
The leading length parameter adds an extra layer of smoothing to the MACD and signal lines, helping to filter out market noise. This can be particularly beneficial in volatile markets, where frequent price fluctuations can generate false signals.
### Potential Early Signals
By smoothing the MACD and signal lines, the leading length can help to provide earlier indications of trend changes. This can give traders a potential edge in entering or exiting trades before the broader market reacts.
### Enhanced Trend Identification
The combination of the traditional MACD with the leading length smoothing can enhance the accuracy of trend identification. Traders can use this tool to confirm the strength and direction of trends, making it easier to make informed trading decisions.
### Versatility
The Custom MACD with Leading Length can be applied to various timeframes and asset classes, including stocks, forex, commodities, and cryptocurrencies. Its adaptability makes it a valuable tool for traders with different strategies and preferences.
## Practical Applications
### Buy Signal
A typical buy signal occurs when the MACD line crosses above the signal line. With the additional smoothing provided by the leading length, traders might receive this signal slightly earlier, allowing them to enter a long position sooner. This can be particularly advantageous in capturing the beginning of a bullish trend.
### Sell Signal
Conversely, a sell signal is generated when the MACD line crosses below the signal line. The leading length smoothing can help to provide this signal earlier, enabling traders to exit a long position or enter a short position before the trend reversal is fully recognized by the market.
### Divergence Analysis
Traders can also use the Custom MACD with Leading Length for divergence analysis. Bullish divergence occurs when the price makes a new low, but the MACD line forms a higher low. This suggests that the downward momentum is weakening, potentially leading to a bullish reversal. Bearish divergence is the opposite, where the price makes a new high, but the MACD line forms a lower high, indicating a potential bearish reversal.
### Confirmation Tool
The Custom MACD with Leading Length can be used in conjunction with other technical indicators to confirm trading signals. For example, traders might use it alongside support and resistance levels, trendlines, or other momentum indicators to validate their trade entries and exits.
## Conclusion
The Custom MACD with Leading Length is a powerful enhancement of the traditional MACD indicator. By introducing an additional smoothing factor, it aims to reduce noise and provide earlier signals of trend changes. This makes it a valuable tool for traders seeking to improve their market analysis and trading strategies.
Whether you are a day trader, swing trader, or long-term investor, the Custom MACD with Leading Length can help you make more informed decisions by offering clearer insights into market trends. Its adaptability to different timeframes and asset classes further enhances its utility, making it a versatile addition to any trader's toolkit.
Experiment with the parameters to find the optimal settings that suit your trading style and preferences. Use the Custom MACD with Leading Length to gain a deeper understanding of market dynamics and enhance your trading performance.
Auto Price LevelsMain Function:
This script creates horizontal lines on the chart at the market open price levels for different timeframes (4H, Daily, Weekly, Monthly). It helps traders track the open price levels and analyze their impact on the current price movements.
Unique Features:
Multi-Timeframe Support: The script allows users to display horizontal lines for 4-hour, daily, weekly, and monthly timeframes, providing a comprehensive view of market open prices across different periods.
Customization Options: Users can customize the line color, width, and style (solid, dotted, or dashed) for each timeframe separately, offering flexibility to match their charting preferences.
Sensitivity Setting: The script includes a sensitivity setting to filter lines based on the price movement percentage, allowing traders to focus on significant price levels.
Day Filter: Users can enable a day filter to limit the display of lines to a specific number of days, which helps in reducing chart clutter and focusing on recent price levels.
Automatic Updates: The script automatically updates the lines based on the latest market data, ensuring that traders always have the most relevant information.
Alerts: Integrated alert conditions notify traders when the price crosses above or below the open price on any of the specified timeframes, enabling timely decision-making.
How It Works:
Line Creation: For each selected timeframe, the script calculates the open price and compares it to the close price to determine the level at which the horizontal line should be drawn.
Line Management: The script manages the creation and deletion of lines to ensure only relevant lines are displayed, based on the user-defined sensitivity and day filter settings.
Customization: Through the input settings, traders can personalize the appearance and behavior of the lines to suit their specific trading strategies and preferences.
Alerts: The script sets up alert conditions that trigger notifications when the price crosses the open price levels, helping traders stay informed of critical market movements.
How to Use:
Select Timeframes: Enable or disable the display of lines for 4-hour, daily, weekly, and monthly timeframes as needed.
Customize Lines: Adjust the line color, width, and style for each timeframe using the input settings.
Set Sensitivity: Define the sensitivity percentage to filter lines based on significant price movements.
Enable Day Filter: If desired, enable the day filter and set the number of days to display lines.
Monitor Alerts: Set up alerts to receive notifications when the price crosses the open price levels on any of the chosen timeframes.
This script is designed to enhance traders' ability to monitor key price levels and make informed trading decisions. Its unique features and customization options provide a valuable tool for analyzing market open prices across multiple timeframes.
Multi-Timeframe MA Levels█ OVERVIEW
This Pine Script is an indicator for displaying multiple moving average (MA) levels from several timeframes on your TradingView charts. At the Realtime Bar (the right-most bar on your chart), it draws a line where the various moving averages currently are.
For example, it will show you where the 8 EMA on the 5 minute timeframe is on your 1-minute timeframe chart.
It derives its look and function from "Lepelle's Key Levels" and focuses on visualizing various moving averages to complement this indicator.
█ FEATURES
1 — Multi-Timeframe Analysis:
• The script allows traders to view moving averages from different timeframes on a single chart.
This multi-timeframe approach helps identify significant levels and trends that might not be apparent when looking at a single timeframe.
2 — Customization and Flexibility:
• Extensive input options for customizing the appearance of the lines (width, style, color) and labels (size, position, distance from price).
This ensures that the indicator can be tailored to individual preferences and charting styles.
3 — Multiple Moving Averages:
• Support for various types of moving averages (8 EMA, 21 EMA, 50 SMA, 100 SMA, 200 SMA).
Each moving average can be individually enabled or disabled for specific timeframes,
providing a flexible tool for technical analysis.
█ SETTINGS
Inputs for Styling:
• Controls the appearance of the lines and labels.
• Includes options for line width, line style, text size, distance from the candlesticks, label position,
and whether to hide prices or use shorthand notation.
Moving Averages Settings:
• Inputs to select different moving averages (8 EMA, 21 EMA, 50 SMA, 100 SMA, 200 SMA) and their corresponding colors.
• Boolean inputs to enable or disable these moving averages on various timeframes (2 min, 5 min, hourly, daily).
█ SUMMARY
In essence, this script provides a comprehensive tool for technical analysis by combining multi-timeframe moving averages into a single, customizable, and user-friendly indicator. It enhances traders' ability to make informed decisions by providing clear visual representations of key moving average levels across different timeframes.
═════════════════════════════════════════════════════════════
█ LIMITATIONS
This script is best used with a short timeframe such as 1-minute or lower because of the limitations of Multi-Timeframe scripts. Basically, the alternate timeframes in use should always be higher than the chart timeframe.
═════════════════════════════════════════════════════════════
█ NOTES
This indicator is intended to complement and be used with "Lepelle's Key Levels" indicator.
In that indictor settings, I recommend turning off the 5 Daily timeframe moving average levels in that script, if using this one.
═════════════════════════════════════════════════════════════
Supply & Demand (MTF) | Flux Charts💎 GENERAL OVERVIEW
Introducing our new Supply and Demand (MTF) Indicator! This new indicator renders Supply and Demand zones based on momentum candles. It can detect Supply and Demand zones across up to 3 diferent timeframes. It's capable of combining zones, retest & break labels and it's customizable with invalidation and style settings.
Features of the new Supply and Demand (MTF) Indicator:
Renders Supply and Demand Zones Across 3 Timeframes
Combination Of Overlapping Zones
Retest & Break Labels
Retest & Break Alerts
Enable / Disable Historic Zones
Visual Customizability
📌 HOW DOES IT WORK ?
Supply and Demand is a key concept in trading. It helps traders see the zones that market-makers buy & sell the asset in large amounts. It's detected by finding momentum candles (candles that have large bodies) in a row.
Momentum candles are defined to have a larger body than the average candle in the chart, and at least 4 of them in a row is required to draw a supply or demand zone. The zone is drawn from the high wick to low wick of two candles before the first momentum candle in the row.
Check this example :
These zones are usually where market makers trade the asset in larger amounts. Thus, they act as support & resistance zones by their nature. A retest of these zones can make the price bounce to the opposite direction, while a breakout usually means strong price action momentum is incoming in that direction. Supply zones indicate bearish momentum while demand zones indicate bullish momentum.
Check this example :
Here a Supply Zone (Bearish) forms. Then price comes back up to test the zone, and it fails to break. After the failed attemp, a stong bearish momentum takes the price back to a lower level. Then another test of the zone occurs and successfully breaks the zone this time. This breakout starts a bullish momentum that takes the price to a higher level.
🚩UNIQUENESS
This indicator provides Supply and Demand zones in your chart with pure simplicity. It supports up to 3 different timeframes as we believe supporting your trades with higher timeframes can improve your trading experience. It also gets rid of complexity by combining overlapping zones into a single zone, even if they are from different timeframes! You can also set-up alerts to get notified when a supply or demand zone is being retested, or is broken. Overall, this indicator is the ultimate kit for supply and demand zones.
⚙️SETTINGS
1. General Configuration
Max Distance To Last Bar -> The maximum distance that the indicator will render supply and demand zones from. Higher settings mean rendering older supply and demand zones.
Zone Invalidation -> Select between Wick & Close price for Supply and Demand Zone Invalidation.
Retests & Breaks -> Enable retest & break labels in your chart.
Show Historic Zones -> This will show historic supply & demand zones which are invalidated if enabled. You can disable this to only see active supply and demand zones for a simpler chart.
2. Timeframes
You can set up to 3 different timeframes and enable / disable them using the checkboxes in this section.
Smart Market Structure and Swing Points, version 1.0Smart Market Structure and Swing Points, Version 1.0
Overview
The Smart Market Structure and Swing Points script is designed to provide advanced insights into market structure and key swing points. This script helps identify important highs and lows, trend direction changes (structure breaks), and swing points, enhancing decision-making for both trend-following and reversal strategies. See below for detail presentation and why it has unique features.
Unique Features of the New Script
Market Structure Identification : Analyzes and marks key highs and lows to determine market structure, including higher highs, lower highs, higher lows, and lower lows.
Customizable Detection Length : Allows users to set the length for detecting highs and lows, providing flexibility to adapt to different market conditions and timeframes. Default value is 5 bars, but can be changed if needed.
Visual Signal Indicators (Labels) : Plots labels on the chart to indicate higher highs (HH), lower highs (LH), higher lows (HL), and lower lows (LL), along with corresponding RSI values, offering clear visual cues for market structure analysis. The indication of RSI values directly on high and low points enables to better judge whether the points are strong references (extreme RSI values) or weak references (middle RSI values)
Dynamic Trend Lines : Draws solid and dotted lines to connect significant highs and lows, visually representing the current trend direction and potential trend changes. Dashed lines indicates structure breaks.
Swing High and Swing Low Detection : Identifies and marks the most recent swing highs and swing lows, helping traders spot potential reversal points and key levels for setting stop losses or take profit targets .
Originality and Usefulness
This script combines market structure, trend breaks and RSI to provide a more robust view of market dynamic by indicating the strength or weakness of swing points , in that way the script is unique.
Signal Description
The script includes various signal features that highlight potential trading opportunities based on market structure:
Higher Highs (HH) and Higher Lows (HL) : These labels are plotted when new highs or lows are formed, indicating a continuation of an uptrend. The labels are positioned with consideration of the Average True Range (ATR) for better visibility.
Lower Highs (LH) and Lower Lows (LL) : These labels are plotted when new highs or lows are formed, indicating a continuation of a downtrend. The labels include RSI values to provide additional information on the strength or weakness of the points.
Trend Direction Change : Dotted lines are drawn to indicate potential trend direction changes when the script detects significant shifts in market structure.
Swing Highs and Swing Lows : These are identified based on a customizable swing length, marking recent significant highs and lows to highlight potential reversal points.
These signals help identify high-probability turning points and confirm trend direction by ensuring that the market structure aligns with the trading strategy.
Detailed Description
Input Variables
Length for High/Low Detection (`length`) : Defines the range to check for highs and lows. Default is 5.
RSI Length (`rsilength`) : The number of periods to calculate the RSI. Default is 14.
Functionality
Market Structure Calculation : The script determines the highest high and lowest low within the specified range to identify key points in market structure.
```pine
h = ta.highest(high, length * 2 + 1)
l = ta.lowest(low, length * 2 + 1)
```
Directional Logic : Variables and functions manage the state of the indicator, updating highs and lows based on the current trend direction.
```pine
var bool dirUp = false
var float lastLow = high * 100
var float lastHigh = 0.0
// Additional variables for tracking state
```
Drawing Lines and Labels : Functions draw lines and labels on the chart to visualize market structure and trend changes.
```pine
f_drawLine() =>
_li_color = dirUp ? color.red : color.lime
line.new(x1=timeHigh - length, y1=lastHigh, x2=timeLow - length, y2=lastLow, color=_li_color, width=3, style=line.style_solid, xloc=xloc.bar_index)
f_drawLastLine() =>
_li_color = dirUp ? color.blue : color.blue
if timeHigh > timeLow
line.new(x1=timeHigh - length, y1=lastHigh, x2=bar_index, y2=low, color=_li_color, width=2, style=line.style_dotted, xloc=xloc.bar_index)
else
line.new(x1=timeLow - length, y1=lastLow, x2=bar_index, y2=high, color=_li_color, width=2, style=line.style_dotted, xloc=xloc.bar_index)
```
Updating Highs and Lows : The main logic updates highs and lows based on the current trend direction, adding labels for new higher highs, lower highs, higher lows, and lower lows.
```pine
if dirUp
if f_isMin(length)
lastLow := low
// Additional logic for updating lows and labels
if f_isMax(length) and high > lastLow
lastHigh := high
// Additional logic for updating highs and labels
dirUp := false
li := f_drawLine()
```
Swing Highs and Lows : The script identifies recent swing highs and swing lows based on a customizable swing length, drawing lines to mark these points.
```pine
swingLength = 3 * length
isSwingHigh = ta.highestbars(high, swingLength) == 0
isSwingLow = ta.lowestbars(low, swingLength) == 0
if (isSwingHigh)
if (na(highLine))
highLine := line.new(bar_index, high, bar_index, high, color=color.green, style=line.style_solid, width=1)
else
line.set_xy1(highLine, bar_index, high)
line.set_xy2(highLine, bar_index + swingLength, high)
if (isSwingLow)
if (na(lowLine))
lowLine := line.new(bar_index, low, bar_index, low, color=color.red, style=line.style_solid, width=1)
else
line.set_xy1(lowLine, bar_index, low)
line.set_xy2(lowLine, bar_index + swingLength, low)
```
How to Use
Configuring Inputs : Adjust the detection length and RSI length as needed. Modify the lookback periods to suit your trading strategy. The indicator is adaptable and can be used on any timeframe.
Interpreting the Indicator : Use the labels and lines to gauge market structure and trend direction. Look for higher highs, lower highs, higher lows, and lower lows to confirm market structure.
Signal Confirmation : Pay attention to the labels and lines that provide signals for potential trend changes and swing points. Use these signals to better time entries and exits.
This script provides a detailed view of market structure and swing points, helping make more informed decisions by considering key highs and lows, trend direction changes, and the strength or weakness of swing points.
Juice LevelsSupply and Demand Key Levels
These levels encompass key price points derived from various timeframes, providing crucial insights into market dynamics and potential trading opportunities. These levels include daily, prior day, day before yesterday, weekly, prior weekly, monthly, and prior monthly levels.
Daily, Prior Day, Day Before Yesterday Levels
Offer intraday reference points and historical context for analyzing short-term price movements.
Weekly, Prior Weekly Levels
Provide insights into longer-term trends and potential areas of price consolidation or breakout over a one-week timeframe.
Monthly, Prior Monthly Levels
Offer significant insights into macroeconomic trends and investor sentiment over longer timeframes, spanning one month.
Equilibrium Levels
Indicate points where supply and demand are relatively balanced, often serving as pivot points for price movements.
Supply and Demand Zones
Highlight areas on a price chart where significant buying or selling pressure is expected, aiding traders in identifying potential reversal or breakout zones.
These levels and zones are essential tools for traders to analyze market sentiment, identify support and resistance levels, and make informed trading decisions across various timeframes.
Dynamic Gann Levels [XrayTrades]This indicator dynamically captures the highest and lowest points visible on the chart and calculates Gann Support and Resistance Levels. The inputs are detailed below.
Why create this indicator?
There is no other indicator with the same functionality on TradingView.
These calculations are time-consuming; the speed at which this indicator calculates any number of rotations and degrees and visually displays them on the chart is invaluable to me, and hopefully others who use/perform these calculations.
Works on any time frame:
Year, month, week, day, etc. Smaller timeframes (intraday) for higher prices may require adjusting the y-axis of the chart after the calculation of levels due to the nature of squaring numbers.
Inputs:
Resistance: Up (from pivot low) - This toggles on/off levels calculated from the lowest point visible on the chart’s current view.
Support: Down (from pivot high) - This toggles on/off levels calculated from the highest point visible on the chart’s current view.
360 - Toggles on/off the levels of full rotations (360 degrees) from price
180 - Toggles on/off the levels of half rotations (180 degrees) from price
90 - Toggles on/off the levels of quarter rotations (90 degrees) from price
45 - Toggles on/off the levels of eighth rotations (45 degrees) from price
Full Rotations Visible - The number of rotations to be displayed on the chart
How to use this indicator:
Adjust chart window to change the highs and lows.
Select the degrees, direction, and number of rotations in the indicator settings.
The colored values beside the indicator represent the values (high and low) used in generating the Gann levels. Should the cursor be on the chart, ensure it is to the right of the high and low pivots, as this is dynamic in TradingView depending upon cursor location. Note: This is only for the user to know which value(s) are used; cursor position does not impact actual calculations and levels displayed.
The levels will be drawn to the right of the most recent price, labeled with the degrees and direction as well as the price value at the level.
About the calculations:
These calculations are derived from the Natural Square Calculator of Gann Theory, also known as the Square of Nines.
Details:
Take the square root of the selected value (lowest and or highest point).
Add (for up or subtract for down) 0.25 for every 45 degrees of rotation to the desired calculation.
Square this. Round to two decimal places.
Ex: Low of 100. Calculate Gann resistance level for 360 degrees. (√(100)+2)² = 144.
Ex: High of 100. Calculate Gann support level for 180 degrees. (√(100)-1)² = 81.
Liquidity Grab Zones | Flux Charts💎 GENERAL OVERVIEW
Introducing our new Liquidity Grab Zones Indicator! This indicator finds liquidity grabs in the current ticker and renders buyside & sellside liquidity grab zones. The retests and breakout of the zones are labeled, and you can set up alerts to get notified. For more information, please check the "HOW DOES IT WORK" section.
Features of the new Liquidity Grab Zones Indicator :
Renders Buyside & Sellside Liquidity Grab Zones
Retests & Breaks
Inverse Zones After Broken Feature
Alerts For All Features
Customizable Algorithm
Customizable Styles
🚩UNIQUENESS
Liquidity grabs can be useful when determining candles that have executed a lot of market orders, so you can plann your trades accordingly. This indicator lets you customize the pivot length and the wick-body ratio for liquidity grabs, provide retest & breakout labels, with customized styling and alerts.
📌 HOW DOES IT WORK ?
Liquidity grabs occur when one of the latest pivots has a false breakout. Then, if the wick to body ratio of the bar is higher than 0.5 (can be changed from the settings) a zone is plotted.
These zones usually indicate areas of high market interest where price action may reverse or accelerate. Identifying these zones can provide traders with critical levels for entering or exiting trades. A breakout of these zones generally mean strong movements are inbound, while failing breakouts make these zones act like support / resistance zones.
The indicator also reverses the type of the zone after an invalidation (can be turned off from the settings). This feature helps traders identify potential reversals more accurately.
The zone width is set to the area from the wick to the body of the candlestick, which can be seen here :
⚙️SETTINGS
1. General Configuration
Pivot Length -> This setting determines the range of the pivots. This means a candle has to have the highest / lowest wick of the previous X bars and the next X bars to become a high / low pivot.
Wick-Body Ratio -> After a pivot has a false breakout, the wick-body ratio of the latest candle is tested. The resulting ratio must be higher than this setting for it to be considered as a liquidity grab.
Zone Invalidation -> Select between Wick & Close price for Liquidity Grab Zone Invalidation.
Use these customizable settings to fine-tune the indicator according to your trading strategy and preferences.
TMB LevelsDescription:
Improved "Hourly Midline" indicator. It displays high, middle and low levels of every candle with specified timeframe (can be hourly, daily, or any other timeframe). You can change the source for the levels (either high and low of candle, or open and close of candle). Additionally, you can turn on the "Line chart", which essentially connects every midline, making a line chart of middle prices.
Parameters:
- Timeframe -> use data from this timeframe ("30" would mean 30 minutes, "60" would mean 1 hour, etc.)
- Source -> source for calculating the middle level
- Top -> parameters of the top level lines
- Middle -> parameters of the middle level lines
- Bottom -> parameters of the bottom level lines
- Line chart -> connect every midline, making a line chart
CPR by MTThe CPR indicator, or Central Pivot Range indicator, is a technical analysis tool used in trading to identify potential support and resistance levels based on the price action of a security. Developed by pivot point theory, it is particularly popular among day traders and swing traders. The CPR indicator consists of three lines:
1. **Pivot Point (PP):** This is the central line and is calculated as the average of the high, low, and closing prices from the previous trading period.
\
2. **Top Central Pivot (TC):** This is calculated by subtracting the low from the PP and then adding the result to the PP.
\
3. **Bottom Central Pivot (BC):** This is calculated by subtracting the high from the PP and then adding the result to the PP.
\
### How to Use the CPR Indicator
- **Trend Identification:** A wide CPR range indicates low volatility and a potential sideways or consolidation phase. A narrow CPR range indicates high volatility and a potential strong trending move.
- **Support and Resistance:** The top and bottom central pivots act as immediate resistance and support levels. If the price is above the TC, it indicates a bullish sentiment, while if it is below the BC, it indicates a bearish sentiment.
- **Entry and Exit Points:** Traders use the CPR lines to determine optimal entry and exit points. For example, if the price breaks above the TC and sustains, it may signal a buy opportunity, whereas a drop below the BC may signal a sell opportunity.
### Practical Example
Suppose a stock had a high of $105, a low of $95, and a closing price of $100 on the previous day. The CPR levels for the next day would be calculated as follows:
1. **Pivot Point (PP):**
\
2. **Top Central Pivot (TC):**
\
3. **Bottom Central Pivot (BC):**
\
The levels for the next day would be PP = $100, TC = $110, and BC = $90. Traders would then use these levels to assess potential trading strategies based on where the price moves relative to these levels.
### Conclusion
The CPR indicator is a useful tool for traders looking to understand market conditions and make informed decisions about entry and exit points. Its effectiveness comes from its ability to highlight key price levels derived from historical price data, helping traders predict potential market movements.
MarketRangerThis indicator puts a selection of elements together providing traders with insights into price dynamics, trend changes, and potential trading opportunities within the specified timeframe.
Trading Range Defined by Support and Resistance :
Support and resistance levels are calculated using the lowest low and highest high over specified periods.
These
levels define the boundaries of the trading range within which the price moves.
WMA Color Changing based on Slope :
The script uses three Weighted Moving Averages (WMAs) with different lengths.
The color of the main WMA changes based on its slope.
When the slope of the WMA is positive (indicating an uptrend), it's displayed in blue. When it's
negative (indicating a downtrend), it's displayed in pink.
New High/Low Detection :
The script detects new highs and lows in the price action.
A new high is detected when the current high crosses under the previous resistance level, and a new low is detected when the current low crosses over the previous support level.
These
detections are marked by triangle shapes above or below the bars.
WMA Crosses :
The script calculates the difference between the two WMAs.
When the faster WMA crosses above the slower WMA, indicating a potential bullish signal, a blue cross shape is plotted below the bar.
When the faster WMA crosses below the slower WMA, indicating a potential bearish signal, a
pink cross shape is plotted above the bar.
Slope Changes :
The script calculates the slope of the main WMA and tracks changes in slope.
A positive slope indicates an upward trend, while a negative slope indicates a downward trend.
Slope changes from negative to positive indicate potential bullish momentum, and from
positive to negative indicate potential bearish momentum.
Customizable Pivot Levels :
Pivot levels are calculated based on user-defined percentages of the range between support and resistance.
Pivot Level 1 and Pivot Level 2 provide additional reference points for potential reversals or trend continuation.
Usage :
The indicator provides support and resistance levels, new high/low alerts, and WMA crosses.
The midpoint and customizable pivot levels offer potential trading zones.
Slope change points indicate potential shifts in market sentiment.
Customize the pivot levels according to your trading strategy.
Parameters :
Adjust the WMA lengths and support/resistance lengths to suit your trading style.
Modify the visibility settings to control how many periods of support and resistance are displayed.
Customize the pivot levels to fit your preferred trading strategy.
Alerts :
Alerts are triggered for new high/low points and WMA crosses.
Use alerts to stay informed about potential trading opportunities.
Interpretation :
Watch for new high/low points for potential trend reversals or continuations.
Monitor WMA crosses and slope changes for signals of market direction.
Consider trading near support/resistance levels and pivot points.
Additional Notes :
Experiment with different settings to find the configuration that best suits your trading preferences.
Backtest the indicator on historical data to validate its effectiveness before using it in live trading.
Pivot Point Calculator [JP&Dia]English User Guide
Script Name: Pivot Point Calculator
What Does This Script Do? This script calculates classic and Camarilla pivot points used in financial markets. Pivot points are used to identify key support and resistance levels, and this script helps traders better understand market movements.
How to Use It?
Add the script to your charts on TradingView.
Enter your desired time frame in the “Enter Time Frame” field (e.g., M, W, D).
Choose either or both “Classic Pivot” and “Camarilla Pivot” options to display them.
The script will automatically calculate the pivot points and display them on the chart.
Why Is This Script Unique? This script combines both classic and Camarilla pivot calculations, allowing users to easily utilize both pivot styles through a single script.
How Can People Benefit? Traders can use this script to identify potential buy-sell points and market trends. They can also conduct their market analyses more efficiently and effectively.
Script Adı: Pivot Noktası Hesaplayıcı
Script Ne İşe Yarar? Bu script, finansal piyasalarda kullanılan klasik ve Camarilla pivot noktalarını hesaplar. Pivot noktaları, önemli destek ve direnç seviyelerini belirlemek için kullanılır ve bu script, yatırımcıların piyasa hareketlerini daha iyi anlamalarına yardımcı olur.
Nasıl Kullanılır?
Scripti TradingView’deki grafiklerinize ekleyin.
“Zaman Dilimi Girin” alanına istediğiniz zaman dilimini girin (Örneğin: M, W, D).
“Classic Pivot” ve “Camarilla Pivot” seçeneklerinden birini veya her ikisini de seçerek gösterilmesini sağlayabilirsiniz.
Script otomatik olarak pivot noktalarını hesaplayacak ve grafik üzerinde gösterecektir.
Neden Özgü Bir Script? Bu script, hem klasik hem de Camarilla pivot hesaplamalarını birleştirir ve kullanıcıların her iki pivot stilini de tek bir script üzerinden kolayca kullanmalarını sağlar.
İnsanlar Nasıl Faydalanabilir? Yatırımcılar, bu scripti kullanarak potansiyel alım-satım noktalarını ve piyasa trendlerini belirleyebilirler. Ayrıca, piyasa analizlerini daha verimli ve etkili bir şekilde yapabilirler.
NZTInstitutionalLevelDESCRIPTION IN ENGLISH
🔶 INTRODUCTION
NZTInstitutionalLevel is an indicator for the TradingView platform designed to display institutional levels on a price chart. This script is based on the concept of calculating significant price levels that can be used for both long-term trading and intraday operations. The indicator calculates and visualizes the levels at which large market participants , such as institutional investors and large funds , can actively participate. The displayed levels are very important , as psychologically people tend to buy or sell at these levels, which makes them a reliable support in the analysis
🔶 CONTENT
The indicator uses the analysis of support and resistance levels , which are often tested by major market players . These levels represent prices that have historically experienced significant price movements due to large trading volumes, making them relevant for future trading decisions. You may notice that price often reverses or tests these round levels. These levels are a powerful pillar of price action analysis.
🔶 KEY FEATURES
The indicator displays institutional (bank) levels . Thanks to which you can easily determine the position of major players and the direction of their capital.
Visualization customization:
Users can customize the display of levels by selecting color, thickness and line style (solid, dotted, dashed).
Adaptability:
The script adapts the level step size depending on the current price of the asset and the selected time interval, which allows it to be used in various trading conditions and for assets with different volatility and price range.
Automatic scaling:
The number of displayed levels changes depending on the selected time interval, allowing traders to focus only on significant levels without overloading the chart with unnecessary information.
🔶 SETTINGS
🔹 Show Institutional Levels (Показывать институциональные уровни)
Allows you to disable or enable the display of institutional levels.
🔹 Level color (Цвет уровней)
Allows you to customize the color of the levels.
🔹 Level thickness (Толщина уровней)
Allows you to adjust the thickness of the levels.
🔹 Level style (Стиль уровней)
Allows you to customize the levels' style.
🔶 RECOMMENDATIONS FOR USE
To use the indicator, activate it on the desired price chart through the TradingView indicator menu. Once activated, adjust the visibility, color, style and thickness of the levels according to your preferences. The indicator will automatically calculate and display institutional levels based on the current asset price and configured parameters . These levels can serve as potential points for placing buy or sell orders, setting stop losses, or taking profits.
The indicator was developed by Temirlan Tolegenov for NZT Trader Community , May 2024, Prague, Czech Republic.
ОПИСАНИЕ НА РУССКОМ ЯЗЫКЕ
🔶 ВСТУПЛЕНИЕ
NZTInstitutionalLevel – это индикатор для платформы TradingView, предназначенный для отображения институциональных уровней на ценовом графике . Этот скрипт основан на концепции вычисления значимых ценовых уровней , которые могут быть использованы как для долгосрочной торговли, так и для интрадей-операций . Индикатор рассчитывает и визуализирует уровни , на которых могут активно участвовать крупные участники рынка , такие как институциональные инвесторы и большие фонды . Отображаемые уровни очень важны , так как психологически люди склонны покупать или продавать на этих уровнях , что делает их надежной опорой при анализе.
🔶 СОДЕРЖАНИЕ
Индикатор использует анализ уровней поддержки и сопротивления , которые часто тестируются крупными игроками рынка . Эти уровни представляют собой цены, на которых исторически происходили значительные движения цен за счет больших объемов торгов, что делает их релевантными для будущих торговых решений. Вы можете заметить, что цена часто разворачивается или тестирует эти круглые уровни. Эти уровни являются мощной основой анализа price action.
🔶 КЛЮЧЕВЫЕ ОСОБЕННОСТИ
Индикатор отображает институциональные (банковские/круглые) уровни. Благодаря чему вы легко сможете определить позиции крупных игроков и направление их капиталов.
Настройка визуализации:
Пользователи могут настроить отображение уровней, выбрав цвет, толщину и стиль линий (сплошные, пунктирные, точками).
Адаптивность:
Скрипт адаптирует размер шага уровня в зависимости от текущей цены актива и выбранного временного интервала, что позволяет использовать его в различных торговых условиях и для активов с разной волатильностью и ценовым диапазоном.
Автоматическое масштабирование:
Количество отображаемых уровней меняется в зависимости от выбранного временного интервала, позволяя трейдерам сосредоточиться только на значимых уровнях, не перегружая график лишней информацией.
🔶 НАСТРОЙКИ
🔹 Показывать институциональные уровни
Позволяет отключить или включить отображение институциональных уровней.
🔹 Цвет уровней
Позволяет настроить цвет уровней.
🔹 Толщина уровней
Позволяет регулировать толщину уровней.
🔹 Стиль уровней
Позволяет настроить стиль уровней.
🔶 РЕКОМЕНДАЦИИ К ИСПОЛЬЗОВАНИЮ
Для использования индикатора, активируйте его на желаемом ценовом графике через меню индикаторов TradingView. После активации, н астройте видимость, цвет, стиль и толщину уровней в соответствии с вашими предпочтениями. Индикатор автоматически рассчитает и отобразит институциональные уровни , основываясь на текущей цене актива и настроенных параметрах . Эти уровни могут служить потенциальными точками для размещения ордеров на покупку или продажу, установления стоп-лоссов или взятия прибыли.
Индикатор разработан Темирланом Толегеновым для международного сообщества NZT Trader , Май 2024, Прага, Чешская Республика.
The indicator is published in accordance and respect to all House Rules of the TradingView platform.
Индикатор опубликован в соответствии и уважением ко всем внутренним правилами платформы TradingView.
Liquidations [ChartPrime]Liquidations Indicator:
The Liquidations indicator is a powerful tool designed to help traders identify significant liquidation levels in financial markets. By analyzing volume data over a specified lookback period, the indicator highlights potential areas where market participants with high leverage positions may face liquidation, providing valuable insights into market dynamics.
Usage:
Traders can use the Liquidations indicator to:
◈ Identify liquidity grab opportunities: Liquidation levels often attract price action as market participants with leveraged positions face the risk of forced liquidation. Traders can anticipate price movements as the market aims to trigger these stops, potentially leading to rapid price movements or reversals.
◈ Confirm trend strength: A cluster of liquidation levels in the same direction as the prevailing trend may confirm the strength of the trend, while divergences between liquidation levels and price movements may signal potential trend reversals.
Settings:
◈ Previous Value Bars Back: Specifies the number of previous bars used in calculating the liquidation levels.
◈ Show Leverage: Allows users to selectively display liquidation levels for different leverage multiples, including 5x, 10x, 25x, 50x, and 100x.
◈ Liquidation Levels Width: Sets the width of the lines representing liquidation levels on the chart.
◈ Short Liquidations Color: Specifies the color of the lines representing short liquidation levels.
◈ Long Liquidations Color: Specifies the color of the lines representing long liquidation levels.
◈ Bar Color: Sets the color of the background bar when the indicator is active.
Visual Representation:
◈ Liquidation levels are plotted as horizontal lines on the chart, with different colors representing short and long liquidation levels.
◈ Each liquidation level is labeled with the corresponding leverage multiple (e.g., 5x, 10x, etc.).
A dashboard displays the active liquidation levels for each leverage multiple, allowing traders to quickly assess the current market conditions.
◈ Time Window allows users to cut off unnecessary part of the chart and concentrate on a current active part of the chart to make better trading decisions:
Interpretation:
Market participants tend to place stop-loss orders near liquidation levels , creating clusters of pending orders. As price approaches these levels, it may trigger a cascade of stop-loss orders, providing liquidity for market orders and potentially leading to rapid price movements in the opposite direction.
Traders can anticipate price reversals or accelerations as price interacts with liquidation levels, using them as reference points for identifying potential entry or exit opportunities.
Note:
While the Liquidations indicator provides valuable insights into market dynamics, traders should use it in conjunction with other technical analysis tools and risk management strategies to make informed trading decisions.
Futures Auto Levels [NariCapitalTrading]Futures Auto Levels Indicator
Introduction
The "Futures Auto Levels" (FAL) indicator shows the previous day's levels, weekly open, high, low, and the Initial Balance Range (IBR).
Indicator Components
The FAL indicator comprises the following components:
Previous Day's Levels: These include the open, high, low, and close of the previous trading day. They are represented on the chart by lines and labels, helping to identify significant price levels from the prior session.
Weekly Open, High, Low: These levels represent the open, high, and low prices of the current trading week.
Initial Balance Range (IBR): The IBR is calculated based on the price range during the first 60 minutes of the trading day. It helps identify initial trading range and potential breakout levels.
How to Use the Indicator
1. Previous Day's Levels:
Monitor the previous day's open, high, low, and close to identify key support and resistance levels.
Use these levels to gauge market sentiment and potential price reversals.
2. Weekly Open, High, Low:
Pay attention to the weekly open, high, and low to understand the market's behavior within the weekly timeframe.
These levels can act as reference points for setting profit targets and stop-loss orders.
3. Initial Balance Range (IBR):
Watch for price movements within the IBR to identify potential trading opportunities.
Breakouts above or below the IBR may signal the beginning of a new trend or continuation of the current trend.
Suggested/Potential Strategies
Reversal Trading: Look for price reversals around previous day's levels, especially when they coincide with other technical indicators or significant support/resistance zones.
Trend Following: Follow the trend by trading breakouts above/below the IBR or weekly high/low levels. Use trailing stops to capture profits while the trend remains intact.
Range Trading: Trade within the IBR when the market is consolidating. Buy near the IBR low and sell near the IBR high, with tight stop-loss orders to manage risk.
Conclusion
The Futures Auto Levels indicator is designed to help incorporate levels into trading analysis and trading strategies to improve profitability and consistency.
Monte Carlo Shuffled Projection [LuxAlgo]The Monte Carlo Shuffled Projection tool randomly simulates future price points based on historical bar movements made within a user-selected window.
The tool shows potential paths price might take in the future, as well as highlighting potential support/resistance levels.
Note that simulations and their resulting elements are subject to slight changes over time.
🔶 USAGE
By randomly simulating bar movements, a range is developed of potential price action which could be utilized to locate future price development as well as potential support/resistance levels.
Performing a large number of simulations and taking the average at each step will converge toward the result highlighted by the "Average Line", and can point out where the price might develop assuming the trend and amount of volatility persist.
Current closing price + Sum of changes in the calculation window)
This constraint will cause the simulations to always display an endpoint consistent with the current lookback's slope.
While this may be helpful to some traders, this indicator includes an option to produce a less biased range as seen below:
🔶 DETAILS
The Monte Carlo Shuffled Projection tool creates simulations based on the most recent prices within a user-set window. Simulations are done as follows:
Collect each bar's price changes in the user-set window.
Randomize the order of each change in the window.
Project the cumulative sum of the shuffled changes from the current closing price.
Collect data on each point along the way.
This is the process for the Default calculation, for the 'Randomize Direction' calculation, when added onto the front for every other change, the value is inverted, creating the randomized endpoints for each simulation.
The script contains each simulation's data for that bar with a maximum of 1000 simulations.
To get a glimpse behind the scenes each simulation (up to 99) can be viewed using the 'Visualize Simulations' Options as seen below.
Because the script holds the full simulation data, the script can also do calculations on this data, such as calculating standard deviations.
In this script the Standard deviation lines are the average of all standard deviations across the vertical data groups, this provides a singular value that can be displayed a distance away from the simulation center line.
🔶 SETTINGS
Color and Toggle Options are Provided throughout.
Lookback: Sets the number of Bars to include in calculations.
Simulation Count: Sets the number of randomized simulations to calculate. (Max 1000)
Randomize Direction: See Details Above. Creates a more 'Normalized' Distribution
Visualize Simulations: See Details Above. Turns on Visualizations, and colors are randomly generated. Visualized max does not cap the calculated max. If 1000 simulations are used, the data will be from 1000 simulations, however only the last 99 simulations will be visualized.
Standard Deviation Multiplier: Sets the multiplier to use for the Standard Deviation distance away from the center line.
HTF Matrix TableThis is a Higher Time Frame Table like the Intra-Day Table that I also have available.
ICT stresses time and liquidity levels in his teachings. This table helps to easily locate these key Time-based price levels. You can use these levels to determine your directional bias and to help generate your narrative for where the market is going.
This indicator creates a table that gives you the price for the following liquidity levels:
*Price* - Current Price
PMH - Previous Month High
PMO - Previous Month Open
PM MT - Previous Month Mean Threshold (Midpoint of candle body)
(Calculated by:
if pmo > pmc
pm_mt := ((pmo-pmc)/2)+pmc
if pmo < pmc
pm_mt := ((pmc-pmo)/2)+pmo)
PMC - Previous Month Close
PML - Previous Month Low
PWH - Previous Week High
PWO - Previous Week Open
PW MT - Previous Week Mean Threshold (Midpoint of candle body)
Calculated by:
if pwo > pwc
pw_mt := ((pwo-pwc)/2)+pwc
if pwo < pwc
pw_mt := ((pwc-pwo)/2)+pwo)
PWC - Previous Week Close
PWL - Previous Week Low
PDO - Previous Day Open
PDH - Previous Day High
PDL - Previous Day Low
PDC - Previous Day Close
PDEQ - Equilibrium of the previous day's range.
(Calculated by math.abs(((pdh-pdl)/2)+pdl))
PDH2 - Two Days Back High
PDL2 - Two Days Back Low
PDH3 - Three Days Back High
PDL3 - Three Days Back Low
Gives you the opening price for the following times:
Midnight Open
NY Open
Lets you set the time for the Asia and London sessions and will give the high and low for those two sessions.
Asia High
Asia Low
London High
London Low
Ability to hide either the table or lines.
The levels are sorted descending in price in the table, with the background colored based on their relation to price. The prices are also plotted on the chart based on the range you specify in relation to the current price. These lines are also colored based on their relation to price.
This indicator does not give you anything but the price at a specific time, you must determine your own bias and narrative based on the levels that are given.
The indicator runs on the seconds chart.
Pivot Point Target Prices [SS]Hey everyone,
Back with another indicator!
I have been trying to do this indicator for like months (over 6 months). I gave up on it a few times and then finally reapproached it in a different way and was able to get it working successfully!
This is the pivot point target price indicator, let's get into how it works!
How it works:
The indicator keeps track of previous pivot highs and lows within your designated lookback timeframe. Using this data, it calculates the average difference between the pivot highs and pivot lows to give you an ATR range.
In addition to this, it tracks the standard deviation of this range. This allows the indicator to give us 3 price targets, 2 standard deviations below the anticipated target, the anticipated target (middle value) and 2 standard deviations above the anticipated target.
Here is a diagram:
I usually only look for the first target, which is the -2 standard deviation below the actual target, but having the added 2 gives some buffer room if a stock is particularly bullish or bearish.
How to use it:
You use this the same way you would pivot points, the only difference is this will show you target ranges to look for on a pivot low or pivot high.
There is some customizability, which I will explain below:
Customize bars: You have the ability to customize left and right bars for your pivot points. I personally like 15 and 15 but I know the most commonly used are 10 and 10.
ATR Length: The ATR Length is defaulted at 500. If you want to tighten up the length and give more conservative targets, you can shorten to between 75 and 150. If you want to be very aggressive with the targets, you can extend to 750 to 1,000.
Toggle on/off labels: You can choose to turn off the pivot labels if you wish.
Important note:
Many pivot indicators will show you pivot levels and use these as support and resistance. This indicator isn't doing that. Its combining ATR and Pivot Points. The ATR gives us the price targets by calculating the average range between pivot highs and pivot lows, and the pivot points are operating as usual.
And that's the indicator!
I hope you enjoy it, like I said it took me forever to get a functioning version of this, so hope you find it helpful!
Safe trades everyone!
Red Candles with Green Precedent
**Title**: Red Candles with Green Precedent Indicator
**Description**:
This TradingView indicator is designed to help traders identify potential reversal or continuation patterns based on the appearance of consecutive red candles following a green candle. The script marks a region starting from a green candle that precedes at least four consecutive red candles, extending a box forward for a predefined number of bars to analyze the continuation of the trend.
**Key Features**:
- **Consecutive Red Candles Detection**: The indicator counts consecutive red candles that close lower than they open.
- **Initial Green Candle Identification**: Identifies the last green candle before a series of red candles begins. This green candle must close higher than it opens.
- **Visual Box Extension**: Creates a visual box from the open to the high of the green candle and extends it forward to highlight the period of interest.
- **Dynamic Box Termination**: Optionally terminates the box early if a significant green candle appears within the extension period, suggesting a potential reversal.
**Usage**:
1. **Setup**: Apply the indicator to any chart in TradingView. Adjust the number of consecutive red candles to track based on your trading strategy.
2. **Interpretation**: A visual green box will appear when the criteria are met. This box helps focus on the price action following a potentially significant green candle. Traders should watch for price actions within and around the box to make informed decisions.
3. **Alerts**: Consider setting alerts for when a new box is created or when a significant green candle forms that might terminate the box early, indicating potential market movements.
**Suitable for**: This indicator is suitable for traders looking for visual cues about potential bearish exhaustion or the setup for a bullish reversal, particularly in volatile markets.
---
Feel free to customize the description and features according to any additional details or personal insights you might want to include based on your trading experience or the specific behaviors of the markets you track.
**Disclaimer**:
This script is provided as a tool for trading analysis and is not intended to be used as the sole basis for any trading decisions. While this indicator aims to identify potential trading opportunities, its effectiveness can depend on market conditions and individual trading strategies. Users should conduct their own research and consult with professional advisors before making any investment decisions. The creator of this script assumes no responsibility for any potential financial losses incurred from using this indicator. Trading in financial markets involves risk, and it is possible to lose more than your initial investment.
---
Pivot Profit Target [Mxwll]Introducing the Pivot Profit Target!
This script identifies recent pivot highs/lows and calculates the expected minimum distance for the next pivot, which acts as an approximate profit target.
The image above details the indicator's output.
The image above shows a table consisting of projection statistics.
How to use
The Pivot Profit Targets can be used to approximate a profit target for your trade.
Identify where your entry is relative to the most recent pivot, and assess whether the minimum expected distance for the most recent pivot has been exceeded. Treat the zones as an approximation.
If your trade aligns with the most recent pivot - treat the minimum expected distance zone as a potential profit target area. Of course, price might stop short or continue beyond the projection area!
That's it! Just a short and sweet script; thank you!