Candlestick Color Change AlertIt is an alert for change of candlestick color.
Identifies Candle Type
A candle is bullish if the closing price is higher than the opening price.
A candle is bearish if the closing price is lower than the opening price.
Detects a Color Change
The script checks if the current candle is bullish while the previous candle was bearish, or vice versa.
If a change is detected, an alert is triggered.
Triggers an Alert
Users receive an alert notification whenever a candlestick color change occurs.
Alerts can be set for popup, email, mobile push, or webhook notifications.
Visual Highlighting (Optional)
The script can also apply a background color (blue) on the chart to visually mark color changes.
Candlestick analysis
Daily Open @Alpha PipsOverview
The Daily Open @Alpha Pips indicator displays the daily opening price as a reference line on the chart. This level is widely used by traders to gauge market sentiment, potential support/resistance zones, and price reactions throughout the trading session.
How It Works
The line color is red with a 30% transparency level, ensuring visibility without overwhelming the chart.
The line width is set to 2 for clear visualization.
Use Cases
Identify potential intraday support/resistance at the daily open.
Observe price reactions around the daily open level to refine entries and exits.
Use in conjunction with price action, order flow, or smart money concepts for enhanced decision-making.
Additional Information
Works on any timeframe but is best suited for intraday trading strategies.
The script is fully transparent, ensuring traders can easily understand its function.
It does not repaint, providing reliable and stable levels throughout the session.
SL Hunting Detector📌 Step 1: Identify Liquidity Zones
The script plots high-liquidity zones (red) and low-liquidity zones (green).
These are areas where big players target stop-losses before reversing the price.
Example:
If price is near a red liquidity zone, expect a potential stop-loss hunt & reversal downward.
If price is near a green liquidity zone, expect a potential stop-loss hunt & reversal upward.
📌 Step 2: Watch for Stop-Loss Hunts (Fakeouts)
The indicator marks stop-loss hunts with red (bearish) or green (bullish) arrows.
When do stop-loss hunts occur?
✅ A long wick below support (with high volume) = Stop hunt before reversal upward.
✅ A long wick above resistance (with high volume) = Stop hunt before reversal downward.
Confirmation:
Volume must spike (volume > 1.5x the average volume).
ATR-based wicks must be longer than usual (showing a stop-hunt trap).
📌 Step 3: Enter a Trade After a Stop-Hunt
🔹 Bullish Trade (Buying a Dip)
If a green arrow appears (stop-hunt below support):
✅ Enter a long (buy) trade at or just above the wick’s recovery level.
✅ Stop-loss: Below the wick’s low (avoid getting hunted again).
✅ Take-profit: Next resistance level or mid-range of the liquidity zone.
🔹 Bearish Trade (Shorting a Fakeout)
If a red arrow appears (stop-hunt above resistance):
✅ Enter a short (sell) trade at or just below the wick’s rejection level.
✅ Stop-loss: Above the wick’s high (avoid getting stopped out).
✅ Take-profit: Next support level or mid-range of the liquidity zone.
📌 Step 4: Set Alerts & Automate
✅ The indicator triggers alerts when a stop-hunt is detected.
✅ You can set TradingView to notify you instantly when:
A bullish stop-hunt occurs → Look for long entry.
A bearish stop-hunt occurs → Look for short entry.
📌 Example Trade Setup
Example (BTC Long Trade on Stop-Hunt)
BTC is near $40,000 support (green liquidity zone).
A long wick drops to $39,800 with a green arrow (bullish stop-hunt signal).
Volume spikes, and price recovers quickly back above $40,000.
Trade entry: Buy at $40,050.
Stop-loss: Below wick ($39,700).
Take-profit: $41,500 (next resistance).
Result: BTC pumps, stop-loss remains safe, and trade profits.
🔥 Final Tips
Always wait for confirmation (don’t enter blindly on signals).
Use higher timeframes (15m, 1H, 4H) for better accuracy.
Combine with Order Flow tools (like Bookmap) to see real liquidity zones.
🚀 Now try it on TradingView! Let me know if you need adjustments. 📈🔥
Pure Price Action Breakout with 1:5 RR
Description of the Price Action Trading Script (Pine Script v6)
Overview
This script is a pure price action-based breakout strategy designed for TradingView. It identifies key breakout levels and executes long and short trades based on market structure. The strategy ensures a minimum risk-to-reward ratio (RR) of 1:5, aiming for high profitability with well-defined stop-loss and take-profit levels.
How the Script Works
1️⃣ Breakout Identification
The script uses a lookback period to find the highest high and lowest low over the last n bars.
A bullish breakout occurs when the price closes above the previous highest high.
A bearish breakout happens when the price closes below the previous lowest low.
2️⃣ Entry & Exit Strategy
Long Entry: If a bullish breakout is detected, the script enters a long position.
Short Entry: If a bearish breakout is detected, the script enters a short position.
The stop-loss is placed at the recent swing low (for long trades) or recent swing high (for short trades).
The target price is calculated based on a risk-to-reward ratio of 1:5, ensuring profitable trades.
3️⃣ Risk Management
The stop-loss prevents excessive losses by exiting trades when the market moves unfavorably.
The strategy ensures that each trade has a reward potential at least 5 times the risk.
Positions are executed based on price action only, without indicators like moving averages or RSI.
4️⃣ Visual Representation
The script plots breakout levels to help traders visualize potential trade setups.
Entry points, stop-loss, and take-profit levels are labeled on the chart for easy tracking.
Key Features & Benefits
✔ Pure Price Action – No lagging indicators, only real-time price movements.
✔ High Risk-to-Reward Ratio (1:5) – Ensures high-profit potential trades.
✔ Real-time Entry & Exit Signals – Provides accurate trade setups.
✔ Dynamic Stop-loss Calculation – Adjusts based on recent market structure.
✔ Customizable Parameters – Lookback periods and risk ratios can be modified.
Price Action Trend and Margin EquityThe Price Action Trend and Margin Equity indicator is a multifunctional market analysis tool that combines elements of money management and price pattern analysis. The indicator helps traders identify key price action patterns and determine optimal entry, exit and stop loss levels based on the current trend.
The main components of the indicator:
Money Management:
Allows the trader to set risk management parameters such as the percentage of possible loss on the position, the use of fixed leverage and the total capital.
Calculates the required leverage level to achieve a specified percentage of loss.
Price Action:
Correctly identifies various price patterns such as Pin Bar, Engulfing Bar, PPR Bar and Inside Bar.
Displays these patterns on the chart with the ability to customize candle colors and display styles.
Allows the trader to customize take profit and stop loss points to display them on the chart.
The ability to display patterns only in the direction of the trend.
Trend: (some code taken from ChartPrime)
Uses a trend cloud to visualize the current market direction.
The trend cloud is displayed on the chart and helps traders determine whether the market is in an uptrend or a downtrend.
Alert:
Allows you to set an alert that will be triggered when the pattern is formed.
Example of use:
Let's say a trader uses the indicator to trade the crypto market. He sets the money management parameters, setting the maximum loss per position to 5% and using a fixed leverage of 1:100. The indicator automatically calculates the required position size to meet these parameters ($: on the label). Or displays the leverage (X: on the label) to achieve the required risk.
The trader receives an alert when a Pin Bar is formed. The indicator displays the entry, exit, and stop loss levels based on this pattern. The trader opens a position for the recommended amount in the direction indicated by the indicator and sets the stop loss and take profit at the recommended levels.
General Settings:
Position Loss Percentage: Sets the maximum loss percentage you are willing to take on a single position.
Use Fixed Leverage: Enables or disables the use of fixed leverage.
Fixed Leverage: Sets the fixed leverage level.
Total Equity: Specifies the total equity you are using for trading. (Required for calculation when using fixed leverage)
Turn Patterns On/Off: You can turn on or off the display of various price patterns such as Pin Bar, Outside Bar (Engulfing), Inside Bar, and PPR Bar.
Pattern Colors: Sets the colors for displaying each pattern on the chart.
Candle Color: Allows you to set a neutral color for candles that do not match the price action.
Show Lines: Allows you to turn on or off the display of labels and lines.
Line Length: Sets the length of the stop, entry, and take profit lines.
Label color: One color for all labels (configured below) or the color of the labels in the color of the candle pattern.
Pin entry: Select the entry point for the pin bar: candle head, bar close, or 50% of the candle.
Coefficients for stop and take lines.
Use trend for price action: When enabled, will show price action signals only in the direction of the trend.
Display trend cloud: Enables or disables the display of the trend cloud.
Cloud calculation period: Sets the period for which the maximum and minimum values for the cloud are calculated. The longer the period, the smoother the cloud will be.
Cloud colors: Sets the colors for uptrends and downtrends, as well as the transparency of the cloud.
The logic of the indicator:
Pin Bar is a candle with a long upper or lower shadow and a short body.
Logic: If the length of one shadow is twice the body and the opposite shadow of the candle, it is considered a Pin Bar.
An Inside Bar is a candle that is completely engulfed by the previous candle.
Logic: If the high and low of the current candle are inside the previous candle, it is an Inside Bar.
An Outside Bar or Engulfing is a candle that completely engulfs the previous candle.
Logic: If the high and low of the current candle are outside the previous candle and close outside the previous candle, it is an Outside Bar.
A PPR Bar is a candle that closes above or below the previous candle.
Logic: If the current candle closes above the high of the previous candle or below its low, it is a PPR Bar.
Stop Loss Levels: Calculated based on the specified ratios. If set to 1.0, it shows the correct stop for the pattern by pushing away from the entry point.
Take Profit Levels: Calculated based on the specified ratios.
Create a Label: The label is created at the stop loss level and contains information about the potential leverage and loss.
The formula for calculating the $ value is:
=(Total Capital x (Maximum Loss Percentage on Position/100)) / (Difference between Entry Level and Stop Loss Level × Ratio that sets the stop loss level relative to the length of the candlestick shadow × Fixed Leverage Value) .
Labels contain the following information:
The percentage of price change from the recommended entry point to the stop loss level.
Required Leverage (X: ): The amount of leverage required to achieve the specified loss percentage. (Or a fixed value if selected).
Required Capital ($: ): The amount of capital required to open a position with the specified leverage and loss percentage (only displayed when using fixed leverage).
The trend cloud identifies the maximum and minimum price values for the specified period.
The cloud value is set depending on whether the current price is equal to the high or low values.
If the current closing price is equal to the high value, the cloud is set at the low value, and vice versa.
RU
Индикатор "Price Action Trend and Margin Equity" представляет собой многофункциональный инструмент для анализа рынка, объединяющий в себе элементы управления капиталом и анализа ценовых паттернов. Индикатор помогает трейдерам идентифицировать ключевые прайс экшн паттерны и определять оптимальные уровни входа, выхода и стоп-лосс на основе текущего тренда.
Основные компоненты индикатора:
Управление капиталом:
Позволяет трейдеру задавать параметры управления рисками, такие как процент возможного убытка по позиции, использование фиксированного плеча и общий капитал.
Рассчитывает необходимый уровень плеча для достижения заданного процента убытка.
Price Action:
Правильно идентифицирует различные ценовые паттерны, такие как Pin Bar, Поглащение Бар, PPR Bar и Внутренний Бар.
Отображает эти паттерны на графике с возможностью настройки цветов свечей и стилей отображения.
Позволяет трейдеру настраивать точки тейк профита и стоп лосса для отображения их на графике.
Возможность отображения паттернов только в натправлении тренда.
Trend: (часть кода взята у ChartPrime)
Использует облако тренда для визуализации текущего направления рынка.
Облако тренда отображается на графике и помогает трейдерам определить, находится ли рынок в восходящем или нисходящем тренде.
Оповещение:
Дает возможность установить оповещение которое будет срабатывать при формировании паттерна.
Пример применения:
Предположим, трейдер использует индикатор для торговли на крипто рынке. Он настраивает параметры управления капиталом, устанавливая максимальный убыток по позиции в 5% и используя фиксированное плечо 1:100. Индикатор автоматически рассчитывает необходимый объем позиции для соблюдения этих параметров ($: на лейбле). Или отображает плечо (Х: на лейбле) для достижения необходимого риска.
Трейдер получает оповещение о формировании Pin Bar. Индикатор отображает уровни входа, выхода и стоп-лосс, основанные на этом паттерне. Трейдер открывает позицию на рекомендуемую сумму в направлении, указанном индикатором, и устанавливает стоп-лосс и тейк-профит на рекомендованных уровнях.
Общие настройки:
Процент убытка по позиции: Устанавливает максимальный процент убытка, который вы готовы понести по одной позиции.
Использовать фиксированное плечо: Включает или отключает использование фиксированного плеча.
Уровень фиксированного плеча: Задает уровень фиксированного плеча.
Общий капитал: Указывает общий капитал, который вы используете для торговли. (Необходим для расчета при использовании фиксированного плеча)
Включение/отключение паттернов: Вы можете включить или отключить отображение различных ценовых паттернов, таких как Pin Bar, Outside Bar (Поглощение), Inside Bar и PPR Bar.
Цвета паттернов: Задает цвета для отображения каждого паттерна на графике.
Цвет свечей: Позволяет задать нейтральный цвет для свечей неподходящих под прйс экшн.
Показывать линии: Позволяет включить или отключить отображение лейблов и линий.
Длинна линий: Настройка длинны линий стопа, линии входа и тейк профита.
Цвет лейбла: Один цвет для всех лейблов (настраивается ниже) или цвет лейблов в цвет паттерна свечи.
Вход в пин: Выбор точки входа для пин бара: голова свечи, точка закрытия бара или 50% свечи.
Коэффиценты для стоп и тейк линий.
Использовать тренд для прайс экшна: При включении будет показывать прайс экшн сигналы только в направлении тренда.
Отображение облака тренда: Включает или отключает отображение облака тренда.
Период расчета облака: Устанавливает период, за который рассчитываются максимальные и минимальные значения для облака. Чем больше период, тем более сглаженным будет облако.
Цвета облака: Задает цвета для восходящего и нисходящего трендов, а также прозрачность облака.
Логика работы индикатора:
Pin Bar — это свеча с длинной верхней или нижней тенью и коротким телом.
Логика: Если длина одной тени вдвое больше тела и противоположной тени свечи, считается, что это Pin Bar.
Inside Bar — это свеча, полностью поглощенная предыдущей свечой.
Логика: Если максимум и минимум текущей свечи находятся внутри предыдущей свечи, это Inside Bar.
Outside Bar или Поглощение — это свеча, которая полностью поглощает предыдущую свечу.
Логика: Если максимум и минимум текущей свечи выходят за пределы предыдущей свечи и закрывается за пределами предыдущей свечи, это Outside Bar.
PPR Bar — это свеча, которая закрывается выше или ниже предыдущей свечи.
Логика: Если текущая свеча закрывается выше максимума предыдущей свечи или ниже ее минимума, это PPR Bar.
Уровни стоп-лосс: Рассчитываются на основе заданных коэффициентов. При значении 1.0 показывает правильный стоп для паттерна отталкиваясь от точки входа.
Уровки тейк-профита: Рассчитываются на основе заданных коэффициентов.
Создание метки: Метка создается на уровне стоп-лосс и содержит информацию о потенциальном плече и убытке.
Формула для вычисления значения $:
=(Общий капитал x (Максимальный процент убытка по позиции/100)) / (Разница между уровнем входа и уровнем стоп-лосс × Коэффициент, задающий уровень стоп-лосс относительно длины тени свечи × Значение фиксированного плеча).
Метки содержат следующую информацию:
Процент изменения цены от рекомендованной точки входа до уровня стоп-лосс.
Необходимое плечо (Х: ): Уровень плеча, необходимый для достижения заданного процента убытка. (Или фиксированное значение если оно выбрано).
Необходимый капитал ($: ): Сумма капитала, необходимая для открытия позиции с заданным плечом и процентом убытка (отображается только при использовании фиксированного плеча).
Облако тренда определяет максимальные и минимальные значения цены за указанный период.
Значение облака устанавливается в зависимости от того, совпадает ли текущая цена с максимальными или минимальными значениями.
Если текущая цена закрытия равна максимальному значению, облако устанавливается на уровне минимального значения, и наоборот.
Candle Momentum ExhaustionCandle Momentum Exhaustion
The Candle Momentum Exhaustion indicator is designed to help traders spot potential turning points in a trend by identifying when the prevailing momentum may be “running on empty.” The indicator works by comparing the size of each candle’s body (the absolute difference between the open and close) to the average body size over a recent period. When a candle’s body exceeds a user‐defined multiple of this average, it is flagged as an “exhaustion” candle.
• A bullish exhaustion (shown with a red down–facing triangle above the bar) occurs when a very large bullish candle (close > open) is detected, suggesting that buyers may have pushed the price too far and the rally could be near its end.
• A bearish exhaustion (shown with a green up–facing triangle below the bar) occurs when a very large bearish candle (close < open) is detected, implying that selling pressure might be overdone.
These signals can alert you to a potential reversal or consolidation point. The script also includes alert conditions so that you can set up notifications whenever an exhaustion signal is generated.
How It Works
1. Average Candle Body:
The script computes a simple moving average (SMA) of the absolute candle bodies over a user-defined period (default is 14 bars).
2. Exhaustion Candidate:
A candle is flagged as an exhaustion candidate if its body size exceeds the average by more than the set multiplier (default is 2.0).
3. Signal Identification:
• If the exhaustion candle is bullish (close > open), it is marked with a red down–facing triangle above the bar.
• If it is bearish (close < open), it is marked with a green up–facing triangle below the bar.
4. Alerts:
The built-in alertcondition() calls allow you to set alerts (via TradingView’s alert system) so that you can be notified when an exhaustion event occurs.
Risk Disclaimer:
This indicator is provided for educational and informational purposes only and does not constitute financial, investment, or trading advice. Trading and investing involve significant risk, and you should not rely solely on this indicator when making any trading decisions. Past performance is not indicative of future results. Always perform your own due diligence and consult with a qualified financial advisor before making any financial decisions. The creator of this indicator shall not be held responsible for any losses incurred through its use.
EMA Ribbon overlay with Trend-Based Color TransitionThis indicator visualizes an EMA Ribbon with a trend-based color transition. It helps traders quickly identify market trends and transitions between bullish and bearish movements.
How It Works
Exponential Moving Averages (EMAs)
The indicator calculates 8 EMAs based on user-defined lengths.
Default values range from 21 to 55 periods.
Trend Identification
A bullish trend is detected when all EMAs are stacked in an upward sequence (shorter EMAs above longer ones).
A bearish trend is detected when all EMAs are stacked in a downward sequence (shorter EMAs below longer ones).
Trend Reversal Detection
A trend shift to bullish occurs when a previously bearish trend turns bullish.
A trend shift to bearish occurs when a previously bullish trend turns bearish.
Color Transition Logic
Green when transitioning from a bearish to bullish trend.
Red when transitioning from a bullish to bearish trend.
Visualization
EMAs are plotted on the chart.
The area between EMAs is filled with green or red, depending on the trend shift.
Use Case
Identifying Trend Shifts: Traders can use color transitions to detect potential entry and exit points.
Confirming Market Direction: Helps confirm bullish and bearish trends before making trading decisions.
Enhanced Visual Clarity: The ribbon structure makes it easy to see trend momentum and potential reversals.
This indicator is useful for trend-following strategies and can be combined with other technical analysis tools for better decision-making. 🚀
ICT NY Kill Zone Auto Trading### **ICT NY Kill Zone Auto Trading Strategy (5-Min Chart)**
#### **Overview:**
This strategy is based on Inner Circle Trader (ICT) concepts, focusing on the **New York Kill Zone**. It is designed for trading GBP/USD exclusively on the **5-minute chart**, automatically entering and exiting trades during the US session.
#### **Key Components:**
1. **Time Filter**
- The strategy only operates during the **New York Kill Zone (9:30 AM - 11:00 AM NY Time)**.
- It ensures execution only on the **5-minute timeframe**.
2. **Fair Value Gaps (FVGs) Detection**
- The script identifies areas where price action left an imbalance, known as Fair Value Gaps (FVGs).
- These gaps indicate potential liquidity zones where price may return before continuing in the original direction.
3. **Order Blocks (OBs) Identification**
- **Bullish Order Block:** Occurs when price forms a strong bullish pattern, suggesting further upside movement.
- **Bearish Order Block:** Identified when a strong bearish formation signals potential downside continuation.
4. **Trade Execution**
- **Long Trade:** Entered when a bullish order block forms within the NY Kill Zone and aligns with an FVG.
- **Short Trade:** Entered when a bearish order block forms within the Kill Zone and aligns with an FVG.
5. **Risk Management**
- **Stop Loss:** Fixed at **30 pips** to limit downside risk.
- **Take Profit:** Set at **60 pips**, providing a **2:1 risk-reward ratio**.
6. **Visual Aids**
- The **Kill Zone is highlighted in blue** to help traders visually confirm the active session.
**Objective:**
This script aims to **capitalize on institutional price movements** within the New York session by leveraging ICT concepts such as FVGs and Order Blocks. By automating trade entries and exits, it eliminates emotions and ensures a disciplined trading approach.
LTP+ (Satori)Description:
- The LTP+ (Satori) indicator is a powerful tool designed for traders seeking to enhance their market analysis and decision-making processes. Utilizing a unique logistic kernel regression method, this indicator provides a smoothed moving average (MA) that adapts to market volatility, allowing traders to identify potential entry and exit points effectively.
Features:
- Non-Repainting: The indicator ensures that its signals remain valid and do not change after the bar has closed, providing reliable insights for traders.
- Customizable Settings: Users can adjust various parameters, including:
+ Bandwidth: Controls the sensitivity of the indicator to price changes. Higher values can smooth out fluctuations, while lower values can provide more responsive signals.
+ Deviation: Sets the standard deviation multiplier, allowing users to visualize upper and lower bounds on price movement.
+ Line Style: Choose between solid, dotted, or dashed lines for visual preferences.
+Label Visibility: Option to display bullish and bearish labels, enhancing visual clarity on the chart.
- Visual Elements:
+ Main Line: Displays the non-repaint moving average, colored according to the price direction (bullish or bearish).
+ Standard Deviation Bands: Upper and lower bands are plotted to indicate potential volatility levels, helping traders assess risk.
+ Directional Labels: Up and down arrows are displayed at significant crossover points, providing clear signals for potential market reversals.
Use Cases:
+ Trend Analysis: Traders can utilize the smoothed moving average to identify prevailing trends in the market, aiding in both long and short trading strategies.
+ Signal Generation: The indicator's crossover points and standard deviation bands can serve as actionable buy or sell signals, providing traders with key insights into market movements.
+ Risk Management: By visualizing volatility through standard deviation bands, traders can make informed decisions about position sizing and stop-loss placement.
- How to Use:
1. Apply the LTP+ (Satori) indicator to your chart on TradingView.
2. Adjust the bandwidth and deviation settings based on your trading style and market conditions.
3. Monitor the main line for crossover events, and observe the standard deviation bands to assess market volatility.
4. Utilize the directional labels for additional confirmation of potential entry or exit points.
Conclusion:
- The LTP+ (Satori) indicator combines advanced statistical techniques with user-friendly features, making it an essential tool for traders looking to improve their market analysis. Whether you are a beginner or an experienced trader, this indicator can help you navigate the complexities of financial markets with greater confidence.
RSI+ (Satori)Short Title: RSI+ (Satori)
Overview
The RSI HistoAlert Strategy with Bands is an advanced RSI-based indicator designed to provide a visual representation of RSI movements, highlighting overbought and oversold conditions
Key Features
✅ RSI Histogram Representation – Converts RSI values i
✅ Dynamic Bands – Uses a Fibonacci-based multiplier to generate upper and lower bands, helping traders recognize extreme price movements.
✅ **CustomizableCustomizable Alerts – Traders can set buy and sell alert levels to receive visual cues for potential trade entries.
✅ Adaptive Bar Coloring – T
How It Works
The RSI calculation is modified using a customizable period and scaling factor.
Standard deviation bands are computed using an SMA (Simple Moving Average) to create u
The histogram color changes based on RSI crossing predefined alert levels:
🔴 Red bars indicate bearish conditions.
🟢 Green bars indicate bullish cond
🔵 Neutral bars represent indecision.
The bar color of the main chart also adapts to the RSI signal, helping traders spot potential trend shifts.
Customization Options
RSI Period – Adjust the RSI calculation length.
Band Length – Configure the period use
Deviation Multiplier – Set the sensitivity of the bands with a Fi
Buy & Sell Alert Levels – Define thresholds for oversold and overbought zones.
RSI Histogram Modifier – Adjust the scaling o
Use Cases
📊 Trend Confirmation – Use i
🚀 Reversal Detection – Identify potential reversals when RSI crosses extr
📉 Divergence Analysis – Spot divergence between price act
Final Notes
This indicator is ideal for traders looking for an enhanced RSI visualization tool with custom alerts and adaptive bands. It canscalping, swing trading, and long-term investing.
langshen K-Line CounterEnglish Description:**
This indicator, named “langshen K-Line Counter,” is designed to count the number of K-line bars (candlesticks) during the current trading day. The key functionalities include:
- **Daily Reset**: At the start of a new trading day (detected by the change in daily time), the counter automatically resets to 1.
- **Incremental Counting**: For each new bar within the same trading day, the counter increments by 1, thus recording the sequence number of each K-line.
- **Chart Display**: The current count is displayed as a numerical label above the high of each K-line on the chart. Users can customize the text size and color of these numbers.
This feature enables traders to visually track the number of K-lines and their sequence within the day, which can assist in analyzing market trends and the pace of price movements.
中文介绍:**
此指标名为“langshen K线计数器”,主要用于统计当前交易日内的K线(蜡烛图)数量。指标的核心功能包括:
- **每日计数重置**:在交易所日切换时(即新的一天开始时),计数器自动重置为1。
- **逐根累加**:在同一交易日内,每根新出现的K线都会使计数器加1,从而记录当天的K线序号。
- **图表展示**:计数器的当前值会以数字标签的形式显示在每根K线的最高价上方,用户可自定义数字的显示大小和颜色。
这种功能可以帮助交易者直观地了解当天市场中的K线数量以及K线的序号变化,辅助分析市场的走势和节奏。
Color candle by time
This indicator, written in Pine Script v5, allows you to highlight candles (using a user-selected color) that fall within a user-defined time range. Candles outside this range maintain their original appearance.
How it Works and Key Benefits:
- Time Interval Customization: By specifying start and end hours/minutes, you can emphasize only the desired market session.
- Choice of Preferred Color: The body, wicks, and borders of the candles within the selected range are uniformly colored, based on the user’s chosen tone.
- Enhanced Focus on Price Action: By focusing on the most relevant trading hours, your analysis becomes more streamlined and intuitive, without altering the rest of the session’s candle appearance.
!! DO NOT FORGET TO SELECT THE OPTION: 'BRING TO FRONT' IN THE INDICATOR'S VISUAL ORDER !!
Crypto Candle Low Leverage TrackerCrypto Candle Low Leverage Tracker
The Candle Low Leverage Indicator is a powerful tool for long position traders seeking to manage risk effectively when using leverage. By evaluating the current candle's low price, this indicator helps traders make more informed decisions about potential entry points, stop losses, and leverage levels. The indicator matches the low of the candle to the leverage needed for liquidation, giving you a clear view of how leverage impacts your position.
This indicator provides two critical insights:
% from Candle Low: Tracks how much the price has moved from the low of the current candle. For long position traders, this percentage is crucial for understanding how far the price has come off the low and deciding whether it’s safe to enter a position or if further price action is needed.
Leverage Needed: Estimates the leverage required to reach the candle's low as the liquidation price. Long traders can use this information to adjust leverage to a safer level, ensuring they don’t overexpose themselves to liquidation risks by matching leverage to the candle’s low.
Key Features:
Customizable table positioning (top, middle, bottom).
Toggle options to show/hide % from Candle Low and Leverage Needed.
Visual indicators with color changes: green for positive change, red for negative change, and blue for leverage requirements.
Ideal for long traders, this tool helps evaluate market conditions, manage risks, and calculate the best leverage to use in long trades, ensuring that leverage aligns with the candle’s low to prevent unnecessary liquidations.
Moving Average Crossover StrategyCertainly! Below is an example of a professional trading strategy implemented in Pine Script for TradingView. This strategy is a simple moving average crossover strategy, which is a common approach used by many traders. It uses two moving averages (a short-term and a long-term) to generate buy and sell signals.
Input Parameters:
shortLength: The length of the short-term moving average.
longLength: The length of the long-term moving average.
Moving Averages:
shortMA: The short-term simple moving average (SMA).
longMA: The long-term simple moving average (SMA).
Conditions:
longCondition: A buy signal is generated when the short-term MA crosses above the long-term MA.
shortCondition: A sell signal is generated when the short-term MA crosses below the long-term MA.
Trade Execution:
The strategy enters a long position when the longCondition is met.
The strategy enters a short position when the shortCondition is met.
Plotting:
The moving averages are plotted on the chart.
Buy and sell signals are plotted as labels on the chart.
How to Use:
Copy the script into TradingView's Pine Script editor.
Adjust the shortLength and longLength parameters to fit your trading style.
Add the script to your chart and apply it to your desired timeframe.
Backtest the strategy to see how it performs on historical data.
This is a basic example, and professional traders often enhance such strategies with additional filters, risk management rules, and other indicators to improve performance.
3-1 Setup Detector (Multi-Timeframe)📌 3-1 Setup Detector (Multi-Timeframe) – Description
The 3-1 Setup Detector (Multi-Timeframe) is a powerful price action indicator designed for The Strat trading method. It automatically detects 3-1 setups, where an outside bar (3) is followed by an inside bar (1), signaling potential breakout opportunities.
🔥 Key Features:
✅ Multi-Timeframe Support – Works on 1H, 2H, 3H, 4H, 6H, 12H, Daily, 2D, 3D, Weekly, 2W, 3W, Monthly, Quarterly
✅ Real-Time Alerts – Get notified when a 3-1 setup forms
✅ Easy Visualization – Plots markers on the chart for quick recognition
✅ Customizable Timeframe – Select a specific higher timeframe for confirmation
📊 How It Works:
Identifies an outside bar (3), where the high is higher and the low is lower than the previous bar.
Detects an inside bar (1), where the high is lower and the low is higher than the previous bar.
If a 3-1 sequence occurs, the indicator marks the setup on the chart and triggers an alert.
🎯 Trading Applications:
Breakout Strategy: Trade breakouts when the 3-1 setup forms near key levels.
Reversal Signals: Use in combination with support/resistance for confirmation.
Multi-Timeframe Analysis: Detect setups on higher timeframes while trading lower ones.
🚀 Perfect for traders who use The Strat method and want real-time, high-probability trade setups across multiple timeframes!
Multiple Candlestick Patterns - AlgomaxxA comprehensive candlestick pattern detection indicator that identifies seven major Japanese candlestick patterns in real-time. This indicator helps traders identify potential reversal and continuation patterns with customizable visual alerts and labels.
Features
Detects 7 major candlestick patterns:
Doji
Hammer
Shooting Star
Bullish Engulfing
Bearish Engulfing
Morning Star
Evening Star
Color-coded candlesticks for easy pattern identification
Customizable pattern indicators above/below candles
Optional pattern labels with adjustable position
Alert conditions for each pattern
Grouped settings for easy customization
Settings
General Settings
Lookback Period: Number of candles to analyze (default: 20)
Body Size Threshold: Minimum relative size for candle body (default: 0.6)
Pattern Settings
Toggle visibility for each pattern type:
Doji Pattern
Hammer Pattern
Shooting Star Pattern
Bullish Engulfing Pattern
Bearish Engulfing Pattern
Morning Star Pattern
Evening Star Pattern
Label Settings
Show Labels: Toggle pattern labels on/off
Label Text Color: Customize label color
Label Position: Choose between Left/Center/Right alignment
Label Offset: Adjust distance of labels from candles
Pattern Descriptions
Doji: Shows indecision when open and close prices are very close
Yellow color
Cross symbol below candle
Hammer: Potential bullish reversal with long lower shadow
Green color
Triangle up symbol below candle
Shooting Star: Potential bearish reversal with long upper shadow
Red color
Triangle down symbol above candle
Bullish Engulfing: Bullish reversal pattern where current green candle completely engulfs previous red candle
Light green color
Triangle up symbol below candle
Bearish Engulfing: Bearish reversal pattern where current red candle completely engulfs previous green candle
Light red color
Triangle down symbol above candle
Morning Star: Three-candle bullish reversal pattern
Seafoam green color
Triangle up symbol below candle
Evening Star: Three-candle bearish reversal pattern
Pink red color
Triangle down symbol above candle
How to Use
Add the indicator to your chart
Customize the settings based on your preferences:
Enable/disable specific patterns you want to monitor
Adjust label settings for better visibility
Set up alerts for patterns you want to be notified about
Pattern Recognition:
Watch for color changes in candlesticks indicating pattern formation
Look for shape indicators above/below candles
Read pattern labels for quick pattern identification
Trading Suggestions:
Use in conjunction with other technical indicators
Consider overall trend and support/resistance levels
Confirm patterns with volume and price action
Wait for pattern completion before making trading decisions
Tips
Patterns work best when used with multiple timeframes
Combine with trend lines and support/resistance levels
Use volume to confirm pattern strength
Consider market context and overall trend
Larger timeframes typically produce more reliable signals
Use alerts to avoid missing important pattern formations
Disclaimer
This indicator is for informational and educational purposes only. No guarantee is made regarding the accuracy of pattern detection or potential future price movements. Always use proper risk management and consider multiple factors before making trading decisions.
Candlesticks Not Touching EMA 3 & EMA 5 ScannerCandlesticks Not Touching EMA 3 & EMA 5 Scanner
Short Title: EMA Scanner
Overview
This indicator scans for candlesticks that do not touch the EMA 3 and EMA 5, highlighting potential trading opportunities where price action is significantly distanced from these moving averages. It identifies momentum-based entries and helps traders spot strong trends.
How It Works
It checks if the candle's high and low are completely above or below both EMAs (3 & 5).
It ensures that the distance between the candle and EMA 5 is at least a user-defined multiple of the candle range.
When a valid candle is detected, a triangle marker appears below (for long trades) or above (for short trades).
Trade Execution Strategy
Entry:
Long Entry → Break of the candle’s high
Short Entry → Break of the candle’s low
Stop Loss:
Long SL → Low of the same candle
Short SL → High of the same candle
Target: EMA 5
Additional Features
✅ Plots EMA 3 (Blue) and EMA 5 (Red) for reference
✅ Marks potential long and short trades with arrows
✅ Detects & plots when Target or Stop Loss is hit
✅ Alerts for valid signals, target hits, and stop loss hits
Best Use Cases
🔹 Suitable for intraday & swing traders looking for momentum-based trades
🔹 Works well in trending markets
🔹 Helps identify mean-reversion & breakout opportunities
🚀 Use this indicator to refine your trading setups & boost your market edge! 🚀
Daily Time TheoryDaily Time Theory Indicator
The Daily Time Theory indicator is a versatile tool designed exclusively for daily charts. It dynamically colors daily candles according to the day of the week using customizable colors, making it easy to visually distinguish between Monday through Friday. In addition, it provides the option to display horizontal lines for key price levels (Open, High, Low, and Close) for each day. These lines extend into the future for a user-defined number of weeks, giving traders a clear view of historical support and resistance levels.
Key Features:
Day-Based Candle Coloring:
Each weekday’s candles are automatically colored based on user-defined color settings (e.g. blue for Monday, green for Tuesday, etc.), enhancing chart clarity and enabling quick visual analysis of daily patterns.
Customizable Price Level Lines:
Traders can toggle on or off the display of the Open, High, Low, and Close price levels for each day. This allows you to focus on the specific data points that are most relevant to your trading strategy.
Extended Projections:
The indicator lets you extend the drawn price level lines for multiple weeks. This feature provides insight into historical price levels and helps identify potential support and resistance areas.
Tiny Labels for Clarity:
Each line drawn comes with a small, unobtrusive label at its far right that clearly indicates whether the line represents the Open, High, Low, or Close. This ensures that you always know which price level is being highlighted without cluttering the chart.
User-Friendly Input Grouping:
The inputs are neatly organized into groups by day, making it simple to adjust colors and toggle settings for each weekday independently.
How It Works:
The indicator automatically detects the current day on a daily chart and assigns a corresponding color to the candles.
It stores each day’s Open, High, Low, and Close values using persistent variables so that historical price levels remain visible.
When toggled on, horizontal lines representing the selected price levels are drawn across the chart. A tiny label is attached to the end of each line, indicating the type of price level.
The extended lines allow you to see how historical daily price levels may act as support or resistance in the future.
Usage Recommendations:
This indicator is best used on daily timeframes for markets with regular trading sessions. It is ideal for traders who wish to analyze intra-week price behavior, identify recurring support and resistance levels, and incorporate daily price structure into their trading strategy.
ORB with 100 EMAORB Trading Strategy for FX Pairs on the 30-Minute Time Frame
Overview
This Opening Range Breakout (ORB) strategy is designed for trading FX pairs on the 30-minute time frame. The strategy is structured to take advantage of price momentum while aligning trades with the overall trend using the 100-period Exponential Moving Average (100EMA). The primary objective is to enter trades when price breaks and closes above or below the Opening Range (OR), with additional confirmation from a retest of the OR level if the initial entry is missed.
Strategy Rules
1. Defining the Opening Range (OR)
- The OR is determined by the high and low of the first 30-minute candle after market open.
- This range acts as the key level for breakout trading.
2. Trend Confirmation Using the 100EMA
- The 100EMA serves as a filter to determine trade direction:
- Buy Setup: Only take buy trades when the OR is above the 100EMA.
- Sell Setup: Only take sell trades when the OR is below the 100EMA.
3. Entry Criteria
- Buy Trade: Enter a long position when a candle breaks and closes above the OR high, confirming the breakout.
- Sell Trade: Enter a short position when a candle breaks and closes below the OR low, confirming the breakout.
- Retest Entry: If the initial entry is missed, wait for a price retest of the OR level for a secondary entry opportunity.
4. Risk-to-Reward Ratio (R2R)
- The goal is to target a 1:1 Risk-to-Reward (R2R) ratio.
- Stop-loss placement:
- Buy Trade: Place stop-loss just below the OR low.
- Sell Trade: Place stop-loss just above the OR high.
- Take profit at a distance equal to the stop-loss for a 1:1 R2R.
5. Risk Management
- Risk per trade should be based on personal risk tolerance.
- Adjust lot sizes accordingly to maintain a controlled risk percentage of account balance.
- Avoid over-leveraging, and consider moving stop-loss to breakeven if the price moves favourably.
Additional Considerations
- Avoid trading during major news events that may cause high volatility and unpredictable price movements.
- Monitor market conditions to ensure breakout confirmation with strong momentum rather than false breakouts.
- Use additional confluences such as candlestick patterns, support/resistance zones, or volume analysis for stronger trade validation.
This ORB strategy is designed to provide structured trade opportunities by combining breakout momentum with trend confirmation via the 100EMA. The strategy is straightforward, allowing traders to capitalise on clear breakout movements while implementing effective risk management practices. While the 1:1 R2R target provides a balanced approach, traders should always adapt their risk tolerance and market conditions to optimise trade performance.
By following these rules and maintaining discipline, traders can use this strategy effectively across various FX pairs on the 30-minute time frame.
KAI QUANTUM Candles Analysis - Yearly BreakdownThe "KAI QUANTUM Analysis – Yearly Breakdown" indicator offers a comprehensive, year-by-year examination of candlestick behavior, enabling traders and analysts to gauge market dynamics over extended periods. Key features include:
Yearly Aggregation:
The indicator groups candlestick data by year, providing a clear snapshot of market behavior for each period.
Dual-Color Analysis:
It categorizes candles as bullish (green) or bearish (red) and computes statistics separately for each, allowing you to assess both upward and downward market trends.
Average Body Size & Candle Count:
For each year, the indicator calculates the average body size of green and red candles and tracks the total number of each, helping you understand overall market volatility and momentum.
Top 10 Candle Analysis:
It identifies the ten largest candles (by body size) in each year and computes their average size, offering insight into the most significant market moves during that period.
Largest Candle Metrics:
The indicator determines the absolute size of the largest green and red candles in each year.
Percentage Move Calculation:
In addition to absolute values, it computes the largest move as a percentage of the open price for both green and red candles. This allows you to see not only which year experienced the biggest moves but also how those moves compare relative to the opening price.
Clear Tabular Display:
All the computed statistics are organized in an on-chart table, making it easy to compare yearly trends at a glance.
Ideal for daily and higher timeframes, this indicator is a valuable tool for long-term market analysis, enabling you to identify trends, assess volatility, and make informed trading decisions based on historical market behavior.
OmniPulse (Fixed Version)OmniPulse (Fixed Version) – Description
OmniPulse is a multi-indicator framework designed to combine three core oscillators—RSI, Stochastic, and Momentum—at various lookback lengths, then refine their signals using placeholder features such as machine learning forecasting, adaptive cycle detection, and neural network filtering. While some of these advanced features are not natively supported in Pine Script, they are represented here in simplified forms to illustrate how a more sophisticated system could be structured.
Key Components:
Multi-Length Oscillator Arrays
RSI (calcrsi() function)
Stochastic (placeholder via ta.sma() on a typical price average)
Momentum (ta.roc())
These are calculated for multiple lengths defined by the rsiLengths, stochLengths, and momentumLengths arrays.
Dual-Threshold Convergence
Compares each oscillator’s value to user-defined upper/lower thresholds (threshold1, threshold2) to identify bullish or bearish conditions.
Summarizes results in a convergence score.
Placeholder Machine Learning Forecast
Demonstrates a simple averaging of oscillator values as a “forecast” when toggled on.
Adaptive Cycle Detection (Placeholder)
Introduces a static cycle period (e.g., 20.0) as a placeholder for more advanced transforms.
Neural Network Filter (Placeholder)
Averages convergence, forecast, and cyclePeriod into a single filteredSignal.
Signal Plotting
Plots the filtered signal on the chart.
Highlights potential bullish or bearish extremes with shape markers based on percentile thresholds.
Practical Use & Extension:
Real Multi-Timeframe Analysis: Replace placeholders with request.security() for each timeframe.
Advanced Forecasting: Incorporate custom or external machine learning models.
Genuine Cycle Detection: Implement more sophisticated logic or user-defined cycle detection tools.
Neural Network Heuristics: Expand the placeholder step into a deeper filtering or weighting system.
Overall, OmniPulse serves as an adaptable blueprint for traders and developers, showcasing how multiple indicators and advanced concepts might be combined into a cohesive, signal-generating framework.
ROBO STB Custom Weekly Candle (Fri-Thu)Description:
This indicator creates custom weekly candles that start on Friday and end on Thursday, instead of the standard Monday–Friday weekly structure in TradingView. It aggregates the open, high, low, and close (OHLC) values from Friday to Thursday and displays them as candlesticks on the chart.
Features:
✅ Custom weekly candles from Friday to Thursday
✅ Dynamic calculation of open, high, low, and close
✅ Works on any timeframe
✅ Helps traders analyze market structure differently
How It Works:
Identifies the custom weekly session based on Friday's start and Thursday's end.
Aggregates OHLC values within this time range.
Resets the values when a new custom week begins.
Plots the calculated weekly candles on the chart.
Use Case:
This indicator is useful for traders who prefer to analyze weekly price movements based on a non-standard start and end day, especially those focusing on forex, crypto, or commodities where trading hours differ.
Notes:
This script does not modify existing candles but overlays new custom weekly candles on the chart.
It does not repaint and updates in real-time.
If you find this useful, like and share! 🚀
Period Counter CandleDescription:
The Period Candle Counter is a Pine Script v6 indicator designed to track and display candle statistics within a user-defined time range. This tool provides valuable insights into market movement by counting green (bullish) and red (bearish) candles within the selected period, along with their respective percentages.
Additionally, it calculates the total duration of the selected candles based on the current chart timeframe. This allows traders to understand how much actual market time has passed during the analyzed period.
Features & Functionality:
✅ Custom Time Selection:
Users can define a start and end time for the analysis.
The indicator automatically identifies and tracks candles within this period.
✅ Candle Count & Percentages:
Total Candles in the selected period.
Green Candle Count & Percentage (bullish candles).
Red Candle Count & Percentage (bearish candles).
✅ Time Calculation:
Multiplies the number of candles by the chart timeframe.
Converts the total time into hours and minutes (e.g., "2h 30m").
✅ User-Friendly Display:
Data is neatly organized in a panel positioned in the top-right corner of the chart.
Background highlighting is applied during the selected period for easy visualization.
Use Cases:
📊 Trend Analysis – Helps traders identify whether a session was bullish or bearish.
⏳ Market Session Timing – Understand how long a specific trend or movement lasted.
📉 Backtesting Strategy Support – Evaluate historical periods efficiently.