My Swift-like Algo J.ALIMOJANIDSwift Algo Chart — Trend, Structure & ATR Risk
Swift Algo Chart is a trend-following trading indicator designed to provide clear bias, precise entries, and visual risk management.
It combines EMA trend direction, pullback-based signals, market structure (HH/HL/LH/LL), and ATR-based Stop Loss & Take Profit levels to help traders make disciplined decisions.
🔑 Key Features
Trend Regime Detection
Identifies LONG, SHORT, or NO TRADE conditions using Fast & Slow EMAs.
Pullback Entry Signals
Signals appear only in the direction of the active trend, with optional RSI confirmation.
ATR-Based Risk Levels
Automatically plots SL, TP1, and TP2, including exact price values on the chart.
Preview Levels
Shows projected SL/TP levels when a trend is active, even before an entry.
Market Structure Visualization
Marks HH / HL / LH / LL, draws structure lines, and highlights BOS and CHOCH.
Clean & Non-Repainting Logic
Uses confirmed pivots and closed candles for stability.
Strategy-Compatible
Can be used for discretionary trading or full strategy backtesting.
🧠 Best Used For
Crypto, Forex, Indices
15m to 4H timeframes
Traders who want structure + trend + risk clarity in one tool
Các mẫu biểu đồ
Segment 4h modifiable via inputsSegment 4h modifiable via inputs : pour positionner un segment n'importe ou en modifiant le prix pour la hauteur dans la configuration et déplaçable facilement à la souris temporellement.
4-hour segment modifiable via inputs: to position a segment anywhere by modifying the price for the height in the configuration and easily movable with the mouse in terms of time
PLOW/PLHW (Potential weekly highs/lows)AP Capital – PLOW / PLHW (Potential Weekly Low / High)
This indicator highlights Potential Weekly Lows (PLOW) and Potential Weekly Highs (PLHW) in real time, using current-week price action, session context, and confirmed candle closes.
It is designed for intraday and swing traders who want early-week and late-week structure levels without repainting or hindsight bias.
🔹 How It Works
Potential Weekly Low (PLOW)
Detected during early week sessions
Triggers when price prints the current week’s lowest low
Confirmed only on candle close
Typically aligns with liquidity grabs, stop runs, or accumulation
Potential Weekly High (PLHW)
Detected during late week sessions
Triggers when price prints the current week’s highest high
Confirmed only on candle close
Often marks distribution or exhaustion zones
📊 Visual Elements
Clean weekly high & low levels
Optional weekly midpoint
Session-aware confirmation
Non-repainting labels
Minimalist layout (no clutter)
⚙️ Key Features
Works on any intraday timeframe
Fully non-repainting
Session-based logic (early vs late week)
Optional weekly range info panel
Suitable for Gold, FX, Indices, Crypto
🧠 Best Use Cases
Fade moves into weekly extremes
Combine with:
Previous Day High / Low
Liquidity sweeps
Market structure shifts
Identify high-probability reversals
Avoid chasing price late in the week
⚠️ Important Notes
This is NOT predictive — levels are confirmed from live price action
Best used as context, not a standalone entry system
Designed to complement price action & liquidity-based trading
📌 Disclaimer
This indicator is for educational purposes only.
Not financial advice. Always manage risk.
Previous Highs and Lows (M, W, D) Displays previous Monthly, Weekly, and Daily key swing highs/lows with clean , timeframe-specific coloring. Essential structure reference for multi-timeframe traders!!
Your Monthly/Weekly/Daily structural backbone in one indicator!!!!
Daily Extension from 50DMA (adjustable) in ATR%Indicator to easily spot over extended prices in relation to ATR.
ATR or ADR easily referenced
EMA Touch Alert RealtimeThis is an alert that notifies you when you touch the EM A you set yourself.
SAMIR-Pattern Detector: (Debug Mode)fractal pattern to descover movment action then apply fibo on the pattern
Support and Resistance (High Volume Boxes) [ChartPrime]# 📘 OPERATING MANUAL: Massive Order Spike Detector (v1.0)
## 1. PURPOSE OF THE TOOL
The **Massive Order Spike Detector** is a quantitative analysis tool designed to isolate volume anomalies. By utilizing **Standard Deviation (σ)**, it identifies the exact moments when order flow exceeds statistical norms, signaling institutional intervention ("Smart Money"), high-frequency trading (HFT) activity, or market climax events.
---
## 2. TECHNICAL SPECIFICATIONS & INPUTS
The indicator calculates the ratio between current volume and its historical volatility to define "extreme" participation.
### **Configuration Settings**
* **Volume Spike Multiplier (x σ):** *Default: **4.0***
* *Function:* Sets the sensitivity threshold. A value of 4.0 triggers a signal only if the current volume is 4 times the standard deviation of the lookback period.
* **StDev Lookback Length:** *Default: **200***
* *Function:* Defines the sample size (number of bars) used to establish the "baseline" or "normal" volume.
---
## 3. SIGNAL INTERPRETATION PROTOCOL
The indicator generates real-time visual signals on the price chart:
| Signal | Graphic Icon | Technical Condition | Market Sentiment |
| :--- | :--- | :--- | :--- |
| **Massive Buy Spike** | 🟢 Lime Triangle (Below) | Vol ≥ 4σ + Close > Open | Extreme buying pressure. Potential accumulation or aggressive breakout. |
| **Massive Sell Spike** | 🔴 Red Triangle (Above) | Vol ≥ 4σ + Close < Open | Extreme selling pressure. Potential distribution or panic selling. |
---
## 4. OPERATIONAL PROCEDURES (STRATEGIES)
### **A. Breakout Validation (Trend Following)**
* **Context:** Price is testing a key Support/Resistance or a consolidation zone.
* **Trigger:** A Spike appears (Lime for Long / Red for Short) as the level is breached.
* **Execution:** The signal confirms that institutional volume is backing the move. High probability of trend continuation.
### **B. Exhaustion Climax (Mean Reversion)**
* **Context:** Price is in an extended trend (overbought/oversold).
* **Trigger:** A Spike appears in the direction of the trend, but the candle features a long wick (rejection) or a small body.
* **Execution:** This indicates a "Blow-off Top" or "Selling Climax." Traders should look to take profits or prepare for a reversal once market structure shifts.
---
## 5. ALERT MANAGEMENT
To ensure no institutional moves are missed, follow this setup for TradingView notifications:
1. Open the **"Create Alert"** panel in TradingView.
2. Select **"Massive Order Spike Detector"** as the condition.
3. Set frequency to: **"Once Per Bar Close"** (to prevent false triggers during mid-candle volatility).
4. The automated message includes the **Normalized Volume** value to gauge the magnitude of the spike.
---
## 6. RISK WARNINGS & BEST PRACTICES
⚠️ **Macro Events:** During high-impact news (e.g., NFP, CPI), spikes are common but highly volatile. Use wider stop losses or avoid entry during the first 5 minutes.
⚠️ **Low Liquidity Assets:** On "thin" charts, a 4.0 multiplier may trigger too often. Increase the multiplier to **6.0+** for better accuracy.
⚠️ **Confluence:** Never trade a spike in isolation. Always align signals with Price Action (Support/Resistance) or Trend Filters (e.g., 200 EMA).
Price Levels [TickDaddy] just some fixes on the info box, fixed the dollar calculation between levels on agriculture products.
EMA 8/20 CrossoverModeled with 10k buying power
risking 5% account value per trade
take profit when 8 day EMA crosses below 20 day EMA
take long position when 8 day EMA crosses above 20 day EMA
4MA / 4MA-1 Interactive Projection and Volatility Envelopehis script is a user-interactive upgrade to my original 4MA projection tool (Code 1). The goal of this version is to keep the same core behavior while adding transparent controls so you can adapt it to different symbols, timeframes, and market regimes.
At its core, the indicator tracks:
MA4 (4-period SMA) and MA4 (the 1-bar lag of MA4) to show short-term alignment and slope, and
A forward projection path plus a deviation “envelope” to visualize typical expansion vs. stretched moves vs. extreme deviations.
What’s on the chart
1) Live structure lines
MA4 and MA4 are plotted on the chart.
Their relationship provides a simple structure read:
MA4 > MA4 → bullish alignment
MA4 < MA4 → bearish alignment
2) Projection path (optional)
The script builds a forward “projection” by sampling a historical MA window and drawing that shape forward by a user-defined bar shift.
Delta-anchor option (recommended):
When enabled, the sampled shape is re-centered onto the current MA level (preserves relative movement rather than absolute price level).
Important: This projection is a visual reference model, not a promise of future price.
3) Standard deviation envelopes (optional)
Deviation bands are derived from the distribution of (close − MA4) across the sampled window, then applied around the projected path using configurable multipliers (a “ladder” of envelopes).
These envelopes are designed to help visualize:
Normal expansion zones
Momentum stretch zones
Extreme deviation zones where the model is more likely to be challenged
4) Projected cross confluence (vertical lines)
Vertical confluence lines mark where the projected MA4 and projected MA4 would intersect (bull / bear).
These are intended as forward structure landmarks, not trade signals.
5) Alerts (optional)
Alerts can be enabled for breaches of the projected deviation envelope:
Band 3 breach: momentum stretch / extension
Band 4 breach: extreme deviation / model challenged (“invalidation” zone)
Wicks or closes can be used for the breach check depending on preference.
6) Table (optional)
A compact table summarizes:
MA values
alignment status
The most recent cross context (BUY/SELL labeling here is informational labeling of the MA cross state, not a guarantee of performance)
How to use (practical workflow)
Set the market + timeframe first
Choose the symbol and timeframe you trade. This tool is designed to be tuned.
Adjust the pattern window
“Pattern Start/End (bars back)” controls what historical sample is used.
Different assets/timeframes respond best to different windows.
Toggle projection + confluence lines
If projection landmarks add clarity, keep them on.
If you want a cleaner chart, toggle them off.
Use bands as context
Movement inside the inner bands often reflects more typical expansion.
Band 3/4 areas represent progressively more stretched conditions.
Use alerts as notifications, not commands
Alerts are best used as “check the chart” prompts rather than auto-trade triggers.
Notes & disclaimers (Publishing-safe)
This script is intended for analysis and decision support.
It does not execute trades and does not guarantee outcomes.
Projections and envelopes are models and can be exceeded or invalidated by volatility.
Always use risk management and confirm with your own framework.
Change log (recommended)
v2 (Interactive Upgrade):
Added user controls for projection window and visualization
Added/expanded optional confluence markers, alerts, and presentation settings
Improved transparency and tunability across symbols/timeframes
This version is the recommended upgrade to the original release: same concept, more user control, clearer documentation, and better adaptability across markets.
Below 250DMA & Gap FinderThis script is a Technical Momentum & Trend Filter. It is designed to find "fallen" stocks—companies that are in a long-term downtrend but have recently experienced a sudden, violent move in price (a gap).
DTG Open Range Breakout
Description:
Overview The Open Range Breakout (ORB) is one of the most statistically significant strategies for day traders, particularly in Futures (ES/NQ) and Forex markets. This indicator automates the process of identifying the "Opening Range" (e.g., the first 30 minutes of the New York session) and visualizing the key High/Low levels that define the day's bias.
Unlike standard indicators that clutter the chart, this tool focuses on Price Action context. It highlights the critical volatility window and alerts you only when price makes a definitive move outside of this established range.
Key Features
Fully Customizable Session: Defaults to 09:30–10:00 (ET), but can be adjusted for any market (London Open, Tokyo Open, etc.).
Visual "No-Trade" Zone: Draws a shaded box representing the range formation period. This helps traders avoid "choppy" price action during the initial volatility.
Auto-Reset: The script automatically detects a new trading day and resets the range, keeping your chart clean without manual intervention.
Dynamic Support/Resistance: Once the range is closed, the High and Low lines extend forward, acting as key support or resistance levels for the rest of the session.
Smart Alerts: Alerts are programmed to trigger only after the range has fully formed, preventing false signals during the volatility establishment phase.
Reversals: If price breaks out but immediately fails and re-enters the box, consider this a "Fakeout" and look for a move to the opposite side.
Settings
Open Range Session: The specific time window to measure (Format: HHMM-HHMM).
Range Box Color: Visual preference for the shaded area.
Extend High/Low Lines: Toggle the dashed projection lines on/off.
DON.TRADES.GOLD@GMAIL.COM
Disclaimer This script is for educational and analytical purposes only. Past performance of a breakout strategy does not guarantee future results. Always manage risk.
Target Lock Algo buy and Sell Signal by Amit NamdeoTarget Lock Algo: Professional Buy & Sell Signals
Target Lock Algo is a comprehensive, institutional-grade trading system designed to filter out market noise and provide high-probability entry signals with automated risk management. It combines Trend Flow, Market Structure (SMC), and Volatility Analysis into a single, clean interface.
Key Features
1. Precision Signal Engine
Trend-Following Logic: The core algorithm uses a smoothed Baseline to detect the dominant market flow. Signals are generated only when the trend flips (Green for Bullish, Red for Bearish).
"One-Shot" Execution: To prevent overtrading, the system never issues consecutive signals in the same direction. It forces a complete trend reversal before signaling again.
Whipsaw Protection: A built-in time filter (Min Bars) prevents signals from clustering together during choppy price action.
2. Institutional Filters (The "Safety Net")
200 EMA Major Trend Filter:
Buys are only enabled when price is ABOVE the 200 EMA.
Sells are only enabled when price is BELOW the 200 EMA.
This prevents catching falling knives or buying into a crash.
ADX Chop Filter:
The system actively monitors market strength using the Average Directional Index (ADX).
If the market enters a sideways "Chop Zone" (ADX < 20), all trading signals are hard-blocked.
Visual Aid: These zones can be highlighted with Gray Boxes to warn you to stay out.
3. Automated Risk Management (Target Lock)
When a signal is generated, the algorithm automatically calculates and draws the exact trade parameters on your chart:
⚡ ENTRY: The precise closing price of the signal candle.
🛑 STOP LOSS: Dynamic stop loss calculated using Market Volatility (ATR). If the market is volatile, the stop widens; if calm, it tightens.
🎯 TP 1, 💰 TP 2, 🚀 TP 3: Three take-profit levels calculated based on strict Risk-to-Reward ratios (1.5R, 2.5R, and 3.5R).
4. Premium Visual Interface
Glassmorphism Dashboard: A modern, transparent HUD in the top-right corner displays real-time data:
Current Trend: (Bullish 🟢 / Bearish 🔴)
Market State: (Active 🔥 / Ranging 💤)
Volatility: (Live ATR value)
SMC Overlay: Subtly plots pivot points and market structure breaks in the background to give you institutional context without cluttering the signals.
High-Contrast Design: Signals appear as modern "Neon Buttons," while TP/SL lines use rich, deep colors (Deep Emerald & Crimson) for professional visibility.
How to Trade with Target Lock Algo
Check the Dashboard: Ensure the Market State says "ACTIVE 🔥". If it says "RANGE 💤", be cautious.
Wait for the Button: Look for the "BUY NOW" (Neon Green) or "SELL NOW" (Neon Red) label.
Verify the Trend:
For BUY: Price should be above the white 200 EMA line.
For SELL: Price should be below the white 200 EMA line.
Execute: Enter the trade at the ⚡ ENTRY price.
Manage: Set your Stop Loss at the 🛑 SL line and take partial profits at TP 1 and TP 2. Leave a "runner" for TP 3 if the trend is strong.
eBacktesting - Learning: Trend LineseBacktesting - Learning: Trend Lines helps you spot clean trend lines automatically, using real swing points (highs/lows) and confirming a line only after it’s “respected” multiple times.
What you’ll see on the chart
- Uptrend lines (support) when price is making higher lows
- Downtrend lines (resistance) when price is making lower highs
- A simple way to study structure, spot “respect” of a trend line, and understand when a trend may be weakening
- Trend line breaks are based on candle closes, not just quick wicks, so the signals are clearer
You can also keep a few older lines on the chart, making it easy to review past reactions and build pattern recognition.
These indicators are built to pair perfectly with the eBacktesting extension, where traders can practice these concepts step-by-step. Backtesting concepts visually like this is one of the fastest ways to learn, build confidence, and improve trading performance.
Educational use only. Not financial advice.
Liquidity Sweeps by EVThis indicator is designed to detect liquidity sweeps and stop hunts by identifying when price briefly moves beyond key swing highs or lows and then rejects those levels. It highlights areas where buy-side or sell-side liquidity has been taken, offering traders a clear and objective way to read liquidity-driven market behavior.
Buy-side liquidity sweeps occur when price trades above a previous swing high and fails to hold, while sell-side liquidity sweeps occur when price trades below a previous swing low and quickly recovers. All detections are based on confirmed pivots, ensuring the indicator is fully non-repainting and reliable in live trading conditions.
The indicator allows users to choose between close-based or wick-based confirmation and can optionally mark only the first sweep of each liquidity level to reduce chart noise. Liquidity levels can be visualized directly on the chart, providing precise contextual references for market structure, VWAP confluence, and potential reversals.
Spearman Correlation🔗 Spearman Correlation – Ranked Relationship Tracker
Overview:
This indicator calculates and plots the Spearman Rank Correlation Coefficient between the current chart’s asset and a custom comparison ticker (the example shown is BTC vs the OTHERS market cap for crypto). Unlike Pearson correlation, which measures linear relationships, Spearman correlation captures monotonic (ranked) relationships—making it better suited for analysing assets that move in sync but not necessarily in a linear fashion.
🧠 What It Does:
Computes ranked correlation between two assets over a user-defined lookback period
Smooths the correlation curve for better readability
Visually shades the background by correlation strength and direction:
🟩 Strong Positive (+0.5 to +1)
🟨 Weak Positive (+0.1 to +0.5)
⬜ No Correlation (–0.1 to +0.1)
🟧 Weak Negative (–0.5 to –0.1)
🟥 Strong Negative (–1 to –0.5)
⚙️ User Inputs:
Lookback Period: Number of bars used to calculate correlation
Comparison Ticker: Choose any asset to compare against
Shading Toggles: Customize which correlation zones are highlighted
📈 Use Cases:
Identify evolving relationships between assets (e.g., BTC vs DXY, ETH vs SPX)
Spot when assets become inversely correlated or lose correlation entirely
Track regime shifts where traditional relationships break down or re-align
Use alongside trend or momentum strategies to add a cross-asset confirmation layer
🔍 Interpreting the Correlation:
+1 → Perfect positive (ranks match exactly)
+0.5 to +1 → Strong positive relationship
+0.1 to +0.5 → Weak but positive relationship
–0.1 to +0.1 → Essentially uncorrelated
–0.5 to –0.1 → Weak negative correlation
–1 to –0.5 → Strong inverse relationship
–1 → Perfect negative (rankings are completely opposite)
🧪 Technical Notes:
Calculation uses ranked returns to better reflect monotonic relationships
Smoothed with a simple moving average (SMA) for stability
Arrays are managed internally to maintain performance and adaptability
This script is ideal for traders seeking deeper insight into cross-asset dynamics, portfolio hedging, or timing divergence-based strategies.
Directional Comparisons - Two Tickers📊 Directional Comparisons – Two Tickers
Overview:
This tool allows you to visually and statistically compare the directional behaviour of any two assets on any chart timeframe. It identifies and color-codes each bar based on how both the current asset and your chosen comparison asset performed in that period (e.g., both up, both down, diverging). A statistical summary table dynamically updates in the corner of your chart, tracking the probability and streak performance of each condition.
🛠 How It Works:
Each candle is analysed and color-coded based on the relationship between the current chart's asset and a comparison asset of your choice:
✅ Green – Both tickers closed higher (bullish alignment)
🔻 Red – Both tickers closed lower (bearish alignment)
🔷 Blue – Current ticker up, comparison ticker down (positive divergence)
🟧 Orange – Current ticker down, comparison ticker up (negative divergence)
You can toggle each colour condition on/off independently.
📈 Statistical Table (Top Right):
For the candles in the visible chart range, the indicator displays:
The frequency (probability) of each condition
Longest, shortest, and average streaks for each condition
Average % change for both the current and comparison asset under each scenario
All stats auto-update as you zoom or scroll through the chart.
🔧 User Inputs:
Comparison Ticker: Choose any ticker symbol to compare against the current chart
Toggle Conditions: Enable or disable individual directional conditions (color-coded)
✅ Use Cases:
Spot high-probability alignment zones between two assets (e.g., BTC vs ETH, SPX vs VIX)
Identify divergence opportunities for trading signals
Analyse historical relationships and co-movements between assets
Perform correlation streak studies directly on the chart
🔍 Notes:
The script works across all timeframes (1min to monthly).
Stats only consider visible bars on your chart for responsiveness.
Ideal for pair traders, macro analysts, or anyone interested in cross-asset relationships.
TDPOWERSYS vs Market-Cap Weighted Peersfor QIC - UnCut Diamonds team..
to compare one company vs its peers bundled as basket.
editable..
Triple EMA + Stochastic/ADX# Triple EMA + Stochastic/ADX Breakout Indicator
A professional TradingView indicator designed for trend-following and momentum breakout trading. This system uses a hierarchical confirmation process to ensure high-probability entries and robust trend maintenance.
## 🚀 Core Trading Logic: "The Setup Cycle"
This indicator operates on a **Cycle-Based Logic** rather than simple crossovers. A trade cycle is defined as:
1. **The Setup (Priming)**: A Stochastic crossover (K > D for Long, D > K for Short) initiates a "Setup Mode." This is marked by a small dot (Blue for Long, Orange for Short).
2. **The Confirmation (Trend)**: The systems checks for hierarchical EMA alignment (Fast > Medium > Slow for Longs).
3. **The Trigger (Breakout)**: Once the Setup is active and EMAs are aligned, every **Price Breakout** above the previous high (X-period) triggers a continuous **BUY/SELL mark**.
4. **The Exit (Take Profit/Stop)**: The cycle and trade only end when the Fast EMA crosses back over the Medium EMA (EMA 9/21 crossover).
---
## 🛠 Features
### 1. Triple EMA System
* **Hierarchical Alignment**: Requires Fast > Medium > Slow (9, 21, 50 by default) for a confirmed trend direction.
* **Dynamic Trend Background**: Chart background changes color when a full EMA trend is established.
### 2. Dual Filter System (Stochastic & ADX)
* **Stochastic Setup**: Uses smoothed %K and %D to identify the start of momentum cycles.
* **ADX Filter**: Provides a trend-strength baseline. Default threshold is set to 20 to filter out choppy markets.
### 3. Price Breakout Confirmation
* Requires price to break above/below the previous High/Low of the last X bars (default 10).
* Allows for **continuous entries** within a single trend cycle.
### 4. Robust Exit Strategy
* **EMA Crossover Exit**: The primary exit method. Triggers an "EXIT" flag when the trend momentum shifts.
* **ATR Trailing Stop**: A secondary volatility-based stop that moves with the price. Can be set as the absolute exit or used for visual reference.
### 5. Mean Reversion Mode (Optional)
* Identifies overextended price action (percent deviation from EMA2).
* Signals potential "bounce" or "rejection" trades against the trend.
---
## 📊 Dashboard & Visuals
* **🟢 BUY / 🔴 SELL**: Trend continuation breakout signals.
* **🟠 EXIT / 🟣 EXIT**: Trend reversal/exit signals.
* **🔵/🟠 Small Dots**: Setup priming moments.
* **Real-time Dashboard**: Displays current Setup Status, EMA Alignment, Breakout status, ADX strength, and calculated Stop levels.
---
## ⚙️ How to Customize
| Parameter | Recommended Use |
| :--- | :--- |
| **Breakout Lookback** | Lower (3-5) for aggressive scalping, Higher (10-20) for conservative trends. |
| **Filter Mode** | Choose "Stochastic" for momentum or "ADX" for trend strength preference. |
| **ATR Multiplier** | Reduce (1.5) for tighter stops, Increase (3.0) for wider trend following. |
| **Exit ONLY on EMA** | Enable to stay in trades longer; Disable to exit immediately on ATR stop hits. |
---
## 📥 Installation
1. Open your **Pine Editor** in TradingView.
2. Create a new "Indicator."
3. Copy the code from `Triple_EMA_Stochastic_ADX.pine`.
4. Click **Save** and **Add to Chart**.
---
*Developed for Dhan/MCX/Futures and general Asset Trading.*






















