TRI - Multi-Timeframe Support and ResistanceTRI - MULTI-TIMEFRAME SUPPORT & RESISTANCE v3.0.0
DESCRIPTION:
Advanced multi-timeframe Support & Resistance indicator using ta.pivothigh/ta.pivotlow
to display pivot-based S/R levels from higher timeframes on your current chart.
Features smart pivot positioning, dynamic level merging, and comprehensive alert system.
KEY FEATURES:
Multi-timeframe pivot detection using ta.pivothigh/ta.pivotlow on candle body
Smart pivot positioning - pivots are placed on the correct candle type (bullish for highs, bearish for lows)
Automatic timeframe selection - configure different S/R timeframes for each chart timeframe
Dynamic level merging - nearby levels are merged based on ATR tolerance (newer wins)
Mitigated level tracking - shows recently broken levels with distinct styling
Smart visualization - always shows N closest levels above and below current price
Comprehensive alert system with 9 different alert types
Significant breakout detection with configurable parameters
Memory efficient - automatic cleanup of expired levels
HOW IT WORKS:
The indicator uses ta.pivothigh() and ta.pivotlow() on the selected higher timeframe.
Pivot highs are positioned on bullish candles (using close price).
Pivot lows are positioned on bearish candles (using close price).
If the pivot candle is not the correct type, it searches back up to 5 candles.
Only unbreached levels are displayed as active support/resistance.
When a level is breached, it becomes a "mitigated level" with distinct styling.
Mitigation is checked only after the first candle following the pivot (to avoid false triggers).
LEVEL MERGING:
Nearby levels of the same type are automatically merged based on ATR tolerance.
The newer pivot always wins, replacing older levels within the tolerance range.
Tolerance = HTF ATR × Merge Tolerance setting (default 0.5 ATR).
VISUALIZATION:
The indicator always displays the N closest levels above and below the current price.
Levels are sorted by distance, ensuring the most relevant S/R are always visible.
Active levels show as solid lines, mitigated levels as dashed lines.
ALERT SYSTEM:
Breakout (any level) - triggers when any level is broken with coherent candle
Breakout Support - triggers when a support level is broken by bearish candle
Breakout Resistance - triggers when a resistance level is broken by bullish candle
New Pivot (any) - triggers when a new pivot is detected
New Pivot Support - triggers when a new support pivot is detected
New Pivot Resistance - triggers when a new resistance pivot is detected
Significant Breakout (any) - triggers on high-quality breakouts
Significant Breakout Support - high-quality support breakout
Significant Breakout Resistance - high-quality resistance breakout
SIGNIFICANT BREAKOUT CRITERIA:
A breakout is considered "significant" when:
Candle direction is coherent (bearish for support, bullish for resistance)
At least X% of the candle body crosses the level (configurable, default 50%)
Opposite wick is limited to Y% of candle range (configurable, default 30%)
Example: For a bearish candle breaking support, the upper wick must be small.
TIMEFRAME CONFIGURATION:
Configure different S/R timeframes based on current chart timeframe:
1m-5m charts → Default 4h S/R
15m charts → Default 4h S/R
30m-1h charts → Default 4h S/R
4h charts → Default 4h S/R
Daily charts → Default Daily S/R
Weekly charts → Default Weekly S/R
Monthly charts → Default Monthly S/R
All timeframes are configurable via input settings.
SETTINGS OVERVIEW:
Timeframe Configuration - Set S/R timeframe for each chart timeframe
Pivot Detection - Max levels, left/right bars, merge tolerance, level extension
Mitigation Settings - How long mitigated levels remain visible
Visual Settings - Colors, line width, price scale display
Significant Breakout - Min body cross %, max opposite wick %
Debug - Show pivot detection markers
Phân tích Xu hướng
SPY PRO Day Trading(VWAP + EMAs + FVG + Liquidity + Levels)🚀 WHAT THE PRO VERSION INCLUDES
1. Full Trend System
9/21 EMA cloud
200 EMA trend filter
VWAP
2. Institutional Levels
Previous Day High/Low/Close
Pre-Market High/Low
3. Advanced Price Action Tools
Fair Value Gaps (FVG)
Liquidity Sweeps (stop hunts)
Auto Support/Resistance
Breakout zones
4. Trade Signals
CALL and PUT signals based on:
Trend
EMA bounce
VWAP confirmation
5. Alerts for everything
2 Dip/Tepe + Destek/Direnç + Tek Sinyal Stratejisi⭐ A Brief Summary of What the Strategy Does
🎯 1) Market analysis is being released (bottom-top analysis)
It automatically finds pivot bottoms and pivot tops on the strategic chart. Then:
If the bottoms are rising (HL – High Low): the trend is upward
If the tops are falling (LH – Lower High): the trend is downward
it interprets this.
🎯 2) Support and resistance lines are formed
Last pivot top = resistance line
Last pivot bottom = support line
These lines are automatically drawn on the chart.
🎯 3) Breakout is expected according to the trend structure
For LONG:
The last two bottoms will be rising bottoms
The price will rise above the last resistance line
This gives a single LONG signal.
For SHORT:
The last two peaks will be falling peaks
The price will fall below the support line
This gives a single SHORT signal.
Trend Vector Pro v2.0Title: Trend Vector Pro v2.0
👨💻 Developed by: Mohammed Bedaiwi
💡 Strategy Overview & Coherence
Trend Vector Pro (TVPro) is a momentum-based trend & reversal strategy that uses a custom smoothed oscillator, an optional ADX filter, and classic Pivot Points to create a single, coherent trading framework.
Instead of stacking random indicators, TVPro is built around these integrated components:
A custom momentum engine (signal generation)
An optional ADX filter (trend quality control)
Daily Pivot Points (context, targets & S/R)
Swing-based “Golden Bar” trailing stops (trade management)
Optional extended bar detection (overextension alerts)
All parts are designed to work together and are documented below to address originality & usefulness requirements.
🔍 Core Components & Justification
1. Custom Momentum Engine (Main Signal Source)
TVPro’s engine is a custom oscillator derived from the bar midpoint ( hl2 ), similar in spirit to the Awesome Oscillator but adapted and fully integrated into the strategy. It measures velocity and acceleration of price, letting the script distinguish between strong impulses, weakening trends, and pure noise.
2. ADX Filter (Trend Strength Validation – Optional)
Uses Average Directional Index (ADX) as a gatekeeper.
Why this matters: This prevents the strategy from firing signals in choppy, non-trending environments (when ADX is below the threshold) and keeps trades focused on periods of clear directional strength.
3. Classic Pivot Points (Context & Targets)
Calculates Daily Pivot Points ( PP, R1-R3, S1-S3 ) via request.security() using prior session data.
Why this matters: Momentum gives the signal, ADX validates the environment, and Pivots add external structure for risk and target planning. This is a designed interaction, not a random mashup.
🧭 Trend State Logic (5-State Bar Coloring)
The strategy uses the momentum's value + slope to define five states, turning the chart into a visual momentum map:
🟢 STRONG BULL (Bright Green): Momentum accelerating UP. → Strong upside impulse.
🌲 WEAK BULL (Dark Green): Momentum decelerating DOWN (while positive). → Pullback/pause zone.
🔴 STRONG BEAR (Bright Red): Momentum accelerating DOWN. → Strong downside impulse.
🍷 WEAK BEAR (Dark Red): Momentum decelerating UP (while negative). → Rally/short-covering zone.
🔵 NEUTRAL / CHOP (Cyan): Momentum is near zero (based on noise threshold). → Consolidation / low volatility.
🎯 Signal Logic Modes
TVPro provides two selectable entry styles, controlled by input:
Reversals Only (Cleaner Mode – Default): Targets trend flips. Entry triggers when the current state is Bullish (or Bearish) and the previous state was not. This reduces noise and over-trading.
All Strong Pulses (Aggressive Mode): Targets acceleration phases. Entry triggers when the bar turns to STRONG BULL or STRONG BEAR after any other state. This mode produces more trades.
📌 Risk Management Tools
Golden Bars – Trailing Stops: Yellow “Trail” Arrows mark confirmed Swing Highs/Lows. These are used as logical trailing stop levels based on market structure.
Extended Bars: Detects when price closes outside a 2-standard-deviation channel, flagging overextension where a pullback is more likely.
Pivot Points: Used as external targets for Take Profit and structural stop placement.
⚙️ Strategy Defaults (Crucial for Publication Compliance)
To keep backtest results realistic and in line with House Rules, TVPro is published with the following fixed default settings:
Order Size: 5% of equity per trade ( default_qty_value = 5 )
Commission: 0.04% per order ( commission_value = 0.04 )
Slippage: 2 ticks ( slippage = 2 )
Initial Capital: 10,000
📘 How to Trade with Trend Vector Pro
Entry: Take Long when a Long signal appears and confirm the bar is Green (Bull state). Short for Red (Bear state).
Stop Loss: Place the initial SL near the latest swing High/Low, or near a relevant Pivot level.
Trade Management: Follow Golden (Trail) Arrows to trail your stop behind structure.
Exits: Exit when: the trailing stop is hit, Price reaches a major Pivot level, or an opposite signal prints.
🛑 Disclaimer
This script is for educational purposes only and does not constitute financial advice. Past performance does not guarantee future results. Always forward-test and use proper risk management before applying any strategy to live trading.
Trend Following $ZEC - Multi-Timeframe Structure Filter + Revers# Trend Following CRYPTOCAP:ZEC - Strategy Guide
## 📊 Strategy Overview
Trend Following CRYPTOCAP:ZEC is an enhanced Turtle Trading system designed for cryptocurrency spot trading, combining Donchian Channel breakouts, multi-timeframe structure filtering, and ATR-based dynamic risk management for both long and short positions.
---
## 🎯 Core Features
1. Multi-Timeframe Structure Filtering
- Uses Swing High/Low to identify market structure
- Customizable structure timeframe (default: 1 minute)
- Only enters trades in the direction of the trend, avoiding counter-trend positions
2. Reverse Signal Exit
- No fixed stop-loss or fixed-period exits
- Exits only when a reverse entry signal triggers
- Maximizes trend profits, reduces premature exits
3. ATR Dynamic Pyramiding
- Adds positions when price moves 0.5 ATR in favorable direction
- Supports up to 2 units maximum (adjustable)
- Pyramid scaling to enhance profitability
4. Complete Risk Management
- Fixed position size (5000 USD per unit)
- Commission fee 0.06% (Binance spot rate)
- Initial capital 10,000 USD
---
## 📈 Trading Logic
Entry Conditions
✅ Long Entry:
- Close price breaks above 20-period high
- Structure trend is bullish (price breaks above Swing High)
✅ Short Entry:
- Close price breaks below 20-period low
- Structure trend is bearish (price breaks below Swing Low)
Add Position Conditions
- Long: Price rises ≥ 0.5 ATR
- Short: Price falls ≥ 0.5 ATR
- Maximum 2 units including initial entry
Exit Conditions
- Long Exit: When short entry signal triggers (price breaks 20-period low + structure turns bearish)
- Short Exit: When long entry signal triggers (price breaks 20-period high + structure turns bullish)
---
## ⚙️ Parameter Settings
Channel Settings
- Entry Channel Period: 20 (Donchian Channel breakout period)
- Exit Channel Period: 10 (reserved parameter, actually uses reverse signal exit)
ATR Settings
- ATR Period: 20
- Stop Loss ATR Multiplier: 2.0 (reserved parameter)
- Add Position ATR Multiplier: 0.5
Structure Filter
- Swing Length: 160 (Swing High/Low calculation period)
- Structure Timeframe: 1 minute (can change to 5/15/60, etc.)
Position Management
- Maximum Units: 2 (including initial entry)
- Capital Per Unit: 5000 USD
---
## 🎨 Visualization Features
Background Colors
- Light Green: Bullish structure
- Light Red: Bearish structure
- Dark Green: Long entry
- Dark Red: Short entry
Optional Display (Default: OFF)
- Entry/exit channel lines
- Structure high/low lines
- ATR stop-loss line
- Next add position indicator
- Entry/exit labels
---
## 📱 Alert Message Format
Strategy sends notifications on entry/exit with the following format:
- Entry: `1m Long EP:428.26`
- Add Position: `15m Add Long 2/2 EP:429.50`
- Exit: `1m Close Long Reverse Signal`
Where:
- `1m`/`15m` = Current chart timeframe
- `EP` = Entry Price
---
## 💰 Backtest Settings
Capital Allocation
- Initial Capital: 10,000 USD
- Per Entry: 5,000 USD (split into 2 entries)
- Leverage: 0x (spot trading)
Trading Costs
- Commission: 0.06% (Binance spot VIP0)
- Slippage: 0
---
## 🎯 Use Cases
✅ Best Scenarios
- Trending markets
- Moderate volatility assets
- 1-minute to 4-hour timeframes
⚠️ Not Suitable For
- Highly volatile choppy markets
- Low liquidity small-cap coins
- Extreme market conditions (black swan events)
---
## 📊 Usage Recommendations
Timeframe Suggestions
| Timeframe | Trading Style | Suggested Parameter Adjustment |
|-----------|--------------|-------------------------------|
| 1-5 min | Scalping | Swing Length 100-160 |
| 15-30 min | Short-term | Swing Length 50-100 |
| 1-4 hour | Swing Trading | Swing Length 20-50 |
Optimization Tips
1. Adjust swing length based on backtest results
2. Different coins may require different parameters
3. Recommend backtesting on 1-minute chart first before live trading
4. Enable labels to observe entry/exit points
---
## ⚠️ Risk Disclaimer
1. Past Performance Does Not Guarantee Future Results
- Backtest data is for reference only
- Live trading may be affected by slippage, delays, etc.
2. Market Condition Changes
- Strategy performs better in trending markets
- May experience frequent stops in ranging markets
3. Capital Management
- Do not invest more than you can afford to lose
- Recommend setting total capital stop-loss threshold
4. Commission Impact
- Frequent trading accumulates commission fees
- Recommend using exchange discounts (BNB fee reduction, etc.)
---
## 🔧 Troubleshooting
Q: No entry signals?
A: Check if structure filter is too strict, adjust swing length or timeframe
Q: Too many labels displayed?
A: Turn off "Show Labels" option in settings
Q: Poor backtest performance?
A:
1. Check if the coin is suitable for trend-following strategies
2. Adjust parameters (swing length, channel period)
3. Try different timeframes
Q: How to set alerts?
A:
1. Click "Alert" in top-right corner of chart
2. Condition: Select "Strategy - Trend Following CRYPTOCAP:ZEC "
3. Choose "Order filled"
4. Set notification method (Webhook/Email/App)
---
## 📞 Contact Information
Strategy Name: Trend Following CRYPTOCAP:ZEC
Version: v1.0
Pine Script Version: v6
Last Updated: December 2025
---
## 📄 Copyright Notice
This strategy is for educational and research purposes only.
All risks of using this strategy for live trading are borne by the user.
Commercial use without authorization is prohibited.
---
## 🎓 Learning Resources
To understand the strategy principles in depth, recommended reading:
- "The Complete TurtleTrader" - Curtis Faith
- "Trend Following" - Michael Covel
- TradingView Pine Script Official Documentation
---
Happy Trading! Remember to manage your risk 📈
Advanced Breakout System v2.0Advanced Breakout System v2.0
Developed by: Mohammed Bedaiwi
This script hunts for high-probability breakouts by combining price consolidation zones, volume spikes vs. average volume, smart money flow (OBV), and a Momentum Override for explosive moves that skip consolidation. Additionally, it automatically identifies and plots Support and Resistance levels with price labels to help you visualize market structure.
The system follows a "Watch & Confirm" logic: it first prints a WATCH setup, then a BUY only if price confirms strength.
💡 JUSTIFICATION OF CONCEPTS (MASHUP & ORIGINALITY)
This script is an original mashup combining several analytical concepts to address common breakout failures:
Volatility Compression Engine: Uses built-in functions like ta.highest() and ta.lowest() to mathematically define the setup phase where price volatility is compressed below a user-defined threshold.
Volume Spike Confirmation: The breakout must be confirmed by a volume increase greater than a moving average of volume, signaling strong market interest.
Smart Volume Filter (OBV): This is the key component. By checking if ta.obv is above its own Moving Average, we confirm that accumulation has been occurring during the consolidation period, suggesting institutional positioning before the price break.
Multi-Exit Risk System: Employs dynamic exits (EMA cross, volume dump, bearish pattern) instead of static stop-losses to manage risk adaptively based on real-time market action.
Market Structure Visualization: The script also includes a Support & Resistance engine to plot key swing pivots and price labels for visual context.
✅ STRATEGY RESULTS & POLICY COMPLIANCE
To ensure non-misleading and transparent backtesting results, this strategy is published with the following fully compliant properties:
Dataset Compliance: The backtest is performed on the CMTL Daily (1D) chart across a long history, generating 201 total trades. This significantly exceeds the minimum requirement of 100 trades, providing a robust test dataset.
Risk Control: The strategy uses a conservative order size set to 2% of equity (default_qty_value=2), strictly adhering to the sustainable risk recommendation of 5-10% of equity per trade.
Transaction Costs: Realistic trading conditions are modeled using 0.07% commission and 3 ticks slippage to prevent the overestimation of profitability.
⚙️ VISUAL GUIDE & SIGNAL LOGIC
Key Color Legend (Visual Guide):
WATCH – Setup (Yellow Arrow Down): Potential breakout setup detected.
BUY – Confirmation (Green Arrow Up): Confirmed breakout, triggered when price trades above the high of the WATCH candle.
SELL – Break (Orange Arrow): Short-term trend weakness, triggered when price closes below the Fast EMA (9).
SELL – Dump (Dark Red Arrow): Distribution / volume dump, triggered by a bearish candle with abnormally high volume.
SELL – Pattern (Purple Arrow): Bearish price-action pattern (such as a bearish engulfing).
Support & Resistance Lines (Red/Green): Small horizontal lines plotted at key swing points with exact price labels.
⌨️ INPUTS (DEFAULT SETTINGS)
Entry settings: Consolidation Lookback (default 20) = bars used to detect consolidation. Consolidation Range % (default 12%) = max allowed range size. Volume Spike Multiplier (default 1.2) = factor above average volume to count as a spike. Force Signal on Big Moves (default ON) = forces a WATCH signal on high-momentum moves.
Exit settings: Enable Fast Exit (EMA 9) toggles the SELL – Break signal. Dump Volume Multiplier defines what counts as “dump” volume.
Support & Resistance: Adjustable Pivot Left/Right bars control the sensitivity of the support and resistance lines.
⚠️ Disclaimer Trading involves significant risk of loss. This script is for educational and informational purposes only and is not financial advice or a recommendation to buy or sell any asset. BUY and SELL signals are rule-based and derived from historical behavior and do not guarantee future performance. Always use your own analysis and risk management. This is an open-source strategy; users are encouraged to test it across different symbols and timeframes.
CRR Bill Williams These are SMMA based on the average price (high+low/2):
Jaw – Blue
Slow line, the base of the trend.
Teeth – Red
Medium speed.
Lips – Green/Lime
The fast one, the one that touches the price first.
Trend reading with the Alligator:
🟢 Uptrend (trendUpAlligator):
Lips (green) > Teeth (red) > Jaw (blue)
The alligator is awake and eating UP.
🔴 Downtrend (trendDownAlligator):
Lips (green) < Teeth (red) < Jaw (blue)
The alligator is eating DOWN.
⚪ Range / sleeping market (trendNeutral):
The lines cross, get tangled, without a clear order → better NOT to trade aggressively there.
In the HUD it shows it as:
UPTREND (green)
DOWNTREND (red)
RANGE (gray)
2️⃣ Fractals (▲ and ▼ arrows)
Fractal High (▲ green): possible local top (resistance).
Fractal Low (▼ red): possible local bottom (support).
They serve as:
Points where the price can break through to continue.
Areas where you can place stop losses or breakouts.
3️⃣ AO and AC (trend strength)
AO (Awesome Oscillator): difference of moving averages (5 and 34 of the average price).
AO > 0 → bullish pressure.
AO < 0 → bearish pressure.
AC (Accelerator): AO – average of AO.
AC > 0 → acceleration in favor of the movement.
AC < 0 → the movement slows down or goes against the trend.
In the HUD you see:
AO > 0 | AC > 0 → good tailwind.
AO < 0 | AC < 0 → strong headwind. 4️⃣ Bill Williams MFI (GREEN, FADE, FAKE, SQUAT)
This MFI is based on the candle range/volume and then compares it to the previous candle:
GREEN (Lime) → mfiUp + volUp
Price and volume rise together → real, strong momentum.
FADE (Gray) → mfiDown + volDown
Everything is dying down, price and volume fall → exhaustion.
FAKE (Orange) → mfiUp + volDown
Price rises but volume falls → deceptive movement.
SQUAT (Fuchsia) → mfiDown + volUp
Strong fight between buyers and sellers → explosive zone.
The color you see in the "MFI" HUD is:
Green → healthy momentum
Gray → fading out
Orange → deception
Fuchsia → strong fight, a big move may be coming
5️⃣ Candle Colors (barcolor)
Your script paints the candles like this:
💚 StrongBull (strong buying)
Bullish Alligator (Lips > Teeth > Jaw)
AO > 0
AC > 0
MFI = "GREEN"
→ Bright LIME candle:
👉 strong upward trend, ideal time to look for buying opportunities.
❤️ StrongBear (strong selling)
Bearish Alligator (Lips < Teeth < Jaw)
AO < 0
AC < 0
MFI = "GREEN"
→ Strong RED candle:
👉 strong downward trend, ideal for looking for selling opportunities.
🩵 Normal bullish trend:
Bullish Alligator but without all the strength conditions → TEAL (bluish-green) candle.
🟥 Normal bearish trend:
Bearish Alligator but without full strength → MAROON candle.
⚪ Sideways market:
Everything mixed → translucent GRAY candle (color.gray 60).
👉 Not the best time to enter aggressively. 6️⃣ BUY / SELL Signals (triangles)
✔️ BUY Condition (longSignalCond)
The code requires:
Bullish Alligator → Lips > Teeth > Jaw
AO > 0
AC > 0
MFI = GREEN or SQUAT
close > Lips (green lips) → the price is already above the fast moving average.
When fulfilled:
A green “BUY” triangle appears below the candle.
In the HUD:
Trend: BULLISH (green)
AO / AC: > 0
MFI: GREEN or SQUAT
BW Setup: “SIGNAL: BUY”
Context: “Buying Pressure”
👉 Idea for making money (buys):
Wait for the Alligator to be in a bullish order.
Check that the HUD says BULLISH and AO/AC > 0.
Check MFI: GREEN or SQUAT.
As soon as the BUY triangle appears and the candle is lime/teal, you can:
Enter a buy position.
Place the stop loss below the last fractal low (▼).
Close partially when:
MFI changes to FADE/FAKE or
The candles change to gray/maroon or
The Alligator becomes entangled (loses its order).
❌ SELL Condition (shortSignalCond)
The code requires:
Bearish Alligator → Lips < Teeth < Jaw
AO < 0
AC < 0
MFI = GREEN or SQUAT (strength but downwards)
close < Lips → price below the lips.
When fulfilled:
A red “SELL” triangle appears above the candle.
In the HUD:
Trend: BEARISH
AO / AC: < 0
MFI: GREEN / SQUAT
BW Setup: “SIGNAL: SELL”
Context: “Selling Pressure”
👉 Idea for making money (sells):
Wait for the Alligator to be in a bearish order.
HUD in BEARISH, AO/AC < 0.
MFI in GREEN or SQUAT.
When the SELL triangle appears with a red/maroon candle:
Enter a sell position. Stop above the last fractal high (▲).
Partial exit when:
MFI changes to FADE/FAKE,
The candles turn gray/teal,
Or the Alligator becomes tangled.
7️⃣ When NOT to trade
Avoid:
HUD → “RANGE”
Mostly gray candles.
AO and AC mixed (one >0 and the other <0).
MFI constantly in FAKE/FADE.
In these situations, the system tells you: slow or deceptive market → not suitable for serious trades.
8️⃣ Ultra-short summary (golden rule)
BUY:
Alligator ordered UP (green > red > blue).
AO > 0 and AC > 0.
MFI = GREEN or SQUAT.
Strong green candle (lime/teal) + BUY triangle.
Even better if it breaks a previous fractal low upwards.
SELL:
Alligator ordered DOWN (green < red < blue).
AO < 0 and AC < 0.
MFI = GREEN or SQUAT.
Red/maroon candle + SELL triangle.
Even better if it breaks a fractal high downwards.
VCAI RSI Divergence +VCAI RSI Divergence+ is an RSI that shows trend, momentum, and divergence using V-CoresAI colour logic instead of a single white line.
What it shows:
Yellow RSI line → bullish momentum (RSI above its MA; buy-side pressure in control)
Purple RSI line → bearish momentum (RSI below its MA; sell-side pressure in control)
Thin blue line → fast RSI moving average that drives the colour flips
Dashed 70/30 lines → classic OB/OS zones
Background bands → soft purple in OB, soft yellow in OS to mark exhaustion areas
How to read it:
Yellow & rising → momentum shifting bullish; pullbacks into yellow OS band can be accumulation zones
Purple & falling → momentum shifting bearish; pushes into purple OB band can be distribution/sell zones
Hard colour flips (yellow ↔ purple) mark trend regime changes, not minor RSI noise
Divergence mode (on/off)
The divergence engine scans RSI and price pivot structure:
Bullish divergence (yellow) → price lower low + RSI higher low
Bearish divergence (purple) → price higher high + RSI lower high
Lines and tags appear only where a meaningful disagreement between price and RSI exists, giving early context for potential reversals or fade setups.
Together, the momentum colours + optional divergence mapping give a far clearer market read than a standard RSI, with zero clutter and no guesswork.
DR/IDR Break .5 TPDR/IDR Extension Breakout with Custom Stop
This strategy is a systematic, counter-trend, and momentum-based system designed for intraday trading. It operates on the principle of an Opening Range Breakout (ORB), utilizing the initial market consolidation to project high-probability targets, while offering multiple methods for managing risk.
1. Market Identification (The Opening Range)
The strategy begins by defining the market's initial boundaries and volatility:
Session Window: The strategy calculates the Opening Range (OR) over a user-defined time period (default: 9:30 AM to 10:30 AM New York Time).
ORB Levels: Two key price levels are established and locked once the time window closes:
Wick High/Low: The absolute highest and lowest prices of the session. These serve as the entry trigger lines.
Body High/Low (Shaded Range): The highest and lowest open/close prices of the session. The height of this range is used to calculate the Take Profit and Stop Loss levels.
2. Entry Rule (The Breakout)
The strategy is passive until the range is violated, looking for a strong move out of the consolidation area.
Trigger Condition: A trade is signaled when a candle closes either:
Above the Wick High (for a Long entry).
Below the Wick Low (for a Short entry).
Execution: The entry is a Market Order executed on the candle that meets the trigger condition, subject to a user-defined Entry Delay (default 0 bars, meaning the entry is taken immediately upon the breakout candle's close).
Direction Control: The user can select to trade Long Only, Short Only, or Both.
3. Exit and Risk Management
All trades are placed with simultaneous Take Profit and Stop Loss orders (a bracket order) once the entry is filled.
A. Take Profit (TP)
The Take Profit is set at the 0.5 Extension of the Shaded Range (Body Range).
Calculation: The distance from the Body High/Low to the TP level is exactly 50% of the total height of the Shaded Range.
B. Stop Loss (SL)
The Stop Loss is dynamically calculated based on a user-selected method for risk control:
Range 0.5 (Body Range): The Stop Loss is placed an equal distance (0.5 times the Body Range height) outside the opposite side of the Body Range.
Example (Long): If entry is above the Wick High, the SL is set 0.5 times the Body Range height below the Body Low.
ATR Multiple: The Stop Loss distance is determined by the asset's recent volatility.
Calculation: The distance is calculated as a user-defined Multiplier (default 2.0) times the Average True Range (ATR).
Recent Swing Low/High: The Stop Loss is placed based on a structural level defined by recent price action.
Long Entry: SL is placed at the Lowest Swing Low within a user-defined lookback period.
Short Entry: SL is placed at the Highest Swing High within a user-defined lookback period.
Summary of Workflow
The market sets the Wick and Body boundaries (e.g., 9:30–10:30 AM).
Price breaks and closes beyond a Wick boundary, triggering a signal.
The trade enters after the specified delay.
A bracket order is placed: TP is fixed at the 0.5 Extension, and SL is set based on the user's chosen risk method.
The trade is closed upon reaching either the TP or the SL level.
Enhanced ONH / ONL Auto Levels (Fixed Alerts)This script automatically identifies and plots the Overnight High (ONH) and Overnight Low (ONL)—two of the most important liquidity levels for intraday futures and index traders.
The indicator scans the entire overnight session (default: 18:00–09:30 EST for ES) and records the highest wick and lowest wick formed during Globex. These levels are then projected into the regular trading session, giving traders clear reference points for potential reversals, breakouts, liquidity grabs, and high-probability retest setups.
ONH/ONL levels act as magnet zones, liquidity pockets, and institutional decision points—commonly targeted during the opening drive and London/New York overlap. Whether price sweeps, reclaims, or breaks these levels, the reaction often creates reliable trade opportunities for scalpers and day traders.
Adaptive Volatility Stop by Pedro Paulo de MeloStop ATR is a clean and reliable volatility-based trailing stop system, built to adapt dynamically to market conditions using the Average True Range (ATR).
It identifies trend direction, adjusts the stop level using stair-step logic, and automatically flips the stop when price reversals occur.
How it works
Uses ATR × Multiplier to calculate an adaptive volatility buffer
Tracks trend direction internally
Recomputes and repositions the stop when a trend flip is detected
Plots separate lines for bullish and bearish stop states
Works on any market and timeframe (crypto, forex, commodities, indices, stocks)
Why it’s useful
This Stop ATR implementation is extremely stable and visually clean.
It is particularly effective for:
Trend following
Position management
Swing and position trading
Systematic stop placement
Unlike many ATR-based stop versions, this script uses a corrected flip-handling method that prevents stop misalignment and ensures consistent trend state tracking.
Inputs
Period — ATR length
Multiplier — ATR factor that defines stop distance
Author
Developed by Pedro Paulo de Melo, open-source version.
DR/IDR fractals break candle (ChadAnt)This indicator is an Opening Range Breakout (ORB) tool. It identifies the high and low price range established during a specific time window (e.g., the first hour of trading, 9:30–10:30 AM NY time). Once that time window closes, it watches for the price to "break out" of that range and projects profit targets based on the size of the initial range.
Key Features & How They Work
1. The Opening Range (The Box)
Time Window: The indicator waits for your specific start time (default 9:30 AM NY). It does not draw anything before this time.
The "Wicks": It tracks the absolute highest and lowest prices reached during this time (the Wicks). These act as your Breakout Triggers.
The "Body": It tracks the highest and lowest candle closes/opens during this time. This creates a shaded "zone" on your chart, representing the core area where most trading occurred.
Shading: To keep your chart clean, the background shading only appears during the forming time window.
2. Breakout Signals
Once the time window ends (e.g., 10:30 AM), the indicator "locks" the levels.
It then waits for a candle to move above the Wick High or below the Wick Low.
The Signal: When this happens, a label ("BREAK") appears on the chart.
Green Label: Bullish breakout (price went above the range).
Red Label: Bearish breakout (price went below the range).
Note: It only signals the first breakout of the day to avoid false alarms during choppy markets.
3. Extension Targets (Profit Levels)
When a breakout signal occurs, the indicator automatically draws target lines (extensions).
Calculation: These targets are based on the height of the "Body" zone (the shaded area).
Example: If your setting is 1.0, the indicator measures the height of the shaded body range and projects that exact distance above the breakout point. This is often used as a "Measured Move" target.
You can customize how many lines appear and how far apart they are (e.g., 0.5, 1.0, 1.5 times the range size).
4. Williams Fractals
During the opening range time, the indicator looks for specific price patterns called "Williams Fractals" (a 5-candle pattern that highlights potential turning points).
If a fractal peak or valley occurs inside your opening range, it marks it with a small triangle (▲ or ▼). Traders often use these as early signs of support or resistance forming inside the range.
5. Clean Visuals
Line Cutoff: You can set a "Stop Time" (e.g., 16:00 or 4:00 PM). The lines will stop drawing at that time so they don't clutter your chart overnight.
Gap Handling: The lines are programmed to break cleanly between days, so you don't see messy diagonal lines connecting yesterday's close to today's open.
Summary of Settings You Can Change
Session Time: When the range starts and ends.
Line Stop Time: When the lines should disappear for the day.
Visuals: Colors, line width, and style (solid, dotted, dashed).
Extensions: How many target lines to draw and the step size (e.g., 0.5x, 1.0x).
Fractals: Toggle the triangle icons on/off.
Volatility Trend FollowerThe script combines several classic technical analysis techniques:
SuperTrend / Adaptive Band - The main idea comes from the SuperTrend indicator, which uses ATR (Average True Range) to create a trailing band that adapts to volatility
ATR (Average True Range) - A volatility measure developed by J. Welles Wilder Jr.
EMA (Exponential Moving Average) - Used as a global trend filter
Heikin Ashi - An option to smooth prices and reduce noise
Fanfans结构加强vwap版 + 极简系统### 中英文双语总结(300字内)
中文:该指标整合Fanfans结构、动态摆动VWAP、高斯GWMA、MACD及极简交易系统,支持趋势过滤(可选GWMA/VWAP/结构维度)、多离场模式(ATR止盈止损/GWMA离场/混合)与移动止损。具备多空信号标注、止损止盈线绘制、多维度共振警报,图表信息面板实时展示结构/VWAP/GWMA/MACD状态,可自定义过滤规则、显示样式及交易参数,适配短周期交易,兼顾趋势判断与信号执行的灵活性。
English: This indicator integrates Fanfans structure, dynamic swing VWAP, Gaussian GWMA, MACD and a simple trading system. It supports trend filtering (GWMA/VWAP/structure optional), multiple exit modes (ATR SL/TP, GWMA exit, hybrid) and trailing stop. Featuring long/short signal labeling, SL/TP line drawing, multi-dimensional resonance alerts, its chart info panel displays real-time status of structure/VWAP/GWMA/MACD. Customizable filter rules, display styles and trading parameters make it suitable for short-term trading, balancing trend judgment and signal execution flexibility.
Triple Moving Average's EMA/SMAThis Pine Script in its final v5 version is a fundamental visual tool that supports traders in quickly identifying the trend and sentiment.
Key Script Goal
This script's primary objective is flexible multi-timeframe analysis of the trend.
The script serves as a universal set of three independent moving averages, which is intended to help you with the visual assessment of the market context:
EMA (20 periods): Serves as dynamic support/resistance for short-term sentiment. It is highly sensitive to recent price action.
SMA1 (50 periods): Typically acts as a medium-term trend indicator. It is often used to identify corrections.
SMA2 (100 periods): Provides a long-term perspective. Its slope and position relative to the price indicate the dominant structural trend.
The script is a base for every trader who relies on technical analysis and Price Action, utilizing moving averages as dynamic S/R levels.
ORB Strategy: Extensions & Custom SL (EOD & Live Lines)That's a great request. Since you've now built a complex Pine Script Strategy with several user-configurable risk management, targeting, and exit options, the description should focus on the systematic rules used for entering, managing, and exiting trades.
Here is a clear, written description of the trading strategy you have built:
Trading Strategy Description: ORB Extension Breakout with Custom Stop, Live Tracking, and EOD Exit
This strategy is a systematic, momentum-based system designed for intraday trading. It operates on the principle of an Opening Range Breakout (ORB), utilizing the initial market consolidation to project high-probability targets, while offering multiple methods for managing risk and enforcing a mandatory end-of-day closure.
1. Market Identification (The Opening Range)
The strategy first defines the market's initial boundaries and volatility:
Session Window: The strategy calculates the Opening Range (OR) over a user-defined time period (default: 9:30 AM to 10:30 AM New York Time).
ORB Levels: Two key price levels are established and locked once the time window closes:
Wick High/Low: The absolute highest and lowest prices of the session. These serve as the entry trigger lines.
Body High/Low (Shaded Range): The highest and lowest open/close prices of the session. The height of this range is used as the basis for calculating all targets and stops.
2. Entry Rule (The Breakout)
The strategy waits passively for a breakout that confirms direction and ensures the move has not yet reached its immediate target.
Trigger Condition: A trade is signaled when a candle closes either:
Above the Wick High (for a Long entry).
Below the Wick Low (for a Short entry).
Constraint (Fresh Breakout): The entry is invalidated if the breakout candle's price action (High for Long, Low for Short) has already touched or surpassed the projected Take Profit (0.5 Extension) level before the candle closes.
Execution: The entry is a Market Order executed on the candle that meets the trigger conditions, subject to a user-defined Entry Delay (default 0 bars).
Direction Control: The user can select to trade Long Only, Short Only, or Both.
3. Exit and Risk Management
All trades are placed with simultaneous Take Profit and Stop Loss orders (a bracket order) upon entry.
A. Take Profit (TP)
The Take Profit is set at the 0.5 Extension of the Shaded Range (Body Range).
Calculation: The distance from the Body High/Low to the TP level is exactly 50% of the total height of the Shaded Range.
B. Stop Loss (SL)
The Stop Loss is dynamically calculated based on a user-selected method for risk control:
Range 0.5 (Body Range): The SL is placed an equal distance (0.5 times the Body Range height) outside the opposite side of the Body Range.
ATR Multiple: The Stop Loss distance is calculated as a user-defined Multiplier times the Average True Range (ATR).
Recent Swing Low/High: The Stop Loss is placed based on a structural low (for Long) or high (for Short) within a user-defined lookback period.
C. End-of-Day (EOD) Exit
Any open position is forced closed at the market price if it is still open when the user-defined closing time (default: 16:00 HHMM) is reached. This prevents carrying intraday risk overnight.
4. Visualization
The strategy includes comprehensive visual cues for analysis:
ORB Drawing: Displays the Wick High/Low and the shaded Body Range.
Breakout Signals: Highlights the specific bar where the validated entry signal occurs.
Closed Trades: Draws persistent lines for the Entry and Exit prices of the last few closed trades.
Live Open Trades: Draws persistent lines for the current Entry Price, active Take Profit Level, and active Stop Loss Level for any open position.
Volume Heikin Ashi by CrugThis indicator combines the Heikin Ashi with classic volume candles.
It is useful to see the trend and "how much" volume it contains
1 - Select Volume Candles on the graph
i.postimg.cc
2- In setting remove the all the colors
i.postimg.cc
3- Insert the indicator
4- Using with momentum indicators (like Market liberator B, MACD, ...) it provides more precise and realistic data to plot divergences because it combines: classic japanese candle but with volumes. In the meantime it is easier to see the main trend
i.postimg.cc
Daily Tracker Highs LowsSolid lines mark the most recent daily highs/lows that have not been crossed yet (you choose how many per side).
Dashed lines mark daily highs/lows from the last N days that have been crossed since—use as secondary S/R or “magnet” levels.
White lines show today’s high/low updating in real time.
Tune settings to pick how many uncrossed levels per side (1–10), the lookback window for crossed levels, and an optional cap per side.
TrendPeriodsThis indicator is binary. It is either BUY or SELL. In other word the value is either 0 or 1
GLI / Asset Structural Trend RatioBasicly I asked AI to create a GLI to Asset trend ratio indicator.
EMA 9/18/50 Crossover Alert By PRIGood for equity. When this crossover happen you may go long with sl keeping low of previous candle. Cautios in sideways market.
Trend Following $BTC - Multi-Timeframe Structure + ReversTREND FOLLOWING STRATEGY - MULTI-TIMEFRAME STRUCTURE BREAKOUT SYSTEM
Strategy Overview
This is an enhanced Turtle Trading system designed for cryptocurrency spot trading. It combines Donchian Channel breakouts with multi-timeframe structure filtering and ATR-based dynamic risk management. The strategy trades both long and short positions using reverse signal exits to maximize trend capture.
Core Features
Multi-Timeframe Structure Filtering
The strategy uses Swing High/Low analysis to identify market structure trends. You can customize the structure timeframe (default: 3 minutes) to match your trading style. Only enters trades aligned with the identified trend direction, avoiding counter-trend positions that often lead to losses.
Reverse Signal Exit System
Instead of using fixed stop-losses or time-based exits, this strategy exits positions only when a reverse entry signal triggers. This approach maximizes trend profits and reduces premature exits during normal market retracements.
ATR Dynamic Pyramiding
Automatically adds positions when price moves 0.5 ATR in your favor. Supports up to 2 units maximum (adjustable). This pyramid scaling enhances profitability during strong trends while maintaining disciplined risk management.
Complete Risk Management
Fixed position sizing at 5000 USD per unit. Includes realistic commission fees of 0.06% (Binance spot rate). Initial capital set at 10,000 USD. All backtest parameters reflect real-world trading conditions.
Trading Logic
Entry Conditions
Long Entry: Close price breaks above the 20-period high AND structure trend is bullish (price breaks above Swing High)
Short Entry: Close price breaks below the 20-period low AND structure trend is bearish (price breaks below Swing Low)
Position Scaling
Long positions: Add when price rises 0.5 ATR or more
Short positions: Add when price falls 0.5 ATR or more
Maximum 2 units including initial entry
Exit Conditions
Long Exit: Triggers when short entry signal appears (price breaks 20-period low + structure turns bearish)
Short Exit: Triggers when long entry signal appears (price breaks 20-period high + structure turns bullish)
Default Parameters
Channel Settings
Entry Channel Period: 20 (Donchian Channel breakout period)
Exit Channel Period: 10 (reserved parameter)
ATR Settings
ATR Period: 20
Stop Loss ATR Multiplier: 2.0
Add Position ATR Multiplier: 0.5
Structure Filter
Swing Length: 300 (Swing High/Low calculation period)
Structure Timeframe: 3 minutes
Adjust these based on your trading timeframe and asset volatility
Position Management
Maximum Units: 2 (including initial entry)
Capital Per Unit: 5000 USD
Visualization Features
Background Colors
Light Green: Bullish market structure
Light Red: Bearish market structure
Dark Green: Long position entry
Dark Red: Short position entry
Optional Display Elements (Default: OFF)
Entry and exit channel lines
Structure high/low reference lines
ATR stop-loss indicator
Next position add level
Entry/exit labels
Alert Message Format
The strategy sends notifications with the following format:
Entry: "5m Long EP:90450.50"
Add Position: "15m Add Long 2/2 EP:91000.25"
Exit: "5m Close Long Reverse Signal"
Where the first part shows your current chart timeframe and EP indicates Entry Price
Backtest Settings
Capital Allocation
Initial Capital: 10,000 USD
Per Entry: 5,000 USD (split into 2 potential entries)
Leverage: 0x (spot trading only)
Trading Costs
Commission: 0.06% (Binance spot VIP0 rate)
Slippage: 0 (adjust based on your experience)
Best Use Cases
Ideal Scenarios
Trending markets with clear directional movement
Moderate to high volatility assets
Timeframes from 1-minute to 4-hour charts
Best suited for major cryptocurrencies with good liquidity
Not Recommended For
Highly volatile choppy/ranging markets
Low liquidity small-cap coins
Extreme market conditions or black swan events
Usage Recommendations
Timeframe Guidelines
1-5 minute charts: Use for scalping, consider Swing Length 100-160
15-30 minute charts: Good for short-term trading, Swing Length 50-100
1-4 hour charts: Suitable for swing trading, Swing Length 20-50
Optimization Tips
Always backtest on historical data before live trading
Adjust swing length based on asset volatility and your timeframe
Different cryptocurrencies may require different parameter settings
Enable visualization options initially to understand entry/exit points
Monitor win rate and drawdown during backtesting
Technical Details
Built on Pine Script v6
No repainting - uses proper bar referencing with offset
Prevents lookahead bias with lookahead=off parameter
Strategy mode with accurate commission and slippage modeling
Multi-timeframe security function for structure analysis
Proper position state tracking to avoid duplicate signals
Risk Disclaimer
This strategy is provided for educational and research purposes only. Past performance does not guarantee future results. Backtesting results may differ from live trading due to slippage, execution delays, and changing market conditions. The strategy performs best in trending markets and may experience drawdowns during ranging conditions. Always practice proper risk management and never risk more than you can afford to lose. It is recommended to paper trade first and start with small position sizes when going live.
How to Use
Add the strategy to your TradingView chart
Select your desired timeframe (1m to 4h recommended)
Adjust parameters based on your risk tolerance and trading style
Review backtest results in the Strategy Tester tab
Set up alerts for automated notifications
Consider paper trading before risking real capital
Tags
Trend Following, Turtle Trading, Donchian Channel, Structure Breakout, ATR, Cryptocurrency, Spot Trading, Risk Management, Pyramiding, Multi-Timeframe Analysis
---
Strategy Name: Trend Following BTC
Version: v1.0
Pine Script Version: v6
Last Updated: December 2025
VCAI Volume LiteVCAI Volume Lite is a clean, modern take on volume analysis designed for traders who want a clearer read on participation without loading multiple indicators.
This Lite edition focuses on the essentials:
real activity vs dead sessions
expansion vs contraction
momentum shifts around breakouts and pullbacks
No hype, no filters, no hidden logic — just a straightforward volume tool rebuilt with the VCAI visual framework.
Use it to quickly spot:
stronger moves backed by genuine participation
weak pushes running on low volume
areas where momentum may stall or accelerate
Part of the VCAI Lite Series.






















