指標和策略
IBD Market School [Professional]IBD Market School
- Institutional-grade implementation of William O’Neil’s Market School timing system tuned for global and Indian benchmarks. Tracks corrections, rally attempts, follow-through days, power trends,
distribution/stalling clusters, dynamic exposure, buy switch state, and a fully themed dashboard—everything you need to keep portfolio risk aligned with Big Picture guidance.
Buy Rules
- B1 Follow-Through Day: day 4–10 of rally, gain ≥ configured %, volume > prior day.
- B2 Reinforcing FTD: second qualifying surge within 25 sessions of B1.
- B3 First Low ≥ 21 EMA after FTD.
- B4 Power Trend Start: 10 lows above 21 EMA, 21 EMA > 50 DMA (5+ days), rising 21 EMA, index within top 25% of 52-week range.
- B5 Living Above 21 EMA: every 5 additional days that the low holds the 21 EMA.
- B6 First close back above 50 DMA after confirmation.
- B7 New 52-week high in confirmed uptrend.
- B8 2× volume accumulation day with ≥1% gain.
- B9 Gap-up on above-average volume with positive close.
- B10 Accumulation day: ≥0.5% gain, 1.5× volume, close in top 20% of range.
- Additional context: ED (Expired Distribution) and 6% Rise markers track distribution clearing events.
Sell Rules
- S1 Heavy Distribution: distribution+stalling count ≥ threshold (default 5).
- S2 FTD Failure: index undercuts the Day 1 rally low post-FTD.
- S3 First break below 50 DMA after FTD.
- S4 Power trend loss: prior bar was in power trend and new close < 21 EMA.
- S5 Circuit breaker: single-day decline ≥ configured %.
- S6 Two-day cumulative decline ≥5%.
- S7 Three or more stalling days.
- S8 Volume Dry-Up: five consecutive below-average sessions with <0.5% range while confirmed.
- S9 Climax top reversal (≥3% surge with volume, then ≥1.5% drop next day).
- S10 Rally attempt exceeds FTD window (day > ftdMaxDay) without confirmation.
- S11 Distribution on an up day: small gain (<0.3%) on heavy volume closing in bottom 40% of range.
- S12 Undercut of rally Day 1 low while uptrend is confirmed.
- S13 Five straight down days.
- S14 First break below 200 DMA after confirmation.
Perfect for traders who want the full Market School cadence—rally confirmation, power-trend monitoring, distribution risk, and exposure guidance—all in one polished, fund-ready package.
SMC pro trend
The PSK FX Structure Indicator (also known as SMC pro trend) is a complete Smart Money Concepts (SMC) toolkit designed for professional structure traders.
It detects and visualizes key price structure elements such as BoS (Break of Structure), CHoCH (Change of Character), HH/HL/LH/LL, IDM zones, SCOB, sweeps, inside bars, and EMA confluence — all with precise non-repainting logic.
This indicator helps traders read price action like an institution — identifying liquidity shifts, order flow direction, and possible reversal or continuation zones.
⸻
⚙️ Core Features
🧭 Structure Detection
• Automatic detection of major structure points:
• HH – Higher High
• HL – Higher Low
• LH – Lower High
• LL – Lower Low
• Confirms BoS (Break of Structure) and CHoCH (Change of Character) events in both bullish and bearish markets.
• Marks each structure change with labels and connecting lines for clarity.
🔁 BoS / CHoCH Logic
• Solid line = BoS
• Dashed line = CHoCH
• Colored by direction:
• 🟩 Bullish = Green
• 🟥 Bearish = Red
• Option to show live BoS/CHoCH lines extending forward for real-time updates.
🧱 IDM (Internal Displacement Model) Zones
• Detects previous and live IDM zones (premium/discount zones).
• Highlights IDM candles that cause structural displacement.
• Labels each detected IDM level automatically.
⚡ Sweeps (Liquidity Grab Detection)
• Detects when price sweeps previous highs/lows.
• Marks these zones with dotted lines and optional “X” markers.
🧩 SCOB Pattern (Smart Candle Order Block)
• Detects and colors special SMC candle structures:
• Bullish SCOB → Aqua
• Bearish SCOB → Fuchsia
• Option to color all bars by trend direction or only highlight SCOB bars.
🧭 Internal Structure & Pivots
• Marks minor highs/lows (internal structure) for better IDM leg visualization.
• Helps identify early momentum shifts before major structure breaks.
🎯 1.618 Target Projection
• Projects 1.618 Fibonacci targets dynamically after BoS or CHoCH confirmation.
• Displays target price level with text label:
• Bullish → Green Target Line
• Bearish → Red Target Line
🧱 Inside Bar Zones
• Highlights inside bar formations (compression zones).
• Draws colored boxes between high/low of inside bar clusters.
• Marks the first and consecutive inside bars with custom bar colors.
📊 EMA Filter
• Includes a toggleable Exponential Moving Average (EMA) for confluence with trend direction.
• Customizable EMA length (default: 50).
🎨 Monochrome Mode
• Toggle between normal color mode and a clean monochrome theme for minimalistic charting setups.
⸻
🧠 How to Use
1. Identify Market Context:
Wait for a confirmed CHoCH to spot potential reversals or structure shifts.
2. Follow Order Flow:
Confirm trend direction via BoS lines and IDM zones.
3. Entry Planning:
Combine sweep detection, inside bar zones, and IDM levels for sniper entries.
4. Take Profit Zones:
Use the 1.618 target projection line to set high-probability TP levels.
5. Trend Filtering:
Use EMA direction to confirm whether to follow continuation or counter-trend setups.
⸻
🧩 Inputs & Settings
Category
Key Settings
Structure
Equal H/L toggle, HH/LL labeling, internal structure
BoS/CHoCH
Enable/disable labels, custom label size, bull/bear colors
IDM
Show previous/live IDM, label size, color options
Sweeps
Show sweep lines, X-markers, sweep line color
Bar Coloring / SCOB
Toggle bar coloring and SCOB pattern
Inside Bars
Highlight and box compression zones
1.618 Targets
Enable Fibonacci target projection
EMA
Toggle EMA and adjust length
Monochrome Mode
Apply single-color chart theme
⚠️ Notes
• This indicator is built for non-repainting structure confirmation.
• Use it on higher timeframes for swing structure or lower timeframes for IDM entry precision.
• Works best with clean price action charts (no cluttered oscillators or extra visuals).
⸻
💡 Recommended Use Cases
✅ SMC traders
✅ ICT/Order Block strategy users
✅ Liquidity and market structure traders
✅ Scalpers and swing traders using BoS/CHoCH logic
⸻
✍️ Author
Developed by PURNA SAMPATH KALUARACHCHI (PSK FX)
Smart Money Concepts researcher and price structure developer.
⸻
Flag Breakout Bullish Daily TF by SidHemFlag Breakout Bullish Daily TF by SidHem
Overview:
This indicator helps analyze Bullish Flag Breakouts (Rectangle) on the Daily Time Frame, providing a clear visual and tabular summary of key levels, stop-loss zones, expected pattern target and metrics. Traders can quickly assess breakout validity, risk/reward, and target achievement without manual calculations.
Please Note:
Flags are not auto-detected. Traders input four key dates: Pole start, Pole high, Cloth bottom, and Breakout candle. The indicator then calculates and plots all essential levels—including Pole, Cloth, Breakout Open/Close/Mean, Stop Loss, and Expected Pattern Target prices. This allows users who understand flag patterns but are unsure how to calculate targets or SL to efficiently work with the pattern.
Features:
Visualization: Highlights Pole, Cloth, and Breakout candles with horizontal rays, optional diagonal Pole lines, V-Arms, and filled boxes for clarity.
Dynamic Table Summary:
Displays symbol, Pole Low/High, Cloth Bottom, Breakout Open/Close/Mean, Expected Pattern Target, Stop Loss (3 methods, preferably on closing basis), Pole Height, Risk/Reward Ratio, Bars to Breakout, Estimated Time Frame, Pattern Summary, Flag Breakout status, and Volume strength.
Target & SL Labels: Plots target and SL lines on the chart with Expected Pattern Target, Target Achieved, and SL labels.
Customizable Appearance: Adjustable table rows, label sizes, colors, styles, widths, and transparency.
Purpose:
Accurately analyzes Bullish Flag Breakouts by entering only the four required dates; all plotting, calculation, and table generation are automated.
Experimental Supertrend [CHE]Experimental Supertrend — Combines EMA crossovers for trend regime detection with an adaptive ATR-based hull that selects the narrowest band to contain recent highs and lows, minimizing false breaks in varying volatility.
Summary
This indicator overlays a dynamic supertrend boundary around a midline derived from dual EMAs, using EMA crossovers to switch between bullish and bearish regimes. The hull adapts by evaluating multiple ATR periods and selecting the tightest one that fully encloses price action over a specified window, which helps in creating more stable trend lines that hug price without excessive gaps or breaches. Fills between the midline and hull provide visual cues for trend strength, darkening temporarily after regime changes to highlight transitions. Alerts trigger on crossovers, and markers label entry points, making it suitable for trend-following setups where standard supertrends might whipsaw. Overall, it offers robustness through auto-adjustment, reducing sensitivity to noise while maintaining responsiveness to genuine shifts.
Motivation: Why this design?
Standard supertrend indicators often flip prematurely in choppy markets due to fixed multipliers that do not account for localized volatility patterns, leading to frequent false signals and eroded confidence in trends. This design addresses that by incorporating an EMA-based regime filter for directional bias and an auto-adaptive hull that dynamically tunes the band width based on recent price containment needs. By prioritizing the narrowest effective enclosure, it avoids over-wide bands in calm periods that cause lag or under-wide ones in volatility spikes that invite breaks, providing a more consistent trailing reference without manual tweaking.
What’s different vs. standard approaches?
- Reference baseline: Diverges from the classic ATR-multiplier supertrend, which uses a single fixed period and constant factor applied to close or high/low deviations.
- Architecture differences:
- Auto-selection from candidate ATR lengths to find the optimal period for current conditions.
- Dynamic multiplier clamped between floor and cap values, adjusted by padding to ensure reliable containment.
- Regime-gated rendering, where hull position flips based on EMA relative positioning.
- Post-transition visual fading to emphasize change points without altering core logic.
- Practical effect: Charts show tighter, more reactive bands that rarely breach during trends, reducing visual clutter from flips; the adaptive nature means less intervention across assets, as the hull self-adjusts to volatility clusters rather than applying a one-size-fits-all scale.
How it works (technical)
The indicator first computes two EMAs from close prices using lengths derived from a preset pair or manual inputs, establishing a midline as their average. This midline serves as the central reference for the hull. True range values are then smoothed into multiple ATR candidates using exponential weighting over the specified lengths. For each candidate, deviations of recent highs and lows from the midline are ratioed against the ATR to determine a required multiplier that would enclose all extremes in the containment window—the highest ratio plus padding sets the base, clamped to user-defined bounds. Among valid candidates (those with sufficient history), the one yielding the narrowest overall band width is selected. The hull boundaries are then offset from the midline by this multiplier times the chosen ATR, and further smoothed with a fixed EMA to reduce jitter. Regime direction from EMA comparison gates which boundary acts as support or resistance, with initialization seeding arrays on the first bar to handle state persistence. No higher timeframe data is used, so all logic runs on the chart's native bars without lookahead.
Parameter Guide
EMA Pair — Selects preset lengths for fast and slow EMAs, influencing regime sensitivity and midline stability. Default: "21/55". Trade-offs/Tips: Faster pairs like "9/21" increase cross frequency for scalping but raise false signals; slower like "50/200" smooths for swings, potentially missing early turns. Use Manual for fine control.
Manual Fast — Sets fast EMA length when Manual mode is active; shorter values make regime switches quicker. Default: 21. Trade-offs/Tips: Lower than 10 risks over-reactivity; pair with slow at least double for clear separation.
Manual Slow — Sets slow EMA length when Manual mode is active; longer values anchor the midline more firmly. Default: 55. Trade-offs/Tips: Above 100 adds lag in trends; balance with fast to avoid perpetual neutrality.
ATR Lengths (comma-separated) — Defines candidate periods for ATR smoothing; more options allow finer auto-selection. Default: "7,10,14,21,28,35". Trade-offs/Tips: Fewer candidates speed computation but may miss optimal fits; keep under 10 for efficiency.
Containment Window — Number of recent bars the hull must fully enclose highs/lows of; larger windows favor stability. Default: 50. Trade-offs/Tips: Shorter (under 20) adapts faster to breaks but increases breach risk; longer smooths but delays response.
Min Multiplier Floor — Lowest allowed multiplier for hull width; prevents overly tight bands in low volatility. Default: 0.5. Trade-offs/Tips: Raise to 0.75 for conservative enclosures; too low allows pinches that flip easily.
Max Multiplier Cap — Highest allowed multiplier; caps expansion in spikes to avoid wide, lagging bands. Default: 1.0. Trade-offs/Tips: Lower to 0.75 tightens overall; higher permits more room but risks detachment from price.
Padding (+) — Adds buffer to the auto-multiplier for safer containment without exact touches. Default: 0.05. Trade-offs/Tips: Increase to 0.10 in gappy markets; minimal values hug closer but may still breach on outliers.
Fill Between (Mid ↔ Supertrend) — Toggles shaded area between midline and active hull for trend visualization. Default: true. Trade-offs/Tips: Disable for cleaner charts; pairs well with transparency tweaks.
Base Fill Transparency (0..100) — Sets default opacity of fills; higher values make them subtler. Default: 80. Trade-offs/Tips: Under 50 overwhelms price action; adjust with darken boost for emphasis.
Darken on Trend Change — Enables temporary opacity increase after regime shifts to spotlight transitions. Default: true. Trade-offs/Tips: Off for steady visuals; on aids spotting reversals in real-time.
Darken Fade Bars — Duration in bars for the darken effect to ramp back to base; longer prolongs highlight. Default: 8. Trade-offs/Tips: Shorter (4-6) for fast-paced charts; longer holds attention on changes.
Darken Boost at Change (Δ transp) — Intensity of opacity reduction at crossover; higher values make shifts more prominent. Default: 50. Trade-offs/Tips: Cap at 70 to avoid blackout; tune down if fades obscure details.
Show Supertrend Line — Displays the active hull boundary as a line. Default: true. Trade-offs/Tips: Hide for fill-only views; linewidth fixed at 3 for visibility.
Show EMA Cross Markers — Places circles and labels at crossover points for entry cues. Default: true. Trade-offs/Tips: Disable in clutter; labels show "Buy"/"Sell" at absolute positions.
Alert: EMA Cross Up (Long) — Triggers notification on bullish crossover. Default: true. Trade-offs/Tips: Pair with filters; once-per-bar frequency.
Alert: EMA Cross Down (Short) — Triggers notification on bearish crossover. Default: true. Trade-offs/Tips: Use for exits; ensure broker integration.
Show Debug — Reveals internal diagnostics like selected ATR details (if implemented). Default: false. Trade-offs/Tips: Enable for troubleshooting selections; minimal overhead.
Reading & Interpretation
Bullish regime shows a green line below price as support, with upward fill from midline; bearish uses red line above as resistance, downward fill. Crossovers flip the active boundary, marked by tiny green/red circles and "Buy"/"Sell" labels at the hull level. Fills start at base transparency but darken sharply at changes, fading over the specified bars to signal fresh momentum. If the hull rarely breaches during trends, containment is effective; frequent touches without flips indicate tight adaptation. Debug mode (when enabled) overlays text or plots for selected length and multiplier, helping verify auto-choices.
Practical Workflows & Combinations
- Trend following: Enter long on green "Buy" label above prior low structure; confirm with higher high. Trail stops along the green hull line, tightening as fills stabilize post-fade.
- Exits/Stops: Conservative exit on opposite crossover or hull breach; aggressive hold until fade completes if volume supports. Use darken boost as a volatility cue—high delta suggests waiting for confirmation.
- Multi-asset/Multi-TF: Defaults suit forex/stocks on 15m-4h; for crypto, widen containment to 75 for gaps. Layer on volume oscillator for cross filters; avoid on low-liquidity assets where ATR candidates skew.
Behavior, Constraints & Performance
Closed-bar logic ensures signals confirm at bar end, with live bars updating hull adaptively but no repaints since no future data or security calls are used. Arrays persist ATR states across bars, initialized once with candidates parsed from string. Small fixed loops (over 6 lengths max, inner up to 50) run per bar, capped by max_bars_back=500 for history needs. Resources stay low with 500 labels/lines limits, but dense charts may hit on markers. Known limits include initial lag until containment history builds (50+ bars), potential wide bands on gaps, and suboptimal selections if candidates omit ideal lengths.
Sensible Defaults & Quick Tuning
Start with "21/55" pair, 50-window, 0.5-1.0 multipliers, and 80% transparency for balanced responsiveness on daily charts. For too many flips, raise min floor to 0.75 or add lengths like "42"; for sluggishness, shorten window to 30 or pick faster pair. In high-vol environments, boost padding to 0.10; for smoother visuals, extend fade bars to 12.
What this indicator is—and isn’t
This is a visualization and signal layer for trend regime and adaptive boundaries, aiding entry/exit timing in directional markets. It is not a standalone system—pair with price structure, risk sizing, and broader context. Not predictive of turns, just reactive to containment and crosses.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Happy trading
Chervolino
Europe Session LinesThis simple script marks the start of the European trading sessions:
08:00 a.m. London trading session
09:00 a.m. Frankfurt trading session
The settings of the lines can be changed. (thickness, colour, type).
It can be used on Futures and CFDs for example for FDAX, FTSE100 but also for GOLD, Silver and EURO- and GBP based FX pairs as supply or demand zone with the change of character trading setup.
EDGAR Weekly Overview (EWO)EDGAR Weekly Overview (EWO) helps you trade with confidence — no more guessing where price will go next.
This indicator clearly shows where the market is likely to reach, reject, or bounce, using dynamic weekly base, support, and resistance levels.
You’ll instantly see key zones for your take profit (TP) and stop loss (SL), helping you plan trades with precision instead of emotion.
🔒 Invite-Only Script – access available only to authorized users.
Dollar Volume Ownership Gauge Dollar Volume Ownership Gauge (DVOG)
By: Mando4_27
Version: 1.0 — Pine Script® v6
Overview
The Dollar Volume Ownership Gauge (DVOG) is designed to measure the intensity of real money participation behind each price bar.
Instead of tracking raw share volume, this tool converts every bar’s trading activity into dollar volume (price × volume) and highlights the transition points where institutional capital begins to take control of a move.
DVOG’s mission is simple:
Show when the crowd is trading vs. when the institutions are buying control.
Core Concept
Most retail traders focus on share count (volume) — but institutions think in dollar exposure.
A small-cap printing a 1-million-share candle at $1 is very different from a 1-million-share candle at $10.
DVOG normalizes this by displaying total traded dollar value per bar, then color-codes and alerts when the volume of money crosses key thresholds.
This exposes the exact moments when ownership is shifting — often before major breakouts, reclaims, or exhaustion reversals.
How It Works
Dollar Volume Calculation
Each candle’s dollar volume is computed as close × volume.
Data is aggregated from the 5-minute timeframe regardless of your current chart, allowing consistent institutional-flow detection on any resolution.
Threshold Logic
Two customizable levels define interest zones:
$500K Threshold → Early or moderate institutional attention.
$1M Threshold → High-conviction or aggressive accumulation.
Both levels can be edited to fit different market caps or trading styles.
Bar Coloring Scheme
Red = Dollar Volume ≥ $1,000,000 → Significant institutional activity / control bar.
Green = Dollar Volume ≥ $500,000 and < $1,000,000 → Emerging accumulation / transition bar.
Black = Below $500,000 → Retail or low-interest zone.
(Colors are intentionally inverted from standard expectation: when volume intensity spikes, the bar turns hotter in tone.)
Plot Display
Histogram style plot displays 5-minute aggregated dollar volume per bar.
Dotted reference lines mark $500K and $1M levels, with live right-hand labels for quick reading.
Optional debug label shows current bar’s dollar value, closing price, and raw volume for transparency.
Alerts & Conditions
DVOG includes three alert triggers for hands-off monitoring:
Alert Name Trigger Message Purpose
Green Bar Alert – Dollar Volume ≥ $500K When dollar volume first crosses $500K “Institutional interest starting on ” Signals early money entering.
Dollar Volume ≥ $500K Same as above, configurable “Early institutional interest detected…” Broad alert option.
Dollar Volume ≥ $1M When dollar volume first crosses $1M “Significant money flow detected…” Indicates heavy institutional presence or ignition bar.
You can enable or disable alerts via checkbox inputs, allowing you to monitor just the levels that fit your style.
Interpretation & Use Cases
Identify Institutional “Ignition” Points:
Watch for sudden green or red DVOG bars after long low-volume consolidation — these often precede explosive continuation moves.
Confirm Breakouts & Reclaims:
If price reclaims a key level (HOD, neckline, or coil top) and DVOG flashes green/red, odds strongly favor follow-through.
Spot Trap Exhaustion:
After a flush or low-volume fade, the first strong green/red DVOG bar can mark the institutional reclaim — the moment retail control ends.
Filter Noise:
Ignore standard volume spikes. DVOG only reacts when dollar ownership materially changes hands, not when small traders churn shares.
Customization
Setting Default Description
$500K Threshold 500,000 Lower limit for “Green” institutional attention.
$1M Threshold 1,000,000 Upper limit for “Red” heavy institutional control.
Show Alerts ✅ Enable or disable global alerts.
Alert on Green Bars ✅ Toggle only the $500K crossover alerts.
Adjust thresholds to match the liquidity of your preferred tickers — for example, micro-caps may use $100K/$300K, while large-caps might use $5M/$20M.
Reading the Output
Black baseline = Noise / retail chop.
First Green bar = Smart money starts building position.
Red bar(s) = Ownership shift confirmed — institutions active.
Flat-to-rising pattern in DVOG = Sustained accumulation; often aligns with strong trend continuation.
Summary
DVOG transforms raw volume into actionable context — showing you when capital, not hype, is moving.
It’s particularly effective for:
Momentum and breakout traders
Liquidity trap reclaims (Kuiper-style setups)
Identifying early ignition bars before halts
Confirming frontside strength in micro-caps
Use DVOG as your ownership radar — the visual cue for when the market stops being retail and starts being real.
Live Volume TickerGives current real-time volume of tick movements denoted in the timeframe of the current candle.
DM ziggy lines..Use on chart
1
0
Understand What ZigZag Shows
The ZigZag connects swing points:
Up move (Bull leg) → identifies higher swing lows (potential start of uptrend)
Down move (Bear leg) → identifies lower swing highs (potential start of downtrend)
It doesn’t repaint here (since you used a non-repainting logic), so signals are confirmed once the line appears.
Entry Logic (Trend-Following Style)
You can trade in the direction of the last confirmed ZigZag leg:
Long entry idea
Wait for the ZigZag to plot a bullish leg (green line in your script).
Confirm the higher low (price doesn’t break below the last swing low).
Enter when a candle closes above the recent swing high or with bullish momentum (e.g., a bullish engulfing candle).
📉 Short entry idea
Wait for the ZigZag to plot a bearish leg (red line).
Confirm the lower high (price doesn’t break above the last swing high).
Enter when a candle closes below the recent swing low or with bearish momentum.
. Exit or Stop-Loss
Stop-loss: Place just beyond the most recent swing point (ZigZag high/low).
Take-profit: Use risk/reward (e.g. 1:2 ratio) or next opposite ZigZag point.
Example:
Long trade after green ZigZag up-leg → stop below last swing low → exit near next swing high (red ZigZag reversal).
Optional Enhancements
You can combine the ZigZag logic with:
RSI or MACD → to confirm momentum.
Moving averages → to confirm overall trend.
Volume spikes → to confirm strong swing reversals.
Crypto Cycle Radar (TOTAL / TOTAL2 / TOTAL3 / BTC.D / USDT.D)Crypto Cycle Radar (TOTAL / TOTAL2 / TOTAL3 / BTC.D / USDT.D)
MACD Trading System - Professional V2# MACD Trading System - Professional V2
## Executive Summary
**MACD Pro V2** is an institutional-grade trading indicator combining classical MACD analysis with advanced risk management, multi-timeframe confirmation, and comprehensive performance metrics. Designed for both manual traders and algorithmic systems, this indicator provides actionable signals with built-in stop loss calculation, take profit targets, position sizing, and trailing stop logic.
This indicator is NOT just a signal generator—it's a complete trading system with risk/reward management, performance tracking, and market regime detection.
---
## Core Features
### 1. Advanced MACD Calculation
- **Customizable EMAs**: Fast (default 8), Slow (default 21), Signal (default 5)
- **Confirmed Signals**: Uses barstate.isconfirmed to prevent repainting
- **Zero-Line Position**: Shows MACD above/below zero for momentum context
### 2. Multi-Timeframe Analysis
- **4 Simultaneous Timeframes**: 4H, 1H, 15M, 5M analyzed in parallel
- **MTF Alignment Score**: 0-100% showing consensus across timeframes
- **Smart Requests**: Uses lookahead=barmerge.lookahead_off for accuracy
### 3. Market Regime Detection
Automatically identifies current market conditions:
- **TRENDING** - ADX > 25, strong directional movement
- **RANGING** - ADX < 20, choppy sideways movement
- **VOLATILE** - ATR > 1.5x average, high uncertainty
- **NORMAL** - Default market state
### 4. Integrated Risk Management
Complete position management system:
- **Stop Loss Calculation**: Automatic SL placement based on ATR × multiplier
- **Take Profit Targets**: Calculated using Risk:Reward ratio (default 2:1)
- **Position Sizing**: Scales position size based on account risk percentage
- **Trailing Stop**: Dynamically adjusts SL as price moves in your favor
- **Drawdown Monitoring**: Tracks maximum drawdown vs account
### 5. Advanced Signal Scoring
0-100 point system weighing:
- **MTF Alignment (35%)**: Multi-timeframe confirmation strength
- **Momentum (25%)**: RSI conditions + Divergence detection
- **Volume (20%)**: Volume profile and confirmation
- **Volatility (20%)**: Market regime adjustment
**Signal Classifications:**
- **STRONG (70+)**: High confidence, tight stops, optimal entry
- **MEDIUM (50-69)**: Valid signals, confirm with price action
- **WEAK (<50)**: Low conviction, skip or use tight risk management
### 6. Professional Performance Metrics
Real-time trading statistics:
- **Win Rate**: Percentage of winning trades
- **Max Drawdown**: Largest peak-to-trough decline
- **Sharpe Ratio**: Risk-adjusted returns (anualized)
- **Profit Factor**: Gross profit / Gross loss ratio
- **Consecutive Losses**: Psychological stress indicator
### 7. Advanced Filtering System
- **Divergence Detection**: Automatic bullish/bearish divergence identification
- **Support/Resistance**: Pivot-based dynamic S/R levels
- **Volume Confirmation**: Only takes signals with volume > 1.0x average
- **Session Filter**: Optional trading hours restriction
- **Volatility Adjustment**: Reduces entries in extremely high volatility
---
## How It Works
### Signal Generation Process
**Step 1: MACD Crossover**
- Crossover of MACD above/below signal line triggers base signal
- Uses confirmed values to prevent false signals
**Step 2: Multi-Timeframe Confirmation**
- Checks trend alignment on 4H, 1H, 15M, 5M
- Calculates MTF alignment percentage
- Higher alignment = higher confidence
**Step 3: Advanced Scoring**
Signal is scored on 100-point scale:
- MTF alignment contribution (35 pts max)
- RSI + Divergence (25 pts max)
- Volume profile (20 pts max)
- Volatility regime adjustment (20 pts max)
**Step 4: Filter Application**
- Session filter (if enabled)
- Support/Resistance proximity bonus
- Volume confirmation requirement
- Drawdown check (if risk mgmt enabled)
**Step 5: Risk Calculation**
- Stop Loss placed 2 ATR below entry (customizable)
- Take Profit calculated using 2:1 risk/reward ratio
- Position size scaled to risk 1% per trade
- Trailing stop activated after 1R profit
**Step 6: Signal Output**
- Buy Signal: Green triangle (Strong) or circle (Medium)
- Sell Signal: Red triangle (Strong) or circle (Medium)
- Dashboard shows complete trade details
---
## Trading Scenarios
### Scenario 1: Strong Buy Setup
```
Requirements met:
✓ MACD crosses above signal line
✓ 3/4 timeframes bullish (4H, 1H, 15M)
✓ RSI oversold (< 30)
✓ Volume spike confirmed
✓ Score: 78/100 → STRONG BUY
System provides:
- Entry: Current price
- Stop Loss: 2 ATR below entry
- Take Profit: 2× risk distance above
- Position Size: Adjusted to 1% account risk
- Trailing Stop: Activates at 1R profit
```
### Scenario 2: Medium Buy with Divergence
```
Requirements met:
✓ MACD crosses above signal line
✓ 2/4 timeframes bullish (4H, 1H)
✓ Bullish divergence detected
✓ Price near support level
✓ Score: 62/100 → MEDIUM BUY
Considerations:
- Lower confidence → tighter risk management
- Use smaller position size
- Require additional confirmation
- Better as counter-trend entry
```
### Scenario 3: Ranging Market Filter
```
Market condition detected: RANGING
ADX < 20, sideways movement
System response:
- Reduces signal score by volatility adjustment
- May skip signals entirely
- Prioritizes higher confluence
- Warns of low trend probability
Best action: Wait for trending market
```
---
## Risk Management Deep Dive
### Stop Loss Calculation
```
Stop Loss Distance = ATR × ATR Multiplier (default 2.0)
Example:
- Current price: 1.0850
- ATR(14): 0.0045
- SL Distance: 0.0045 × 2.0 = 0.009
- BUY SL: 1.0850 - 0.009 = 1.0760
```
### Position Sizing
```
Position Size = (Account Risk % / Price Risk %)
Example:
- Risk per trade: 1% of account
- Stop distance: 0.009 on price of 1.0850
- Price risk: 0.009 / 1.0850 = 0.83%
- Position size: 1.0% / 0.83% = 1.2x (capped at 1.0x max)
```
### Trailing Stop Logic
```
Normal SL: 2 ATR below entry
Trigger Level: Entry + (Entry - SL) × Trail Activation (1.0R)
Trailing Mechanism:
- If price hits trigger, trailing SL activates
- SL moves up to: Close - 2 ATR
- SL never moves down, only up (for longs)
- Protects profits while allowing upside
```
### Drawdown Protection
```
Tracks:
- Peak equity reached
- Current drawdown from peak
- Maximum drawdown recorded
- Stops trading if max DD exceeded
Example:
- Peak: $10,000
- Current: $9,200
- Drawdown: 8%
- Max allowed: 10%
- Status: CONTINUE TRADING
```
---
## Dashboard Metrics Explained
### Market Section
- **Market Regime**: Current state (Trending/Ranging/Volatile/Normal)
- **ADX Value**: Trend strength indicator (0-100)
### Position Section
- **Current Position**: LONG, SHORT, or NONE
- **P&L**: Unrealized profit/loss percentage if in position
### Timeframe Section
- Individual 4H/1H/15M trend status
- **Alignment**: Percentage of bullish timeframes
### Risk Management Section
- **Stop Loss %**: Distance from current price
- **Take Profit %**: Target profit distance
- **Position Size**: Capital allocation multiplier
- **Risk %**: Per-trade risk percentage
### Performance Section
- **Win Rate**: % of winning trades (>60% is excellent)
- **Max DD**: Maximum drawdown experienced
- **Sharpe Ratio**: Risk-adjusted return metric
- **Profit Factor**: Ratio of profits to losses
### Indicators Section
- **RSI**: Momentum and overbought/oversold levels
- **Volume**: Current vs. average volume ratio
- **Divergence**: Active divergence detection
---
## Advanced Features
### Divergence Detection
```
Bullish Divergence:
- Price makes lower low
- MACD makes higher high
- Signals potential reversal UP
Bearish Divergence:
- Price makes higher high
- MACD makes lower low
- Signals potential reversal DOWN
Lookback: 20 bars (customizable)
```
### Support & Resistance
```
Method: Pivot High/Low detection
- Pivot Left/Right: 10 bars
- Dynamic S/R levels update as new pivots form
- Bonus score if entry near identified levels
```
### Performance Tracking
Real-time statistics calculated from:
- Win/loss signals
- Profit/loss per trade
- Consecutive losing trades
- Cumulative returns
- Standard deviation (Sharpe calculation)
Stores last 100 trades in memory for statistics.
---
## Input Parameters Explained
### MACD Settings
- **Fast EMA** (5-13): Lower = more responsive, more false signals
- **Slow EMA** (20-26): Higher = smoother, misses faster moves
- **Signal EMA** (5-9): Crossover sensitivity
### Risk Management
- **ATR Period** (default 14): Volatility measurement period
- **SL ATR Multiplier** (1.5-3.0): Stop loss tightness
- **Risk:Reward Ratio** (1-5): Profit target calculation
- **Trail Activation** (0.5-2.0): When to start trailing stop
- **Risk Per Trade** (0.1-5.0): Account risk percentage
- **Max Drawdown** (5-30%): Trading pause threshold
### Scoring Weights
Customize signal emphasis:
- **MTF Alignment** (35%): How important is multi-timeframe
- **Momentum** (25%): RSI and divergence weight
- **Volume** (20%): Volume confirmation priority
- **Volatility** (20%): Regime adjustment strength
### Advanced Filters
- **Check Divergence**: Enable/disable divergence scoring
- **Session Filter**: Restrict to specific hours
- **Min Volume Ratio**: Minimum volume for signal
### Display
- **Show Dashboard**: Main metrics table
- **Show Performance**: Trading statistics
- **Show S/R Levels**: Support/resistance visualization
---
## Best Practices
1. **Backtest Before Trading**: Test parameters on your preferred pairs
2. **Start with Strong Signals**: Use only 70+ scored signals initially
3. **Position Size**: Never risk more than 1-2% per trade
4. **Market Regime Awareness**: Skip ranging market entries
5. **Volume Confirmation**: Always check volume spikes
6. **Profit Taking**: Lock in profits at TP, don't let winners die
7. **Loss Management**: Honor stop losses, don't move them
8. **Performance Review**: Check metrics weekly, adjust if needed
---
## Trading Strategy Examples
### Conservative Strategy (Win-Rate Focus)
```
Settings:
- Signal Score Minimum: 70+ (Strong only)
- Risk Per Trade: 0.5%
- Risk:Reward: 3:1
- Position Size: 0.5x (smaller)
Targets:
- Win Rate > 65%
- Max DD < 5%
- Profit Factor > 2.0
```
### Aggressive Strategy (Profit Focus)
```
Settings:
- Signal Score Minimum: 50+ (Medium+)
- Risk Per Trade: 2%
- Risk:Reward: 1.5:1
- Position Size: 1.0x (maximum)
Targets:
- Win Rate > 55%
- Max DD < 10%
- Profit Factor > 1.5
```
### Trend Trading Strategy
```
Settings:
- Only trade when ADX > 25 (Trending)
- MTF Alignment: 3+ timeframes
- Use Trailing Stop: Yes
- Risk:Reward: 2.5:1
Focus on: Riding large moves
Best on: 4H timeframe
Pairs: Trending majors (EURUSD, GBPUSD)
```
### Divergence Trading Strategy
```
Settings:
- Signal Score Minimum: 60+
- Enable Divergence: Yes
- Volume Confirmation: Required
- Position Size: 0.75x
Focus on: Reversal entries
Best setup: Divergence at resistance/support
Risk management: Tight stops (1.5 ATR)
```
---
## Advantages
✓ Complete trading system, not just signals
✓ Built-in risk management and position sizing
✓ Real-time performance tracking
✓ Multi-timeframe confirmation reduces false signals
✓ Advanced filtering and divergence detection
✓ Market regime awareness
✓ Customizable scoring weights
✓ Professional dashboard display
✓ Support/resistance integration
✓ Trailing stop logic for profit protection
---
## Limitations
- Lagging indicator (uses confirmed bars)
- Works best on trending markets
- Not optimized for news/event trading
- Requires parameter optimization per pair
- Performance varies by timeframe
- Past performance doesn't guarantee future results
- Can produce whipsaw signals in ranging markets
---
## System Requirements
- TradingView Premium or higher (for advanced charting)
- Recommended: 4H or 1H timeframe
- Historical data: Minimum 100 bars
- Currency pairs: Works on all FX pairs, stocks, commodities
---
## Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice and does not guarantee profits. Past performance does not predict future results.
**Important Notices:**
- Always use proper risk management
- Trade only with capital you can afford to lose
- Backtest thoroughly before live trading
- Combine with your own analysis
- Consider external market factors and news
- Monitor positions actively
- Keep emotional discipline
---
## Support & Optimization
For best results:
1. Test on your preferred instrument (6-12 months history)
2. Adjust MACD parameters to your timeframe
3. Optimize scoring weights to your style
4. Set risk management per your account size
5. Document your trade results and review weekly
6. Adapt parameters if performance degrades
This is a powerful system when used correctly. Respect the rules and let statistics work in your favor.
Fincandle ATR Direction TrackerOverview
The Fincandle ATR Direction Tracker is a strategy designed to capture momentum moves in the market using a dynamic ATR-based trailing stop. It identifies strong momentum candles and filters signals using trend alignment with moving averages.
Partial exits allow users to take a portion of profit at a predefined ATR multiple while keeping the remaining position open until the opposite signal occurs.
How It Works
Momentum Detection:
Measures candle body size relative to the Average True Range (ATR).
A candle is considered momentum if its body size exceeds ATR × Multiplier.
Trend Filter:
Uses two moving averages (Fast MA and Slow MA) to determine the market trend.
Bullish trend: Fast MA > Slow MA → long trades allowed
Bearish trend: Fast MA < Slow MA → short trades allowed
Trend filter can be toggled on or off.
ATR Trailing Stop:
A dynamic trailing stop adapts to price volatility.
Crossing above the trail triggers a buy signal, crossing below triggers a sell signal.
Partial Exit / Take Profit:
Step 1: Exit 50% of the position when price moves a configurable multiple of ATR in your favor.
Step 2: Close the remaining position when the opposite signal occurs (e.g., price crosses below/above the ATR trail).
How to Use
Add the strategy to any chart (stocks, indices, forex, crypto).
Configure ATR period, sensitivity, take profit multiple, and moving average lengths to suit the timeframe and asset.
Monitor buy/sell markers and dynamic ATR trail on the chart.
Optional: Set alerts for real-time notifications when signals trigger.
Adjust partial exit multiplier to control risk/reward.
Example Settings
ATR Period: 10
ATR Sensitivity: 3 × ATR
Take Profit: 2 × ATR
Fast MA: 50
Slow MA: 200
Partial Exit: 50% of position at take profit, remaining exits on opposite signal
Key Features
Adaptive ATR trailing stop for volatility-based entries/exits.
Trend alignment filter with Fast/Slow MA.
Partial exit logic for better risk management.
Visual BUY/SELL markers and alerts.
Fully Pine Script v6 compatible.
Disclaimer
This strategy is for educational and analytical purposes only.
It does not guarantee profits. Traders should always use proper risk management.
Sniper Algo TradingThis indicator analyzes market momentum and trend shifts using advanced multi-timeframe algorithms. It helps visualize potential reversals, continuations, and momentum flips with clear, intuitive signals designed for experienced traders.
Built for precision and adaptability — suitable for crypto, forex, and indices.
Note: For educational use only. Not financial advice.
EMA Trend RecognitionEMA Trend Recognition — “Double-Vision Trend Glasses” 👓⚡
In short:
Your chart gets two voices — the Major trend (EMA50 vs EMA200) for the big picture, and the Minor trend (EMA9 vs EMA20) for the short-term mood.
When both sing the same tune, you get a STRONG signal.
When they argue, it’s a WEAK one. Simple. Clean. Effective.
🧭 What this indicator does
Major Trend (Long-Term):
EMA50 above EMA200 → Bullish.
EMA50 below EMA200 → Bearish.
This tells you where the market really wants to go.
Minor Trend (Short-Term):
EMA9 above EMA20 → Bullish.
EMA9 below EMA20 → Bearish.
This shows you what the market feels like right now.
Trend Combinations (The Magic):
🟢 STRONG BUY: Major ↑ + Minor ↑ → full alignment, go with the flow.
🔴 STRONG SELL: Major ↓ + Minor ↓ → both down, no mercy.
🟡 WEAK BUY: Major ↑, Minor ↓ → pullback zone? early dip? maybe.
🟠 WEAK SELL: Major ↓, Minor ↑ → short-term bounce inside a downtrend.
🎨 Background Colors & Info Panel
Bright Green: STRONG BUY
Bright Red: STRONG SELL
Faded Green/Red: WEAK signals (trend disagreement)
Bottom Info Table:
Major Trend: “BULLISH ↑” or “BEARISH ↓”
Minor Trend: same logic, faster tempo
Signal: shows STRONG/WEAK/NEUTRAL status
Price: latest close price (because yes, we all check that)
🔔 Alerts (so you don’t stare all day)
MAJOR TREND CHANGE: “Now Bullish!” or “Now Bearish!”
MINOR TREND CHANGE: quicker reversals
STRONG BUY/SELL: when both trends line up perfectly
(Alerts trigger only on bar close — no disco flicker alerts.)
🧠 Visuals — Simple but Smart
EMA 200 & 50: thick lines = your market highway
EMA 20 & 9: thin lines = your turn signals
Muted colors, so your eyes survive long trading sessions
🚀 Why it’s useful
Trend Trading: Filter out noise, ride the momentum.
Pullback Entries: WEAK signals often mark “turning back in” moments.
System Building: Use “STRONG” as a market bias filter, “MINOR” flips as entry triggers.
⚙️ Pro Tips
Timeframes: EMAs are fixed, but meaning scales with TF.
On 1H or 4H, they often reflect daily/weekly momentum.
Context: Combine with structure (HH/HL/LH/LL), zones (OB/FVG), or volume.
Risk Management: Signal ≠ free money. Always define SL/TP and RR.
⚠️ Disclaimer
No financial advice, no crystal ball.
This indicator helps you see — but you still decide when to act.
Backtest and paper-trade before going live.
Short Pitch (for the top “Summary” line on TradingView):
“Two EMA pairs, one clear trend compass — Major shows direction, Minor sets the rhythm. When both agree, it’s STRONG. When they argue, it’s WEAK. Clean, fast, and easy to read.” ✅
Feel free to commend and if u have inspirations to add something, let me know, cheers :D
[SwingMann©] EWTrend+ EWTrend+
Trend and Elliott Wave Cycle Indicator
Description:
EWTrend+ is a versatile indicator specifically designed to visualize market trends and Elliott Wave cycles. By combining multiple EMA lengths with flexible smoothing options, it enables precise trend analysis and signal generation.
Key Features:
Dynamic Trend Colors: Green for uptrends, red for downtrends, gray for neutral phases.
Multiple EMAs: Configurable lengths for different time horizons.
Flexible Smoothing: Choose SMA, EMA, WMA, RMA, DMA, or no smoothing at all.
Signal Lines: WMA-based signal lines for each EMA, optionally visible or hidden.
Offset Function:
Displays indicator lines slightly shifted for clearer visualization of market movements.
Elliott Wave Cycle Orientation:
Assists in identifying impulsive and corrective market phases.
When combined, absolutely lethal ;-)
Benefits:
Provides a clear visual overview of short- and long-term trends.
Supports the analysis of Elliott Wave patterns for strategic entries and exits.
Ideal for swing traders, day traders, and technical analysts.
Conclusion:
Multiple EMAs for various time horizons
Dynamic trend colors for quick orientation
Signal lines for trend confirmation
Offset function for improved visualization
Supports Elliott Wave cycle analysis
Note:
EWTrend+ is a tool for analysis and does not replace independent trading decisions. Please test the indicator on a demo account before live use.
KAB 1 BETAKAB 1: The Premier AI-Driven Neural Network Trading Indicator
Unlock the future of trading with KAB 1, an elite, subscription-based indicator meticulously engineered by Koby A. Brown (Lastkingkoby) using state-of-the-art artificial intelligence and advanced neural network algorithms. This isn't your average tool – it's a sophisticated powerhouse that integrates deep learning models to analyze market dynamics, delivering unparalleled insights for professional traders.
Key Highlights:
AI-Powered Precision: Built on proprietary neural networks trained on vast datasets, KAB 1 intelligently identifies dynamic support and resistance zones, forecasting potential breakouts and reversals with high-fidelity accuracy.
Intelligent Signal Generation: Receive crystal-clear buy/sell alerts, complete with predictive warnings for momentum shifts, all derived from AI-optimized range filtering and trend detection mechanisms.
Overlay Mastery: Seamlessly overlays on your charts, visualizing critical levels and signals in real-time, adaptable to any timeframe or asset (with exceptional performance on high-volatility markets like gold and forex).
Beta-Exclusive Features: Early subscribers gain access to evolving AI enhancements, ensuring your edge stays sharp in ever-changing markets.
Priced as a premium subscription service to reflect its exclusive, high-value technology (details via private invite), KAB 1 is reserved for serious traders seeking institutional-grade tools without the hassle. No mimics, no knockoffs – this is the real deal, copyrighted and protected. Elevate your strategy today and experience trading redefined.
© 2025 Koby "Lastkingkoby" Brown. All rights reserved. Subscription required for access.
Power Zone Trader (PZT)The PZT Indicator (Power Zone Trader ) is a multi-timeframe confluence system designed to identify and visualize natural support and resistance levels with exceptional clarity. By automatically mapping key structural highs and lows from higher timeframes, PZT allows traders to see where price is most likely to react, reverse, or accelerate, forming the foundation for high-probability trade setups. PZT highlights key reaction zones that influence order flow and trader behavior across all markets — including Forex, Crypto, Indices, and Commodities.
📍 Indicator Key
Each color represents a significant price level derived from its respective timeframe, helping traders instantly gauge market context and potential liquidity pools:
Color Level Represented Significance
🔴 Red Yearly High Strong resistance — potential selling pressure and major liquidity sweep zones.
🟢 Green Yearly Low Strong support — potential buying interest and accumulation points.
🟠 Orange Monthly High Intermediate resistance — swing rejection or continuation decision zone.
🔵 Blue Monthly Low Intermediate support — potential retracement or base-building area.
🟣 Purple Weekly High Short-term resistance — common rejection level or stop hunt zone.
🟤 Teal Weekly Low Short-term support — potential rebound or liquidity grab.
⚫ Gray Daily High Intraday resistance — active scalper and day trader interest.
⚪ White Daily Low Intraday support — short-term bounce or continuation pivot.
Full Currency Strength Table Dashboard (8 Currencies)
# Full Currency Strength Table Dashboard (8 Currencies) 📊
This indicator provides a **simplified, visual representation of the current relative strengths of 8 major global currencies** (EUR, USD, GBP, JPY, AUD, NZD, CAD, CHF). It's designed as a minimalist dashboard that appears discreetly on your chart, giving traders a quick and clear picture of forex pair movements.
The indicator calculates the relative strength of each currency based on its movement against the other 7 currencies in the panel, providing insight into which currencies are currently the strongest and which are the weakest.
## Key Features 🌟
* **Simplified Visualization:** Instead of showing currency strength as a line on the chart, which can often be distracting, the indicator uses a **data table (dashboard)** positioned on the chart. This ensures **maximum chart visibility** and cleanliness.
* **8 Major Currencies:** All major currencies are included ($A$ - EUR, $B$ - USD, $C$ - GBP, $D$ - JPY, $E$ - AUD, $F$ - NZD, $G$ - CAD, $H$ - CHF), allowing strength calculation based on **28 base currency pairs**.
* **Strength Calculation:** Strength is calculated based on the average percentage change $\left(\frac{\text{Close} - \text{Open}}{\text{Open}} \times 100\right)$ of the currency relative to all 7 other currencies.
* **Timeframe Setting:** Users can select a **higher timeframe (TF)** (e.g., Daily - 'D') for the strength calculation. This allows analysis of longer-term currency strength momentum, independent of the chart's current timeframe.
* **Customizable Design:** You can adjust the table's position, text size, the colour of each currency, and the resolution (length) of the strength meter.
## How to Use the Indicator (Interpretation) 💡
1. **Select a Timeframe (TF):** It's recommended to use a higher TF (e.g., Daily - 'D' or 4h - '240') to get more stable currency strength signals.
2. **The Dashboard Table:** The table displays:
* The currency name (bottom, with its corresponding colour).
* The numerical strength value (top, expressed in points or average change).
* The **Strength Meter (bar)** visually represents the currency's relative strength compared to the other currencies on the panel (calculated based on the Min/Max values across all 8 currencies).
3. **Making Decisions:**
* **Buy:** Look for a currency pair where the **Base Currency** is significantly **strong** (high positive value, long meter) and the **Quote Currency** is significantly **weak** (high negative value, short meter).
* **Sell:** Look for a currency pair where the **Base Currency** is significantly **weak** and the **Quote Currency** is significantly **strong**.
* **Avoid Trading:** Avoid pairs where both currencies have roughly the same strength or are close to zero.
## Note on Calculation and Code 🛠️
* **Base Pairs:** The script calculates 28 base currency pairs (e.g., EURUSD, EURGBP... CADCHF) using the `request.security` function to retrieve data from the selected timeframe (`freq`).
* **Data Correction:** A correction was implemented in the code by adding ` ` after `request.security` to always use the **CLOSED bar values** from the higher TF. This **eliminates NaN (Not a Number) data** that would appear when using the current bar.
* **Accumulation:** Accumulation (`sumA, sumB...`) only occurs when the selected higher TF changes (`timeframe.change(freq)`), effectively tracking the currency's relative strength during the formation of **one closed bar** on that higher TF.
### License
This work is licensed under the **Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)** license.
The original concept and code are based on the work of the **LuxAlgo** team and finalized to fix syntax errors and handle NaN data for stable use with 8 currencies.
---
**Questions or suggestions?** I'd love to hear your feedback in the comments! Happy trading! 📈
Lakshman Rekha [CSN]Description:
Lakshman Rekha is a powerful and intelligently designed indicator that automatically identifies Support and Resistance levels using advanced mathematical algorithms based on the Gann Fortune methodology. It dynamically calculates and plots Daily, Weekly, Monthly, and Yearly levels to help traders recognize crucial price zones, potential reversal areas, and breakout points with exceptional accuracy.
This indicator seamlessly integrates the Gann Fortune Algorithm with the Relative Strength Index (RSI) and the Simple Moving Average (SMA) to deliver a well-structured and reliable trading system.
It uses the following configurations on a 5-minute timeframe:
SMA (14-period)
RSI (10-period)
Trading Approach:
In Nifty, traders are advised to book profits after a 60-point move or apply a trailing stop to capture extended trends.
In Bank Nifty, the recommended target or trailing level is 100 points for optimal trade management.
Lakshman Rekha offers traders a balanced combination of algorithmic precision, technical confluence, and price-action reliability.
We are providing free access to this indicator, allowing users to test, experience, and contribute valuable insights to enhance its performance.
This indicator is ideally suited for intraday and short-term swing traders seeking a systematic approach that blends mathematical structure, momentum analysis, and trend confirmation for consistent trading outcomes.