CARNAC Trading Support and Resistance LevelsOverview
The "Carnac Trading Support and Resistance Levels" indicator is a powerful tool designed to help traders identify key support and resistance levels across multiple timeframes. This tool enhances trading strategies by visually marking significant price levels and providing configurable stop-loss and alert features.
Features
Support and Resistance Levels: Automatically calculates and plots support and resistance levels for the following timeframes:
5 minutes (5M)
10 minutes (10M)
15 minutes (15M)
30 minutes (30M)
1 hour (1H)
2 hours (2H)
4 hours (4H)
6 hours (6H)
12 hours (12H)
1 day (1D)
1 week (1W)
1 month (1M)
Configurable Stop-Loss (SL) Levels: Adds a stop-loss line below each support level and above each resistance level with customizable padding (as a percentage).
Visual Labels: Clearly labels support, resistance, and stop-loss levels with the corresponding prices and timeframes for easy identification.
Line Customization:
Support Levels: Green lines with varying thickness based on the timeframe.
Resistance Levels: Red lines with varying thickness based on the timeframe.
Stop-Loss Levels: Gray dotted lines for clear distinction.
Alerts: Alerts trigger when the price gets to a configurable percentage from the support or resistance levels, helping you stay informed about potential buying and selling opportunities.
Visibility Toggling: Easily toggle the visibility of support and resistance levels for each timeframe (default enabled for 2H, 4H, and 1D).
How to Use
Add the Indicator:
Navigate to the TradingView Pine Editor.
Paste the provided Pine Script code and click "Add to Chart."
Configure Inputs:
Lookback Periods: Adjust the lookback periods for each timeframe to suit your analysis needs.
Padding Percentage: Set the padding percentage for the stop-loss levels to define the distance below the support levels and above the resistance levels.
Visibility: Toggle the visibility of the support and resistance levels for each timeframe as needed (default enabled for 2H, 4H, and 1D).
Alert Trigger Distance: Set the alert trigger distance as a percentage to determine when the alerts should be triggered.
Interpret the Plotted Levels:
Green Lines: Indicate support levels for the respective timeframes.
Red Lines: Indicate resistance levels for the respective timeframes.
Gray Dotted Lines: Represent the stop-loss levels below each support level and above each resistance level, with the specified padding.
Labels: Provide clear indications of the price levels and their respective timeframes in white text for visibility.
Identifying Buying and Selling Opportunities:
Buying Opportunities:
Look for the price to approach or bounce off a support level (green line).
Confirm the potential for a reversal by checking if the price is nearing a key support level from multiple timeframes.
Use the stop-loss level (gray dotted line) to set your stop-loss order below the support level to minimize risk.
Selling Opportunities:
Look for the price to approach or get rejected at a resistance level (red line).
Confirm the potential for a reversal by checking if the price is nearing a key resistance level from multiple timeframes.
Use the stop-loss level (gray dotted line) to set your stop-loss order above the resistance level to minimize risk.
Alerts:
Alerts will notify you when the price gets within the specified percentage distance from each support or resistance level.
Use these alerts to stay informed about potential buying and selling opportunities.
Pivot points and levels
Pivot PointsPivot points are technical indicators used in financial markets (such as stocks, forex, or commodities) to identify potential turning points in price movement. They provide reference levels based on the previous day’s price action.
How to use the Pivot Points indicator
Traders use pivot points to identify significant price levels where the market may reverse or consolidate.
PP, S1, and R1 are considered primary levels, while S2 and R2 are secondary levels.
R3, R4, R5, S3, S4 and S5 are considered more extreme levels and we normally don't see price action trade near these levels on a typical day. This indicator calculates those extreme levels to help on days with extreme price action.
Pivot points can be calculated for different timeframes (daily, weekly, monthly, quarterly, 6-months and yearly).
Pivot points calculated using the daily timeframe is a popular chose among day traders traders who trade intraday timeframes.
Trading Strategies
Bounce Strategy:
Buy near support (S1 or S2) if the price bounces off these levels.
Sell near resistance (R1 or R2) if the price reverses from these levels.
Breakout Strategy:
If the price breaks above R1, consider a long position.
If the price breaks below S1, consider a short position.
Profit targets:
If in a long trade and price hits R1, you take some profit.
If in a short trade and price hits S1, you take some profit.
Combine pivot points with other technical indicators (e.g., moving averages, candlestick patterns) for confirmation. Remember that pivot points are just one tool among many, and their effectiveness varies across different markets and timeframes. Always practice risk management and consider the overall market context when using pivot points in your trading decisions.
True Market Structure {DCAquant}
True Market Structure
Overview
The True Market Structure is a technical analysis tool designed for use across all timeframes. It identifies and visualizes market structure breaks (MSBs) and break of structure (BOS) events, emphasizing interim highs and lows using the "Deroz Wick" system. Unlike many other indicators, this tool does not rely on traditional pivot points, making it a unique addition to any trader's toolkit.
How It Works
The True Market Structure indicator uses a combination of algorithms to detect and highlight significant market structure events. By analyzing price action and identifying key levels, the indicator aids in understanding potential reversal points and trend continuations.
Bull and Bear Market Structures: Differentiates between bullish and bearish market structures, applying distinct color settings for easy visualization.
Customizable Settings: Users can tailor the indicator’s appearance and functionality to their preferences, including toggling lines, labels, and selecting between SWING and INTERIM MS settings.
How our market structure indicator is different
All known market structure indicators work with pivot points. This is a lookback function to find highs and lows within a certain period and then producing market structure.
Our indicator doesn't work like this as the DCAquant True Market Structure finds swing and interim lows and saves it into memory thus giving us the ability to create real market structure breaks and BOS’s.
This is achieved when an MSB or BOS is triggered the script will perform a check through its memory to find previous Interim or swing which ever setting the user has selected.
A saved interim or swing will never change unless it is broken giving you true market structure, this Indicator cannot repaint because it only produces breaks whenever candle is closed.
The next MSB or BOS you see on the chart are the direct function of saved memory points which gives clear indication of true market structure.
Almost 500 lines of code to give you True Market Structure usable on any timeframe.
Key Features
1. Market Structure Breaks (MSBs) and Break of Structure (BOS)
Market Structure Breaks (MSBs): Occur when the price breaks through a previous significant high or low, indicating a potential reversal or continuation of the current trend.
Break of Structure (BOS): Highlights significant breaks in market structure, providing insights into potential trend changes.
2. Visualization Options
Customizable colour settings for both bull and bear market structures, ensuring it integrates with any chart setup.
Options to enable or disable lines and labels for flexible information display.
3. The WICK System
Standard WICK System: Identifies wicks based on standard high/low calculations.
Deroz WICK System: Enhances the standard WICK system by looking back at price history and replacing the standard wick if an even lower or higher wick is found in the subsequent bar.
4. MS Settings
SWING Setting: Sets future MSB events at swing highs/lows, offering a broader market perspective.
INTERIM Setting: Sets future MSB events at interim highs/lows, providing more immediate and frequent market structure updates.
Understanding Market Structure
Market structure is defined by a series of price actions that form recognizable patterns indicating the current trend. Key elements include:
Higher Highs (HH) and Higher Lows (HL): Indicate an uptrend, where each successive high and low is higher than the previous one.
Lower Highs (LH) and Lower Lows (LL): Indicate a downtrend, where each successive high and low is lower than the previous one.
These patterns help traders identify trend direction and potential reversal points. In an uptrend, traders look for higher highs and higher lows to continue, whereas in a downtrend, they look for lower highs and lower lows.
Application in Breakout Trading
Market structure analysis is crucial for breakout trading, where traders seek to capitalize on significant price movements following a break of established price levels.
Uptrend Breakouts: Traders watch for breaks above higher highs as potential entry points for long positions.
Downtrend Breakouts: Traders watch for breaks below lower lows as potential entry points for short positions.
The True Market Structure indicator assists by visually marking these critical levels, simplifying the process of identifying and acting on breakout opportunities.
Visual Representation
Indicator Settings
Standard WICK vs. Deroz WICK System:
Standard WICK
Deroz WICK
SWING MSB
INTERIM MSB
Summary
The True Market Structure indicator provides a clear and detailed view of market structure changes. By highlighting key MSB and BOS events and incorporating advanced wick detection through the Deroz WICK system, this tool can aid in making informed decisions based on a thorough understanding of market dynamics. However DCAquant recommends using this indicator as part of a system.
Stop Hunts [MK]Liquidity rests above/below previous highs and lows because these are the areas where traders are most likely to leave their orders/stop losses. The market can tap into this liquidity source by going beyond the previous highs and lows, this liquidity can then be used to reverse the market in the opposite direction.
As traders we may want to know if price will continue beyond previous highs and lows, or reverse the market. If price looks to be reversing after tapping into liquidity, this can be a good area to enter a trade. The same area can be used as a take profit level also.
The indicator identifies previous high/lows in two ways:
1. previous high/lows using 'PIVOT POINTS'. Pivots are easy to spot and are obvious within a price trend. Also called 'higher highs", "lower lows" etc. The number of candles required to form the pivot point can be adjusted in the script settings.
see below example of pivot point and stop hunt:
www.tradingview.com
see how price reversed upwards after stop hunt on pivot point above.
2. previous candle high/lows. A previous candles high and low are also good areas of liquidity.
see below example of previous candle stop hunt:
see how price reversed upwards after stop hunt on previous candle low above.
Personally, I use the pivot point stop hunts on lower timeframes and previous candle stop hunts on higher timeframes. However users can adjust on which timeframes to show the indicator depending on their own trading style.
As ever all items within 'settings' are customizable.
The indicator is by no means a 'trading strategy' and users should be fully aware of the stop hunt concept and have conducted extensive back-testing before using with 'live' accounts.
The indicator may also serve as a 'teaching aid' to new students and as a reminder to more experienced traders.
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.
Master Pattern [UAlgo]🔶 Description:
"Master Pattern by UAlgo" aims to identify and visualize "Master Patterns" in price movements on financial charts, and focusing on detecting liquidity levels and sweeps. The indicator provides users with the ability to customize settings such as master pattern detection and detection flexibility, sensitivity to liquidity levels, and visualization preferences.
🔶 What is the Master Pattern ?
The Master Pattern is a framework built around understanding market cycles, which include three main phases: Contraction, Expansion, and Trend.
Contraction Phase: During this phase, the market fluctuates less and consolidates within a narrow range. Institutional trading volumes tend to be low and it is recommended to avoid trading entries during this period.
Expansion Phase: volatility increases and prices fluctuate greatly. Institutional traders begin to establish positions at this stage and may manipulate prices to attract retail traders to create liquidity for their own buy or sell targets.
Trend Phase: The final phase that completes the market cycle. Institutional traders started taking profits, causing the trend to reverse. This triggered panic among retail traders, leading to liquidations and stop-losses. This creates liquidity from which institutional traders can profit, while retail traders' positions are overvalued.
🔶 Key Features:
Pattern Detection : The indicator detects and visualizes contraction patterns in price movements, helping traders identify potential areas of price consolidation.
Also traders can choose between different modes (Strict, Normal, Relax) for obtaining master patterns, providing flexibility in pattern identification based on individual trading strategies and preferences.
The Value/Expansion Line : This value line is considered by institutional traders as a potential “Point of Origin” for future price movements.
An Application Example of the Master Pattern :
Select the Appropriate Timeframes: A significant separation between the higher timeframe (HTF) and the lower timeframe (LTF) is essential. For instance, combinations like 4H and 15M, 4H and 5M, or 1H and 1M. You can change this according to your own strategy.
Trade Based on Contraction Box, Value Line and Liquidity: When the HTF is above value, look for buying opportunities on your LTF below value. Conversely, when the HTF is below value, seek selling opportunities on your LTF above value. Sweeping liquidity in LTF is also an important parameter.
Also Value/Expansion Line can also be used as Support/Resistance zone,
Liquidity Levels : The indicator includes functionality to detect and display liquidity levels on the chart.
Dashboard Display : A customizable dashboard provides users with key information, including liquidity levels, master pattern values, and whether the current price is above or below Master Pattern's value lines.
Additionally, when liquidity is swept or the price rises above or falls below the value line. this information can be displayed on the dashboard.
Customizable Settings: Users can adjust parameters such as the pattern detection mode, sensitivity to liquidity levels, liquidity type (cumulative or individual for each swing), visualization preferences for master patterns, the position and font size of the dashboard.
🔶 Disclaimer:
Use with Caution: This indicator is provided for educational and informational purposes only and should not be considered as financial advice. Users should exercise caution and perform their own analysis before making trading decisions based on the indicator's signals.
Not Financial Advice: The information provided by this indicator does not constitute financial advice, and the creator (UAlgo) shall not be held responsible for any trading losses incurred as a result of using this indicator.
Backtesting Recommended: Traders are encouraged to backtest the indicator thoroughly on historical data before using it in live trading to assess its performance and suitability for their trading strategies.
Risk Management: Trading involves inherent risks, and users should implement proper risk management strategies, including but not limited to stop-loss orders and position sizing, to mitigate potential losses.
No Guarantees: The accuracy and reliability of the indicator's signals cannot be guaranteed, as they are based on historical price data and past performance may not be 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.
Precision Strike Entry [PSE]This tool, known as Precision Strike Entry (PSE) , automatically generates Fibonacci Retracement Levels on any chart. More specifically, it scans for continuation and reversal trades based on two inputs and provides exact entry, exit ( Stop Loss ), and Take Profit levels.
Precision Strike Entry can be used for both Crypto and Forex markets.
A crucial aspect is adjusting the " Trading Mode " length to identify the correct extreme points or Custom Pivot Period Lookback. Unlike manually drawn Fibonacci levels, which remain static, the tool adjusts its levels dynamically when the chart's time frame changes.
Trading Mode Options:
Custom – To set manually Pivot Period Lookback
Scalper - Recommended for 5-15 min timeframes
Normal - Recommended for 15 min-2h timeframes
Swing - Recommended for 2h-4h timeframes
Unique to this tool is that the user can filter specific conditions before the Fibonacci is drawn on the chart. Additionally, it provides exact entry, stop loss, and Take Profit levels.
The identification of possible Fibonacci Retracement happens using two trigger techniques:
1-2 Setup and Trendline Break identification.
--> Using the 1-2 Setup identification, the indicator attempts to identify the next wave for point 3 using Fibonacci retracement rules.
--> Using the TrendLine breakout filter, the indicator will try to identify a possible pullback entry, utilizing Fibonacci retracement.
The indicator has been designed for bot processes, meaning it will not identify a short trade until you are in a long position and vice versa. Every trade ends with a custom breakeven at TP5 or hitting Stop Loss. When a trade ends/closes, the indicator will automatically search for a new long/short opportunity.
Since every symbol (Pair/Coin) has different conformations and pivots, not all pivot period parameters are perfect for every pair and timeframe. This is why the indicator gives you the opportunity to find the best pivot period for every combination of pair/timeframe, thanks to the Tuning Dashboard .
For example, for APE/USDT.P, by adjusting the 1-2 Setup & TrendLine Pivot Period Lookback settings, you can find a good setting with 1-2 Setup pivots set to 14, and TrendLine Breakout set to 15. The indicator checks the past 1000 bars and historical trades to provide an overview of what happened during the past 1000 bars.
In this case, the total number of trades was 145, and only 35 trades (24% of total trades) hit the Stop Loss without hitting at least TP1. TP1 was hit 110 times (75.75% of trades), TP2 65 times, etc.
This summary table also provides an indication of which pivot period setting is best for a specific pair/time frame combination. It offers statistical insights on how Take Profits were hit, giving you more confidence in how much of your position you will sell for each Take Profit level.
Pivot period settings for 1-2 Setup & Trend Line Breakout identification can be modified in the indicator parameters when the Trading Mode is set to Custom. There is also an extra parameter for filtering Long/Short ( Buy and Sell ) signals based on trend, identified using two EMAs (Moving Averages) with periods of 74 and 144.
Within the settings, you can also set Stop Loss and Breakeven settings as you prefer.
Default settings are:
TP1 Breakeven Level to Entry (possible values: Entry - DCA Entry - StopLoss)
TP2 Breakeven Level to TP1 (possible values: Entry - TP1 - StopLoss)
Breakeven Trigger: Use Close/Open of candles
Stoploss Trigger: Use Close/Open of candles
The indicator settings also include some visual settings to adapt the indicator based on the template you are using for your trading view charts for the best experience.
Alert Settings:
Precision Strike Entry (PSE) is designed to integrate with third-party bot systems
You can set three different alert modes:
TradingView Alert : You will receive classic TradingView alerts with messages indicating the desired alert, like Open Long (BUY), StopLoss Hit, Breakeven, and TakeProfits trigger alerts. (You will receive only the selected alerts from the list.)
Bot Alert : You will receive alerts only for Create Trade or Close Trade with the string of your UUID (you have to fill them in related to your Bot indication) and remember to set the Webhook setting to ensure the alert triggers on your Bot. When you use Bot Alert, you have to set the indicator Signal Type related to your Bot settings. NB: If you have created a TradingView Bot for Long Position, you will have to choose Signal Type = Long in the indicator settings.
Free Text Trade Alert : Using this setting, you will receive alerts only for Open Trade Long or Short. All information about Stop Loss and Take Profits is integrated into the Free Text Template.
Explanation for possible Fibonacci Retracement identification:
1-2 Setup identification:
Trend Line Breakout Pullback Identification:
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.
VP demo(Rolling period)Introduction
In the native VP (Volume Profile), the commonly referenced parameters are POC (Point of Control), VAH (Value Area High), and VAL (Value Area Low). However, since VAH and VAL are calculated by extending outward from the POC, their values heavily depend on the shape of the VP and the parameter settings of the value area ratio. This means their significance in identifying support and resistance in the market is limited. Based on VP, my algorithm is designed with two additional methods to identify low-volume points within a rolling time period, using them as reference points for support and resistance.
Current Algorithm Issues
When the candles update, you might notice overlapping support and resistance lines on the chart, or multiple lines appearing near the same location. This is due to TradingView's rendering issue, where old support and resistance lines that have been deleted in the code are not promptly removed from the chart. You only need to refer to the support and resistance lines that extend to the latest candle. If some lines remain at previous candles, it indicates that these points are outdated. As new candles continue to form, these lagging support and resistance lines will automatically disappear once the number of new candles reaches a certain threshold. Additionally, during significant market movements, you may see a large number of red lines. This is because the algorithm does not yet fully recognize abnormal market conditions. Future versions will gradually improve this aspect.
Volume Profile cheap copyIn the absence of TradingView's open-source Volume Profile (hereinafter referred to as VP) indicator code, I have replicated it. However, because this code is classified as an "indicator" rather than a "tool," it cannot allow users to define the range according to their preferences. In the code, I have set different periods, and users can input 0, 1, or 2 to let the indicator calculate the volume distribution from the earliest candle to the latest candle within the daily, weekly, or monthly range, respectively.
How can we prove that this code is consistent with TradingView's algorithm?
Firstly, the calculation or drawing process of VP starts from the earliest candle in the selected range. After calling TradingView's built-in "Fixed Range Volume Profile" (FRVP) tool, you can enter the settings interface of the tool and check both "developing POC" and "Value Area (VA)." The paths of POC, VAH, and VAL will appear in the chart. These paths are the changes in the values of POC, VAH, and VAL as the number of candles increases. If the paths shown by my indicator are the same as those shown by TradingView's VP indicator, then it proves the algorithms are consistent. Since VP itself is calculated based on volume, the high and low points of candles, and the opening and closing prices, if the data sources are consistent, the calculation results (the paths of POC, VAH, and VAL) will remain consistent over time. This can be used to infer that the algorithms are consistent. Additionally, the parameters of the two indicators (number of rows and value area ratio) must be the same to verify consistency. The number of rows in the indicator is usually set to 100 by default, and the value area ratio is 70. Therefore, the parameters in FRVP should also be set to 100 rows and a value area volume of 70.
Why is there a noticeable discrepancy?
When the start and end points of the VP remain unchanged, reducing the chart's time frame can improve accuracy. For example, when calculating the weekly VP, switching from a 1-hour time frame to a 5-minute time frame can make the indicator more closely match TradingView's native VP. Tests have shown that TradingView's native VP may not use the data displayed on the current chart for its calculations. For instance, the VP may use data from the 5-minute time frame even if the chart is displayed in the 1-hour time frame. However, my replicated VP calculates based on the chart's data, so differences in time frames will affect accuracy.
Current algorithm deficiencies
This replicated VP code is merely a demo and does not handle data updates. In other words, after the latest candle closes, the VP needs to be recalculated, but this recalculation step is not handled, which will cause errors. To resolve this issue, you only need to switch the time frame or delete the indicator and re-add it.
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.
Ocs Ai TraderThis script perform predictive analytics from a virtual trader perspective!
It acts as an AI Trade Assistant that helps you decide the optimal times to buy or sell securities, providing you with precise target prices and stop-loss level to optimise your gains and manage risk effectively.
System Components
The trading system is built on 4 fundamental layers :
Time series Processing layer
Signal Processing layer
Machine Learning
Virtual Trade Emulator
Time series Processing layer
This is first component responsible for handling and processing real-time and historical time series data.
In this layer Signals are extracted from
averages such as : volume price mean, adaptive moving average
Estimates such as : relative strength stochastics estimates on supertrend
Signal Processing layer
This second layer processes signals from previous layer using sensitivity filter comprising of an Probability Distribution Confidence Filter
The main purpose here is to predict the trend of the underlying, by converging price, volume signals and deltas over a dominant cycle as dimensions and generate signals of action.
Key terms
Dominant cycle is a time cycle that has a greater influence on the overall behaviour of a system than other cycles.
The system uses Ehlers method to calculate Dominant Cycle/ Period.
Dominant cycle is used to determine the influencing period for the underlying.
Once the dominant cycle/ period is identified, it is treated as a dynamic length for considering further calculations
Predictive Adaptive Filter to generate Signals and define Targets and Stops
An adaptive filter is a system with a linear filter that has a transfer function controlled by variable parameters and a means to adjust those parameters according to an optimisation algorithm. Because of the complexity of the optimisation algorithms, almost all adaptive filters are digital filters. Thus Helping us classify our intent either long side or short side
The indicator use Adaptive Least mean square algorithm, for convergence of the filtered signals into a category of intents, (either buy or sell)
Machine Learning
The third layer of the System performs classifications using KNN K-Nearest Neighbour is one of the simplest Machine Learning algorithms based on Supervised Learning technique.
K-NN algorithm assumes the similarity between the new case/data and available cases and put the new case into the category that is most similar to the available categories.
K-NN algorithm stores all the available data and classifies a new data point based on the similarity. This means when new data appears then it can be easily classified into a well suite category by using K- NN algorithm. K-NN algorithm can be used for Regression as well as for Classification but mostly it is used for the Classification problems.
Virtual Trade Emulator
In this last and fourth layer a trade assistant is coded using trade emulation techniques and the Lines and Labels for Buy / Sell Signals, Targets and Stop are forecasted!
How to use
The system generates Buy and Sell alerts and plots it on charts
Buy signal
Buy signal constitutes of three targets {namely T1, T2, T3} and one stop level
Sell signal
Sell signal constitutes of three targets {namely T1, T2, T3} and one stop level
What Securities will it work upon ?
Volume Informations must be present for the applied security
The indicator works on every liquid security : stocks, future, forex, crypto, options, commodities
What TimeFrames To Use ?
You can use any Timeframe, The indicator is Adaptive in Nature,
I personally use timeframes such as : 1m, 5m 10m, 15m, ..... 1D, 1W
This Script Uses Tradingview Premium features for working on lower timeframes
In case if you are not a Tradingview premium subscriber you should tell the script that after applying on chart, this can be done by going to settings and unchecking "Is your Tradingview Subscription Premium or Above " Option
How To Get Access ?
You will need to privately message me for access mentioning you want access to "Ocs Ai Trader" Use comment box only for constructive comments. Thanks !
Supply & Demand Trade Analyzer by NYTCSupply and Demand Trade Analyzer
Automatic Zone Identification
• Identifies high quality supply and demand zones on multiple timeframes
• Shows the prices for each zone so the user may easily identify actionable prices to buy or sell
• Once a zone is no longer valid, it is automatically removed from the chart to keep the workspace clean.
• Includes all 4 zone formations: DBR, RBR, RBD and DBD
What are supply and demand zones?
Supply and demand zones are visual representations of areas where there has been a price imbalance. Whenever a demand imbalance is detected, the indicator will plot a green demand zone which may be used as an area to buy under the right market conditions, such as an uptrend or to take profit on a short position. Also, whenever a supply imbalance is detected, the indicator will plot a red supply zone which may be used as an area to sell under the right conditions such as a downtrend or to take profit on a long position.
Automatic Trend Analysis
Proper trend analysis is one of the most important steps in successfully trading or investing in the financial markets as it helps the trader determine which side of the market, he/she wants to take: long or short. For this reason, we decided to also include in this indicator our unique trend analysis technique that utilizes highs and lows to detect when trends begin, how they continue and when they end. The indicator is able properly identify uptrends (Higher Highs and Higher Lows), downtrend (Lower Highs and Lower Lows), and sideways trends (relatively equal highs and lows, higher highs but lower lows or lower highs but higher lows).
• The trader can toggle this feature on or off as needed.
• Our unique trend indicator is located at the bottom of the chart so, as not to interfere with the candles and hide important information.
• When the indicator shows green, the trend is up, when it shows red, the trend is down and sideways when the indicator shows grey.
How it works
Being that supply and demand zones are areas of potential imbalance, under the right conditions price may reverse at these zones. Use them in conjunction with your entry and exit rules to maximize efficacy and minimize risk.
User Inputs
In the settings menu you will find the following functions:
• Zone Count: Allows the trader to determine how many zones are shown on the chart
• Zone-on-Zone: Give the trader the option to also see overlapping zones
• Minor Zones: While the indicator plots major zones by default, this function gives the trader to see all zones in real time as they are being formed.
• HTF Trend: Give the trader the option to turn on our unique trend identification tool
• LTF Momentum: Allows the trader to toggle on or off our unique lower timeframe momentum finder. This tool is best used during the Globex of the Futures session for short-term trading (scalping)
Instruments
Our Trade Analyzer works across all asset classes and on all instruments, including:
Stocks
Futures
Forex
Cryptocurrencies
Summary
The Supply and Demand Trade Analyzer offers traders a quick and easy way of identifying supply and demand or support and resistance areas on a chart. It provides:
• Zone Identification: Proper zone identification on multiple timeframes
• User-Friendly Customization: With a variety of user inputs, you can tailor the analyzer to fit your unique trading strategy.
• Cross-Asset Compatibility: Works seamlessly across all major asset classes and instruments.
• Clean Workspace: Automatic removal of invalid zones keeps your chart organized and focused on the most relevant information.
• Real-Time Insights: Stay ahead of the market with real-time zone plotting and trend analysis, enabling timely and strategic trades.
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.