Pala Hammer and Inverted HammerEnglish Explanation
This Pine Script code implements an indicator called "Hammer and Inverted Hammer," designed to detect two specific candlestick patterns – the Hammer and the Inverted Hammer – on a chart. It provides visual markers and alerts when these patterns occur based on specific tail length and price conditions.
Key Components:
1. Indicator Setup: Defines the indicator's name, a short title, and specifies that it overlays the chart.
2. Functions for Tail Detection:
- hasLowerTail: Checks if a candlestick has a lower tail, based on a specified minimum length as a percentage.
- hasUpperTail: Similarly, checks if a candlestick has an upper tail based on specified length criteria.
- consecutiveLowerTailsExist & consecutiveUpperTailsExist: Verify if a defined number of consecutive candles meet the lower or upper tail conditions.
3. Calculations for Price Levels:
- lowestLowInPreviousBars & highestHighInPreviousBars: Determine the lowest or highest prices over a set number of previous candles.
- percentageBelowLowestLow & percentageAboveHighestHigh: Calculate the percentage of the current candle’s price that is below or above these determined levels.
4. Conditions:
- finalConditionLowerTails: Checks if there are consecutive lower tails, the current candle’s low is below the lowest low of previous candles, and the percentage is above a threshold.
- finalConditionUpperTails: Similar check for upper tails and price levels.
5. Visual Indicators and Alerts:
- Adds visual markers (green label for Hammer, red label for Inverted Hammer) on the chart when patterns are detected.
- Creates alert conditions that notify when either a Hammer or Inverted Hammer pattern is present on the chart.
This script is useful for traders looking to identify reversal signals and can be customized by modifying the percentage thresholds and number of candles evaluated.
Türkçe Açıklama
Bu Pine Script kodu, grafikte iki özel mum çubuğu formasyonunu - Çekiç ve Ters Çekiç - tespit etmek için tasarlanmış "Çekiç ve Ters Çekiç" adlı bir göstergeyi uygular. Bu formasyonlar meydana geldiğinde görsel işaretler ve uyarılar sağlar ve belirli kuyruk uzunluğu ve fiyat koşullarına göre çalışır.
Ana Bileşenler:
1. Gösterge Kurulumu: Gösterge adı, kısa başlığı tanımlar ve grafikte yerleştirileceğini belirtir.
2. Kuyruk Tespiti Fonksiyonları:
- hasLowerTail: Bir mum çubuğunun belirli bir minimum uzunluk yüzdesine göre alt kuyruğa sahip olup olmadığını kontrol eder.
- hasUpperTail: Benzer şekilde, üst kuyruk için belirli uzunluk kriterlerine göre kontrol yapar.
- consecutiveLowerTailsExist & consecutiveUpperTailsExist: Belirli bir sayıda ardışık mumun alt veya üst kuyruk koşullarını karşılayıp karşılamadığını doğrular.
3. Fiyat Seviyesi Hesaplamaları:
- lowestLowInPreviousBars & highestHighInPreviousBars: Önceki mumlar arasında belirli bir sayıda en düşük veya en yüksek fiyatı belirler.
- percentageBelowLowestLow & percentageAboveHighestHigh: Mevcut mumun fiyatının, belirlenen seviyelerin altında veya üstünde kaldığı yüzdeleri hesaplar.
4. Koşullar:
- finalConditionLowerTails: Ardışık alt kuyrukların, mevcut mumun önceki mumların en düşük fiyatının altında kalıp kalmadığını ve yüzdelik eşik üzerinde olup olmadığını kontrol eder.
- finalConditionUpperTails: Üst kuyruk ve fiyat seviyeleri için benzer bir kontrol gerçekleştirir.
5. Görsel Göstergeler ve Uyarılar:
- Çekiç (yeşil etiket) ve Ters Çekiç (kırmızı etiket) tespit edildiğinde grafikte görsel işaretler ekler.
- Grafikte bir Çekiç veya Ters Çekiç formasyonu bulunduğunda bildirim sağlayan uyarı koşulları oluşturur.
Bu gösterge, geri dönüş sinyallerini belirlemek isteyen yatırımcılar için faydalıdır ve yüzdelik eşikler ile değerlendirilen mum sayıları değiştirilerek özelleştirilebilir.
Candlestick analysis
Intraday Institutional ZonesThis indicator, Intraday Institutional Zones, is designed to identify key supply and demand levels on a daily timeframe. By calculating daily range averages over specific periods, this tool provides high and low zones, helping traders observe institutional levels in intraday timeframes. This indicator does not offer buy or sell signals but instead provides insights into potential areas of interest based on recent price action data.
Candle Range Theory [Advanced] - AlgoVisionUnderstanding Candle Range Theory (CRT) in the AlgoVision Indicator
Candle Range Theory (CRT) is a structured approach to analyzing market movements within the price ranges of candlesticks. CRT is founded on the idea that each candlestick on a chart, regardless of timeframe, represents a distinct range of price action, marked by the candle's open, high, low, and close. This range gives insights into market dynamics, and when analyzed in lower timeframes, reveals patterns that indicate underlying market sentiment and institutional behaviors.
Key Concepts of Candle Range Theory
Candlestick Range: The range of a candlestick is simply the distance between its high and low. Across timeframes, this range highlights significant price behavior, with each candlestick representing a snapshot of price movement. The body (distance between open and close) shows the primary price action, while wicks (shadows) reflect price fluctuations or "noise" around this movement.
Multi-Timeframe Analysis: A higher-timeframe (HTF) candlestick can be dissected into smaller, structured price movements in lower timeframes (LTFs). By analyzing these smaller movements, traders gain a detailed view of the market’s progression within the HTF candlestick’s range. Each HTF candlestick’s high and low provide support and resistance levels on the LTF, where the price can "sweep," break out, or retest these levels.
Market Behavior within the Range: Price action within a range doesn’t move randomly; it follows structured behavior, often revealing patterns. By analyzing these patterns, CRT provides insights into the market’s intention to accumulate, manipulate, or distribute assets within these ranges. This behavior can indicate future market direction and increase the probability of accurate trading signals.
CRT and ICT Power of 3: Accumulation, Manipulation, and Distribution (AMD)
A foundational element of our CRT indicator is its combination with ICT’s Power of 3 (Accumulation, Manipulation, and Distribution or AMD). This approach identifies three stages of market movement:
Accumulation: During this phase, institutions accumulate positions within a tight price range, often leading to sideways movement. Here, price consolidates as institutions carefully enter or exit positions, erasing traces of their intent from public view.
Manipulation: Institutions often use manipulation to create false breakouts, targeting retail traders who enter the market on perceived breakouts or reversals. Manipulation is characterized by liquidity grabs, false breakouts, or stop hunts, as price momentarily moves outside the established range before quickly returning.
Distribution: Following accumulation and manipulation, the distribution phase aligns with the true market direction. Institutions now allow the market to move with the trend, initiating a stronger and more sustained price movement that aligns with their intended position.
This AMD cycle is often observed across multiple timeframes, allowing traders to refine entries and exits by identifying accumulation, manipulation, and distribution phases on smaller timeframes within the range of a higher-timeframe candle. CRT views this cycle as the "heartbeat" of the market—a continuous loop of price movements. With our indicator, you can identify this cycle on your current timeframe, with the signal candle acting as the "manipulation" candle.
How to Use the Premium AlgoVision CRT Indicator
1. Indicator Display Options
Bullish/Bearish Plot Indication: Toggles the display of bullish or bearish CRT signals. Turn this on to display signals on your chart or off to reduce screen clutter.
Order Block Indication: Highlights the order block entry price, which is the preferred entry point for CRT trades.
Purge Time Indication: Shows when the low or high of Candle 1 is purged by Candle 2, helping to identify potential manipulation points.
2. Filter Options
Match Indicator Candle with Signal: Ensures that only bullish Candle 2s (for longs) or bearish Candle 2s (for shorts) are signaled. This filter helps eliminate signals where the candlestick’s direction does not align with the CRT model.
Take Profit Already Reached: When enabled, this filter removes CRT signals if take profit levels are reached within Candle 2. This helps focus on setups where there’s still room for price movement.
Midnight Price Filter: Filters signals based on midnight price levels:
Longs: Only signals if the order block entry price is below the midnight price.
Shorts: Only signals if the order block entry price is above the midnight price.
3. Entry and Exit Settings
Wick out prevention: Allows positions to stay open and prevent getting wicked out. Positions will still be able to close if determined by the algorithm.
Buy/Sell: This allows you to set you daily bias. You can select to only see buys or sells.
Custom Stop Loss: Sets a custom stop loss distance from the entry price (e.g., $100 or $200 away) if the predefined stop loss based on Candle 2’s low/high doesn’t suit your preference.
Take Profit Levels: Choose from three take profit levels:
Optimized Take Profit: Uses an optimized take profit level based on CRT’s recommended exit point.
Take Profit 1: Sets an initial take profit level.
Take Profit 2: Sets a secondary take profit level for a more extended exit target.
Timeframe of Order Block: Select the timeframe of the order block entry, which can be tailored based on the timeframe of the CRT signal.
Risk-to-Reward Filter: Filters trades based on a specified risk-to-reward ratio, using the indicator’s stop loss as the base. This helps to ensure trades meet minimum reward criteria.
4. Risk Management
Fixed Entry QTY: This will allow you to open all positions with a fixed QTY
Risk to Reward Ratio: This allows you to set a minimum risk to reward ratio, the strategy will only take trades if this risk to reward is met.
Risk Type:
Fixed Amount: Allows you to risk a fixed $ amount.
% of account: Allows you to risk % of account equity.
5. Day and Time Filters
Filter by Days: Specify the days of the week for CRT signals to appear. For instance, you could enable signals only on Thursdays. This setting can be adjusted to any day or combination of days.
Purge Time Filter: Filters CRT signals based on specific purge times when Candle 1’s low/high is breached by Candle 2, as CRT setups are observed to work best during certain times.
Hour Filters for CRT Signals:
1-Hour CRT Times: Allows filtering CRT signals based on specific 1-hour time intervals.
4-Hour CRT Times: Filter 4-hour CRT signals based on specified times.
Forex and Futures Conversion: Adjusts times based on standard sessions for Forex (e.g., 9:00 AM 4-hour candle) and Futures (e.g., 10 PM candle for Futures or 8 AM for Crypto).
6. Currency and Asset-Specific Filters
Crypto vs. Forex Mode: This setting adjusts the indicator’s timing to match market sessions specific to either crypto or Forex/Futures, ensuring the CRT model aligns with the asset type.
Additional Notes
Backtesting Options: Adjust these to test risk management, such as risking a fixed amount or a percentage of the account, for historical performance insights.
Optimized Settings: This version includes all features and optimized settings, with the most refined data analysis.
Conclusion By combining CRT with ICT Power of 3, the AlgoVision Indicator allows traders to leverage the CRT candlestick as a versatile tool for identifying potential market moves. This method provides beginners and seasoned traders alike with a robust framework to understand market dynamics and refine trade strategies across timeframes. Setting alerts on the higher timeframe to catch bullish or bearish CRT signals allows you to plan and execute trades on the lower timeframe, aligning your strategy with the broader market flow.
Structure Pilot [Wang Indicators]Structure Pilot is a structure driven indicator that's build around pattern that can be visible around any timeframe.
Built with and around DTFX, it provides the complete toolkit every trader wanna have on his graph
Having the basics of DTFX masterclass (free on his youtube channel) are a prerequisite for using Structure Pilot.
HOW TO ACCESS : See author instruction bellow
Structures & Zones
What are those zones ? The last bearish movement before a new high refers to the phase where the price of a financial asset drops after reaching a peak, but does not break through the significant previous low. This bearish movement often serves to ( test support, exhaust the sellers, or attract new buyers )
So i've heard, all you need to remind yourself of it that it create a likely area where you can find a move to profit of off
before the price resumes its upward trajectory to reach a new high, thereby confirming a continuing uptren.
Structure Pilot provide auto HTF Zones wich is particulary usefull to have a more macro vision of the market
HTF candles patch note
Displays up to 3 series of HTF Candles: Shows candlesticks from a higher time frame (e.g., daily, 4-hour, weekly) on a lower time frame chart (e.g., 1-hour, 15-minute). This allows traders to simultaneously observe both short-term and long-term market dynamics.
Customizable Time Frames: Users can select any higher time frame to overlay on the current chart. Common time frames include daily, weekly, and monthly candles, but other custom time frames can also be used.
Color Coding: The HTF candles are color-coded for easy differentiation from the lower time frame candles. Users can customize colors to suit their preferences.
Open, High, Low, Close (OHLC) Representation: The indicator displays the full candlestick pattern for the chosen HTF, including the open, high, low, and close values. This helps traders easily identify key price levels and trends.
Use cases
Identifying Long-Term Trends: Traders can spot higher time frame trends while executing short-term trades, helping them align their strategy with the broader market direction.
Improved Entry and Exit Points: The HTF Candles provide additional confirmation for trade setups, allowing traders to better time their entries and exits based on long-term price patterns.
Market Sentiment Analysis: Observing the interaction between lower and higher time frame candles gives traders a clearer sense of market sentiment and potential reversals or continuations.
EMA
Help traders identify market trends and potential entry and exit points.
Vertical HTF Candle Closures Indicator
The Vertical HTF Candle Closures Indicator is a simple yet effective tool that helps traders visually track the closing times of higher time frame (HTF) candles (such as 4H, 1H, 15M) on a lower time frame chart (e.g., 1-minute). This indicator plots vertical lines on the chart at the exact closure time of each selected HTF, allowing traders to quickly recognize key moments when the HTF candles close,or better yet when we trade above / below the last one and reverse ''sweepy sweepy'' .
Limitation : The chart may become cluttered with too many lines if multiple time frames are selected. Adjusting the line style or disabling certain time frames can help reduce visual noise.
ZIL
The ZIL Indicator is designed to automate the process of identifying key structural levels in the market and applying Fibonacci retracements when a significant price break occurs. Specifically, this indicator tracks when a structural high or low is broken and price closes beyond it, then waits for confirmation before plotting Fib levels between the last high of the upward movement and the newly formed low.
Detects when a market structure (high or low) is broken and a candle closes below the previous low or above the previous high, indicating a potential trend shift or continuation.
• Tracks the break of structural lows and waits for a confirmation candle that closes above the candle that set the new low.
Automated Fibonacci Retracement:
• Once the structure break is confirmed, the indicator automatically plots a Fibonacci retracement between:
• The high of the last bullish move (before the new low is set).
• The newly formed low after the structure break.
• Fibonacci levels plotted are:
• -0.27 (INV)- iykyk
• 0 (the new low)
• 0.3 (retracement level)
• 0.5 (retracement level)
• 0.7 (retracement level)
• 1.15 (RUNNER ).
Fibonacci Color Coding:
• Each Fibonacci level is color-coded to provide clear visual guidance:
• -0.27: Dark Red (for extended targets).
• 0: White (for the new structural low).
• 0.3, ORANGE0.5, Green 0.7: Greener* ( levels).
• 1.15: pale blue (for extended targets beyond the retracement zone).
Multi-Timeframe Support:
• Using toe setting "HTF ZIL3 you will have ZIL on différent HTF (corresponding to the HTF Zones) on your charts to help traders find structural breaks and Fibonacci setups in both short-term and long-term markets.
Customizable Opening Range Tracker
The Opening Range Tracker Indicator is designed to help traders identify and track the opening range of a specified time period, specifically starting with the 144-minute candle between 8:24 AM and 10:48 AM. The indicator highlights this range and automatically plots key levels (30%, 50%, 70%) to provide potential strong reaction areas for trading. The time period for the opening range is fully customizable, allowing users to adjust it according to their strategy.
• Customizable Opening Range: Adapt the indicator to any market or session by changing the opening range time window.
• Precise Levels for Trading: The 30%, 50%, and 70% levels provide key zones where price may react, helping traders define entries, exits, or stop loss placements.
• Visual Clarity: The range box and levels make it easy to see the important price areas during the opening range and the rest of the trading session.
Candle Range Theory - AlgoVisionUnderstanding Candle Range Theory (CRT) in the AlgoVision Indicator
Candle Range Theory (CRT) is a structured approach to analyzing market movements within the price ranges of candlesticks. CRT is founded on the idea that each candlestick on a chart, regardless of timeframe, represents a distinct range of price action, marked by the candle's open, high, low, and close. This range gives insights into market dynamics, and when analyzed in lower timeframes, reveals patterns that indicate underlying market sentiment and institutional behaviors.
Key Concepts of Candle Range Theory
Candlestick Range: The range of a candlestick is simply the distance between its high and low. Across timeframes, this range highlights significant price behavior, with each candlestick representing a snapshot of price movement. The body (distance between open and close) shows the primary price action, while wicks (shadows) reflect price fluctuations or "noise" around this movement.
Multi-Timeframe Analysis: A higher-timeframe (HTF) candlestick can be dissected into smaller, structured price movements in lower timeframes (LTFs). By analyzing these smaller movements, traders gain a detailed view of the market’s progression within the HTF candlestick’s range. Each HTF candlestick’s high and low provide support and resistance levels on the LTF, where the price can "sweep," break out, or retest these levels.
Market Behavior within the Range: Price action within a range doesn’t move randomly; it follows structured behavior, often revealing patterns. By analyzing these patterns, CRT provides insights into the market’s intention to accumulate, manipulate, or distribute assets within these ranges. This behavior can indicate future market direction and increase the probability of accurate trading signals.
CRT and ICT Power of 3: Accumulation, Manipulation, and Distribution (AMD)
A foundational element of our CRT indicator is its combination with ICT’s Power of 3 (Accumulation, Manipulation, and Distribution or AMD). This approach identifies three stages of market movement:
Accumulation: During this phase, institutions accumulate positions within a tight price range, often leading to sideways movement. Here, price consolidates as institutions carefully enter or exit positions, erasing traces of their intent from public view.
Manipulation: Institutions often use manipulation to create false breakouts, targeting retail traders who enter the market on perceived breakouts or reversals. Manipulation is characterized by liquidity grabs, false breakouts, or stop hunts, as price momentarily moves outside the established range before quickly returning.
Distribution: Following accumulation and manipulation, the distribution phase aligns with the true market direction. Institutions now allow the market to move with the trend, initiating a stronger and more sustained price movement that aligns with their intended position.
This AMD cycle is often observed across multiple timeframes, allowing traders to refine entries and exits by identifying accumulation, manipulation, and distribution phases on smaller timeframes within the range of a higher-timeframe candle. CRT views this cycle as the "heartbeat" of the market—a continuous loop of price movements. With our indicator, you can identify this cycle on your current timeframe, with the signal candle acting as the "manipulation" candle.
How to Use the AlgoVision CRT Indicator
The AlgoVision CRT Indicator is designed to assist traders in identifying actionable points within the candle range framework. Our indicator operates by generating signals on the close of the second candle, setting up the expectation to trade the third candle as the "manipulation" candle. This is where price movement in a targeted direction typically occurs. Once you receive a signal on candle two's close, you can prepare to execute a trade on the next candle based on the manipulation phase within the CRT framework.
By setting alerts on a higher timeframe, you can receive either bullish or bearish signals that prepare you to enter trades on a lower timeframe. For instance, a bullish signal on the higher timeframe may signal to watch for a setup on the lower timeframe, allowing for precision entries during the accumulation or manipulation phases.
Conclusion By combining CRT with ICT Power of 3, the AlgoVision Indicator allows traders to leverage the CRT candlestick as a versatile tool for identifying potential market moves. This method provides beginners and seasoned traders alike with a robust framework to understand market dynamics and refine trade strategies across timeframes. Setting alerts on the higher timeframe to catch bullish or bearish CRT signals allows you to plan and execute trades on the lower timeframe, aligning your strategy with the broader market flow.
Seasonality v1.33.Seasonality v1.33 - Seasonal Indicator for Trading Trends
Seasonality v1.33 is a tailored indicator designed to analyze seasonal trends in historical price movements, assisting traders in making informed decisions. In its beta version, Seasonality v1.33 allows users to select up to two specific months and compare price changes for these months across several years, helping to identify potential seasonal patterns.
Indicator Features
Identifying Seasonal Trends: By choosing up to two months and a range of years, Seasonality v1.33 offers a visual representation of average price changes and highlights potential positive or negative trends. This supports traders in spotting recurring seasonal price movements that may be influenced by yearly cycles or market conditions.
Historical Comparison Across Multiple Years: The indicator displays the percentage price changes for the selected months over up to 10 years, allowing traders to observe consistency in price fluctuations across different years.
Visual Presentation: A color-coded table shows the dominant trend, either positive or negative, and highlights monthly trends for easy reference. The table size and position can be customized, allowing integration into each user’s preferred chart layout.
How to Use
Month and Year Selection: In the current beta version, traders can select two specific months and a range of years to check for potential seasonal effects.
Trend Summary: The table provides both individual yearly data and an overall trend signal for the selected months, giving a quick overview of prevailing tendencies.
Customizable Display: The table’s position and text size are adjustable to fit seamlessly into the user’s charting interface.
Limitations and Considerations
Data Dependency: The accuracy of analysis relies on the availability of historical price data, which may vary depending on the market or asset.
No Guarantee of Future Trends: While past trends provide insights, they do not guarantee future results. This indicator serves as a supportive tool but should be complemented by thorough analysis and sound risk management.
Feedback and Suggestions
The Seasonality v1.33 indicator is available in beta for free use and testing until the end of the month. Your feedback is highly valued! Comments and suggestions will help us improve future versions and tailor them to the needs of traders.
Normal Price Indicator by KirillPOHEnglish:
Normal Price Indicator is a technical indicator designed to analyze market prices and find normal price levels, as well as the upper and lower boundaries of the normal price area for a given period of time. The indicator is designed for traders and analysts who want to track price movements and identify potential levels for buying or selling based on statistical calculations.
This indicator calculates three main lines:
- The Normal price (Median Price) — the line showing the median of prices for the selected period.
- Upper Bound — a line located at a certain distance from the normal price, based on the standard deviation.
- Lower Bound — a line also located based on the standard deviation from the normal price.
In addition, the indicator can highlight areas on the chart when the price goes beyond these boundaries, which can be a signal to traders about possible important levels.
Main Features:
- Normal price: It is calculated as the median of prices for a given period of time, which helps to track the typical price value on the chart.
- Upper and lower bounds: These limits are calculated as the average price ± (multiplier * standard deviation), which allows you to take into account market fluctuations and set a price range in which the price is considered "normal".
- Adaptation to the scale of the graph: The lines of the indicator adjust correctly to changes in the scale of the chart, while maintaining a link to price levels. They are always displayed in the current position, no matter how much you increase or decrease the graph.
- Zone allocation: The indicator also allows you to highlight areas on the chart where the price is above the upper limit or below the lower limit, which may signal unusual market conditions.
How to use the indicator:
1. The normal price (Median Price): This is the main line of the indicator, which shows the central price level on the chart for the selected period. It helps traders keep track of the standard market level and determine if the current price is within that range.
2. Upper and lower borders: These lines are used to identify potential deviations from the normal price zone. If the closing price turns out to be above the upper limit or below the lower one, this may indicate strong market movements or potential reversals. For example:
- The price above the upper limit may signal a strong bullish trend.
- The price below the lower limit may indicate a bearish trend or a strong correction.
3. Areas on the graph: The indicator highlights the background when the price is above the upper limit (the area is colored green) or below the lower limit (the area is colored red). These visual cues can help traders quickly identify deviations.
Settings :
- Period: The period for calculating the median, standard deviation, and upper/lower bounds. It is usually set to 14, but can be changed depending on the user's needs.
is the multiplier for the standard deviation: This parameter allows you to adjust how much the upper and lower limits will deviate from the normal price. The standard value is 2, which corresponds to two standard deviations, but can be adjusted to suit your needs.
Application:
Traders can use the indicator to analyze market levels and make decisions about entering or exiting the market. Analysts can use the indicator to identify normal price ranges and deviations, which allows them to more accurately predict market trends and potential pivot points.
This indicator is not a signal for trading, but rather a tool for analyzing the market and price levels. It should be used in combination with other indicators and analysis methods for more accurate trading decisions.
Russia:
Normal Price Indicator — это технический индикатор, предназначенный для анализа рыночных цен и нахождения нормальных ценовых уровней, а также верхних и нижних границ нормальной ценовой области за заданный период времени. Индикатор предназначен для трейдеров и аналитиков, которые хотят отслеживать ценовые движения и выявлять потенциальные уровни для покупки или продажи, основываясь на статистических расчетах.
Этот индикатор рассчитывает три основные линии:
- Нормальная цена (Median Price) — линия, отображающая медиану цен за выбранный период.
- Верхняя граница (Upper Bound) — линия, находящаяся на определённом расстоянии от нормальной цены, основанная на стандартном отклонении.
- Нижняя граница (Lower Bound) — линия, также расположенная на основе стандартного отклонения от нормальной цены.
Кроме того, индикатор может выделять области на графике, когда цена выходит за пределы этих границ, что может быть сигналом для трейдеров о возможных важных уровнях.
Основные особенности:
- Нормальная цена: Вычисляется как медиана цен за заданный период времени, что помогает отследить типичное значение цены на графике.
- Верхняя и нижняя границы: Эти границы рассчитываются как средняя цена ± (множитель * стандартное отклонение), что позволяет учитывать рыночные колебания и задавать диапазон цен, в котором цена считается "нормальной".
- Адаптация под масштаб графика: Линии индикатора корректно подстраиваются под изменения масштаба графика, сохраняя привязку к уровням цен. Они всегда отображаются в актуальном положении, независимо от того, насколько вы увеличиваете или уменьшаете график.
- Выделение зон: Индикатор также позволяет выделять области на графике, где цена находится выше верхней границы или ниже нижней границы, что может сигнализировать о необычных рыночных условиях.
Как использовать индикатор:
1. Нормальная цена (Median Price): Это основная линия индикатора, которая показывает центральный уровень цен на графике за выбранный период. Она помогает трейдерам отслеживать стандартный рыночный уровень и определять, находится ли текущая цена в пределах этого диапазона.
2. Верхняя и нижняя границы: Эти линии используются для выявления потенциальных отклонений от нормальной ценовой зоны. Если цена закрытия оказывается выше верхней границы или ниже нижней, это может свидетельствовать о сильных движениях на рынке или потенциальных разворотах. Например:
- Цена выше верхней границы может сигнализировать о сильном бычьем тренде.
- Цена ниже нижней границы может указывать на медвежий тренд или сильную коррекцию.
3. Области на графике: Индикатор выделяет фон, когда цена находится выше верхней границы (область окрашивается в зелёный) или ниже нижней границы (область окрашивается в красный). Эти визуальные подсказки могут помочь трейдерам быстро выявить отклонения.
Параметры настройки :
- Период: Период для расчета медианы, стандартного отклонения и верхних/нижних границ. Обычно устанавливается на 14, но может быть изменён в зависимости от потребностей пользователя.
- Множитель для стандартного отклонения: Этот параметр позволяет настроить, насколько сильно будут отступать верхняя и нижняя границы от нормальной цены. Стандартное значение — 2, что соответствует двум стандартным отклонениям, но можно настроить под свои нужды.
Применение:
Трейдеры могут использовать индикатор для анализа рыночных уровней и принятия решений о входе или выходе на рынок. Аналитики могут использовать индикатор для выявления нормальных диапазонов цен и отклонений, что позволяет более точно прогнозировать рыночные тренды и потенциальные точки разворота.
Этот индикатор не является сигналом для торговли, а скорее инструментом для анализа рынка и ценовых уровней. Его стоит использовать в комплексе с другими индикаторами и методами анализа для более точных торговых решений.
Daily CRTDaily CRT Indicator
The Daily CRT Indicator is a custom technical analysis tool designed to help traders identify and visualize key price patterns on the daily timeframe. Specifically, it detects and marks the "Sweep and Close Inside" pattern, which is a price action pattern that can signal potential trading opportunities.
Key Features:
Pattern Detection:
The indicator detects two specific price action patterns:
Sweep and Close Above: When the current price sweeps above the previous day’s high and closes inside the range, indicating a potential bullish breakout or continuation.
Sweep and Close Below: When the current price sweeps below the previous day’s low and closes inside the range, signaling a potential bearish move.
Horizontal Lines:
The indicator automatically draws horizontal lines at the previous day’s high and low levels whenever a pattern is detected, providing a visual reference for key support and resistance zones.
These lines are displayed in real-time on the chart and adjust dynamically as new patterns form.
Customizable Line Appearance:
Choose the color, thickness, and style (solid, dashed, or dotted) of the lines to fit your preferred chart aesthetic.
Alert System:
The indicator comes with built-in alerts. Set an alert to notify you when the Sweep and Close Inside pattern is detected, helping you stay on top of potential trade setups.
History Management:
Show History: Optionally display the detected patterns on previous bars (past patterns).
Customizable History Duration: Control how far back you want to view the patterns, allowing you to adjust for a cleaner chart and focus on the most recent setups.
Visual Labels:
When the pattern is detected, the indicator can display a label under the bar (customizable) to highlight the occurrence of the pattern, making it easier for traders to spot potential trade signals.
Built for the Daily Timeframe:
This indicator is specifically designed to work on the daily timeframe and is ideal for swing traders and longer-term traders who are focused on the daily price action and want to capture patterns that indicate potential market reversals or breakouts.
How It Works:
The indicator monitors the previous day's price action and looks for situations where the current price action either sweeps the previous day's high or low and then closes inside the range of the previous day's bar. This type of price movement can often signal that a reversal or continuation is about to occur. The indicator marks these setups by drawing horizontal lines and optionally displays labels for quick identification.
Settings & Customization:
Line Color: Customize the color of the lines marking the previous day’s high and low.
Line Thickness: Choose from different thickness levels for better visibility.
Line Style: Pick from solid, dashed, or dotted styles.
Show History: Toggle the display of historical patterns, with the option to control how many days back to show.
Show Labels: Option to toggle the display of labels when the pattern is detected.
Alert Condition: Receive alerts when a pattern is detected, ensuring you never miss a trade opportunity.
Ideal For:
Swing Traders: This indicator is perfect for traders looking to capture swings in the market based on daily price action.
Pattern Traders: Those who trade based on specific chart patterns will benefit from this tool, as it identifies important reversal and breakout signals.
Technical Analysts: Anyone who incorporates price action patterns into their strategy can use this tool as a supplemental analysis tool to improve their trading decisions.
By using the Daily CRT Indicator, you’ll have a powerful tool to help you spot important price action patterns that may indicate key market moves. Whether you're looking to catch breakouts, reversals, or simply track significant support and resistance levels, this indicator is a versatile addition to your trading toolkit.
This description provides a clear understanding of how the Daily CRT Indicator works and what value it offers, making it easy for traders to know if it fits their trading style. Feel free to tweak the description further depending on the details you’d like to emphasize.
Trade Rush IndicatorTrade Rush Indicator
The Trade Rush Indicator is a comprehensive tool designed for traders who seek a clear visualization of key moving averages, combined with Bollinger Bands to identify potential trading opportunities. This script provides a unique approach to trend analysis by combining multiple Exponential Moving Averages (EMA) and Simple Moving Averages (SMA) with varying lengths, along with Bollinger Bands set to both 1 and 2 standard deviations.
Key Features:
EMAs & SMAs: The indicator includes several EMAs (5, 9, 21, 50, 100, 120, 200, 400) and SMAs (21, 50, 100, 120, 200, 400), each serving a different timeframe perspective. The EMAs and SMAs are color-coded for quick reference, and some of the longer-period moving averages (50 EMA, 100 EMA, etc.) are hidden by default to reduce chart clutter but can be manually enabled.
Bollinger Bands: Bollinger Bands are set at 1 and 2 standard deviations to assist in visualizing price volatility. The space between the 1σ and 2σ bands is filled with a light cloud, making it easy to spot periods of higher volatility. This band configuration helps traders assess potential breakout or reversal zones.
Ichimoku Cloud Overlay: Although the Ichimoku cloud calculation is included, it is hidden by default and can be activated when additional trend confirmation is needed. The cloud’s opacity is set to be subtle, allowing it to enhance chart readability without overwhelming other indicators.
Usage:
The Trade Rush Indicator is ideal for swing traders and intraday traders who rely on moving average crossovers, Bollinger Band volatility signals, and trend confirmation through Ichimoku cloud analysis. By visualizing multiple moving averages and Bollinger Bands, traders can identify trend direction, support/resistance zones, and potential breakout areas.
Originality and Value:
This script is a tailored solution for traders who seek a blend of moving averages and Bollinger Bands to enhance their trend-following strategies. Unlike standard setups, the Trade Rush Indicator provides extensive customization options, allowing traders to enable/disable specific indicators based on their trading style and preferences. Its structure also provides unique insights into volatility and trend strength by layering various EMAs and SMAs, helping traders make more informed decisions.
Heisenberg Uncertainty Moving Average (HUMA)Overview
This script introduces and approximation of the Heisenberg Uncertainty Moving Average (HUMA), inspired by the principles of quantum physics, particularly the Heisenberg Uncertainty Principle. The indicator dynamically adjusts its moving average length based on price and momentum uncertainty, ensuring adaptability to market conditions. It also features dynamic coloring to indicate the slope of the moving average.
Step-by-Step Explanation
Calculate Uncertainty in Price (Δx):
The price uncertainty is measured over a specified lookback period (length).
This is done by finding the difference between the highest high and lowest low over the period
Momentum uncertainty is defined using the Rate of Change (ROC) of the closing price over the same lookback period (length).
This indicates how much the price has changed over that period, providing a measure of momentum uncertainty.
Introduce Planck’s Constant (h):
Planck’s constant (h) is scaled down for financial use to set a theoretical minimum threshold for the product of uncertainties.
The threshold is defined as h / (4 * π) to simulate a limit that aligns with the Heisenberg Uncertainty Principle in physics.
Calculate the Uncertainty Product (Δx ⋅ Δp):
The product of price uncertainty (Δx) and the absolute value of momentum uncertainty (Δp) is calculated.
To ensure the product respects the minimum threshold set by quantum principles, the value is capped using math.max(uncertainty_product, threshold).
Normalize the Uncertainty Product to Determine the Moving Average Window Size:
The uncertainty product is used to adjust the length of the moving average dynamically.
The formula inversely adjusts the moving average length based on uncertainty: higher uncertainty results in a shorter (more responsive) window and lower uncertainty results in a longer (smoother) window.
Calculate the Heisenberg Uncertainty Moving Average (HUMA):
The slope is determined by finding the difference between the current HUMA value and the value from the previous period, smoothed with a Double Exponential Moving Average (DEMA).
This helps identify the direction of the trend: positive slope indicates an uptrend, and negative slope indicates a downtrend.
Dynamic Coloring Based on the Slope:
Bidirectional MoM w/ Time Weighting | Optional Intrabar DataBidirectional MoM w/ Time Weighting | Optional Intrabar Data
Core Components:
Intrabar Data Extraction:
The script optionally harnesses lower time frame data (e.g., per-second intervals) for high and low prices within each primary bar. You can set it to the current chart time but if you want to use intrabar data it uses the request.security_lower_tf() to properly pull intrabar data.
This fine-grained data enables an in-depth examination of the price action that occurs within a standard timeframe, enhancing the ability to detect subtle market movements.
A key threshold based on Average True Range (ATR) is used to measure significant price changes intrabar, adding a robust filter for volatility sensitivity.
Cumulative Time-to-Threshold Analysis:
The indicator tracks how long it takes for price changes to reach specified thresholds, marking critical time points when upward or downward price movements exceed these levels. This approach provides insights into the speed and intensity of directional shifts within the market.
The calculated time-to-threshold values act as temporal markers that influence subsequent momentum weighting.
Bidirectional Momentum Calculation:
Momentum is assessed in two directions (upward and downward) using a comprehensive array of price changes.
Adaptive Weighting Mechanism:
Each momentum value is weighted by the calculated time-to-threshold, giving preference to momentum that occurs more rapidly and aligning with potential breakout conditions.
The script also factors in correlations between momentum and price change, ensuring that only the most relevant signals contribute to the final analysis.
Iterative Length Analysis:
By iterating over a range of lengths (e.g., 100 to 200 periods), the script aggregates data to assess momentum across different time scales. This provides a more holistic view of market behavior, accommodating both short-term fluctuations and longer-term trends.
Each length is evaluated using moving averages and correlations to determine its contribution to the total weighted momentum.
Final Aggregated Output:
The weighted sums of upward and downward momentum are normalized by the total weight to produce a final composite metric.
The indicator plots these results as separate upward and downward momentum lines, offering traders a visual representation of which direction holds more momentum strength over various intervals.
Practical Application:
This indicator's advanced design is tailored for traders who require a deeper understanding of price movement dynamics and the underlying forces driving market momentum. By incorporating intrabar data, adaptive time-to-threshold calculations, and iterative analysis, this tool seeks to provide a clearer view of potential market direction shifts and their timing.
The indicator can be used to:
Identify potential breakout or reversal points by observing significant shifts in weighted momentum.
Gauge the relative strength of uptrends and downtrends through the plotted momentum lines.
Enhance decision-making with an additional layer of granularity from intrabar data.
In essence, this script is an ambitious attempt to blend multi-scale analysis, momentum dynamics, and time-weighted evaluation, creating a unique approach to understanding market behavior beyond conventional indicators.
Enhanced Market Analyzer with Adaptive Cognitive LearningThe "Enhanced Market Analyzer with Advanced Features and Adaptive Cognitive Learning" is an advanced, multi-dimensional trading indicator that leverages sophisticated algorithms to analyze market trends and generate predictive trading signals. This indicator is designed to merge traditional technical analysis with modern machine learning techniques, incorporating features such as adaptive learning, Monte Carlo simulations, and probabilistic modeling. It is ideal for traders who seek deeper market insights, adaptive strategies, and reliable buy/sell signals.
Key Features:
Adaptive Cognitive Learning:
Utilizes Monte Carlo simulations, reinforcement learning, and memory feedback to adapt to changing market conditions.
Adjusts the weighting and learning rate of signals dynamically to optimize predictions based on historical and real-time data.
Hybrid Technical Indicators:
Custom RSI Calculation: An RSI that adapts its length based on recursive learning and error adjustments, making it responsive to varying market conditions.
VIDYA with CMO Smoothing: An advanced moving average that incorporates Chander Momentum Oscillator for adaptive smoothing.
Hamming Windowed VWMA: A volume-weighted moving average that applies a Hamming window for smoother calculations.
FRAMA: A fractal adaptive moving average that responds dynamically to price movements.
Advanced Statistical Analysis:
Skewness and Kurtosis: Provides insights into the distribution and potential risk of market trends.
Z-Score Calculations: Identifies extreme market conditions and adjusts trading thresholds dynamically.
Probabilistic Monte Carlo Simulation:
Runs thousands of simulations to assess potential price movements based on momentum, volatility, and volume factors.
Integrates the results into a probabilistic signal that informs trading decisions.
Feature Extraction:
Calculates a variety of market metrics, including price change, momentum, volatility, volume change, and ATR.
Normalizes and adapts these features for use in machine learning algorithms, enhancing signal accuracy.
Ensemble Learning:
Combines signals from different technical indicators, such as RSI, MACD, Bollinger Bands, Stochastic Oscillator, and statistical features.
Weights each signal based on cumulative performance and learning feedback to create a robust ensemble signal.
Recursive Memory and Feedback:
Stores and averages past RSI calculations in a memory array to provide historical context and improve future predictions.
Adaptive memory factor adjusts the influence of past data based on current market conditions.
Multi-Factor Dynamic Length Calculation:
Determines the length of moving averages based on volume, volatility, momentum, and rate of change (ROC).
Adapts to various market conditions, ensuring that the indicator is responsive to both high and low volatility environments.
Adaptive Learning Rate:
The learning rate can be adjusted based on market volatility, allowing the system to adapt its speed of learning and sensitivity to changes.
Enhances the system's ability to react to different market regimes.
Monte Carlo Simulation Engine:
Simulates thousands of random outcomes to model potential future price movements.
Weights and aggregates these simulations to produce a final probabilistic signal, providing a comprehensive risk assessment.
RSI with Dynamic Adjustments:
The initial RSI length is adjusted recursively based on calculated errors between true RSI and predicted RSI.
The adaptive RSI calculation ensures that the indicator remains effective across various market phases.
Hybrid Moving Averages:
Short-Term and Long-Term Averages: Combines FRAMA, VIDYA, and Hamming VWMA with specific weights for a unique hybrid moving average.
Weighted Gradient: Applies a color gradient to indicate trend strength and direction, improving visual clarity.
Signal Generation:
Generates buy and sell signals based on the ensemble model and multi-factor analysis.
Uses percentile-based thresholds to determine overbought and oversold conditions, factoring in historical data for context.
Optional settings to enable adaptation to volume and volatility, ensuring the indicator remains effective under different market conditions.
Monte Carlo and Learning Parameters:
Users can customize the number of Monte Carlo simulations, learning rate, memory factor, and reward decay for tailored performance.
Applications:
Scalping and Day Trading:
The fast response of the adaptive RSI and ensemble learning model makes this indicator suitable for short-term trading strategies.
Swing Trading:
The combination of long-term moving averages and probabilistic models provides reliable signals for medium-term trends.
Volatility Analysis:
The ATR, Bollinger Bands, and adaptive moving averages offer insights into market volatility, helping traders adjust their strategies accordingly.
Reptile Candle Marker with ArrowsReptile Candle Marker
The Reptile Candle Marker is a custom indicator designed to identify a specific pattern in price action, known as the "reptile candle." This pattern is characterized by a small body with long wicks on both the upper and lower sides. These candles often indicate indecision or a reversal in the market, making them useful for traders looking for potential turning points.
Key Features:
Small Body and Large Wicks: The indicator highlights candles with a small body relative to the overall candle range, accompanied by long upper and lower wicks. This is achieved by comparing the size of the wicks to the body and the overall candle range.
Volume Confirmation: The indicator ensures that the identified candles are accompanied by high volume, which serves as confirmation of the significance of the price action.
Visual Highlighting: When a "reptile" candle is detected, the body of the candle and the wicks are both colored yellow. This allows for easy identification on the chart.
Custom Wick Lines: To ensure the wicks stand out, the indicator draws yellow lines above and below the candles, representing the upper and lower wicks. These lines remain fixed in place even as the chart is scaled or moved.
How It Works:
The indicator identifies candles where:
The upper wick is longer than the body by a specified ratio.
The lower wick is longer than the body by the same ratio.
The candle's body size is small compared to the total candle range (less than 30% of the range).
The volume is significantly higher than the 20-period moving average volume, indicating increased market activity.
When these conditions are met, the indicator marks the candle by coloring its body and wicks yellow. Additionally, it draws custom yellow wick lines to visually represent the wick size.
How to Use:
This indicator is designed to highlight potential reversal points or periods of indecision in the market. Traders can use it to spot possible turning points, especially when accompanied by other technical analysis tools such as support/resistance levels or trend indicators.
Customizable Parameters:
Wick to Body Ratio: Controls the sensitivity for detecting large wicks relative to the candle body.
Volume Factor: Adjusts the threshold for identifying candles with significantly higher volume than the moving average.
The Strat Patterns Indicator v1.0The Strat Patterns Indicator is a tool that draws Strat patterns in real-time, highlights Strat scenarios, key levels, and helps traders effectively apply the Strat trading strategy.
It combines features such as pattern recognition, timeframe continuity analysis, target level highlighting, and custom alerts to simplify trading decisions and maximize profit potential.
Display All Strat Patterns
The Strat Patterns Indicator shows all Strat patterns directly on your chart, making it easier to spot trading opportunities in real-time. You can choose to show or hide specific patterns based on your preferences. The patterns include:
2-2 Continuation
2-2 Reversal
3-2-2 Reversal
2-1-2 Continuation
2-1-2 Reversal
1-2-2 Reversal
3-1-2 Continuation
1-3 Reversal
3-1-2 Reversal
Highlight Major Candlestick Patterns
The indicator highlights important candlestick formations that are crucial for forecasting the major trend reversals in the market. These candlestick patterns include:
Hammer
Shooting Star
Doji
Gravestone Doji
Dragonfly Doji
Morning Doji Star
Evening Doji Star
By showcasing these patterns, the indicator helps traders quickly identify possible reversals or continuations, providing an extra layer of confirmation for trading decisions.
Timeframe Continuity Table
This indicator includes a customizable table that displays timeframe continuity, allowing you to align your trades with the overall market trend. You can select up to four higher timeframes to monitor, helping you ensure that your trades follow the broader trend direction.
This feature makes it easy to identify whether the market trend is aligned across multiple timeframes, enhancing your ability to make high-probability trades.
Show Target Levels (Previous Highs/Lows)
The indicator highlights target levels based on previous highs or lows, making it easier to set realistic profit targets and manage trades effectively.
By identifying these key levels, you can better gauge potential price movements and plan your trades with greater precision, ensuring that you maximize profit opportunities while minimizing risk.
Highlight Higher Timeframe Target Levels
This feature allows you to display target levels from a higher timeframe while trading on a lower timeframe.
For example, if you are trading on a 4-hour chart, you can choose to show daily target levels, including high/low levels and Fibonacci golden ratios. This helps you identify more significant profit targets and enhances your ability to capture larger moves while staying aligned with the overall trend.
Breakout Confirmation
The indicator provides an option to display the previous candlestick's high or low value, helping you confirm breakouts in Strat patterns. This feature is useful for validating whether a true breakout has occurred, giving you greater confidence in your trade entries and helping you avoid potential false breakouts.
Alerts for Strat Patterns
With this feature, you can set up alerts that trigger whenever a Strat pattern forms. This ensures you never miss a trading opportunity, keeping you informed and ready to act when key patterns emerge. The alerts provide real-time notifications, allowing you to stay on top of market movements without constantly monitoring your charts.
Trade Mavrix: Elite Trade NavigatorYour ultimate trading companion that helps you spot profitable breakouts, perfect pullbacks, and crucial support & resistance levels. Ready to take your trading to the next level? Let's dive in!
Strategy without indicators v11. General Script Strategy
The objective of this strategy is to open buy or sell orders every new hour based on:
Whether the previous candle closed high (buy) or low (sell).
The presence of tops and bottoms to avoid opening orders at times of possible reversals.
The strategy also allows the user to set a date range (start date and end date) to calculate profit, loss, percentage of gain and percentage of loss only in that period.
2. Initial Settings and Parameters
Start Date and End Date: The start_date and end_date variables define the date range to account for profits and losses. These dates can be adjusted by the user to view results in specific periods.
3. Conditions for Order Entry
At each time change, the script checks the conditions for buying or selling, using the following variables and logic:
Detection of Bullish or Bearish Candle:
bullish_candle: True if the previous candle closed high.
bearish_candle: True if the previous candle closed lower.
Analysis of Tops and Bottoms:
To avoid opening orders close to tops and bottoms, the script uses the function find_top_and_bottom(period), which analyzes the last 500 candles and identifies the highest value (top) and the lowest value (bottom).
The variables current_top and current_bottom store these values.
next_top and next_bottom indicate whether the current candle is close to a top (prevents buying) or a bottom (prevents selling).
4. Opening Orders (Buy and Sell)
At each time change, the script checks the conditions to open buy or sell orders:
Condition for Sell:
The sell order is opened if the previous candle was bullish (bullish_candle) and is not close to a top (not next_top).
If there is an open buy order, it is closed before the new sell order.
Buy Condition:
The buy order is opened if the previous candle was bearish (bearish_candle) and is not near a bottom (not_near_bottom).
If there is an open sell order, it is closed before the new buy order.
5. Calculating Profit and Loss
The profit and loss calculation is only done within the configured date range (start_date and end_date):
Profit and Loss:
total_profit and total_loss accumulate the profit and loss values of all operations during the defined period.
percentage_gain and percentage_loss calculate the percentage of gain and loss in relation to the initial capital.
6. Displaying Results on the Chart
The script displays on the chart, next to the candles, the information on Total Profit, Total Loss, % Gain and % Loss:
Strategy Summary
Setting the Date Range: Allows you to set the period for calculating profit and loss.
Previous Candlestick Analysis: Decide whether to buy or sell based on the previous candlestick.
Preventing Entries at Tops and Bottoms: Avoids buying at tops and selling at bottoms to reduce false signals.
Result Calculation: Accumulates profits, losses and percentages within the configured date range.
Results Display on Chart: Displays the configured statistics directly on the chart, next to the candlesticks.
1. Estratégia Geral do Script
O objetivo dessa estratégia é abrir ordens de compra ou venda a cada nova hora com base em:
Se a vela anterior fechou em alta (compra) ou em baixa (venda).
A presença de topos e fundos para evitar abrir ordens em momentos de possíveis reversões.
A estratégia também permite que o usuário configure um intervalo de datas (data inicial e data final) para calcular o lucro, perda, percentual de ganho e percentual de perda apenas nesse período.
2. Configurações e Parâmetros Iniciais
Data Inicial e Data Final: As variáveis data_inicial e data_final definem o intervalo de datas para contabilizar os lucros e perdas. Essas datas podem ser ajustadas pelo usuário para visualizar resultados em períodos específicos.
3. Condições para Entrada de Ordens
A cada mudança de hora, o script verifica as condições de compra ou venda, usando as seguintes variáveis e lógicas:
Detecção de Vela de Alta ou Baixa:
vela_de_alta: Verdadeiro se a vela anterior fechou em alta.
vela_de_baixa: Verdadeiro se a vela anterior fechou em baixa.
Análise de Topos e Fundos:
Para evitar abrir ordens próximas de topos e fundos, o script utiliza a função find_top_and_bottom(periodo), que analisa as últimas 500 velas e identifica o valor mais alto (topo) e o valor mais baixo (fundo).
As variáveis topo_atual e fundo_atual armazenam esses valores.
topo_proximo e fundo_proximo indicam se a vela atual está perto de um topo (evita compra) ou de um fundo (evita venda).
4. Abertura de Ordens (Compra e Venda)
A cada mudança de hora, o script verifica as condições para abrir ordens de compra ou venda:
Condição para Venda:
A ordem de venda é aberta se a vela anterior foi de alta (vela_de_alta) e não está perto de um topo (not topo_proximo).
Se houver uma ordem de compra aberta, ela é fechada antes da nova ordem de venda.
Condição para Compra:
A ordem de compra é aberta se a vela anterior foi de baixa (vela_de_baixa) e não está perto de um fundo (not fundo_proximo).
Se houver uma ordem de venda aberta, ela é fechada antes da nova ordem de compra.
5. Cálculo de Lucros e Perdas
O cálculo de lucro e perda só é feito dentro do intervalo de datas configurado (data_inicial e data_final):
Lucro e Perda:
lucro_total e perca_total acumulam os valores de lucro e perda de todas as operações durante o período definido.
percentual_ganho e percentual_perca calculam o percentual de ganho e perda em relação ao capital inicial.
6. Exibição dos Resultados no Gráfico
O script exibe no gráfico, próximo das velas, as informações de Lucro Total, Perda Total, % de Ganho e % de Perda:
Resumo da Estratégia
Configuração de Intervalo de Datas: Permite configurar o período para cálculo do lucro e da perda.
Análise de Vela Anterior: Decide se a ordem é de compra ou venda com base na vela anterior.
Prevenção de Entradas em Topos e Fundos: Evita compras em topos e vendas em fundos para reduzir sinais falsos.
Cálculo de Resultados: Acumula lucros, perdas e percentuais dentro do período de datas configurado.
Exibição dos Resultados no Gráfico: Exibe as estatísticas configuradas diretamente no gráfico, próximo das velas.
Enhanced London Session SMC SetupEnhanced London Session SMC Setup Indicator
This Pine Script-based indicator is designed for traders focusing on the London trading session, leveraging smart money concepts (SMC) to identify potential trading opportunities in the GBP/USD currency pair. The script uses multiple techniques such as Order Block Detection, Imbalance (Fair Value Gap) Analysis, Change of Character (CHoCH) detection, and Fibonacci retracement levels to aid in market structure analysis, providing a well-rounded approach to trade setups.
Features:
London Session Highlight:
The indicator visually marks the London trading session (from 08:00 AM to 04:00 PM UTC) on the chart using a blue background, signaling when the high-volume, high-impulse moves tend to occur, helping traders focus their analysis on this key session.
Order Block Detection:
Identifies significant impulse moves that may form order blocks (supply and demand zones). Order blocks are areas where institutions have executed large orders, often leading to price reversals or continuation. The indicator plots the high and low of these order blocks, providing key levels to monitor for potential entries.
Imbalance (Fair Value Gap) Detection:
Detects and highlights price imbalances or fair value gaps (FVG) where the market has moved too quickly, creating a gap in price action. These areas are often revisited by price, offering potential trade opportunities. The upper and lower bounds of the imbalance are visually marked for easy reference.
Change of Character (CHoCH) Detection:
This feature identifies potential trend reversals by detecting significant changes in market character. When the price action shifts from bullish to bearish or vice versa, a CHoCH signal is triggered, and the corresponding level is marked on the chart. This can help traders catch trend reversals at key levels.
Fibonacci Retracement Levels:
The script calculates and plots the key Fibonacci retracement levels (0.618 and 0.786 by default) based on the highest and lowest points over a user-defined swing lookback period. These levels are commonly used by traders to identify potential pullback zones where price may reverse or find support/resistance.
Directional Bias Based on Market Structure:
The indicator provides a market structure analysis by comparing the current highs and lows to the previous periods' highs and lows. This helps in identifying whether the market is in a bullish or bearish state, providing a clear directional bias for trade setups.
Alerts:
The indicator comes with built-in alert conditions to notify the trader when an order block, imbalance, CHoCH, or other significant price action event is detected, ensuring timely action can be taken.
Ideal Usage:
Timeframe: Suitable for intraday trading, particularly focusing on the London session (08:00 AM to 04:00 PM UTC).
Currency Pair: Specifically designed for GBP/USD but can be adapted to other pairs with similar market behavior.
Trading Strategy: Best used in conjunction with a price action strategy, focusing on the key levels identified (order blocks, FVG, CHoCH) and using Fibonacci retracement levels for precision entries.
Target Audience: Ideal for traders who follow smart money concepts (SMC) and are looking for a structured approach to identify high-probability setups during the London session.
Inversion Fair Value Gap Oscillator | Flux Charts💎 GENERAL OVERVIEW
Introducing the new Inversion Fair Value Gap Oscillator (IFVG Oscillator) indicator! This unique indicator identifies and tracks Inversion Fair Value Gaps (IFVGs) in price action, presenting them in an oscillator format to reveal market momentum based on IFVG strength. It highlights bullish and bearish IFVGs while enabling traders to adjust detection sensitivity and apply volume and ATR-based filters for more precise setups. For more information about the process, check the "📌 HOW DOES IT WORK" section.
Features of the new IFVG Oscillator:
Fully Customizable FVG & IFVG Detection
An Oscillator Approach To IFVGs
Divergence Markers For Potential Reversals
Alerts For Divergence Labels
Customizable Styling
📌 HOW DOES IT WORK?
Fair Value Gaps are price gaps within bars that indicate inefficiencies, often filled as the market retraces. An Inversion Fair Value Gap is created in the opposite direction once a FVG gets invalidated. The IFVG Oscillator scans historical bars to identify these gaps, then filters them based on ATR or volume. Each IFVG is marked as bullish or bearish according to the opposite direction of the original FVG that got invalidated.
An oscillator is calculated using recent IFVGs with this formula :
1. The Oscillator starts as 0.
2. When a new IFVG Appears, it contributes (IFVG Width / ATR) to the oscillator of the corresponding type.
3. Each confirmed bar, the oscillator is recalculated as OSC = OSC * (1 - Decay Coefficient)
The oscillator aggregates and decays past IFVGs, allowing recent IFVG activity to dominate the signal. This approach emphasizes current market momentum, with oscillations moving bullish or bearish based on IFVG intensity. Divergences are marked where IFVG oscillations suggest potential reversals. Bullish Divergence conditions are as follows :
1. The current candlestick low must be the lowest of last 25 bars.
2. Net Oscillator (Shown in gray line by default) must be > 0.
3. The current Bullish IFVG Oscillator value should be no more than 0.1 below the highest value from the last 25 bars.
Traders can use divergence signals to get an idea of potential reversals, and use the Net IFVG Oscillator as a trend following marker.
🚩 UNIQUENESS
The Inversion Fair Value Gap Oscillator stands out by converting IFVG activity into an oscillator format, providing a momentum-based visualization of IFVGs that reveals market sentiment dynamically. Unlike traditional indicators that statically mark IFVG zones, the oscillator decays older IFVGs over time, showing only the most recent, relevant activity. This approach allows for real-time insight into market conditions and potential reversals based on oscillating IFVG strength, making it both intuitive and powerful for momentum trading.
Another unique feature is the combination of customizable ATR and volume filters, letting traders adapt the indicator to match their strategy and market type. You can also set-up alerts for bullish & bearish divergences.
⚙️ SETTINGS
1. General Configuration
Decay Coefficient -> The decay coefficient for oscillators. Increasing this setting will result in oscillators giving the weight to recent IFVGs, while decreasing it will distribute the weight equally to the past and recent IFVGs.
2. Fair Value Gaps
Zone Invalidation -> Select between Wick & Close price for FVG Zone Invalidation.
Zone Filtering -> With "Average Range" selected, algorithm will find FVG zones in comparison with average range of last bars in the chart. With the "Volume Threshold" option, you may select a Volume Threshold % to spot FVGs with a larger total volume than average.
FVG Detection -> With the "Same Type" option, all 3 bars that formed the FVG should be the same type. (Bullish / Bearish). If the "All" option is selected, bar types may vary between Bullish / Bearish.
Detection Sensitivity -> You may select between Low, Normal or High FVG detection sensitivity. This will essentially determine the size of the spotted FVGs, with lower sensitivies resulting in spotting bigger FVGs, and higher sensitivies resulting in spotting all sizes of FVGs.
3. Inversion Fair Value Gaps
Zone Invalidation -> Select between Wick & Close price for IFVG Zone Invalidation.
4. Style
Divergence Labels On -> You can switch divergence labels to show up on the chart or the oscillator plot.
Engulfing BoxThe Engulfing Box indicator is a custom script designed to visually highlight and track bullish and bearish engulfing candlestick patterns on a price chart. These patterns are often used to identify potential reversal points, making them valuable for technical analysis. The script dynamically draws colored boxes around these patterns, helping users easily spot them in the price action.
Key Features:
Bullish Engulfing Pattern: When a candlestick fully engulfs the previous bearish candle (i.e., the close of the current candle is higher than the open of the previous candle, and the open is lower than the close of the previous candle), the script draws a green box around the bullish engulfing candle. This box is drawn from the open of the previous candle to the low of the previous candle.
Bearish Engulfing Pattern: When a candlestick fully engulfs the previous bullish candle (i.e., the close of the current candle is lower than the open of the previous candle, and the open is higher than the close of the previous candle), a red box is drawn around the bearish engulfing candle. This box is drawn from the open of the previous candle to the high of the previous candle.
Dynamic Box Management: Once an engulfing pattern is detected, a box is drawn with the following attributes:
Bullish Engulfing Box: Green, with a transparent background.
Bearish Engulfing Box: Red, with a transparent background.
The box will adjust its color to gray if the price moves past certain thresholds, indicating that the engulfing pattern may no longer be as relevant.
Max Pattern Tracking: The script limits the number of engulfing boxes tracked on the chart to prevent clutter. The maximum number of bullish and bearish engulfing patterns shown is customizable (set to 500 by default), and once this limit is exceeded, older boxes are deleted to maintain a clean chart.
Pattern Expiry: Boxes are deleted if price action moves beyond the pattern’s range, ensuring that outdated signals are removed. If the low price falls below the bottom of the bullish engulfing box, or the high price rises above the top of the bearish engulfing box, the respective box is removed. Additionally, if the low price moves below the top of the bullish box or the high price exceeds the bottom of the bearish box, the box's color is changed to a more neutral tone.
How it Works:
Pattern Detection: The script compares the current price data with the previous candlestick to detect the bullish or bearish engulfing patterns.
Box Creation: If a pattern is detected, a colored box is drawn around the candle to visually highlight the pattern.
Pattern Expiry and Cleanup: The script continuously monitors past boxes. If the price moves too far from the box’s range, the box is either deleted or altered to reflect the reduced significance of the pattern.
B ox Count Limit: To avoid clutter, the script ensures that no more than 500 bullish or bearish engulfing boxes are shown at any time.
Customization:
The number of previous bars to scan for engulfing patterns can be adjusted (maxBarsback).
The maximum number of patterns displayed at any time can be modified.
No-Gap-CandlesCandle indicator that makes the chart more readable by removing overnight gaps by using the closing price of the previous day as the opening price of the current day.
First 5 Minutes Open/Close LinesThis very simple indicator paints lines at the high and low of the first 5m candle of the session. It is primarily intended for big cap NYSE traded stocks with high volume. I wrote this indicator to save me the trouble of manually drawing the lines each day.
The lines drawn at the 5m high/low will remain constant regardless of which timeframe you switch to. In the example screenshot, we are looking at the 1m timeframe. This helps us switch effortlessly between different timeframes to see if a given price movement meets our entry criteria.
In addition to drawing lines at the first 5m high/low, it will optionally paint two zones, one each around the high and low. The boundaries of this zone are configurable and expressed as a percentage of the total movement of the first 5m bar. By default, it is set to 25%.
This indicator is based on the concept that the first 5m bar always has massive volume which helps us infer that price may react around the extremes of that movement. The basic strategy works something like this:
- You identify the high timeframe (HTF) trend direction of the stock
- You wait for the first 5m candle of the session to close
- You wait for price to puncture through the outer boundary of the zone marked by the indicator.
- You enter when price retraces to the high, or low, which marks the midpoint of the punctured zone.
- Only enter long on stocks in a HTF uptrend, and short on stocks in an HTF downtrend.
- Use market structure to identify stop loss and take profit targets
Note: Use at your own risk. This indicator and the strategy described herein are not in any way financial advice, nor does the author of this script make any claims about the effectiveness of this strategy, which may depend highly on the discretion and skill of the trader executing it, among many other factors outside of the author's control. The author of this script accepts no liability, and is not responsible for any trading decisions that you may or may not make as a result of this indicator. You should expect to lose money if using this indicator.
Aso Line v2This indicator generates buy and sell signals by analyzing volume and horizontal lines. Red and green zones are displayed on the chart.
・Red zone: indicates a short (sell) signal. When the price reaches this zone, consider a short position.
・Green zone: indicates a long (buy) signal. When the price reaches this zone, consider a long position.
This indicator uses a proprietary algorithm to analyze volume and horizontal lines to identify the best zones for trading. Specifically, we will explain and .
In addition, configuration options for using this indicator effectively will be explained. For example, there are parameters to adjust the width of the zone, the volume calculation period, and the type of horizontal line used. By adjusting these parameters, you can adapt to different market conditions and trading styles.
- The way this indicator works is to look for fractal highs or fractal lows on volume above a moving average of volume. This moving average can be changed in the settings for each time frame.
- Fractal highs are identified by three consecutive highs followed by two consecutive lows, and vice versa for fractal lows.
- A zone is created from the fractal high/low and the closing candlestick price for the selected time frame. The larger the zone, the more important it is.
- You can disable zones, change zones to show only lines, or change the color, transparency, and thickness of lines in all zones.
Globex time (New York Time)This indicator is designed to highlight and analyze price movements within the Globex session. Primarily geared toward the Globex Trap trading strategy, this tool visually identifies the session's high and low prices, allowing traders to better assess price action during extended hours. Here’s a comprehensive breakdown of its features and functionality:
Purpose
The "Globex Time (New York Time)" indicator tracks price levels during the Globex trading session, providing a clear view of overnight market activity. This session, typically running from 6 p.m. ET (18:00) until the following morning at 8:30 a.m. ET, is a critical period where significant market positioning can occur before the regular session opens. In the Globex Trap strategy, the session high and low are essential levels, as price movements around these areas often indicate potential support, resistance, or reversal zones, which traders use to set up entries or exits when the regular trading session begins.
Key Features
Customizable Session Start and End Times
The indicator allows users to specify the exact start and end times of the Globex session in New York time. The default settings are:
Start: 6 p.m. ET (18:00)
End: 8:30 a.m. ET
These settings can be adjusted to align with specific market hours or personal preferences.
Session High and Low Identification
Throughout the defined session, the indicator dynamically calculates and tracks:
Session High: The highest price reached within the session.
Session Low: The lowest price reached within the session.
These levels are essential for the Globex Trap strategy, as price action around them can indicate likely breakout or reversal points when regular trading resumes.
Vertical Lines for Session Start and End
The indicator draws vertical lines at both the session start and end times:
Session Start Line: A solid line marking the exact beginning of the Globex session.
Session End Line: A similar vertical line marking the session’s conclusion.
Both lines are customizable in terms of color and thickness, making it easy to distinguish the session boundaries visually on the chart.
Horizontal Lines for Session High and Low
At the end of the session, the indicator plots horizontal lines representing the Globex session's high and low levels. Users can customize these lines:
Color: Define specific colors for the session high (default: red) and session low (default: green) to easily differentiate them.
Line Style: Options to set the line style (solid, dashed, or dotted) provide flexibility for visual preferences and chart organization.
Automatic Reset for Daily Tracking
To adapt to the next trading day, the indicator resets the session high and low data once the current session ends. This reset prepares it to start tracking new levels at the beginning of the next session without manual intervention.
Practical Application in the Globex Trap Strategy
In the Globex Trap strategy, traders are primarily interested in price behavior around the high and low levels established during the overnight session. Common applications of this indicator for this strategy include:
Breakout Trades: Watching for price to break above the Globex high or below the Globex low, indicating potential momentum in the breakout direction.
Reversal Trades: Monitoring for failed breakouts or traps where price tests and rejects the Globex high or low, suggesting a reversal as liquidity is trapped in these zones.
Support and Resistance Zones: Using the session high and low as key support and resistance levels during the regular trading session, with potential entry or exit points when price approaches these areas.
Additional Configuration Options
Vertical Line Color and Width: Define the color and thickness of the vertical session start and end lines to match your chart’s theme.
Upper and Lower Line Colors and Styles: Customize the appearance of the session high and low horizontal lines by setting color and line style (solid, dashed, or dotted), making it easy to distinguish these critical levels from other chart markings.
Summary
This indicator is a valuable tool for traders implementing the Globex Trap strategy. It visually segments the Globex session and marks essential price levels, helping traders analyze market behavior overnight. Through its customizable options and clear visual representation, it simplifies tracking overnight price activity and identifying strategic levels for potential trade setups during the regular session.