אינדיקטור Pine Script®
אינדיקטורים ואסטרטגיות
Nasdaq Liquidity Fade Engine (NLFE)Summary in one paragraph
Nasdaq Liquidity Fade Engine is a daily timeframe strategy for Nasdaq index futures and close proxies such as NQ, MNQ, and NDX. It is designed to act only when a small set of tape, mean location, and trend energy conditions align, and it expresses risk using an ATR sized bracket so the same settings scale across NQ and MNQ. It is original because it can optionally anchor its signal feed to a single continuous Nasdaq tape while executing on related instruments, reducing symbol noise when you want one consistent decision stream. Add it to a clean chart and read entries and exits from the built in strategy markers. Orders confirm on bar close, so markers settle on close.
Scope and intent
• Markets. NQ, MNQ, NDX, and other highly liquid Nasdaq linked instruments
• Timeframes. Primarily daily, other timeframes are supported but not the optimization target
• Default demo used in the publication. CME_MINI:NQ1! on 1D
• Purpose. Provide a compact, auditable daily decision engine for Nasdaq instruments with explicit volatility scaled risk
• Limits. This is a strategy. Orders are simulated by the TradingView engine on standard candles only
Originality and usefulness
This is not a stack of common indicators. It is a minimal asymmetric rule set with a portability layer.
• Unique concept or fusion. Optional tape anchored signal feed plus asymmetric long and short gating plus ATR normalized risk brackets
• What failure mode it addresses. Reduces discretionary over trading by restricting entries to specific tape states and by enforcing a hard stop framework instead of indefinite holds
• Portable yardstick. ATR on the traded symbol is the common unit for stop and target sizing across NQ and MNQ
• Protected scripts. The implementation is protected to reduce low effort cloning and to preserve version integrity, while the method and practical use are disclosed here
Method overview in plain language
The strategy evaluates a small set of state conditions on each bar. It uses a selected signal feed for its tape inputs and applies risk on the traded chart symbol. Long and short are intentionally asymmetric to reflect Nasdaq drift and downside behavior.
Base measures
• Tape state. Candle direction and relative participation measured from the selected signal feed
• Mean location. A rolling mean reference used to define location and fade context
• Trend energy. A trend strength filter used to avoid low quality fades
• Risk unit. ATR of the traded symbol used as a volatility scaled sizing unit for exits
Components
• Tape contraction state. Detects low participation pullback behavior on the signal feed. Used to qualify long opportunity context in a way that is not tied to a fixed point value.
• Mean location state. Uses a rolling mean reference to avoid taking fades in the wrong location regime.
• Trend energy gate. Uses a trend strength threshold to require sufficient directional energy when the short side activates.
• ATR bracket risk. Uses ATR multiples for stop and target distances on the traded symbol, keeping risk scalable across NQ and MNQ.
Fusion rule
The model uses two separate gate sets. Long and short do not share identical prerequisites. The intent is to capture pullback opportunity under contraction while only enabling shorts when location and energy align.
Signal rule
• Long suggestion appears when the tape state indicates a contraction style pullback and the regime filter is satisfied
• Short suggestion appears when the tape state indicates a fadeable push that is location constrained under the mean reference and trend energy is above the threshold
• Long only mode disables opening shorts, while still allowing the short condition to flatten an open long
• Long and short mode allows directional flips when the opposite condition triggers
Inputs with guidance
Setup
• Use NQ as signal source. When enabled, the tape inputs are sourced from the chosen NQ feed so signals can remain consistent across NQ, MNQ, and NDX charts. When disabled, tape inputs come from the chart symbol.
• NQ symbol. The anchor feed used when signal sourcing is enabled.
• Signal timeframe. Blank uses the chart timeframe. For the intended daily workflow, use 1D.
Logic
• EMA length. Typical range 10 to 60. Higher values smooth the mean reference and reduce sensitivity. Lower values increase responsiveness.
• Start year filter. Use to constrain testing to the regime you want to study. Defaults reflect the post 2008 regime focus.
Filters
• ADX length and smoothing. Typical range 10 to 20. Shorter reacts faster and can increase churn.
• ADX minimum. Typical range 15 to 30. Raising it filters shorts and concentrates on higher energy phases.
Risk
• Use ATR stop and target. Enables ATR sized bracket exits.
• ATR length. Typical range 10 to 21 on daily.
• Stop ATR multiple. Typical range 0.3 to 2.5. Raising it gives more room and increases risk per trade.
• Target ATR multiple. Typical range 4 to 30 for more frequent targets. Very large values behave like an expansion capture mode where exits are dominated by the stop or by an opposite regime switch rather than by the target.
Properties visible in this publication
• Initial capital for the example. 100000
• Base currency. USD
• request.security uses lookahead off everywhere
• Strategy only. Default order size method Fixed with value 1 contract. Pyramiding 0. Commission 5 USD per contract. Slippage 5 ticks. Process orders on close On. Bar magnifier Off. Recalculate after order is filled Off. Calc on every tick Off.
Realism and responsible publication
• No performance claims. Past results never guarantee future outcomes
• Execution varies by venue, liquidity, and volatility
• Orders process on bar close and fills use TradingView engine assumptions
• Non standard chart types are not supported for strategies
Honest limitations and failure modes
• This is optimized for the daily timeframe. Intraday use can change signal frequency and behavior materially.
• If you enable tape anchoring, volume and candle state come from the selected feed. This can be useful for consistency, but it also means the tape input is not the same as the executed symbol for instruments with different session structures or synthetic volume.
• Very quiet regimes can reduce signal contrast. Consider longer lengths or higher thresholds.
• Gap heavy periods can change stop and target behavior.
• If both stop and target are inside the same bar range, fills follow standard candle assumptions.
Legal
Education and research only. Not investment advice. You are responsible for your decisions. Test on historical data and in simulation before any live use. Use realistic costs.
אסטרטגיית Pine Script®
Ict Core //@bajgos.nq## ## Key Features
**Author: bajgos.nq //discord**
### ### 1. Key Market Open Levels
The indicator tracks and plots horizontal lines for significant market opening times across various timeframes.
- **Custom Key Opens**: Supports up to seven user-defined daily timestamps (e.g., 8:30, 9:30, 10:00) with individual toggles, custom colors, and unique labels.
- **Higher Timeframe (HTF) Opens**: Automatically plots current and previous levels for Daily (DO/PDO), Weekly (WO/PWO), Monthly (MO/PMO), Quarterly (QO/PQO), and Yearly (YO/PYO) opens.
- **Intersection Confluence Logic**: A specialized algorithm that identifies when multiple timeframe opens coincide at the same price level. It dynamically updates the label to show all overlapping opens, such as "DO / WO / MO" or "PDO / PMO".
- **Lookback & Visual Control**: Users can define a lookback period (up to 20 days) for historical lines and adjust the label/line distance to the right of the current bar.
### ### 2. Session Tracking & Asia "Vodo"
Provides automated visual boxes and levels for major trading sessions and "Kill Zones" (KZ).
- **Institutional Sessions**: Visualizes London (lokz), New York AM, New York PM, and Asia (askz) sessions.
- **Dynamic Range Visuals**: Sessions are drawn with "legs" that connect the session high/low range to the price action for clear visual reference.
- **Asia Range + Vodo Levels**: Beyond standard session highs and lows, this module plots specific **"Vodo" Fibonacci-style deviations**. These include fixed offsets at 0.225, 0.25, and 0.272, with an optional 0.35 deviation toggle for both upper and lower expansions.
### ### 3. Wick Theory & Quadrant Levels
This feature identifies pivot highs and lows to highlight price "wicks" as potential institutional reaction zones.
- **Wick Detection**: Uses a customizable "Wick Aggression" length to identify pivot points.
- **Mitigation Logic**: Areas can be set to "mitigate" (disappear) once price retraces into the 50% midpoint of the wick.
- **Quadrant Analysis**: Displays 25%, 50%, and 75% levels within a detected wick to pinpoint precise internal institutional levels.
- **Future Extension**: Wick boxes and quadrant lines are extended into the future by a user-defined bar count.
### ### 4. New Week Opening Gaps (NWOG)
The indicator detects and tracks the physical price gaps created between the previous week's close and the new week's open.
- **Visual Tracking**: Displays a user-defined number of the most recent weekly gaps on the chart.
- **Gap Anatomy**: Each gap includes visual levels for the Gap Top, Gap Bottom, and the Midline (Consequent Encroachment).
### ### 5. SDM Time Window Highlight
The **SDM** feature serves as a specialized **time window highlight** designed to mark specific institutional periods.
- **Visual Zones**: Creates a vertical highlight for specific time windows, such as 9:30 AM to 11:00 AM New York Time.
- **Infinite Vertical Span**: These highlights use a "practically infinite" vertical span, ensuring the highlight remains visible across all price levels regardless of market volatility.
- **History Management**: Automatically manages a history of these windows based on a "Maximum Days Lookback" setting to prevent chart clutter.
### ### 6. Technical Utilities & Customization
- **GMT Offset**: Includes a GMT offset input to align key market opens with specific broker or local time settings.
- **Global Visual Settings**: Users can customize line widths, label sizes, and colors for all session boxes and timeframe opens.
- **Multi-Timeframe Security**: Utilizes `request.security` with `lookahead_on` to ensure accurate and reliable historical data for higher timeframe opens.
אינדיקטור Pine Script®
Ultra Sensitive SuperTrend v6 HEIKEN + 2x + ALERT"Ultra Sensitive SuperTrend v6 — Heiken-Ashi Enhanced with Dual ATR and Alerts. This indicator combines two SuperTrend layers for maximum accuracy, offering ultra-sensitive scalp signals and standard trend tracking for swing trading. Built with Heiken-Ashi filtering, dynamic background coloring, and automatic BUY/SELL alerts for clear and actionable signals."
אינדיקטור Pine Script®
CS Squeeze Velocity [Band Edition]📘 CS Squeeze Velocity
Version: Elite System | Type: Volatility Overlay
1. General Concept
CS Squeeze Velocity is an "All-in-One" trading system based on volatility. Unlike traditional indicators that require you to look at sub-panels below the chart, this indicator projects all vital information directly onto the price action using Smart Bands.
Its engine combines:
BBWP (Bollinger Band Width Percentile): To measure compression and explosion.
Linear Regression: To determine momentum direction.
Institutional Filters (ADX + RVOL): To validate the quality and strength of the move.
2. Visual Reading (The Bands)
The color of the bands and candles tells you the exact state of the market without needing to read numbers.
🌑 Phase 1: Squeeze (Dark Gray)
Condition: Volatility < 20%.
Meaning: The market is "sleeping" or accumulating energy. The bands tighten.
Action: 🛑 NO TRADE. Wait for the breakout.
🚀 Phase 2: Expansion (Silver / Cyan)
Condition: Volatility between 20% and 80%.
Meaning: The Squeeze has broken, and a healthy trend has initiated.
Action: ✅ HOLD. This is the "cruising" zone of the trend.
🔥 Phase 3: Extreme (White / Royal Blue)
Condition: Volatility > 80%.
Meaning: Extreme Euphoria or Panic. The move has been sharp and fast.
Action: ⚠️ ALERT. Potential exhaustion or mean reversion. Prepare to Take Profit.
3. Signal Hierarchy (The Elite System)
The indicator automatically filters out false signals. You will only see tags when the setup is worth watching.
💎 DIAMOND Signal (The "Gem")
Tag: 💎 DIAMOND (Cyan or Magenta)
Logic:
Confirmed Squeeze Breakout.
Aligned with Macro Trend (EMA 200).
Confirmed Strength: ADX > 20.
Real Money: Relative Volume (RVOL) > 1.2x (20% higher than average).
Reliability: 🔥🔥🔥🔥🔥 (Max). This is the ideal high-probability entry.
🎯 SNIPER Signal (Standard)
Tag: SNIPER (Green or Red)
Logic:
Confirmed Squeeze Breakout.
Aligned with Macro Trend (EMA 200).
ADX or Volume might be lower, but momentum is good.
Reliability: 🔥🔥🔥 (High). Good entry, but manage risk carefully.
⚪ WEAK Signal (Noise)
Visual: Small gray circle on the central line.
Meaning: Price broke the Squeeze, but it is moving against the trend or lacks strength.
Action: 🗑️ IGNORE.
4. Additional Components
Trend Line (EMA 200):
Changes color dynamically.
White: Bullish Trend (Look for Buys only).
Royal Blue: Bearish Trend (Look for Sells only).
HUD (Heads-Up Display):
Located on the last candle. Displays the exact volatility %, current status (SQUEEZE, FORCE, EXTREME), and the real-time ADX value.
5. Usage Guide: Step-by-Step Strategy
The Stalk:
Look for assets where the bands are Dark Gray (Squeeze). The longer they stay gray, the stronger the explosion will be.
The Confirmation:
Wait for a candle to close outside the Squeeze and for the bands to change color.
Look for the 💎 DIAMOND (Ideal) or SNIPER tag.
The Entry:
Enter the market at the open of the next candle following the tag.
Stop Loss: Place it below the central line (dotted/circles) or the most recent swing low.
The Management:
Let the trade run as long as the bands remain Silver (Bullish) or Cyan (Bearish).
The Exit (Take Profit):
If the bands turn White/Royal Blue (Extreme), tighten your Stop Loss (Trailing Stop) or take partial profits. The move is "overheated."
If the candles close back inside the bands or change color, close the position.
אינדיקטור Pine Script®
אינדיקטור Pine Script®
אינדיקטור Pine Script®
PSP SHALOM BNS - Global Pro Default OFFPSP Professional Asset Correlation Marker
This indicator identifies "Mixed Candles" (Divergence) between major indices like NASDAQ, S&P 500, and Dow Jones. Its primary goal is to spot moments where one asset is moving in the opposite direction of the others, signaling potential market shifts or "fake-outs".
Main Features:
Visual Correlation: Automatically compares the color (Red/Green) of the candle across selected assets.
PSP Marker: Displays a "P" (or your chosen shape) above the candle when a divergence is detected.
Integrated Alerts: Supports built-in alerts for real-time notification upon candle close.
Settings (Inputs):
Assets Selection (NASDAQ / S&P 500 / DAO): Choose the specific symbols you want to compare.
Include DAO: A toggle to include/exclude the Dow Jones from calculations (Default is OFF).
Sensitivity %: Define a minimum movement percentage to filter out market "noise" and Doji candles.
Marker Shape: Select your preferred visual icon (P, Star, Arrow, etc.).
Marker Size: Adjust the size of the icon on your chart (Small, Normal, Large).
Marker Color: Fully customize the color of the signal.
How to Enable Alerts (for the "Instructions" or "Description" field)
To receive real-time notifications (sound, pop-up, or mobile), follow these steps:
Open Alert Panel: Click the Clock icon on the right sidebar.
Create Alert: Click the + (Create Alert) button.
Condition: In the first dropdown, select "PSP SHALOM BNS - Global Pro".
Trigger: In the second dropdown, you must select "Any alert() function call".
Options: It is recommended to select "Once Per Bar Close" to avoid false signals during live candle movements.
Notification: Choose your preferred notification method (Notify in App, Pop-up, etc.).
Create: Click the Create button. You are all set!
גרסה בעברית
סיכום אינדיקטור: PSP Professional – זיהוי חריגות בין מדדים
אינדיקטור זה מזהה "נרות מעורבים" (Divergence) בין המדדים המרכזיים: נאסד"ק, S&P 500 ודאו ג'ונס. מטרתו העיקרית היא לאתר רגעים שבהם נכס אחד נע בכיוון הפוך מהשאר, מה שעשוי להעיד על שינוי במגמה או על פריצות שווא בשוק.
+1
תכונות עיקריות:
מתאם ויזואלי: השוואה אוטומטית של צבע הנר (אדום/ירוק) בין הנכסים שנבחרו.
סימון PSP: מציג את האות "P" (או כל צורה שתבחרו) מעל הנר ברגע שמתגלה חריגה.
התראות מובנות: תמיכה מלאה בהתראות בזמן אמת עם סגירת הנר.
הגדרות (Inputs):
בחירת נכסים (NASDAQ/S&P 500/DAO): בחירת הסימבולים הספציפיים להשוואה.
הכללת דאו ג'ונס (Include DAO): אפשרות להפעיל או לכבות את חישוב הדאו ג'ונס (ברירת מחדל: כבוי).
סף רגישות (Sensitivity %): קביעת אחוז תנועה מינימלי כדי לסנן "רעשי שוק" ונרות ללא גוף משמעותי.
צורת סימון (Marker Shape): בחירת האייקון שיופיע על הגרף (P, כוכב, חץ וכו').
גודל סימון (Marker Size): שליטה על גודל האייקון (קטן, רגיל, גדול).
צבע סימון (Marker Color): התאמה אישית של צבע הסיגנל.
הוראות להפעלת התראות
כדי לקבל התראות בזמן אמת (צליל, הודעה קופצת או התראה לנייד), יש לעקוב אחר השלבים הבאים:
פתיחת לוח ההתראות: לחצו על אייקון השעון בסרגל הכלים הימני.
יצירת התראה: לחצו על כפתור ה- + (Create Alert).
תנאי (Condition): בתיבה הראשונה, בחרו את האינדיקטור: "PSP SHALOM BNS - Global Pro".
טריגר: בתיבה השנייה, חובה לבחור באפשרות "Any alert() function call".
אפשרויות: מומלץ לבחור ב-"Once Per Bar Close" (פעם אחת בסגירת נר) כדי למנוע התראות שווא בזמן שהנר עדיין זז.
סיום: לחצו על Create. מעכשיו המערכת תתריע לכם על כל סיגנל!
אינדיקטור Pine Script®
Liquidity Swings SOL V10.2 - 3CommasHere's a publish-ready description:
Liquidity Swings — Smart Money Sweep Strategy
Automated futures strategy that identifies and trades institutional liquidity sweeps on SOLUSDT 30-minute charts.
How it works:
Price tends to sweep above/below key swing levels where stop losses cluster — these are liquidity zones. Smart money grabs this liquidity, then reverses. This strategy detects those sweeps and enters on the reversal.
Features:
Liquidity zone detection using pivot-based swing highs/lows
Multi-layer trend filtering (HTF EMA + local EMA cross + price action)
Breakout detection with volume confirmation
Zone-based & ATR-adaptive stop losses with safety cap
Trailing stop with activation threshold
Cascading partial take profits at opposing zones
Optimized for SOL's volatility profile
Designed for:
SOLUSDT Perpetual Futures (Bybit)
30-minute timeframe
5x leverage, cross margin
Compatible with 3Commas / WunderTrading webhook automation
Risk management built-in: Every trade has a hard stop loss, safety cap, and optional trailing stop. No open-ended positions.
⚠️ Invite-only. DM for access.
אסטרטגיית Pine Script®
Volumetric HTF Order Blocks (Buyer/Seller Strength) - Final Fixmtf order block with volume profile and poc on each one
אינדיקטור Pine Script®
ProjectSyndicate FVG FinderNRP Logic (Non-Repainting): Signals are built to remain stable once confirmed
Real-Time FVG Detection: Automatically identifies bullish + bearish FVG zones as they form
Clean Zone Visualization: Boxed imbalance areas that are easy to trade from
Auto-Cleanup (Mitigation): Zones update based on your chosen fill rule (Touch / 50% / Full)
B: Anti-Noise Filtering: Minimum size + optional ATR filter to remove weak gaps
4 Pine Script v6: Built on the latest TradingView engine for stability and performance
Alerts + Markers: Get notified when new FVGs print + optional triangle signal
אינדיקטור Pine Script®
Relative Outperformance vs SPX (Pro Daily)Find true market leaders before the breakout.
This indicator measures a stock’s percentage outperformance versus the S&P 500 (SPX) across multiple daily timeframes (5, 20, 50, 200) and combines them into a weighted Relative Strength (RS) Score.
Unlike simple ratio indicators, this tool shows:
📊 Multi-period relative performance (%)
⭐ Weighted RS Score
🚦 Early Leader signal (20D + 50D strength)
🏆 Confirmed Leader signal (adds 200D trend)
📋 Clean dashboard panel for fast decision-making
Why This Matters
Strong stocks outperform the index before they break out.
This tool helps you:
Identify emerging leadership
Confirm institutional sponsorship
Avoid weak relative names
Improve breakout and pullback selection
Green values = outperforming SPX
Red values = underperforming SPX
Designed specifically for daily swing trading and position trading.
Best Used With
Breakout strategies
Pullbacks to moving averages
Undercut & Rally setups
Relative volume confirmation
Market rotation strategies
Suggested Daily Settings
5 / 20 / 50 / 200
Weights: 0.20 / 0.35 / 0.35 / 0.10
Smoothing: 3
Disclaimer
Educational purposes only.
Not financial advice.
Past performance does not guarantee future results.
אינדיקטור Pine Script®
Bipen Mann 50EMA SetupHere is a **clean, professional indicator description** written exactly for your **final script and logic**.
You can **copy–paste this directly** into TradingView when you save or publish the indicator.
---
## 📌 Bipen Mann 50EMA Setup
**Bipen Mann 50EMA Setup** is a rule-based trend continuation indicator designed to give **clean, high-probability entries** using **EMA 50**, **retests**, and **structure breaks**.
It avoids early entries and noise by confirming price behavior **before and after the EMA retest**.
This indicator works on **all markets** (Forex, Indices, Crypto, Commodities) and automatically adapts to the **timeframe selected on the chart**.
---
## 🔵 BUY Setup Logic
A **BUY setup** is created using the following sequence:
1. Price must be **above the 50 EMA**
2. While price remains above EMA:
* The indicator tracks the **most recent RED (bearish) candle**
3. Price must **touch the EMA 50** (wick or body — both are valid)
* If the retest candle itself is red, it is used as the trigger candle
4. After the retest:
* A **BUY signal is generated when price breaks the HIGH of the most recent RED candle that occurred before (or at) the EMA retest**
5. **Stop Loss**
* Automatically placed at the **low of the trigger red candle**
➡️ **Entries always occur AFTER the EMA retest**
---
## 🔴 SELL Setup Logic
A **SELL setup** follows the exact opposite rules:
1. Price must be **below the 50 EMA**
2. While price remains below EMA:
* The indicator tracks the **most recent GREEN (bullish) candle**
3. Price must **touch the EMA 50**
* If the retest candle itself is green, it is used as the trigger candle
4. After the retest:
* A **SELL signal is generated when price breaks the LOW of the most recent GREEN candle that occurred before (or at) the EMA retest**
5. **Stop Loss**
* Automatically placed at the **high of the trigger green candle**
---
## 📊 Visual Elements
* **EMA 50** plotted on the chart
* **Entry trigger lines**
* 🟢 Green line → BUY entry
* 🔴 Red line → SELL entry
* **Stop-loss lines**
* 🟡 Yellow line → BUY stop loss
* 🔵 Light blue line → SELL stop loss
* **Small, clean arrows** for entries:
* ▲ Green triangle → BUY
* ▼ Red triangle → SELL
*(No large labels or filled boxes for a clean chart)*
Both BUY and SELL setups can appear **at the same time**, allowing up to **four lines** on the chart.
---
## ⚙️ Indicator Settings
* **EMA Length**
Default: 50 (can be adjusted)
* **Expire setup after retest (bars)**
Cancels the setup if price does not break the trigger within the specified number of candles
* **Require candle CLOSE beyond trigger**
* ON → Conservative confirmation (close break)
* OFF → Aggressive entry (wick break allowed)
---
## 🎯 Best Use Case
* Trending markets
* Pullback & continuation strategies
* Works best on **M15, H1, H4**
* Suitable for **Gold (XAUUSD), Forex pairs, Indices, Crypto**
---
## ⚠️ Notes
* No signal will appear if:
* EMA is not retested
* No opposite candle exists before the retest
* This behavior is intentional to **filter low-quality trades**
* The indicator is a **confirmation tool**, not a prediction tool
---
אינדיקטור Pine Script®
BETradez HTF BOS/SWING/FVGBETradez HTF BOS/SWING/FVG
Identifies swing highs and lows, marks Break of Structure (BOS) levels on both the current and a higher timeframe, and highlights Fair Value Gaps that auto-delete once filled. An optional filter lets you hide swing labels unless a Fair Value Gap formed between the swing and the next opposing swing point. All colors are fully customizable.
אינדיקטור Pine Script®
ICT by KG# ICT by KG
### A Complete ICT Structure-Based Entry System
**ICT by KG** is a sophisticated Pine Script indicator that automates core ICT concepts, providing clear entry signals based on market structure, displacement, and premium/discount arrays.
## 🔍 Overview
This indicator combines multiple ICT concepts into one cohesive system:
- Market Structure (Swing Highs/Lows, Break of Structure)
- Displacement Detection (momentum candles with minimal wicks)
- PD Array Tracking (Fair Value Gaps & Order Blocks)
- Kill Zone Filtering (New York session)
- VWAP Integration (directional filter)
## 🎯 Core Logic
Signals are generated ONLY when ALL conditions align:
**LONG Entry:**
- Bullish Break of Structure (BOS) confirmed
- Bullish displacement detected (minimum consecutive bars)
- Price retraces into a bullish FVG or Order Block
- Within an active Kill Zone (optional)
- Price above VWAP (optional)
- CE (50% level) touch required (configurable)
**SHORT Entry:**
- Bearish Break of Structure (BOS) confirmed
- Bearish displacement detected
- Price retraces into a bearish FVG or Order Block
- Within an active Kill Zone (optional)
- Price below VWAP (optional)
- CE (50% level) touch required (configurable)
## ⚙️ Key Features
**Market Structure**
- Customizable swing length (3–20 bars)
- HTF bias timeframe reference
- Automatic BOS labels & background shading
**Displacement**
- ATR-based threshold + wick/body ratio filter
- Configurable minimum consecutive bars
- Highlighted bars for visual confirmation
**PD Arrays (FVG & Order Blocks)**
- FVG boxes appear after BOS
- Order Blocks = last opposite candle before displacement
- CE (50%) level requirement option
- Configurable lookback & display limits
**Kill Zone Filter**
- NY Kill Zone (7–10 AM ET) & NY Afternoon (1–4 PM ET)
- Optional enable/disable
**VWAP Integration**
- Session or Weekly reset
- Directional filter (longs > VWAP / shorts < VWAP)
## 📊 Visual Elements
- Swing Points: "H" (red) & "L" (green) labels
- BOS Labels: "BOS↑" (lime) & "BOS↓" (red)
- Displacement: Highlighted bars
- FVG/OB Boxes: Semi‑transparent green/red
- Entry Signals: "⚡ LONG" (lime) & "⚡ SHORT" (red) labels
- Background Shading: Subtle green/red for structure bias
## 📈 Heads‑Up Display (HUD)
A live info panel shows:
- Kill Zone status
- Market structure bias
- BOS age & status
- Displacement status
- PD Array activity
- VWAP relationship
- Action recommendation
## ⚡ Alerts
Built‑in alerts for:
- LONG Entry signals
- SHORT Entry signals
- Bullish Break of Structure
- Bearish Break of Structure
## 🛠️ Input Parameters
| Group | Parameter | Description |
|--------------------|-------------------------|--------------------------------------|
| Market Structure | Swing Length | Pivot sensitivity (3–20) |
| | HTF Bias Timeframe | Higher timeframe reference |
| | Show Swing Points | Toggle H/L labels |
| Displacement | ATR Multiplier | Displacement threshold (1.0–3.0) |
| | Max Wick/Body Ratio | Rejection filter (0.1–0.5) |
| | Min Displacement Bars | Consecutive bars required (1–5) |
| PD Arrays | Show FVG/OB | Toggle boxes |
| | Max to Track | Number of boxes displayed (3–20) |
| | Order Block Lookback | OB candle position (1–10) |
| | Require CE Tag | Force 50% level touch |
| VWAP | Show VWAP | Toggle VWAP line |
| | VWAP Reset | Session or Week |
| | VWAP Filter | Directional filter |
| Kill Zones | Enable Filter | Toggle time filter |
| | NY Kill Zone | NY session only |
| Colors | Bullish/Bearish Colors | Customize box colors |
## 📝 How to Use
1. Add to chart and adjust inputs as needed.
2. Watch the HUD – all conditions must align.
3. Entry signals appear when price taps into PD arrays.
4. Confirm with higher timeframe bias (optional).
5. Manage risk according to your trading plan.
## ⚠️ Disclaimer
This indicator is for educational and informational purposes only. It is not financial advice. Past performance does not guarantee future results. Always conduct your own analysis and risk management before trading.
---
**Version:** 1.0
**Author:** KG
**Based on:** ICT (Inner Circle Trader) Methodology
אינדיקטור Pine Script®
TREND MOMENTUM PRO
# TREND MOMENTUM PRO - Professional Edition
## 🎯 Overview
**TREND MOMENTUM PRO** is an advanced multi-timeframe trading indicator designed for professional traders seeking precise market entries and exits. Combining real-time sideways phase detection with intelligent entry signals, this indicator identifies optimal trading opportunities while filtering out choppy, low-probability setups.
Perfect for **day traders**, **swing traders**, and **scalpers** looking for high-probability entries with built-in risk management.
---
## ✨ Key Features
### 🔍 Advanced Sideways Phase Detection
- **Angle-Based Algorithm**: Detects sideways phases using gradient analysis (< 8° = sideways)
- **Automatic Exit Detection**: Sideways phase ends when angle exceeds 15° (clear trend)
- **Real-Time Status Table**: Visual indicator showing current market phase with Power % and CCI
- **Intelligent Filtering**: Eliminates false signals in choppy, low-probability trading zones
### 🎯 3-Tier Alert System
**TIER 1 - PERFECT ENTRY 🚀🚀🚀** (Gold Standard)
- Triggers when sideways phase ENDS + LONG/SHORT signal = SAME BAR
- Alert: "PERFECT ENTRY! SIDEWAYS ENDED + SIGNAL!"
- Includes Power % and CCI for confirmation
**TIER 2 - CONFIRM TRADE 📈📉** (Golden Opportunity)
- Triggers when sideways phase ENDS + active trade exists
- Alert: "SIDEWAYS ENDED! TRADE ACTIVE - AIM FOR TP!"
- Confirms trend continuation with momentum metrics
**TIER 3 - READY TO TRADE ✅** (Preparation)
- Sideways phase ended with no active signals
- Trader receives alert to prepare for potential entry
- Shows current Power % and CCI values
### 📊 Multi-Timeframe Analysis (8 TF)
- Analyzes trends across TF1, TF2, TF3, TF4, TF5, TF6, TF7, TF8
- MTF Synergy identification for maximum confidence setups
- "ALL TF ALIGNED" confirmation for ultra-strong signals
### 💰 Intelligent TP Probability System
- Dynamic take-profit levels with probability percentages
- TP1, TP2, TP3 targets based on support/resistance zones
- Probability weighting: 75% → 50% → 25% (or customizable)
- Automatic adjustment based on market strength
### 🚀 Entry Signal Recognition
- **CCI Extreme Detection**: Identifies overbought/oversold conditions
- **Power Strength Analysis**: Measures trend momentum (0-100%)
- **Harmonic Pattern Recognition**: Detects bullish/bearish patterns
- **Support/Resistance Testing**: Tracks retest attempts and breakouts
### ⚡ Ultra Strength Signals
- **Nuclear Long/Short**: CCI + Power + ALL MTF ALIGNED = Maximum confidence
- **Ultra Strength Confirmation**: Volume surge + Multi-timeframe alignment
- **Atomic Entry Alerts**: Only triggered when ALL conditions met
### 🎨 Professional Dashboard
- Real-time status display with color-coded signals
- Entry price, SL, and TP levels clearly marked
- Support/Resistance zones visualization
- Current market phase indicator
- Live Power % and CCI readings
---
## 📋 How It Works
### Phase 1: Sideways Detection
The indicator continuously monitors price angle. When angle < 8° + small candles detected = SIDEWAYS PHASE ACTIVE. Trader is alerted to avoid entries during choppy consolidations.
### Phase 2: Trend Breakout
When angle increases to > 15° = CLEAR TREND DETECTED. Sideways phase ends automatically. This is when:
- If LONG/SHORT signal fires simultaneously = PERFECT ENTRY ALERT
- If trade already active = CONFIRM TRADE ALERT
- If no signal yet = READY TO TRADE ALERT
### Phase 3: Trade Management
Once entry confirmed, dashboard shows:
- TP1, TP2, TP3 with probability percentages
- Stop Loss level with actual price reference
- Real-time trade status updates
- Automatic TP hit notifications
### Phase 4: Exit Confirmation
Alerts fire when TP levels hit or SL touched, with detailed status messages.
---
## 🎮 Perfect For
✅ **Day Traders** - High-frequency entries with clear exit signals
✅ **Swing Traders** - Multi-timeframe confirmation before entries
✅ **Scalpers** - Quick entries in trending markets only
✅ **Risk Managers** - Clear SL/TP with probability weighting
✅ **Automated Trading** - Webhook alerts for bot integration
---
## ⚙️ Customizable Settings
**Neon Engine Parameters:**
- Reaction Speed (Sensitivity) - Adjusts indicator responsiveness
- Channel Width Multiplier - Fine-tunes support/resistance zones
**Harmonic Pattern Settings:**
- Enable/Disable pattern recognition
- Pattern confirmation filtering
- Accuracy and confirmation periods
**Alert Thresholds:**
- CCI extreme trigger level (default: 150/-150)
- Power strength threshold (0-100%)
- Volume confirmation percentage
**Display Options:**
- Enable/Disable chart overlays
- Dashboard position (top-left, top-right, bottom)
- Color customization for all elements
---
## 📊 Alert Types Included
🔔 **Sideways Phase Detection**
- Sideways phase started (avoid trading)
- Sideways phase ended (market ready)
🔔 **Entry Signals**
- Perfect entry (sideways end + signal)
- Trend reversal detected
- CCI overbought/oversold
- Power extreme (strong momentum)
🔔 **Trade Management**
- TP 1/2/3 hit alerts
- Stop loss hit alerts
- Support/resistance retest attempts
- Pattern entry signals
🔔 **Multi-Timeframe**
- All TF aligned (maximum confluence)
- MTF synergy detected
- Trend reversal across multiple timeframes
---
## 💡 Trading Tips
1. **Wait for Sideways End + Signal** = Highest probability entries
2. **Use Multi-Timeframe Confirmation** = Filter out false signals
3. **Follow TP Probabilities** = Higher probability = closer target
4. **Watch Power %** = High power (85%+) = strong trend | Low power (< 20%) = potential reversal
5. **Combine with Risk Management** = Always use stop loss
6. **Test in Backtesting** = Optimize parameters for your trading style
---
## 🔐 Access Information
**This is an INVITE-ONLY indicator.**
To gain access:
1. Follow @Oezkan1983 on TradingView
2. Send a direct message with subject: "TREND MOMENTUM PRO Access Request"
3. Include brief trading background (day trader/swing/scalper)
4. Receive invitation within 24 hours
5. Indicator will appear in your private scripts
For questions or support, visit TradingView profile or send direct message.
---
## ✅ Key Advantages
✔️ **Eliminates Choppy Markets** - Sideways detection filters false signals
✔️ **Perfect Entry Points** - Combines trend + signal confirmation
✔️ **Professional Dashboard** - Real-time status + all metrics visible
✔️ **Multi-Timeframe Confirmation** - 8 TF analysis for maximum confidence
✔️ **Intelligent Alerts** - 3-tier system prevents alert fatigue
✔️ **Probability-Weighted TP** - Based on market strength, not fixed levels
✔️ **Zero Repaint** - All signals confirmed on close
✔️ **Webhook Compatible** - Perfect for automated trading bots
---
## ⚠️ Disclaimer
**This indicator is for educational and informational purposes only.**
- Past performance does not guarantee future results
- Always use proper risk management and position sizing
- Test on demo account first before live trading
- Trading cryptocurrency carries significant risk
- Consult a financial advisor if unsure
---
## 📈 Version History
**V1.0 - Launch Edition**
- Core sideways detection algorithm (angle-based)
- 3-tier alert system (Perfect Entry + Confirm + Ready)
- Multi-timeframe analysis (8 TF)
- Professional dashboard with real-time status
- TP probability system
- Harmonic pattern recognition
- Ultra strength signal detection
---
## 🎯 Bottom Line
**TREND MOMENTUM PRO** is the professional trader's solution for identifying high-probability entries while automatically filtering out choppy, low-probability markets. With intelligent sideways detection and multi-timeframe confirmation, this indicator gives you the edge you need to trade with confidence.
**Trade smarter. Trade better. Trade TREND MOMENTUM PRO.** 🚀
---
**Creator:** @Oezkan1983
**Contact:** TradingView Direct Message
**Support:** Available for invite-only members
**Status:** Professional Grade • Zero Repaint • Multi-Timeframe
אינדיקטור Pine Script®
Tribute To Peter LynchTribute To Peter Lynch - Fund Manager Simulator
"Know what you own, and know why you own it." - Peter Lynch
WHO WAS PETER LYNCH?
Peter Lynch is one of the greatest investors who ever lived. From 1977 to 1990, he managed the Fidelity Magellan Fund and turned it from $18 million into $14 billion in assets. He averaged a 29.2% annual return for 13 straight years, making Magellan the best-performing mutual fund in the world.
What made Lynch different? He believed regular people could beat Wall Street. He bought stocks in companies he understood - he'd ask minivan owners at movie theaters what they thought of their Chrysler, he'd notice the local factory hiring more people, he'd pay attention to which donut shop had the longest line. He called this your "investor's edge" - the things you already know from your daily life that Wall Street analysts sitting in their offices can't see.
Lynch famously said: "If you can tell your stock story to a fifth grader and they understand it, you've got a good one. The more complicated the story, the more likely it is to fall apart."
He also had the stomach for downturns. During his 13 years at Magellan, the market dropped 10% or more NINE times, and Magellan fell right along with it every single time. But he never panicked. He knew that behind every stock is a company, and if the company is doing well, the stock will eventually follow.
WHAT THIS SCRIPT DOES
This is a fund manager simulator built entirely around Peter Lynch's investing philosophy. It's not a technical indicator. There are no moving averages, no RSI, no MACD. Lynch was a fundamental investor - he cared about what a company earns, how fast it's growing, how much debt it has, and whether the story makes sense.
The script classifies any stock into one of Lynch's 6 categories, scores it on a 0-100 Lynch Score, evaluates the fundamental story, and generates buy/sell signals based purely on the same criteria Lynch used at Magellan.
THE 6 STOCK CATEGORIES
Lynch believed you can't treat all stocks the same. A 50% gain on a Slow Grower is fantastic and probably time to sell. The same 50% on a Fast Grower could be just the beginning of a 10-bagger. He broke every stock into 6 categories:
1. FAST GROWERS (20%+ earnings growth)
Companies growing earnings fast, typically small to mid-sized. These are the potential 10-baggers. Lynch looked for PEG ratios below 1.0 and used his "baseball inning" concept - you want to buy these in innings 2-5, when the formula is proven but there's still a long runway ahead. Think of Walmart when it only had a few hundred stores, or Microsoft 3 years after its IPO.
2. SLOW GROWERS (3-8% earnings growth)
Large, mature companies that grow about as fast as the overall economy. You buy these for the dividend. Lynch looked for steady, rising dividends with a low payout ratio (so the dividend is safe). If the dividend yield drops or the payout ratio gets too high, it's time to move on.
3. STALWARTS (10-14% earnings growth)
Big, solid companies that aren't going to disappear but aren't going to triple overnight either. Lynch's rule: take your 30-50% gain and rotate the money into another Stalwart. These are your portfolio's defense - they hold up in recessions and won't go bankrupt.
4. CYCLICALS (tied to the economic cycle)
Companies in industries like autos, airlines, steel, and chemicals that boom and bust with the economy. Here's Lynch's counterintuitive trick: buy cyclicals when the PE is HIGH (that means earnings are at the trough and about to recover) and sell when the PE is LOW (earnings have peaked and are about to fall). This is the opposite of how PE works for every other category.
5. TURNAROUNDS (beaten down, potential recovery)
Companies in deep trouble that might recover. Lynch always checked: does this company have enough cash to survive? Is there a real plan (new management, cost cutting, selling bad divisions)? He said don't buy on hope - wait for actual evidence the turnaround is working. But when they work, the upside can be enormous.
6. ASSET PLAYS (hidden value)
Companies sitting on assets the market doesn't see or doesn't value - real estate, patents, brand names, cash on the balance sheet. Lynch's example: Disney after it opened Epcot. Growth slowed, but the company was sitting on the Disney name, all that Florida land, and a library of characters worth billions that were carried on the books for nothing.
BAR REPLAY - WHERE THIS SCRIPT REALLY SHINES
This script was built with TradingView's Bar Replay feature in mind. Bar Replay is what transforms this from a backtest into a fund manager simulator.
HOW TO USE BAR REPLAY:
1. Add the script to your chart
2. Pick any stock and classify it (Fast Grower, Stalwart, etc.)
3. Set your fundamental inputs if using Manual mode, or let Auto mode pull TradingView financial data
4. Click the Bar Replay button on your toolbar (the clock icon with a rewind arrow)
5. Pick a starting date - maybe go back 5 years, or 10, or start right before a crash
6. Press Play and watch the simulation unfold bar by bar
WHAT YOU'LL SEE IN BAR REPLAY:
- The Lynch Score updates in real time as fundamentals change each quarter
- The Story Status shifts: "Growth Accelerating" might become "Growth Slowing" as the company matures
- Buy and sell signals fire when Lynch's criteria are met
- The P&L tracker shows your position gain in real time
- The Peter Lynch portrait in the corner changes color based on how your portfolio is doing:
-- Equity rising: Lynch appears in bright GREEN against a deep BLUE background, getting more vivid as gains grow
-- Heavy drawdown: Lynch turns CRIMSON RED against a BLACK background
-- Stop loss hit: The portrait FLASHES RED as a warning
-- Neutral: Lynch appears in CYAN/TEAL against dark navy
- The daily Lynch wisdom quote rotates, keeping you in his mindset
BAR REPLAY SCENARIOS TO TRY:
- Start replay on Apple (AAPL) in 2003 as a Turnaround - watch it reclassify into a Fast Grower
- Replay Ford (F) through 2008-2012 as a Cyclical - see Lynch's high-PE-buy rule in action
- Run Coca-Cola (KO) from 1990 as a Stalwart - practice the 30-50% rotate rule
- Try any stock through the 2020 COVID crash - Lynch survived 9 crashes at Magellan, now you can experience one
SETTINGS GUIDE - EXPLAINED SIMPLY
Think of the settings like customizing a video game character before you play. Here's what each group does:
GROUP 1: STOCK TYPE
"What kind of company is this?"
Pick one of the 6 categories. This changes ALL the rules the script uses.
Baseball Inning: Where is this company in its life?
- Innings 1-3 = Young, lots of room to grow (like a kid)
- Innings 4-6 = Middle age, proving itself
- Innings 7-9 = Old, running out of gas
Early innings get a score bonus. Late innings get a penalty.
GROUP 2: FUNDAMENTAL DATA
"Where do the numbers come from?"
- Auto mode: TradingView pulls real financial data (EPS, revenue, debt) automatically. Best for stocks.
- Manual mode: You type in the numbers yourself. Use this for crypto, forex, or if Auto data looks wrong.
GROUP 3: PEG & VALUATION
"How do I know if a stock is cheap or expensive?"
PEG = Price-to-Earnings divided by Growth rate.
- PEG of 1.0 = fairly priced (PE matches growth rate)
- PEG below 1.0 = cheap (you're paying less than what the growth is worth)
- PEG above 2.0 = expensive
The Buy Threshold (default 1.0) means: "only buy if PEG is at or below this number."
The Sell Threshold (default 2.0) means: "sell if PEG goes above this number."
GROUP 4: BALANCE SHEET HEALTH
"Is this company in good financial shape?"
- Max Debt/Equity: How much debt is too much? Default 0.50 means total debt shouldn't be more than half of the company's net worth. Lynch always checked the balance sheet.
- Min Cash Ratio: Does the company have enough cash? Important for Turnarounds.
- Max Payout Ratio: Is the company paying out too much of its earnings as dividends? Above 80% means the dividend might get cut.
GROUP 5: CATEGORY RULES
"Special rules for each stock type."
These are the specific thresholds for each of the 6 categories. The defaults are based on Lynch's actual criteria from his books.
Examples:
- Fast Grower Min Growth 20%: Lynch said a Fast Grower needs at least 20% earnings growth
- Stalwart Rotate Target 40%: Lynch rotated Stalwarts after 30-50% gains
- Cyclical Trough PE 25: Buy cyclicals when PE is HIGH (counterintuitive!)
GROUP 6: STRATEGY SETTINGS
"Should the Lynch Score control the trades?"
- Score Gate OFF (default): The Lynch Score is just a meter showing conviction. Trades fire based on category rules alone.
- Score Gate ON: The Lynch Score must be above the entry threshold to buy and below the exit threshold to sell. This adds an extra filter.
GROUP 7: RISK MANAGEMENT
"How much can I lose on one trade?"
- Stop Loss: If the stock drops this % from your entry price, sell automatically. Default 15%.
- Take Profit: If the stock rises this % from your entry price, sell automatically. Default 100% (a double).
GROUP 8: DISPLAY
"What do I see on the chart?"
- Show/hide the Lynch portrait, the dashboard panel, and buy/sell signals
- Customize your bull/bear/neutral colors
THE DASHBOARD
The top-right panel shows everything Lynch would want to see at a glance:
- LYNCH SCORE: A 0-100 conviction meter with a visual bar. Built from 5 sub-scores:
-- PEG Score (0-25): Is the stock cheap relative to its growth?
-- Earnings Score (0-25): Is earnings growth meeting the target for this category?
-- Balance Sheet Score (0-20): How healthy is the financial structure?
-- Margin Score (0-15): Are profit margins good and expanding?
-- Dividend Score (0-15): Is the dividend policy appropriate for this category?
- STORY STATUS: The current fundamental narrative in plain English
-- "Growth Accelerating", "Trough - Buy Zone", "Turnaround Succeeding", etc.
- SIGNAL: The specific reason behind the current buy or sell signal
- P&L: When in a trade, shows your unrealized gain/loss and warns Stalwart holders when approaching the rotate target
- VALUATION: PEG ratio, PE ratio, and fair value comparison
- EARNINGS: EPS, EPS growth rate, and revenue growth vs. category targets
- BALANCE SHEET: Debt/equity ratio and net cash per share
- MARGINS: Profit margin trend (expanding or contracting)
- DIVIDENDS: Yield, payout ratio, and sustainability assessment
- DAILY WISDOM: A rotating quote from Peter Lynch to keep you grounded
RESEARCH & SOURCES
This script was built using the following primary sources, all studied extensively:
1. "One Up On Wall Street" by Peter Lynch with John Rothchild (1989)
share.google
Lynch's first book laying out his complete investment philosophy - the 6 categories, PEG ratio, the "story" framework, and the idea that everyday investors have edges over professionals.
2. "Beating the Street" by Peter Lynch with John Rothchild (1993)
share.google
Lynch's second book where he walks through his actual portfolio decisions at Magellan, explains his mutual fund strategy, and shows step-by-step how he picks stocks. 328 pages of real-world application.
3. "The Peter Lynch Playbook" compiled by Mayur Jain (@mjbaldbard)
share.google
A comprehensive set of notes summarizing both Lynch books plus interview snippets. Covers portfolio allocation percentages, category-specific checklists, the 2-minute drill for each stock type, risk/reward profiles, and sell criteria. This document was instrumental in translating Lynch's qualitative approach into quantifiable rules.
4. Peter Lynch's "Stock Shop" Video Consultation (Fidelity Archives)
youtu.be
A full-length video presentation where Lynch personally explains his approach to categorizing stocks, building stories, understanding PE ratios, evaluating balance sheets, and managing risk. Key quotes transcribed and used to calibrate the scoring engine and story status logic.
IMPORTANT NOTES
- This is a STRATEGY script, not an indicator. It generates actual backtestable trades.
- The script is purely fundamental. No technical analysis. Lynch didn't use charts to make decisions.
- Auto mode requires stocks with TradingView financial data. For other instruments, use Manual mode.
- The Lynch Score is a CONVICTION METER by default, not a trade gate. Enable Score Gate in settings if you want it to filter trades.
- All portrait coloring is non-repainting. Colors only update on confirmed (closed) bars.
- Start with Bar Replay. That's where the magic happens. Watch the story unfold bar by bar, just like Lynch did at his desk at Fidelity every morning.
"The key organ is the stomach, not the brain." - Peter Lynch
אסטרטגיית Pine Script®
Crypto CPR With ATRThe Two Main Components:
1. CPR (Central Pivot Range) - Your Daily Roadmap
Think of CPR as a "price forecast" for tomorrow based on today's trading activity.
What it shows:
Pivot Point (PP): The average price level - the market's "center of gravity"
Support Levels (S1, S2, S3): Price floors where buyers might step in (below current price)
Resistance Levels (R1, R2, R3): Price ceilings where sellers might take profits (above current price)
Central Range (BC & TC): The "zone" where most action happens
Why it's useful:
Professional traders watch these levels daily
Price often "respects" these lines - bouncing off them or pausing at them
Helps you plan entries, exits, and stop-losses
The Magic: This indicator calculates tomorrow's levels in real-time as today unfolds. The lines extend into tomorrow so you can plan ahead!
2. ATR Trailing Stop - Your Trend Guardian
This is like a smart "moving stop-loss" that adjusts based on market volatility.
What it shows:
Green line: Market is in an uptrend - hold your long positions
Red line: Market is in a downtrend - stay cautious or short
Blue line: Market is choppy/neutral
Why it's useful:
Automatically adjusts for volatile vs calm markets
Helps you ride winning trends longer
Protects profits by signaling when trend is losing steam
Prevents premature exits during healthy pullbacks
אינדיקטור Pine Script®
SMC + PDH/PDL by LishchenkoIt is an SMC indicator for TradingView: it plots PDH/PDL, FVG, order blocks, IDM, and the latest swing‑high/low structure levels, and also invalidates these zones/labels over time. Below is what each block does.
1. General settings
Creates the indicator SpaceTrading SMC + PDH/PDL with overlay = true and high max_lines_count/max_boxes_count so it can draw many zones on the chart.
Has input groups for:
SMC elements: show/hide IDM, FVG, OB, structure SH/SL, and how many bars to extend boxes to the right.
Colors: base bull/bear color, opacity and line width for FVG and OB.
2. Timeframe filter
The indicator only builds SMC elements on timeframes from 5 minutes and higher (intraday ≥5m, D, W, M).
If the chart TF is below 5 minutes, it throws a runtime.error with a warning message not to use it on very low TFs.
IDM is additionally restricted to specific periods (5, 15, 30, 60, 180, 240, D, W, M), with a separate hard block for the 5‑minute TF.
3. PDH / PDL (Previous Day High / Low)
When showPDH_PDL is enabled, it fetches the previous day’s high/low with request.security(..., "D", high /low ).
It creates two persistent lines pdhLine and pdlLine that are updated on every bar so they extend to the right across the current day.
On the last bar it adds “PDH” and “PDL” labels at those levels as titled previous‑day high/low levels.
4. FVG (Fair Value Gap) + invalidation
FVG conditions:
Bullish FVG: confirmed bar, low > high and close > open .
Bearish FVG: confirmed bar, high < low and close < open .
When FVG appears it creates a box:
Bull: from high down to current low.
Bear: from current high down to low .
Box is labeled “FVG” with no fill, only a border (color/opacity from settings).
Boxes are stored in arrays bullFVGs and bearFVGs.
Invalidation:
Bullish FVG is deleted if close < the box bottom.
Bearish FVG is deleted if close > the box top.
It loops through the arrays from the end, deletes the box from the chart and removes it from the array.
5. Order Block (OB) + invalidation
Uses arrays bullOBs and bearOBs to store OB boxes.
Creation rules:
newBullOB: confirmed bar, there is a bull FVG and the candle two bars back was bearish (close < open ) — the last down candle before the move up.
newBearOB: confirmed bar, there is a bear FVG and the candle two bars back was bullish (close > open ).
For each new OB it creates a box:
Vertically: from high to low .
Horizontally: from bar_index - 2 to bar_index + extendBoxes.
With semi‑transparent fill, labeled “OB” aligned to the right.
Invalidation:
Bullish OB is deleted if close < the box bottom.
Bearish OB is deleted if close > the box top.
Like FVG, everything is handled via arrays, traversed from the end and cleaned up.
6. IDM (inducement / imbalance) + invalidation
IDM is disabled on the 5‑minute timeframe (idmAllowedOnThisTF = timeframe.period != "5"), even if the global TF filter allows it.
Conditions:
Bull IDM: confirmed bar, low < low and close > low — price takes the previous low and closes back above it.
Bear IDM: confirmed bar, high > high and close < high — price takes the previous high and closes back below it.
Arrays:
bullIDMs / bearIDMs hold the labels.
bullLvlArr / bearLvlArr hold the tracked levels.
When an IDM appears:
It creates an “IDM” label (up for bull, down for bear) on the current bar.
It pushes the label and its level (low or high ) into the arrays.
Invalidation:
For each bull IDM, if close < lvl, it deletes the label and removes the entries from both arrays.
For each bear IDM, if close > lvl, it does the same.
7. Structure (Strong High / Strong Low)
Uses ta.pivothigh and ta.pivotlow with lookback = 5 to find swing highs/lows (high/low higher/lower than 5 neighboring bars on each side).
It stores the latest valid:
lastStrongHigh and lastStrongLow.
Their labels lastHighLabel and lastLowLabel (arrow markers).
When a new confirmed pivot forms:
It deletes the previous label of that type.
It creates a new label at bar_index - lookback with “▲” for a high and “▼” for a low.
It also maintains two series:
shPlotValue (Strong High) and slPlotValue (Strong Low) which hold the latest level and are plotted with plot(..., style = plot.style_linebr, offset = -lookback) so the level visually starts when the swing becomes known.
8. Overall logic
Overall, the indicator produces a full SMC overlay:
Previous‑day high/low levels (PDH/PDL) as key support/resistance.
Fair Value Gaps with dynamic deletion once price fully invalidates them.
Order blocks tied to FVGs, also invalidated when price breaks them.
IDM patterns where liquidity at the prior high/low is taken and price returns, with level validity tracking.
Latest strong swing highs/lows, marked with arrows and horizontal lines as market structure levels.
אינדיקטור Pine Script®
MNQ - 5MMNQ - 5M | Institutional Edge & Opening Range Academy
Overview
The MNQ - 5M is a high-precision execution and educational tool specifically engineered for the Micro E-mini Nasdaq-100 (MNQ). Designed for the trader who values clarity over noise, this script automates the New York 5-Minute Opening Range strategy, integrating institutional confluences like Anchored VWAP, Golden Zone Fibonacci, and CVD-based Volume Analysis.
Key Features
Automatic 5M Opening Range: Automatically plots the high and low of the 9:30 AM NY candle with a clean, semi-transparent design.
Dual-Trend Alignment: Features a built-in 1H Master Trend filter to ensure you only trade in the direction of the institutional flow.
Golden Zone Detection: Identifies high-probability retracement areas between the 38.2% and 78.6% Fibonacci levels.
Institutional Confluences: Integrates EMA 200 (Major Trend), EMA 89 (Dynamic Support), and Anchored VWAP starting exactly at the opening bell.
Smart Execution Labels: Clear BUY and SELL signals that only appear when price action, volume (CVD), and safety filters (1.5 ATR) align.
Anti-Saturation Logic: Limited to 2 high-probability signals per trend to promote discipline and prevent overtrading.
How to Use
Preparation: Watch for the Blue Opening Range box at 9:30 AM NY time.
Wait for the Hook: Look for price to break the range and pull back to a confluence zone (EMA, VWAP, or Golden Zone).
Execution: Enter when the "BUY" or "SELL" label appears alongside an engulfing or rejection candle.
Risk Management: The built-in 1.5 ATR filter warns you if you are too close to a major EMA "wall."
Technical Settings
EMA 200: Black (Thickness 4) - The Trend Anchor.
EMA 89: Sky Blue (Thickness 1) - Dynamic Support.
VWAP: Purple (Thickness 3) - Institutional Baseline.
אינדיקטור Pine Script®
SQZPRO + RSIMakit0 Squeeze PRO + RSI combines the original Makit0 Squeeze PRO volatility compression system with a standard RSI oscillator in a single pane.
The Squeeze PRO component identifies three levels of volatility compression (orange = wide, red = normal, yellow = tight) based on the relationship between Bollinger Bands and Keltner Channels. Green dots signal volatility expansion (“squeeze fire”). The momentum histogram shows directional bias and acceleration using a linear regression–based oscillator.
RSI (default 14) is plotted on the same scale, with squeeze dots aligned at the 50 midline to help traders quickly judge volatility conditions alongside momentum strength and overbought/oversold levels.
This setup allows you to monitor:
Volatility compression and expansion
Momentum direction and slope
RSI trend bias and OB/OS zones
All in one streamlined view.
אינדיקטור Pine Script®
ATR-Normalized RSI Diff (Stock - Benchmark) [SAFE]a relative strength indicator which is normalized for ATR and delta b/w the stock and the index, for example QQQ. taking example of tesla, if ATR normalized relative strength of tesla minus ATR normalized relative strength of QQQ start showing a spike, that I want to use as early indicator for a breakout move. how can build this in tradingview
אינדיקטור Pine Script®
LBR with HM Gartley 1935 on Log Returns Momentum Vol TargetOverview
Linda Bradford Raschke's Momentum-based strategy, made by conclusions from the book Profits in the Stock Market by H.M. Gartley in 1935, and uses log returns for directional bias as well as dynamic volatility targeting to maintain consistent risk exposure. Sizes positions inversely to realized volatility (from log returns std dev) for better compounding in trending markets like gold (XAUUSD).
Key Features
Log returns calculation: ln(close / close ) for time-additive momentum.
Directional signals: Enter long when momentum > 0, short when < 0 (configurable strict crossover mode).
Volatility scaling: Targets user-defined annual vol (default 20%) → reduces size in high-vol periods.
Exits: Percentage TP/SL + explicit close on opposite signals for reliable backtests.
Debug visuals: Momentum plot, signal shapes, real-time table (vol, size factor, qty, signal state).
How to Use
Best on Daily or higher timeframes for meaningful log momentum (e.g., XAUUSD, BTCUSD, stocks).
Adjust Momentum Lookback (default 50 bars), Target Vol %, TP/SL %.
Backtest with commissions/slippage enabled for realism.
Use on log-scale chart for % perspective.
Limitations & Notes
No guarantees of profitability; markets involve risk.
Designed for educational/quant purposes; test thoroughly.
Not financial advice.
Open-source for community learning.
Credits
Built on standard quant finance principles (log returns for normality/additivity, vol targeting for risk control). Inspired by discussions on compounding and GARCH-like vol estimation from Linda Bradford Raschke's conclusions from the book Profits in the Stock Market by H.M. Gartley in 1935.
אסטרטגיית Pine Script®






















