BUY in HASH RibbonsHash Ribbons Indicator (BUY Signal)
A TradingView Pine Script v6 implementation for identifying Bitcoin miner capitulation (“Springs”) and recovery phases based on hash rate data. It marks potential low-risk buying opportunities by tracking short- and long-term moving averages of the network hash rate.
⸻
Key Features
• Hash Rate SMAs
• Short-term SMA (default: 30 days)
• Long-term SMA (default: 60 days)
• Phase Markers
• Gray circle: Short SMA crosses below long SMA (start of capitulation)
• White circles: Ongoing capitulation, with brighter white when the short SMA turns upward
• Yellow circle: Short SMA crosses back above long SMA (end of capitulation)
• Orange circle: Buy signal once hash rate recovery aligns with bullish price momentum (10-day price SMA crosses above 20-day price SMA)
• Display Modes
• Ribbons: Plots the two SMAs as colored bands—red for capitulation, green for recovery
• Oscillator: Shows the percentage difference between SMAs as a histogram (red for negative, blue for positive)
• Optional Overlays
• Bitcoin halving dates (2012, 2016, 2020, 2024) with dashed lines and labels
• Raw hash rate data in EH/s
• Alerts
• Configurable alerts for capitulation start, recovery, and buy signals
⸻
How It Works
1. Data Source: Fetches daily hash rate values from a selected provider (e.g., IntoTheBlock, Quandl).
2. Capitulation Detection: When the 30-day SMA falls below the 60-day SMA, miners are likely capitulating.
3. Recovery Identification: A rising 30-day SMA during capitulation signals miner recovery.
4. Buy Signal: Confirmed when the hash rate recovery coincides with a bullish shift in price momentum (10-day price SMA > 20-day price SMA).
⸻
Inputs
Hash Rate Short SMA: 30 days
Hash Rate Long SMA: 60 days
Plot Signals: On
Plot Halvings: Off
Plot Raw Hash Rate: Off
⸻
Considerations
• Timeframe: Best applied on daily charts to capture meaningful miner behavior.
• Data Reliability: Ensure the chosen hash rate source provides consistent, gap-free data.
• Risk Management: Use alongside other technical indicators (e.g., RSI, MACD) and fundamental analysis.
• Backtesting: Evaluate performance over different market cycles before live deployment.
Trend Analysis
STOCK SCHOOL | SWING TRACKER Swing Tracker is a powerful tool that automatically identifies Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL) directly on the chart, helping traders clearly understand market structure and trend direction. Designed for price action traders, it works seamlessly across all timeframes and instruments, offering clean visual labels for swing points to spot trend continuations or potential reversals. Whether you're following the trend or looking for structure shifts, Swing Tracker keeps you aligned with price action for smarter, more confident trading decisions.
Williams Alligator with Background ColoringThe Benefits of the Williams Alligator – Without the “Spaghetti” on Your Chart
If you're one of those traders who prefer a clean, well-structured chart but don't want to miss out on the advantages of the Williams Alligator, this script is the perfect solution.
It includes all the features of the original TradingView script plus a background color feature based on your custom parameters:
Green when all candles are above the Alligator lines
Red when all candles are below all lines
Gray for everything in between
Feel free to customize the colors and transparency to your liking.
Happy Trading!
Koala Trend HackWhat this indicator is
A minimal, “ tweet‑faithful ” trend read with just two visuals:
1. H4 EMA200 (white): the macro/regime line pulled onto any timeframe.
2. Trend Line (colored): the average of EMA‑8 and EMA‑21; its color shows the current state.
How it works (state → color)
Priority is macro first, then short‑term momentum—so it’s simple but still reactive above H4:
Below H4 200 → Red (Be Bearish).
Above H4 200 with wick into it → Yellow (Be Bullish & Pray / Watch the retest).
Above H4 200 and above both 8 & 21 → Green (Be Bullish).
Above H4 200 but below both 8 & 21 → Orange (Be Cautious).
If none of the above applies, it falls back to the 8/21 cluster (above both = green, below both = orange) or stays Yellow (Neutral/Watch).
How it aligns with the tweet’s 5 rules
1. Reclaim EMAs = Long → close > 8 & 21 → Green.
2. Close below EMAs = Be cautious* → close < 8 & 21 → Orange.
3. Retest of H4 EMA200 = Be bullish and pray → close > H4 and low ≤ H4 → Yellow.
4. Lose H4 EMA200 = Be bearish* → close < H4 → Red.
5. Reclaim H4 EMA200 = Be bullish again* → back above H4 (and ideally > 8/21) → Green.
How to use
Green favors longs; Orange means lighten up or wait; Yellow says “watch the level” after a retest; Red warns against longs until H4 200 is reclaimed.
Notes:
The H4 EMA200 is a higher‑timeframe value fetched with request.security; on sub‑H4 charts it updates during the current 4‑hour candle (responsive but can shift slightly until that candle closes).
EMAs 8 & 21 are used internally to color the line; they’re not plotted, keeping the chart clean.
What would make this better? Modify it and show me what you built!
Key Session LevelsKey Session Levels - Indicator Guide
Created by: MecarderoAurum
Why This Indicator Exists: An Overview
The "Key Session Levels" indicator is a comprehensive tool for day traders that automatically plots the most critical price levels from the current premarket and the previous two full trading days. These levels are watched by countless traders and often act as significant areas of support and resistance.
This indicator provides a clear, objective map of these key zones, helping traders anticipate potential turning points, identify areas of confluence, and make more informed trading decisions without having to manually draw and manage these lines every day.
Features & How to Use Them
This indicator plots several types of important historical levels on your chart. Each one is fully customizable.
1. Premarket Levels (PMH / PML)
What they are: The highest (PMH) and lowest (PML) prices reached during the current day's premarket session (04:00 - 09:30 ET).
Why they matter: The premarket high and low are the first significant levels established for the trading day. They often act as initial support or resistance once the market opens.
How to use them: In the settings under "Premarket Levels," you can toggle the visibility of the PMH and PML, and customize their color, line style, and width.
2. Prior Day Levels (PDH / PDL / PDM / PDP)
What they are: The key price points from the previous full trading day.
PDH: Prior Day High
PDL: Prior Day Low
PDM: Prior Day Midpoint (the exact middle of the PDH and PDL)
PDP: Prior Day Pivot (a classic pivot point calculation)
Why they matter: These are often the most important levels for the current trading day. The market frequently tests the previous day's high and low.
How to use them: Under the "Prior Day" settings, you can enable or disable each of these four levels and customize their appearance.
3. 2-Day Prior Levels (PDH2 / PDL2 / etc.)
What they are: The same set of key levels (High, Low, Mid, Pivot) from two trading days ago.
Why they matter: These levels can still be highly relevant, especially if the market is trading within a multi-day range or returning to test a significant prior level.
How to use them: Under the "2-Day Prior" settings, you can customize the visibility and style of these levels. They are styled with more transparency by default to distinguish them from the more recent prior day's levels.
4. General Settings
Days of History: This setting allows you to control how many past days of historical lines are kept on your chart. This is excellent for back-testing strategies and seeing how price has reacted to these levels in the past.
Label Settings: You can customize the color and size of the on-chart labels (e.g., "PDH," "PML") for better visibility.
Sample Strategy: The Key Level Rejection
This strategy focuses on using the indicator's levels to identify potential reversals at key areas of support or resistance.
Identify a Key Level: Watch as the price approaches a significant level plotted by the indicator, such as the Prior Day High (PDH) or the Premarket Low (PML).
Look for Rejection: Do not trade simply because the price touches the level. Wait for a price action signal that confirms the level is holding. This could be a bearish engulfing candle or a shooting star pattern at a resistance level like PDH, or a bullish hammer or morning star pattern at a support level like PML.
Entry: Once you see a clear rejection candle, enter a trade in the direction of the rejection. For a bearish rejection at the PDH, you would enter a short position.
Stop-Loss: A logical place for a stop-loss is just above the high of the rejection candle (for a short trade) or just below the low of the rejection candle (for a long trade). This defines your risk clearly.
Profit Target: Your first profit target could be the next key level plotted by the indicator. For example, if you shorted a rejection at the PDH, your first target might be the Premarket High (PMH) or the day's opening price.
✅ VMA Avg ATR + Days to Targets 🎯1) The trend filter: LazyBear VMA
You implement the well‑known “LazyBear” Variable Moving Average (VMA) from price directional movement (pdm/mdm).
Internally you:
Smooth positive/negative one‑bar moves (pdmS, mdmS),
Turn them into relative strengths (pdiS, mdiS),
Measure their difference/total (iS), and
Normalize that over a rolling window to get a scaling factor vI.
The VMA itself is then an adaptive EMA:
vma := (1 - k*vI) * vma + (k*vI) * close, where k = 1/vmaLen.
When vI is larger, VMA hugs price more; when smaller, it smooths more.
Coloring:
Green when vma > vma (rising),
Red when vma < vma (falling),
White when flat.
Candles are recolored to match.
Why this matters: The VMA color is your trend regime; everything else in the script keys off changes in this color.
2) What counts as a “valid” new trend?
A new trend is valid only when the previous bar was white and the current bar turns green or red:
validTrendStart := vmaColor != color.white and vmaColor == color.white.
When that happens, you start a trend segment:
Save entry price (startPrice = close) and baseline ATR (startATR = ATR(atrLen)).
Reset “extreme” trackers: extremeHigh = high, extremeLow = low.
Timestamp the start (trendStartTime = time).
Effect: You only study / trade transitions out of a flat VMA into a slope. This helps avoid chop and reduces false starts.
3) While the trend is active
On each new bar without a color change:
If green trend: update extremeHigh = max(extremeHigh, high).
If red trend: update extremeLow = min(extremeLow, low).
This tracks the best excursion from the entry during that single trend leg.
4) When the VMA color changes (trend ends)
When vmaColor flips (green→red or red→green), you close the prior segment only if it was a valid trend (started after white). Then you:
Compute how far price traveled in ATR units from the start:
Uptrend ended: (extremeHigh - startPrice) / startATR
Downtrend ended: (startPrice - extremeLow) / startATR
Add that result to a running sum and count for the direction:
totalUp / countUp, totalDown / countDown.
Target checks for the ended trend (no look‑ahead):
T1 uses the previous average ATR move before the just‑ended trend (prevAvgUp/prevAvgDown).
Up: t1Up = startPrice + prevAvgUp * startATR
Down: t1Down = startPrice - prevAvgDown * startATR
T2 is a fixed 6× ATR move from the start (up or down).
You increment hit counters and also accumulate time‑to‑hit (ms from trendStartTime) for any target that got reached during that ended leg.
If T1 wasn’t reached, it counts as a miss.
Immediately initialize the next potential trend segment with the current bar’s startPrice/startATR/extremes and set validTrendStart according to the “white → color” rule.
Important detail: Using prevAvgUp/Down to evaluate T1 for the just‑completed trend avoids look‑ahead bias. The current trend’s performance isn’t used to set its own T1.
5) Running statistics & targets (for the current live trend)
After closing/adding to totals:
avgUp = totalUp / countUp and avgDown = totalDown / countDown are the historical average ATR move per valid trend for each direction.
Current plotted targets (only visible while a valid trend is active and in that direction):
T1 Up: startPrice + avgUp * startATR
T2 Up: startPrice + 6 * startATR
T1 Down: startPrice - avgDown * startATR
T2 Down: startPrice - 6 * startATR
The entry line is also plotted at startPrice when a valid trend is live.
If there’s no history yet (e.g., first trend), avgUp/avgDown are na, so T1 is na until at least one valid trend has closed. T2 still shows (6× ATR).
6) Win rate & time metrics
Win % (per direction):
winUp = hitUpT1 / (hitUpT1 + missUp) and similarly for down.
(This is strictly based on T1 hits vs misses; T2 hits don’t affect Win% directly.)
Average days to hit T1/T2:
The script stores milliseconds from trend start to each target hit, then reports the average in days separately for Up/Down and for T1/T2.
7) The dashboard table (bottom‑right)
It shows, side‑by‑side for Up/Down:
Avg ATR: historical average ATR move per completed valid trend.
🎯 Target 1 / Target 2: the current trend’s price levels (T1 = avgATR×ATR; T2 = 6×ATR).
✅ Win %: T1 hit rate so far.
⏱ Days to T1/T2: average days (from valid trend start) for the targets that were reached.
8) Alerts
“New Trend Detected” when a valid trend starts (white → green/red).
Target hits for the active trend:
Uptrend: separate alerts for T1 and T2 (high >= target).
Downtrend: separate alerts for T1 and T2 (low <= target).
9) Inputs & defaults
vmaLen = 17: governs how adaptive/smooth the VMA is (larger = smoother, fewer trend flips).
atrLen = 14: ATR baseline for sizing targets and normalizing moves.
10) Practical read of the plots
When you see white → green: that bar is your valid entry (trend start).
An Entry Line appears at the start price.
Target lines appear only for the active direction. T1 scales with your historical average ATR move; T2 is a fixed stretch (6× ATR).
The table updates as more trends complete, refining:
The average ATR reach (which resets your T1 sizing),
The win rate to T1, and
The average days it typically takes to hit T1/T2.
Subtle points / edge cases
No look‑ahead: T1 for a finished trend is checked against the prior average (not including the trend itself).
First trends: Until at least one valid trend completes, T1 is na (no history). T2 still shows.
Only “valid” trends are counted: Segments must start after a white bar; flips that happen color→color without a white in between don’t start a new valid trend.
Time math: Uses bar timestamps in ms, converted to days; results reflect the chart’s timeframe/market session.
TL;DR
The VMA color defines the regime; entries only trigger when a flat (white) VMA turns green/red.
Each trend’s max excursion from entry is recorded in ATR units.
T1 for current trends = (historical average ATR move) × current ATR from entry; T2 = 6× ATR.
The table shows your evolving edge (avg ATR reach, T1 win%, and days to targets), and alerts fire on new trends and target hits.
If you want, I can add optional features like: per‑ticker persistence of stats, excluding very short trends, or making T2 a user input instead of a fixed 6× ATR.
London Session & Market StructureFusion of session indicator with market structure ZigZag line. not my own creation just a fusion of 2 indicators which are publicly available on TV
ALMA Optimized Strategy - Volatility Filter + UT BotThe strategy you provided is an ALMA Optimized Strategy implemented in Pine Script™ version 5 for TradingView. Here is a brief English summary of what it is and how it works:
It is a trend-following strategy combining multiple technical indicators to optimize trade entries and exits.
The core moving average used is the ALMA (Arnaud Legoux Moving Average), known for smoother and less lagging price smoothing compared to traditional EMAs or SMAs.
The strategy also uses other indicators:
Fast EMA (Exponential Moving Average)
EMA 50
ATR (Average True Range) for volatility measurement and dynamic stop loss and take profit levels
RSI (Relative Strength Index) for momentum with overbought/oversold levels
ADX (Average Directional Index) for confirming trend strength
Bollinger Bands as a volatility filter
Buy signals trigger when volatility is sufficient (ATR filter), price is above EMA 50 and ALMA, RSI indicates bullish momentum, ADX confirms trend strength, price is below the upper Bollinger Band, and there is a cooldown period to prevent repeated buys within a short time.
Sell signals are generated when price crosses below the fast EMA.
The strategy manages position entries and exits dynamically, applying ATR-based stop loss and take profit levels, and optionally a time-based exit.
Additionally, the script integrates the UT Bot, an ATR-based trailing stop and signal system, enhancing trade exit precision.
Buy and sell signals are visually marked on the chart with colored triangles for easy identification.
In essence, this strategy blends advanced smoothing (ALMA) with volatility filters and trend/momentum indicators to generate reliable buy and sell signals, while managing risk dynamically through ATR-based stops and profit targets. It aims to adapt to changing market conditions by filtering noise and confirming trends before entering trades.
250-Day Breakout Profit % (Ratchet ATR Stop w/ Zero Reset)Trend following on stocks with Kaufmans Profit Ranking twist. 250 day breakout. 42 day 10x trailing stop.
250-Day Breakout Profit % (with Ratcheting ATR Stop)1 year breakouts with 42 day 10x atr trailing stop.
Long and Short Strategy with Multi Indicators [B1P5]Long and Short Strategy with RSI, ROC, MA Selection, Exit Visualization, and Strength Indicator
Advanced ICT Theory - A-ICT📊 Advanced ICT Theory (A-ICT): The Institutional Manipulation Detector
Are you tired of being the liquidity? Stop chasing shadows and start tracking the architects of price movement.
This is not another lagging indicator. This is a complete framework for viewing the market through the lens of institutional traders. Advanced ICT Theory (A-ICT) is an all-in-one, military-grade analysis engine designed to decode the complex language of "Smart Money." It automates the core tenets of Inner Circle Trader (ICT) methodology, moving beyond simple patterns to build a dynamic, real-time narrative of market manipulation, liquidity engineering, and institutional order flow.
AIT provides a living blueprint of the market, identifying high-probability zones, tracking structural shifts, and scoring the quality of setups with a sophisticated, multi-factor algorithm. This is your X-ray into the market's true intentions.
🔬 THE CORE ENGINE: DECODING THE THEORY & FORMULAS
A-ICT is built upon a sophisticated, multi-layered logic system that interprets price action as a story of cause and effect. It does not guess; it confirms. Here is the foundational theory that drives the engine:
1. Market Structure: The Blueprint of Trend
The script first establishes a deep understanding of the market's skeleton through multi-level pivot analysis. It uses ta.pivothigh and ta.pivotlow to identify significant swing points.
Internal Structure (iBOS): Minor swings that show the short-term order flow. A break of internal structure is the first whisper of a potential shift.
External Structure (eBOS): Major swing points that define the primary trend. A confirmed break of external structure is a powerful statement of trend continuation. AIT validates this with optional Volume Confirmation (volume > volumeSMA * 1.2) and Candle Confirmation to ensure the break is driven by institutional force, not just a random spike.
Change of Character (CHoCH): This is the earthquake. A CHoCH occurs when a confirmed eBOS happens against the prevailing trend (e.g., a bearish eBOS in a clear uptrend). A-ICT flags this immediately, as it is the strongest signal that the primary trend is under threat of reversal.
2. Liquidity Engineering: The Fuel of the Market
Institutions don't buy into strength; they buy into weakness. They need liquidity. A-ICT maps these liquidity pools with forensic precision:
Buyside & Sellside Liquidity (BSL/SSL): Using ta.highest and ta.lowest, AIT identifies recent highs and lows where clusters of stop-loss orders (liquidity) are resting. These are institutional targets.
Liquidity Sweeps: This is the "manipulation" part of the detector. AIT has a specific formula to detect a sweep: high > bsl and close < bsl . This signifies that institutions pushed price just high enough to trigger buy-stops before aggressively selling—a classic "stop hunt." This event dramatically increases the quality score of subsequent patterns.
3. The Element Lifecycle: From Potential to Power
This is the revolutionary heart of A-ICT. Zones are not static; they have a lifecycle. AIT tracks this with its dynamic classification engine.
Phase 1: PENDING (Yellow): The script identifies a potential zone of interest based on a specific candle formation (a "displacement"). It is marked as "Pending" because its true nature is unknown. It is a question.
Phase 2: CLASSIFICATION: After the zone is created, AIT watches what happens next. The zone's identity is defined by its actions:
ORDER BLOCK (Blue): The highest-grade element. A zone is classified as an Order Block if it directly causes a Break of Structure (BOS) . This is the footprint of institutions entering the market with enough force to validate the new trend direction.
TRAP ZONE (Orange): A zone is classified as a Trap Zone if it is directly involved in a Liquidity Sweep . This indicates the zone was used to engineer liquidity, setting a "trap" for retail traders before a reversal.
REVERSAL / S&R ZONE (Green): If a zone is not powerful enough to cause a BOS or a major sweep, but still serves as a pivot point, it's classified as a general support/resistance or reversal zone.
4. Market Inefficiencies: Gaps in the Matrix
Fair Value Gaps (FVG): AIT detects FVGs—a 3-bar pattern indicating an imbalance—with a strict formula: low > high (for a bullish FVG) and gapSize > atr14 * 0.5. This ensures only significant, volatile gaps are shown. An FVG co-located with an Order Block is a high-confluence setup.
5. Premium & Discount: The Law of Value
Institutions buy at wholesale (Discount) and sell at retail (Premium). AIT uses a pdLookback to define the current dealing range and divides it into three zones: Premium (sell zone), Discount (buy zone), and Equilibrium. An element's quality score is massively boosted if it aligns with this principle (e.g., a bullish Order Block in a Discount zone).
⚙️ THE CONTROL PANEL: A COMPLETE GUIDE TO THE INPUTS MENU
Every setting is a lever, allowing you to tune the AIT engine to your exact specifications. Master these to unlock the script's full potential.
🎯 A-ICT Detection Engine
Min Displacement Candles: Controls the sensitivity of element detection. How it works: It defines the number of subsequent candles that must be "inside" a large parent candle. Best practice: Use 2-3 for a balanced view on most timeframes. A higher number (4-5) will find only major, more significant zones, ideal for swing trading. A lower number (1) is highly sensitive, suitable for scalping.
Mitigation Method: Defines when a zone is considered "used up" or mitigated. How it works: Cross triggers as soon as price touches the zone's boundary. Close requires a candle to fully close beyond it. Best practice: Cross is more responsive for fast-moving markets. Close is more conservative and helps filter out fake-outs caused by wicks, making it safer for confirmations.
Min Element Size (ATR): A crucial noise filter. How it works: It requires a detected zone to be at least this multiple of the Average True Range (ATR). Best practice: Keep this around 0.5. If you see too many tiny, irrelevant zones, increase this value to 0.8 or 1.0. If you feel the script is missing smaller but valid zones, decrease it to 0.3.
Age Threshold & Pending Timeout: These manage visual clutter. How they work: Age Threshold removes old, mitigated elements after a set number of bars. Pending Timeout removes a "Pending" element if it isn't classified within a certain window. Best practice: The default settings are optimized. If your chart feels cluttered, reduce the Age Threshold. If pending zones disappear too quickly, increase the Pending Timeout.
Min Quality Threshold: Your primary visual filter. How it works: It hides all elements (boxes, lines, labels) that do not meet this minimum quality score (0-100). Best practice: Start with the default 30. To see only A- or B-grade setups, increase this to 60 or 70 for an exceptionally clean, high-probability view.
🏗️ Market Structure
Lookbacks (Internal, External, Major): These define the sensitivity of the trend analysis. How they work: They set the number of bars to the left and right for pivot detection. Best practice: Use smaller values for Internal (e.g., 3) to see minor structure and larger values for External (e.g., 10-15) to map the main trend. For a macro, long-term view, increase the Major Swing Lookback.
Require Volume/Candle Confirmation: Toggles for quality control on BOS/CHoCH signals. Best practice: It is highly recommended to keep these enabled. Disabling them will result in more structure signals, but many will be false alarms. They are your filter against market noise.
... (Continue this detailed breakdown for every single input group: Display Configuration, Zones Style, Levels Appearance, Colors, Dashboards, MTF, Liquidity, Premium/Discount, Sessions, and IPDA).
📊 THE INTELLIGENCE DASHBOARDS: YOUR COMMAND CENTER
The dashboards synthesize all the complex analysis into a simple, actionable intelligence briefing.
Main Dashboard (Bottom Right)
ICT Metrics & Breakdown: This is your statistical overview. Total Elements shows how much structure the script is tracking. High Quality instantly tells you if there are any A/B grade setups nearby. Unmitigated vs. Mitigated shows the balance of fresh opportunities versus resolved price action. The breakdown by Order Blocks, Trap Zones, etc., gives you a quick read on the market's recent character.
Structure & Market Context: This is your core bias. Order Flow tells you the current script-determined trend. Last BOS shows you the most recent structural event. CHoCH Active is a critical warning. HTF Bias shows if you are aligned with the higher timeframe—the checkmark (✓) for alignment is one of the most important confluence factors.
Smart Money Flow: A volume-based sentiment gauge. Net Flow shows the raw buying vs. selling pressure, while the Bias provides an interpretation (e.g., "STRONG BULLISH FLOW").
Key Guide (Large Dashboard only): A built-in legend so you never have to guess. It defines every pattern, structure type, and special level visually.
📖 Narrative Dashboard (Bottom Left)
This is the "story" of the market, updated in real-time. It's designed to build your trading thesis.
Recent Elements Table: A live list of the most recent, high-quality setups. It displays the Type , its Narrative Role (e.g., "Bullish OB caused BOS"), its raw Quality percentage, and its final Trade Score grade. This is your at-a-glance opportunity scanner.
Market Narrative Section: This is the soul of A-ICT. It combines all data points into a human-readable story:
📍 Current Phase: Tells you if you are in a high-volatility Killzone or a consolidation phase like the Asian Range.
🎯 Bias & Alignment: Your primary direction, with a clear indicator of HTF alignment or conflict.
🔗 Events: A causal sequence of recent events, like "💧 Sell-side liquidity swept →
📊 Bullish BOS → 🎯 Active Order Block".
🎯 Next Expectation: The script's logical conclusion. It provides a specific, forward-looking hypothesis, such as "📉 Pullback expected to bullish OB at 1.2345 before continuation up."
🎨 READING THE BATTLEFIELD: A VISUAL INTERPRETATION GUIDE
Every color and line is a piece of information. Learn to read them together to see the full picture.
The Core Zones (Boxes):
Blue Box (Order Block): Highest probability zone for trend continuation. Look for entries here.
Orange Box (Trap Zone): A manipulation footprint. Expect a potential reversal after price interacts with this zone.
Green Box (Reversal/S&R): A standard pivot area. A good reference point but requires more confluence.
Purple Box (FVG): A market imbalance. Acts as a magnet for price. An FVG inside an Order Block is an A+ confluence.
The Structural Lines:
Green/Red Line (eBOS): Confirms the trend direction. A break above the green line is bullish; a break below the red line is bearish.
Thick Orange Line (CHoCH): WARNING. The previous trend is now in question. The market character has changed.
Blue/Red Lines (BSL/SSL): Liquidity targets. Expect price to gravitate towards these lines. A dotted line with a checkmark (✓) means the liquidity has been "swept" or "purged."
How to Synthesize: The magic is in the confluence. A perfect setup might look like this: Price sweeps below a red SSL line , enters a green Discount Zone during the NY Killzone , and forms a blue Order Block which then causes a green eBOS . This sequence, visible at a glance, is the story of a high-probability long setup.
🔧 THE ARCHITECT'S VISION: THE DEVELOPMENT JOURNEY
A-ICT was forged from the frustration of using lagging indicators in a market that is forward-looking. Traditional tools are reactive; they tell you what happened. The vision for A-ICT was to create a proactive engine that could anticipate institutional behavior by understanding their objectives: liquidity and efficiency. The development process was centered on creating a "lifecycle" for price patterns—the idea that a zone's true meaning is only revealed by its consequence. This led to the post-breakout classification system and the narrative-building engine. It's designed not just to show you patterns, but to tell you their story.
⚠️ RISK DISCLAIMER & BEST PRACTICES
Advanced ICT Theory (A-ICT) is a professional-grade analytical tool and does not provide financial advice or direct buy/sell signals. Its analysis is based on historical price action and probabilities. All forms of trading involve substantial risk. Past performance is not indicative of future results. Always use this tool as part of a comprehensive trading plan that includes your own analysis and a robust risk management strategy. Do not trade based on this indicator alone.
観の目つよく、見の目よわく
"Kan no me tsuyoku, ken no me yowaku"
— Miyamoto Musashi, The Book of Five Rings
English: "Perceive that which cannot be seen with the eye."
— Dskyz, Trade with insight. Trade with anticipation.
9:45am NIFTY TRADINGTime Frame: 15 Minutes | Reference Candle Time: 9:45 AM IST | Valid Trading Window: 3 Hours
📌 Introduction
This document outlines a structured trading strategy for NIFTY & BANKNIFTY Options based on a 15-minute timeframe with a 9:45 AM IST reference candle. The strategy incorporates technical indicators, probability analysis, and strict trading rules to optimize entries and exits.
📊 Core Features
1. Reference Time Trading System
9:45 AM IST Candle acts as the reference for the day.
All signals (Buy/Sell/Reversal) are generated based on price action relative to this candle.
The valid trading window is 3 hours after the reference candle.
2. Signal Generation Logic
Signal Condition
Buy (B) Price breaks above reference candle high with confirmation
Sell (S) Price breaks below reference candle low with confirmation
Reversal (R) Early trend reversal signal (requires strict confirmation)
3. Probability Analysis System
The strategy calculates Win Probability (%) using 4 components:
Component Weight Calculation
Body Win Probability 30% Based on candle body strength (body % of total range)
Volume Win Probability 30% Current volume vs. average volume strength
Trend Win Probability 40% EMA crossover + RSI momentum alignment
Composite Probability - Weighted average of all 3 components
Probability Color Coding:
🟢 Green (High Probability): ≥70%
🟠 Orange (Medium Probability): 50-69%
🔴 Red (Low Probability): <50%
4. Timeframe Enforcement
Strictly 15-minute charts only (no other timeframes allowed).
System auto-disables signals if the wrong timeframe is selected.
📈 Technical Analysis Components
1. EMA System (Trend Analysis)
Short EMA (9) – Fast trend indicator
Middle EMA (20) – Intermediate trend
Long EMA (50) – Long-term trend confirmation
Rules:
Buy Signal: Price > 9 EMA > 20 EMA > 50 EMA (Bullish trend)
Sell Signal: Price < 9 EMA < 20 EMA < 50 EMA (Bearish trend)
2. Multi-Timeframe RSI (Momentum)
5M, 15M, 1H, 4H, Daily RSI values are compared for divergence/confluence.
Overbought (≥70) / Oversold (≤30) conditions help in reversal signals.
3. Volume Analysis
Volume Strength (%) = (Current Volume / Avg. Volume) × 100
Strong Volume (>120% Avg.) confirms breakout/breakdown.
4. Body Percentage (Candle Strength)
Body % = (Close - Open) / (High - Low) × 100
Strong Bullish Candle: Body > 60%
Strong Bearish Candle: Body < 40%
📊 Visual Elements
1. Information Tables
Reference Data Table (9:45 AM Candle High/Low/Close)
RSI Values Table (5M, 15M, 1H, 4H, Daily)
Signal Legend (Buy/Sell/Reversal indicators)
2. Chart Overlays
Reference Lines (9:45 AM High & Low)
EMA Lines (9, 20, 50)
Signal Labels (B, S, R)
3. Color Coding
High Probability (Green)
Medium Probability (Orange)
Low Probability (Red)
⚠️ Important Usage Guidelines
✅ Best Practices:
Trade only within the 3-hour window (9:45 AM - 12:45 PM IST).
Wait for confirmation (closing above/below reference candle).
Use probability score to filter high-confidence trades.
❌ Avoid:
Trading outside the 15-minute timeframe.
Ignoring volume & RSI divergence.
Overtrading – Stick to 1-2 high-probability setups per day.
🎯 Conclusion
This NIFTY Trading Strategy is optimized for 15-minute charts with a 9:45 AM IST reference candle. It combines EMA trends, RSI momentum, volume analysis, and probability scoring to generate high-confidence signals.
🚀 Key Takeaways:
✔ Reference candle defines the day’s bias.
✔ Probability system filters best trades.
✔ Strict 15M timeframe ensures consistency.
Happy Trading! 📈💰
🐉 DKD PRO - Death Kiss Dragon [Faraz Edition] 💋may helps u . based on volume and sell/buy powers. share it for more
Elite 30 Min Pivot - by TenAM Trader.🔍 How It Works
Trend Detection:
A trend is defined when a configurable number (default: 3) of same-colored candles (green or red) appear in a row.
The pivot is marked by the first opposite-color candle after the trend.
Signal Logic:
After the pivot forms, the script watches the next few candles (default: 2) for a breakout or close beyond the pivot high/low.
A BUY signal is triggered when price breaks/closes above a pivot high from a downtrend.
A SELL signal is triggered when price breaks/closes below a pivot low from an uptrend.
Entry & Risk Tools:
Optional features include:
Pivot Line – dashed level showing pivot entry point.
Stop Loss Line – opposite side of the pivot candle.
Labels – toggle labels for clarity on entry and risk.
Time Filter – exclude signals during specific hours (e.g. 11 AM–2 PM) to avoid lunchtime chop.
Alerts:
Enable alerts for automated notifications when buy or sell conditions are met.
⚙️ Customizable Settings
Consecutive candles required before pivot
Max bars allowed after pivot for signal
Signal trigger: Break or Close
Toggle visibility of pivot lines, stop loss, and labels
Set excluded time blocks
Enable/disable real-time alerts
✅ Use Case Example
If you set trend length to 3 and signal trigger to “Break,” the script will look for 3 consecutive red candles, then a green candle (pivot). If price breaks above the pivot high within the next 2 candles, a Buy signal will fire.
⚠️ Legal Note
This script is provided for educational and informational purposes only and does not constitute financial advice. Always do your own research before making trading decisions. Use at your own risk.
Market Structure Dashboard @darshakssc📌 Market Structure Dashboard by @darshakssc is a comprehensive visual analysis tool designed to assist traders and analysts in understanding market conditions by presenting multiple key technical insights in one place.
This script does not provide buy or sell signals, but helps you interpret essential elements of market behavior — such as structure shifts, momentum conditions, trend direction, and volatility — for informed decision-making.
🔍 What This Dashboard Displays:
✅ Market Phase Detection
Identifies the current market condition as Bullish, Bearish, Accumulation, or Distribution, based on trend logic and RSI thresholds.
✅ Trend Direction (EMA-Based)
Uses customizable Fast and Slow Exponential Moving Averages (EMAs) to evaluate whether the market is trending upward or downward.
✅ Key Support & Resistance Levels
Highlights potential support and resistance areas based on structural highs and lows and pivot logic.
✅ RSI Momentum State
Tracks whether momentum is Overbought, Oversold, or Neutral, using the classic RSI indicator.
✅ Volatility Overview
Detects high or low volatility zones using ATR (Average True Range) compared to a moving average baseline.
✅ Structure Shift Markers
Displays triangle markers on the chart when a structural trend shift is detected.
✅ Custom Themes and Design
Choose between three clean themes — Classic, Modern, and Dark — for enhanced readability and aesthetics.
📊 Visual Elements
1). An intuitive table-style dashboard appears in the top-right of the chart.
2). Colored EMA overlays and plotted support/resistance circles on the price chart.
3). Structure shift indicators help visually mark potential change zones.
⚠️ Important Notice:
This tool is intended for educational and informational purposes only. It does not provide financial advice, trade recommendations, or guaranteed outcomes. Always use your own discretion and analysis, and consult a qualified financial professional before making investment decisions.
Trading involves risk and past performance does not guarantee future results.
NAIFCHART_NAS Ultimate Algo | Remastered+# NAIFCHART NAS Ultimate Algo Remastered+: Advanced Trend Following System
## Overview
The NAIFCHART NAS Ultimate Algo Remastered+ represents a sophisticated trend-following system that combines Supertrend analysis with multiple moving average confirmations. This comprehensive indicator was developed and shared by the trading community at t.me designed specifically for identifying high-probability trend continuation and reversal opportunities.
## Core Algorithm Components
**Supertrend Foundation**: The primary signal generation relies on a customizable Supertrend indicator with adjustable sensitivity (1-20 range). This adaptive trend-following tool uses Average True Range calculations to establish dynamic support and resistance levels that respond to market volatility.
**SMA Confirmation Matrix**: Multiple Simple Moving Averages (SMA 4, 5, 9, 13) provide layered confirmation for signal strength. The algorithm distinguishes between regular signals and "Strong" signals based on SMA 4 vs SMA 5 relationship, offering traders different conviction levels for position sizing.
**Trend Ribbon Visualization**: SMA 21 and SMA 34 create a visual trend ribbon that changes color based on their relationship. Green ribbon indicates bullish momentum while red signals bearish conditions, providing immediate visual trend context.
**RSI-Based Candle Coloring**: Advanced 61-tier RSI system colors candles with gradient precision from deep red (RSI ≤20) through purple transitions to bright green (RSI ≥79). This visual enhancement helps traders instantly assess momentum strength and overbought/oversold conditions.
## Signal Generation Logic
**Buy Signal Criteria**:
- Price crosses above Supertrend line
- Close price must be above SMA 9 (trend confirmation)
- Signal strength determined by SMA 4 vs SMA 5 relationship
- "Strong Buy" when SMA 4 ≥ SMA 5
- Regular "Buy" when SMA 4 < SMA 5
**Sell Signal Criteria**:
- Price crosses below Supertrend line
- Close price must be below SMA 9 (trend confirmation)
- Signal strength based on SMA relationship
- "Strong Sell" when SMA 4 ≤ SMA 5
- Regular "Sell" when SMA 4 > SMA 5
## Advanced Risk Management System
**Automated TP/SL Calculation**: The indicator automatically calculates stop loss and take profit levels using ATR-based measurements. Risk percentage and ATR length are fully customizable, allowing traders to adapt to different market conditions and personal risk tolerance.
**Multiple Take Profit Targets**:
- 1:1 Risk-Reward ratio for conservative profit taking
- 2:1 Risk-Reward for balanced trade management
- 3:1 Risk-Reward for maximum profit potential
**Visual Risk Display**: All risk management levels appear as both labels and optional trend lines on the chart. Customizable line styles (solid, dashed, dotted) and positioning ensure clear visualization without chart clutter.
**Dynamic Level Updates**: Risk levels automatically recalculate with each new signal, maintaining current market relevance throughout position lifecycles.
## Visual Enhancement Features
**Customizable Display Options**: Toggle trend ribbon, TP/SL levels, and risk lines independently. Decimal precision adjustments (1-8 decimal places) accommodate different instrument price formats and personal preferences.
**Professional Label System**: Clean, informative labels show entry points, stop losses, and take profit targets with precise price levels. Labels automatically position themselves for optimal chart readability.
**Color-Coded Momentum**: The gradient RSI candle coloring system provides instant visual feedback on momentum strength, helping traders assess market energy and potential reversal zones.
## Implementation Strategy
**Timeframe Optimization**: The algorithm performs effectively across multiple timeframes, with higher timeframes (4H, Daily) providing more reliable signals for swing trading. Lower timeframes work well for day trading with appropriate risk adjustments.
**Sensitivity Adjustment**: Lower sensitivity values (1-5) generate fewer but higher-quality signals, ideal for conservative approaches. Higher sensitivity (15-20) increases signal frequency for active trading styles.
**Risk Management Integration**: Use the automated risk calculations as baseline parameters, adjusting risk percentage based on account size and market conditions. The 1:1, 2:1, 3:1 targets enable systematic profit-taking strategies.
## Market Application
**Trend Following Excellence**: Primary strength lies in capturing significant trend movements through the Supertrend foundation with SMA confirmation. The dual-layer approach reduces false signals common in single-indicator systems.
**Momentum Assessment**: RSI-based candle coloring provides immediate momentum context, helping traders assess signal strength and potential continuation probability.
**Range Detection**: The trend ribbon helps identify ranging conditions when SMA 21 and SMA 34 converge, alerting traders to potential breakout opportunities.
## Performance Optimization
**Signal Quality**: The requirement for both Supertrend crossover AND SMA 9 confirmation significantly improves signal reliability compared to basic trend-following approaches.
**Visual Clarity**: The comprehensive visual system enables rapid market assessment without complex calculations, ideal for traders managing multiple instruments.
**Adaptability**: Extensive customization options allow fine-tuning for specific markets, trading styles, and risk preferences while maintaining the core algorithm integrity.
## Community Resources
Join the active trading community at t.me for ongoing discussions about optimization techniques, market analysis, and strategy refinements using this advanced algorithm system.
The collaborative environment provides valuable insights into parameter adjustments for different market conditions and real-world performance feedback from experienced traders.
## Conclusion
The NAIFCHART NAS Ultimate Algo Remastered+ combines proven trend-following principles with modern visual enhancements and comprehensive risk management. The algorithm's strength lies in its multi-layered confirmation approach and automated risk calculations, providing both novice and experienced traders with clear signals and systematic trade management.
Success with this system requires understanding the relationship between signal strength indicators and adapting sensitivity settings to match current market conditions. The comprehensive visual feedback system enables rapid decision-making while the automated risk management ensures consistent trade parameters.
Practice with different sensitivity settings and timeframes to optimize performance for your specific trading style and risk tolerance. The algorithm's systematic approach provides excellent framework for disciplined trend-following strategies across various market environments.
NAIFCHART_Algo Pro# NAIFCHART Algo Pro: Advanced Candlestick Pattern Analysis Tool
## Overview
The NAIFCHART Algo Pro indicator represents an innovative approach to candlestick pattern analysis, combining traditional engulfing patterns with advanced technical filters. This indicator was developed and shared by the trading community at t.me focusing on high-probability reversal signals through multi-layered confirmation.
## Core Algorithm Components
**Candle Stability Index**: Measures the ratio between candle body and total range (including wicks). Higher values indicate more decisive price action with stronger conviction. Default setting of 0.5 ensures only stable, well-formed candles generate signals, filtering out indecisive market conditions.
**RSI Momentum Filter**: Utilizes 14-period RSI with customizable threshold (default 50) to confirm overbought/oversold conditions. Buy signals require RSI below the threshold, while sell signals need RSI above the inverse threshold, ensuring momentum alignment with pattern direction.
**Candle Delta Analysis**: Examines price movement over a specified period (default 5 candles) to confirm directional bias. This filter ensures patterns occur after meaningful price moves in the opposite direction, increasing reversal probability.
**Engulfing Pattern Recognition**: Identifies classic bullish and bearish engulfing formations where the current candle completely engulfs the previous candle's body, indicating potential momentum shift.
## Signal Generation Logic
**Buy Signal Criteria**:
- Bullish engulfing pattern formation
- Candle stability above threshold level
- RSI below specified threshold (oversold condition)
- Price decrease over the delta length period
- Confirmed bar state (prevents repainting)
**Sell Signal Criteria**:
- Bearish engulfing pattern formation
- Candle stability above threshold level
- RSI above inverse threshold (overbought condition)
- Price increase over the delta length period
- Confirmed bar state (prevents repainting)
## Advanced Features
**Signal Filtering**: Optional "Disable Repeating Signals" feature prevents signal clusters by blocking consecutive identical signals. This enhances chart clarity and reduces noise in trending markets where multiple patterns might form in sequence.
**Visual Customization**: Multiple label styles including text bubbles, triangles, and arrows with full color customization. Label sizes range from tiny to huge, allowing adaptation to different chart configurations and personal preferences.
**Alert Integration**: Built-in alert system notifies traders immediately when buy or sell conditions are met, enabling real-time trade execution without constant chart monitoring.
## Implementation Strategy
**Timeframe Optimization**: The indicator performs effectively across multiple timeframes, with higher timeframes (1-hour and above) providing more reliable signals due to reduced market noise. Shorter timeframes require more conservative position sizing due to increased false signal probability.
**Parameter Tuning**:
- Increase Candle Stability Index for more selective signals in volatile markets
- Adjust RSI threshold based on market conditions (lower for trending markets, higher for ranging conditions)
- Modify Candle Delta Length for different trend confirmation periods
**Risk Management**: Combine signals with proper stop loss placement below/above the engulfing pattern's extreme points. Consider position sizing based on pattern strength and overall market context.
## Market Application
**Reversal Trading**: Primary application focuses on identifying high-probability reversal points after extended moves. The multi-filter approach significantly reduces false signals compared to basic engulfing pattern strategies.
**Trend Confirmation**: In trending markets, signals align with pullback completion, providing optimal entry points for trend continuation strategies. The RSI and delta filters help identify temporary retracements rather than trend changes.
**Range Trading**: Within sideways markets, signals often occur near range boundaries, providing effective support and resistance bounce opportunities with clearly defined risk parameters.
## Performance Optimization
**Market Selection**: The indicator performs best on liquid instruments with clear candlestick formations. Avoid extremely volatile or thin markets where patterns may be less reliable.
**Session Timing**: Consider trading sessions when focusing on specific markets. Major session overlaps often provide clearer patterns due to increased participation and volume.
**Confirmation Techniques**: While the indicator provides internal filtering, additional confirmation through volume analysis, key support/resistance levels, or broader market context enhances signal reliability.
## Community Resources
Access ongoing strategy discussions and optimization techniques through the source community at t.me where traders share practical applications and parameter adjustments for different market conditions.
The collaborative environment provides valuable insights into optimal settings for various trading styles and market environments, along with real-time feedback on signal quality and performance.
## Conclusion
NAIFCHART Algo Pro offers a sophisticated approach to candlestick pattern trading through intelligent filtering and confirmation mechanisms. The indicator's strength lies in combining traditional pattern recognition with modern technical analysis filters, creating a robust framework for identifying high-probability reversal opportunities.
Success with this tool requires understanding each component's role in signal generation and adapting parameters to match current market conditions and personal trading style. The community-driven development ensures practical relevance and ongoing refinement based on real trading experiences.
Practice with demo accounts to develop familiarity with signal timing and optimal parameter settings before live implementation. The indicator's systematic approach provides clear entry signals while maintaining flexibility for different risk management and position sizing strategies.
Supertrend Long-Only Strategy for QQQThis strategy is meant to use Micro Momentum to give good Buy and Sell signals in trending markets
LBB + RSI FX EditionLBB + RSI ForeX Edition (FX) — Version v6.4.8-fx
**Combine Log Bollinger Bands, multi-level RSI signals, optional trend & pin-bar filters, ATR-based optional TP/SL and a compact signal table — all in one overlay.**
### 1. Key Features
* **Logarithmic Bollinger Bands (LBB):**
* Uses log-price SMA and standard deviation to derive upper/lower bands
* Provides a more symmetrical response to percentage-based moves
* **RSI Multi-Level Entries:**
* Generates long signals when price closes below the lower LBB and RSI < 30 / 35 / 40
* Generates short signals when price closes above the upper LBB and RSI > 60 / 65 / 70
* Three “strength” tiers for both buys and sells
* **Signal Filters (optional):**
* **EMA Trend Filter:** only take longs above a 50-period EMA or shorts below it
* **Pin-Bar Filter:** require a clear wick-to-body ratio on the signal candle
* **Confirmed Candle:** wait for candle close before signaling
* **ATR Display (optional):** show current ATR on the signal table
* **Flexible TP/SL Settings:**
* **Static (pips) or Dynamic (ATR-based) TP/SL**
* Toggle between pips and ticks for FX precision
* Minimum pip/tick threshold to avoid overly tight stops
* Separate TP/SL controls for longs and shorts
* **Visuals & Alerts:**
* Color-coded shapes for each RSI tier (green/orange/yellow for buys; blue/purple/red for sells)
* Customizable display of Bollinger Bands, ATR, signal table and win-rate stats
* Built-in `alertcondition` for each tier with clear emoji & strength label
* **Compact Signal Table:**
* Shows 📈/📉 entry price, RSI, ATR (if enabled), pin-bar ✔/–, timestamp (with UTC offset) and win-rate placeholder
---
### 2. Inputs & Groups
| Group | Input | Default | Notes |
| ---------------------- | ------------------------------------------ | ------- | ------------------------------------- |
| **Indicator Settings** | LBB Period (`lbbLength`) | 20 | Length for log-price SMA |
| | LBB Multiplier (`lbbMult`) | 2.0 | Std dev multiplier |
| | RSI Period (`rsiLength`) | 14 | |
| | ATR Period (`atrLength`) | 14 | |
| | Show ATR (`showATR`) | true | Toggles ATR in table |
| | UTC Offset Hours (`timeOffsetHours`) | 0 | Adjust table time to your timezone |
| **Signal Filters** | Use EMA Trend Filter (`useTrendFilter`) | false | |
| | EMA Period (`emaPeriod`) | 50 | |
| | Use Pin-Bar Filter (`usePinBarFilter`) | false | |
| | Pin-Bar Ratio (`pinBarRatio`) | 2.0 | Wick-to-body minimum |
| | Only on Confirmed Candle (`onlyConfirmed`) | false | |
| **TP/SL Settings** | Show TP/SL for Long (`showLongTpSl`) | false | |
| | Show TP/SL for Short (`showShortTpSl`) | false | |
| | Use Dynamic TP/SL (`useDynamicTpSl`) | false | ATR × multiplier |
| | TP/SL in Ticks (`useTicks`) | false | Instead of pips |
| | Min TP/SL Threshold (`minTpSlThreshold`) | 10.0 | In pips |
| | TP Long (pips) (`tpLongPips`) | 20 | Static targets |
| | SL Long (pips) (`slLongPips`) | 10 | |
| | TP Short (pips) (`tpShortPips`) | 20 | |
| | SL Short (pips) (`slShortPips`) | 10 | |
| | ATR Multiplier for TP (`atrMultiplierTP`) | 1.5 | |
| | ATR Multiplier for SL (`atrMultiplierSL`) | 1.0 | |
| **Visual Settings** | Show Signal Shapes (`showShapes`) | true | |
| | Show Bollinger Bands (`showBands`) | true | |
| | Show Statistics (`showStats`) | true | Win-rate currently placeholder “NaN%” |
---
### 3. Calculation Overview
1. **Log Bollinger Bands**
```pinescript
logClose = math.log(close)
logBasis = ta.sma(logClose, lbbLength)
logDev = lbbMult * ta.stdev(logClose, lbbLength)
lowerBand = math.exp(logBasis - logDev)
upperBand = math.exp(logBasis + logDev)
basisBand = math.exp(logBasis)
```
2. **RSI & ATR**
```pinescript
rsi = ta.rsi(close, rsiLength)
atrVal = ta.atr(atrLength)
```
3. **Pin-Bar Detection**
```pinescript
body = math.abs(close - open)
upperWick = high - math.max(close, open)
lowerWick = math.min(close, open) - low
isPinBarBull = lowerWick > body * pinBarRatio and upperWick < body
isPinBarBear = upperWick > body * pinBarRatio and lowerWick < body
```
4. **Trend & Confirmation Filters**
```pinescript
emaTrend = ta.ema(close, emaPeriod)
trendLong = close > emaTrend
trendShort = close < emaTrend
trendOkLong = useTrendFilter ? trendLong : true
trendOkShort= useTrendFilter ? trendShort: true
signalOk = onlyConfirmed ? barstate.isconfirmed : true
```
5. **Entry Conditions**
* **Long**: `close < lowerBand` + RSI < {30, 35, 40} + filters
* **Short**: `close > upperBand` + RSI > {60, 65, 70} + filters
---
### 4. Signal Plotting & Alerts
* **Shapes on Chart**
* 📈 LONG signals plotted below bar in green/orange/yellow triangles, sized by strength
* 📉 SHORT signals plotted above bar in blue/purple/red inverted triangles
* **Alert Conditions**
```pinescript
alertcondition(cond_rsi30_long, title="LBB LONG RSI <30", message="📈 LONG signal | Strong Buy | {{ticker}} @ {{close}} | {{interval}}")
// … and similarly for other tiers
```
---
### 5. TP/SL Management
1. **Delta Calculation**
```pinescript
rawTP = atrVal * atrMultiplierTP * tfMultiplier
rawSL = atrVal * atrMultiplierSL * tfMultiplier
pip = syminfo.mintick
pipMult = pip == 0.00001 ? 10 : pip == 0.01 ? 1 : 100
unitMult = useTicks ? 1 : pipMult
minDelta = minTpSlThreshold * pip * tfMultiplier * unitMult
```
2. **Dynamic TP/SL Lines**
* Deletes old lines and draws new dashed lines at `entry ± max(rawΔ, minDelta)` when signaled and `useDynamicTpSl` is enabled.
3. **Manual TP/SL Labels**
* On each bar checks if price hit the TP or SL level and drops a permanent label “TP @ …” or “SL @ …”.
---
### 6. Compact Signal Table
Positioned in the top-right corner, updates on each new signal:
| Column | Content |
| ------ | ----------------------------------------- |
| 0 | 📈/📉 Entry price with color background |
| 1 | `RSI: XX` |
| 2 | `ATR: X.XXXXX` (if enabled) |
| 3 | `PinBar: ✔` or `–` |
| 4 | `Time: DD-MM-YY HH:mm` (with UTC offset) |
| 5 | `Win Rate: NaN%` (placeholder if enabled) |
---
### 7. Recommendations & Best Practices
* **Timeframe Selection:** works best on FX pairs; adjust `tfMultiplier` sensitivity by avoiding ultra-low minute charts unless needed.
* **Trend Filter:** enable `useTrendFilter` to align signals with broader trend, reducing noise.
* **Pin-Bar Filter:** turn on `usePinBarFilter` when you need higher-quality reversal candles.
* **Dynamic TP/SL:** use ATR-based exits (`useDynamicTpSl=true`) to adapt stop levels to changing volatility.
* **Ticks vs Pips:** for very tight markets (e.g. FX majors on low timeframes), switch to ticks.
* **Backtest Thoroughly:** before deploying alerts, test across multiple symbols/timeframes to tune multipliers and thresholds.
* **Alert Integration:** set up TradingView alerts using the built-in `alertcondition` names for fully automated notifications.
ALFA ATC LondonThis indicator is a data indicator focused on the algorithmic opening prices of stock exchanges and shows these areas. Bias can be obtained from these areas. Trades can be executed by taking advantage of the price's ability to test and hold these areas. The indicator, AS ATC5, includes opening information for the CM New York, London, Frankfurt, and Tokyo stock exchanges. This indicator is designed solely for London and Frankfurt.