THF Scalp & Trend + FVG [English]This indicator is a comprehensive "All-In-One" trading suite designed for Scalpers and Day Traders who look for confluence between Trend Following indicators and Price Action (Fair Value Gaps).
It combines two powerful concepts into a single chart overlay:
1. Moving Average Crossovers & Trend Filtering (THF Logic).
2. Fair Value Gaps (FVG) detection for entry/exit targets.
### 🛠️ Key Features:
**1. Trend & Scalp Signals:**
- **Scalp Signals:** Based on fast EMA crossovers (default 7/21). These signals can be filtered by a long-term SMA (200) to ensure you are trading with the major trend.
- **Trend Signals:** Identifies stronger trend shifts using EMA 21 crossing SMA 50.
- **Major Crosses:** Automatically highlights Golden Cross (SMA 50 > 200) and Death Cross events.
**2. Price Action (FVG - Fair Value Gaps):**
- Integrated **LuxAlgo's Fair Value Gap** logic to identify imbalances in the market.
- Displays Bullish/Bearish zones which act as magnets for price or support/resistance levels.
- Includes a Dashboard to track mitigated vs. unmitigated zones.
**3. Momentum & Volume Confluence:**
- **Visual Volume:** Candles are colored based on volume relative to the average (Volume SMA).
- **RSI & MACD Signals:** Optional overlays to spot overbought/oversold conditions or momentum shifts directly on the chart.
### 🎯 How to Use:
- **For Scalping:** Wait for a "SCALP BUY" signal while the price is above the SMA 200 (Trend Filter). Use the FVG boxes as potential Take Profit targets.
- **For Trend Trading:** Look for the "Trend BUY" label and confirm with the Golden Cross.
- **Stop Loss:** Can be placed below the recent swing low or below the EMA 50.
----------------------------------------------------------------
**CREDITS & ATTRIBUTION:**
This script is a mashup of custom trend logic and open-source community codes.
- **Fair Value Gap:** Full credit goes to **LuxAlgo** for the FVG detection algorithm and dashboard logic. This script utilizes their open-source calculation methods to enhance the trend strategy.
- **Trend Logic:** Based on classic Moving Average crossover strategies tailored for scalping.
*Disclaimer: This tool is for educational purposes only. Always manage your risk.*
Indicators and strategies
Ultra Reversion DCA Strategy with Manual Leverage - V.1Ultra Reversion DCA Strategy with Manual Leverage - V.1
2025-10-27
ES-VIX Daily Price Bands - Inner and OuterES-VIX Daily Price Bands
This indicator plots dynamic intraday price bands for ES futures based on real-time volatility levels measured by the VIX (CBOE Volatility Index). The bands evolve throughout the trading day, providing volatility-adjusted price targets.
Formulas:
Upper Band = Daily Low + (ES Price × VIX ÷ √252 ÷ 100)
Lower Band = Daily High - (ES Price × VIX ÷ √252 ÷ 100)
The calculation uses the square root of 252 (trading days per year) to convert annualized VIX volatility into an expected daily move, then scales it as a percentage adjustment from the current day's extremes.
Features:
Real-time band calculation that updates throughout the trading session
Upper band (green) extends from the current day's low
Lower band (red) contracts from the current day's high
Inner upper band (green) at 50% of expected move
Inner lower band (red) at 50% of expected move
Middle Inner upper band (green) at 80% of expected move
Middle Inner lower band (red) at 80% of expected move
Outer upper band (green) at 150% of expected move
Outer lower band (red) at 150% of expected move
Shaded zone between bands for visual clarity
Information table displaying:
Current ES price and VIX level
Running daily high and low
Current upper and lower band values
SHAMAZZ = Smoothed Heikin Ashi + MA + ZigZagSHAMAZZ: Smoothed Heikin Ashi + Moving Averages + ZigZag Structure
This script is a visual analysis tool that combines three components in one place:
Smoothed Heikin Ashi candles
• Candles are generated using a two-stage exponential smoothing process applied to open, high, low, and close
• Helps visualize general price direction and candle transitions
• Supports optional multi-timeframe views using TradingView’s request.security()
Moving Averages
• Includes two standard moving averages (SMA 50 and SMA 200 by default)
• These are plotted on the same timeframe as the main chart or a selected higher timeframe
• No trading signals or strategies are generated from the averages
ZigZag Pivot Mapping
• Identifies swing highs and lows based on user-selected pivot length
• Classifies pivots into simple categories such as higher high, lower high, higher low, or lower low
• Draws connecting lines between detected pivots
• Can optionally display small labels showing the pivot type
• The ZigZag is not predictive and only reflects swings already formed by the chosen pivot settings
Purpose
The script is meant as a charting helper for traders who want to visualize smoothed candles, major moving averages, and swing structure without switching indicators. It does not generate signals, alerts, or trading advice. It does not imply future outcomes, accuracy, or profitability.
Note on Higher Timeframes
When higher-timeframe values are requested, the script only displays confirmed higher-timeframe candle closes. No lookahead behavior is intended. Users who want the safest and strictest mode should keep all additional timeframe options disabled and use the indicator on one timeframe only.
How to Use
• Turn components on or off depending on your workflow
• Adjust pivot length to make the ZigZag more or less sensitive
• Use smoothed candles and moving averages as visual references
• Use ZigZag swings only for structure mapping, not for trade signals or forecasts
This tool is provided for visual analysis only and does not promise performance or predictive value.
Elite Bond Market AIDescription:
The Elite Bond Market AI indicator provides a comprehensive analytical framework specifically designed for bond market price action. The indicator combines multiple technical components including multi-timeframe RSI analysis, moving average relationships, volume dynamics, and volatility measurements to identify significant price behavior within the unique characteristics of bond market trading.
The indicator incorporates:
Multi-timeframe RSI evaluation across primary, 4-hour, and daily timeframes
Fast, slow, and trend exponential moving averages for directional context
Volume rate analysis relative to recent average volume
Bollinger Band width measurement for volatility contraction assessment
True Range volatility normalized as a percentage of price
This combination provides a layered analytical approach that captures the interplay between momentum, trend structure, participation levels, and volatility compression—key factors in bond market price discovery and directional moves.
ULTRA PRO SCALPING V6//@version=6
indicator("ULTRA PRO SCALPING V6", overlay=true, max_lines_count=500, max_labels_count=500)
// SETTINGS
lengthEMA = input.int(21, "EMA Trend")
riskRR = input.float(1.5, "Ratio TP/SL", step=0.1)
sl_pips = input.float(0.15, "Stop Loss (%)", step=0.01)
showTP_SL = input.bool(true, "Afficher TP & SL")
showSignals = input.bool(true, "Afficher Signaux")
// TREND FILTER
ema = ta.ema(close, lengthEMA)
plot(ema, "EMA", color=color.new(color.yellow, 0), linewidth=2)
// ENTRY SIGNALS
longSignal = ta.crossover(close, ema)
shortSignal = ta.crossunder(close, ema)
// TP/SL SYSTEM
var float lastSL = na
var float lastTP = na
if longSignal
lastSL := close * (1 - sl_pips/100)
lastTP := close + (close - lastSL) * riskRR
if shortSignal
lastSL := close * (1 + sl_pips/100)
lastTP := close - (lastSL - close) * riskRR
// DISPLAY
if showTP_SL and not na(lastSL)
line.new(bar_index-1, lastSL, bar_index, lastSL, color=color.red)
label.new(bar_index, lastSL, "SL", color=color.red)
if showTP_SL and not na(lastTP)
line.new(bar_index-1, lastTP, bar_index, lastTP, color=color.green)
label.new(bar_index, lastTP, "TP", color=color.green)
if showSignals and longSignal
label.new(bar_index, low, "BUY", color=color.green, style=label.style_label_up)
if showSignals and shortSignal
label.new(bar_index, high, "SELL", color=color.red, style=label.style_label_down)
// ALERTS
alertcondition(longSignal, "BUY Signal", "Signal d’achat détecté")
alertcondition(shortSignal, "SELL Signal", "Signal de vente détecté")
NAKED NINJA DOUBLE MACD SUPER STOC HELL 3just eye ball it on charts and you will see how it all works dedicatated to an OG
Support Line [by rukich]🟠 OVERVIEW
The indicator displays a floating line that acts as a support level. It's important to remember that any support level can be broken.
🟠 COMPONENTS
The indicator is based on the percentage difference between the closes of the n-th bar back and the current bar. The resulting percentage is smoothed to remove noise.
The indicator is displayed as a green-red line (the colors don’t carry meaning — they are used just for visual variety). When the price touches the support level, the bar background turns green.
For convenience, there is a label on the right side of the indicator showing the current value of the line.
🟠 HOW TO USE
The indicator includes several settings that can be adjusted, though optimal defaults are provided.
Settings:
Timeframe — specifies which timeframe’s data is used to calculate the line.
Candles back — specifies how many bars back from the current one are used.
The indicator should be used according to general support-zone logic. Since no support zone guarantees a price bounce, the optimal approach is to confirm the reaction after the price touches the line.
Example of use:
In the current example, the Timeframe in the indicator settings is set to 1 hour, and the currently open chart is 5 minutes. This means that on the 5-minute chart we see a 1-hour line. After the price touches the support line, you need to see a confirmation of the reaction to understand whether the support zone is holding the price.
In the examples, reaction confirmation is shown through: the formation of an M5 shift and the invalidation of an FVG M5- (the latter is more risky than the M5 shift):
🟠 CONCLUSION
The indicator shows a floating support zone, and when tested, you should confirm the reaction on a lower timeframe.
Wyckoff — True Composite Man (v6)⭐ Wyckoff — True Composite Man (v6)
Description (Copy/Paste for Publishing)
Wyckoff — True Composite Man (v6) is a full market-structure engine designed to detect authentic Wyckoff accumulation and distribution events directly on the chart.
It combines volume analysis, range expansion, structural pivots, and contextual pattern logic to identify the actions of the “Composite Man” with high accuracy.
This script tracks volatility spikes, range climaxes, structural breaks, and major Wyckoff events — without repainting — and visually marks each phase or event in real-time.
Detected Wyckoff Events
✔ SC — Selling Climax
✔ AR — Automatic Rally
✔ PS — Preliminary Support
✔ SPRING — Shakeout / Bear Trap
✔ UT — Upthrust (Distribution Trap)
✔ SOS — Sign of Strength
✔ LPS — Last Point of Support / Supply
Each event includes spacing logic to avoid duplicates and ensure only meaningful signals are shown.
How It Works
• Volume spikes identified using a moving average multiplier
• Range climaxes measured against dynamic range MA
• Structural context using 50-bar highs/lows
• Background phases (optional) based on Wyckoff logic
• Auto-labeling with smart bar spacing
• Optional triangle markers for climaxes
Use Cases
• Identifying accumulation/distribution zones
• Detecting Springs, UTADs, and climaxes
• Recognizing early trend reversals
• Confirming Wyckoff events during live price action
• Helping traders spot manipulative “Composite Man” footprints
Best For
• Intraday traders
• Swing traders
• Anyone using Wyckoff methodology
• Traders who want clean, objective event detection
This is a complete Wyckoff toolset built for real-time structural clarity.
rahulp33It is a 15-min high-low for the day; this will help the fellow chartist understand a trend emerging for the day. This indicator, along with others, gives a general sense of the daily trend, but it's not the sole factor to consider.
EMA Percent Angle & Slope VisualizerEMA Percent Angle & Slope Visualizer is a powerful trend-strength tool that measures the true geometric slope of an EMA using percent-normalized angle calculations.
Unlike raw angle or ATR-based angle methods, this indicator uses the formula:
angle = atan( (EMA_t - EMA_(t-1)) / EMA_(t-1) ) * (180 / pi)
This gives you a universal slope measurement that works across stocks, indices, currencies, and crypto — regardless of price scale.
🔍 Features
Percent-normalized EMA angle for accurate trend strength
Auto-detected slope segments
Dynamic EMA color
🟢 Bullish slope
🔴 Bearish slope
⚪ Neutral (angle below threshold)
Dashed slope lines drawn only during valid slope runs
Angle label displayed at slope end
Works on any timeframe
Designed for momentum traders, trend followers, breakout traders, and algo developers
📌 Why Percent-Normalized Angle?
Raw price angle is meaningless because angles depend on chart scaling.
Percent-normalized angle gives a true slope, equal across all instruments.
✔ Tip
Slopes above +0.15° and below –0.15° represent strong trend phases for Nifty.
Adjust threshold for your timeframe according to your script
Psychological levels [Kodologic] Psychological levels
Markets are not random, they are driven by human psychology and algorithmic order flow. A well-known phenomenon in trading is the "Whole Number Bias" — the tendency for price to react significantly at clean, round numbers (e.g., Bitcoin at $95,000 or EURUSD at 1.0500).
Manually drawing horizontal lines at every round number is tedious, clutters your object tree, and distracts you from analyzing price action.
Psychological levels Numbers is a workflow utility designed to solve this problem. It automatically projects a clean, customizable grid of key price levels onto your chart, helping you instantly identify areas where liquidity and orders are likely to cluster.
Why This Indicator Helps Traders :
Professional traders know that "00" and "50" levels act as magnets for price. Here is how this tool assists in your analysis:
1. Institutional Footprints : Large institutions and bank algorithms often execute orders at whole numbers to simplify accounting. This script highlights these potential liquidity zones automatically.
2. Support & Resistance Discovery: You will often notice price wicking or reversing exactly on these grid lines. This helps in spotting natural support and resistance without needing complex technical analysis.
3. Cognitive Load Reduction: Instead of calculating where the next "major level" is, the grid is visually present, allowing you to focus on candlestick patterns and market structure.
Features :
Dynamic Calculation : The grid updates automatically as price moves, you never have to redraw lines.
Zero Clutter : The lines are drawn using code, meaning they do not appear in your manual drawing tools list or clutter your object tree.
Fully Customizable Step : You define what constitutes a "Round Number" for your specific asset class (Forex, Crypto, Indices, or Stocks).
Visual Control : Adjust line styles (Solid, Dotted, Dashed), colors, and transparency to keep your chart aesthetic and readable.
How to Use in Your Strategy :
1. Target Setting (Take Profit)
If you are in a long position, use the next upper grid line as a logical Take Profit area. Price often gravitates toward these whole numbers before reversing or consolidating.
2. Stop Loss Placement
Avoid placing Stop Losses exactly on a round number, as these are often "stop hunted." Instead, use the grid to visualize the level and place your stop slightly *below* or *above* the round number for better protection.
3. Confluence Trading
Do not use these lines in isolation. Look for Confluence :
Example: If a Fibonacci 61.8% level lines up exactly with a Round Number grid line, that level becomes a high-probability reversal zone.
Settings Guide (Important)
Since every asset is priced differently, you must adjust the "levels Step Size" to match your instrument:
Forex (e.g., EURUSD, GBPUSD): Set Step Size to `0.0050` (50 pips) or `0.0100` (100 pips).
Crypto (e.g., BTCUSD): Set Step Size to `500` or `1000`.
Indices (e.g., US30, SPX500): Set Step Size to `100` or `500`.
Gold (XAUUSD):** Set Step Size to `10`.
Disclaimer: This tool is for educational and visual aid purposes only. It does not provide buy or sell signals. Always manage your risk.
SPY Key LevelsUse Case
Do you belong to a group of traders that post key levels based on their technical analysis to be utilized for trading opportunities? The goal of this indicator is to reduce your daily prep time by allowing you to paste in the actual level values instead of trying to manually create each of the horizontal lines.
How it works
Simply enter the values of the key levels that you would like to plot horizontal lines for
Settings
You can enable/disable any of the levels
You can change the colors of the levels
You can add Previous Day High and Previous Day Low levels to the chart
Limitations
Currently the levels (besides PDH/PDL) are hardcoded to only display for the SPY security "AMEX:SPY"
// Terms \\
Feel free to use the script, If you do use the script could you please just tag me as I am interested to see how people are using it. Good Luck!
Tomo's Pivots // last W, last M, last Q, last30d, last90d.These are pivots that you can use to look back at various time periods to find magnetic Price points of support and resistance. There are: weekly, last 30 days, last month, last 90 days, and last quarter. You can change the color and style of every indicator and its label. So if it happens to be November 29 today, you will see the last 90 days representing 90 days before November 29. But you will also see last quarter which represents from July 1 to September 30. These values are fair value equilibrium price point by averaging the high low and close of that time period. Weekly is great for intraday trading and the last 30 is great for momentum. Consider using the monthly for swing trading. Stay in the green.
Highlight 6-7 PM (IST) candle + mark H/L (Hourly)📌 Highlight 6–7 PM Candle (IST) + High/Low Lines (No Labels)
This indicator automatically detects the 6:00–7:00 PM candle (IST) on the hourly timeframe and visually marks it on the chart.
It highlights the candle and draws horizontal High and Low levels without any labels—making the chart clean and easy to read.
✅ Features
Highlights the 6–7 PM hourly candle (timezone adjustable: IST/UTC/Exchange).
Draws high & low horizontal lines from the target candle.
Option to extend the lines for a selected number of bars.
Optional restriction to only show on 1-hour timeframe.
Clean design — no labels, no clutter.
🛠️ Inputs
Timezone (default: Asia/Kolkata)
Target Hour (default: 18 = 6 PM)
Highlight Color
High/Low Line Colors
Line Extension Length
Enable/Disable Hourly-only Mode
🎯 Use Case
Useful for traders who track post-market candles, volatility behavior, range levels, or want to build intraday strategies based on evening session highs/lows.
Ben D"s IndicatorIt Auto Draws and Detects, Channels draws buy and sell signals based on over bought, oversold and a few other indicators. It works on all time frames! Enjoy! Leave a comment if you like it.
Trendshift [CHE] StrategyTrendshift Strategy — First-Shift Structural Regime Trading
Profitfactor 2,603
Summary
Trendshift Strategy implements a structural regime-shift trading model built around the earliest confirmed change in directional structure. It identifies major swing highs and lows, validates breakouts through optional ATR-based conviction, and reacts only to the first confirmed shift in each direction. After a regime reversal, the strategy constructs a premium and discount band between the breakout candle and the previous opposite swing. This band is used as contextual bias and may optionally inform stop placement and position sizing.
The strategy focuses on clear, interpretable structural events rather than continuous signal generation. By limiting entries to the first valid shift, it reduces false recycles and allows the structural state to stabilize before a new trade occurs. All signals operate on closed-bar logic, and the strategy avoids higher-timeframe calls to stabilize execution behavior.
Motivation: Why this design?
Many structure-based systems repeatedly trigger as price fluctuates around prior highs and lows. This often leads to multiple flips during volatile or choppy conditions. Trendshift Strategy addresses this problem by restricting execution to the first confirmed structural event in each direction. ATR-based filters help differentiate genuine structural breaks from noise, while the contextual band ensures that the breakout is meaningful in relation to recent volatility.
The design aims to represent a minimalistic structural trading framework focused on regime turns rather than continuous trend signaling. This reduces chart noise and clarifies where the market transitions from one regime to another.
What’s different vs. standard approaches?
Baseline reference
Typical swing-based structure indicators report every break above or below recent swing points.
Architecture differences
First-shift-only regime logic that blocks repeated signals until direction reverses
ATR-filtered validation to avoid weak or momentum-less breaks
Premium and discount bands derived from breakout structure
Optional band-driven stop placement
Optional band-dependent position-sizing factor
Regime timeout system to neutralize structure after extended inactivity
Persistent-state architecture to prevent re-triggering
Practical effect
Only the earliest actionable structure change is traded
Fewer but higher-quality signals
Premium/discount tint assists contextual evaluation
Stops and sizing can be aligned with structural context rather than arbitrary volatility measures
Improved chart interpretability due to reduced marker frequency
How it works (technical)
The algorithm evaluates symmetric swing points using a fixed bar window. When a swing forms, its value and bar index are stored as persistent state. A structural shift occurs when price closes beyond the most recent major swing on the opposite side. If ATR filtering is enabled, the breakout must exceed a volatility-scaled distance to prevent micro-breaks from firing.
Once a valid shift is confirmed, the regime is updated to bullish or bearish. The script records the breakout level, the opposite swing, and derives a band between them. This band is checked for minimum size relative to ATR to avoid unrealistic contexts.
The first shift in a new direction generates both the strategy entry and a visual marker. Additional shifts in the same direction are suppressed until a reversal occurs. If a timeout is enabled, the regime resets after a specified number of bars without structural change, optionally clearing the band.
Stop placement, if enabled, uses either the opposite or same band edge depending on configuration. Position size is computed from account percentage and may optionally scale with the price-span-to-ATR relationship.
Parameter Guide
Market Structure
Swing length (default 5): Controls swing sensitivity. Lower values increase responsiveness.
Use ATR filter (default true): Requires breakouts to show momentum relative to ATR. Reduces false shifts.
ATR length (default 14): Volatility estimation for breakout and band validation.
Break ATR multiplier (default 1.0): Required breakout strength relative to ATR.
Premium/Discount Framework
Enable framework (default true): Activates premium/discount evaluation.
Persist band on timeout (default true): Keeps structural band after timeout.
Min band ATR mult (default 0.5): Rejects narrow bands.
Regime timeout bars (default 500): Neutralizes regime after inactivity.
Invert colors (default false): Color scheme toggle.
Visuals
Show zone tint (default true): Background shade in premium or discount region.
Show shift markers (default true): Display first-shift markers.
Execution and Risk
Risk per trade percent (default 1.0): Determines position size as account percentage.
Use band for size (default false): Scales size relative to band width behavior.
Flat on opposite shift (default true): Forces reversal behavior.
Use stop at band (default false): Stop anchored to band edges.
Stop band side: Chooses which band edge is used for stop generation.
Reading & Interpretation
A green background indicates discount conditions within the structural band; red indicates premium conditions. A green triangle below price marks the first bullish structural shift after a bearish regime. A red triangle above price marks the first bearish structural shift after a bullish regime.
When stops are active, the opposite band edge typically defines the protective level. Band width relative to ATR indicates how significant a structural change is: wider bands imply stronger volatility structure, while narrow bands may be suppressed by the minimum-size filter.
Practical Workflows & Combinations
Trend following: Use first-shift entries as initial regime confirmation. Add higher-timeframe trend filters for additional context.
Swing trading: Combine with simple liquidity or fair-value-gap concepts to refine entries.
Bias mapping: Use higher timeframes for structural regime and lower timeframes for execution within the premium/discount context.
Exit management: When using stops, consider ATR-scaling or multi-stage profit targets. When not using stops, reversals become the primary exit.
Behavior, Constraints & Performance
The strategy uses only confirmed swings and closed-bar logic, avoiding intrabar repaint. Pivot-based swings inherently appear after the pivot window completes, which is standard behavior. No higher-timeframe calls are used, preventing HTF-related repaint issues.
Persistent variables track regime and structural levels, minimizing recomputation. The maximum bars back setting is five-thousand. The design avoids loops and arrays, keeping performance stable.
Known limitations include limited signal density during consolidations, delayed swing confirmation, and sensitivity to extreme gaps that stretch band logic. ATR filtering mitigates some of these effects but does not eliminate them entirely.
Sensible Defaults & Quick Tuning
Fewer but stronger entries: Increase swing length or ATR breakout multiplier.
More responsive entries: Reduce swing length to capture earlier shifts.
More active band behavior: Lower the minimum band ATR threshold.
Stricter stop logic: Use the opposite band edge for stop placement.
Volatile markets: Increase ATR length slightly to stabilize behavior.
What this indicator is—and isn’t
Trendshift Strategy is a structural-regime trading engine that evaluates major directional shifts. It is not a complete trading system and does not include take-profit logic or prediction features. It does not attempt to forecast future price movement and should be used alongside broader market structure, volatility context, and disciplined risk management.
Disclaimer
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
TQQQ Ultra Clean Trend Strategy⭐ TradingView Script Description (Layman Friendly, Polished, Professional)
TQQQ Ultra Clean Trend Strategy
This strategy is designed to make trend-following simple and easy to understand, even for beginners.
It looks at three basic conditions to decide when to buy and when to sell, using only price action and two moving averages.
🔵 Buy Logic (in simple English)
The strategy generates a Buy when:
Price is moving upward (above the 50-day average)
The overall trend is healthy (50-day average above the 250-day average)
Strength is increasing (momentum is positive)
In plain words:
👉 “Price is climbing strongly, buyers are in control, and the trend is pointing upward.”
Only when all three conditions agree do we buy.
🔴 Sell Logic (in simple English)
A Sell happens when any of these warning signs appear:
Price starts to fall below the short-term trend
The trend begins to weaken
Momentum turns negative
In plain words:
👉 “Price is starting to drop, the up-move is losing strength, and the trend may be ending.”
This helps lock in gains when the market starts showing weakness.
🟢 Why this strategy is clean and easy to read
Only small text labels appear on the chart (“Buy: Price climbing strongly” / “Sell: Price starting to drop”)
No clutter, no shapes, no background boxes
Makes it easy to visually understand why a trade happened
Uses only reliable long-term signals to avoid noise
Perfect for trending instruments like TQQQ
Super-AO with Risk Management Strategy Template - 11-29-25Super-AO Strategy with Advanced Risk Management Template
Signal Lynx | Free Scripts supporting Automation for the Night-Shift Nation 🌙
1. Overview
Welcome to the Super-AO Strategy. This is more than just a buy/sell indicator; it is a complete, open-source Risk Management (RM) Template designed for the Pine Script community.
At its core, this script implements a robust swing-trading strategy combining the SuperTrend (for macro direction) and the Awesome Oscillator (for momentum). However, the real power lies under the hood: a custom-built Risk Management Engine that handles trade states, prevents repainting, and manages complex exit conditions like Staged Take Profits and Advanced Adaptive Trailing Stops (AATS).
We are releasing this code to help traders transition from simple indicators to professional-grade strategy structures.
2. Quick Action Guide (TL;DR)
Best Timeframe: 4 Hours (H4) and above. Designed for Swing Trading.
Best Assets: "Well-behaved" assets with clear liquidity (Major Forex pairs, BTC, ETH, Indices).
Strategy Type: Trend Following + Momentum Confirmation.
Key Feature: The Risk Management Engine is modular. You can strip out the "Super-AO" logic and insert your own strategy logic into the template easily.
Repainting: Strictly Non-Repainting. The engine calculates logic based on confirmed candle closes.
3. Detailed Report: How It Works
A. The Strategy Logic: Super-AO
The entry logic is based on the convergence of two classic indicators:
SuperTrend: Determines the overall trend bias (Green/Red).
Awesome Oscillator (AO): Measures market momentum.
The Signal:
LONG (+2): SuperTrend is Green AND AO is above the Zero Line AND AO is Rising.
SHORT (-2): SuperTrend is Red AND AO is below the Zero Line AND AO is Falling.
By requiring momentum to agree with the trend, this system filters out many false signals found in ranging markets.
B. The Risk Management (RM) Engine
This script features a proprietary State Machine designed by Signal Lynx. Unlike standard strategies that simply fire orders, this engine separates the Signal from the Execution.
Logic Injection: The engine listens for a specific integer signal: +2 (Buy) or -2 (Sell). This makes the code a Template. You can delete the Super-AO section, write your own logic, and simply pass a +2 or -2 to the RM_EngineInput variable. The engine handles the rest.
Trade States: The engine tracks the state of the trade (Entry, In-Trade, Exiting) to prevent signal spamming.
Aggressive vs. Conservative:
Conservative Mode: Waits for a full trend reversal before taking a new trade.
Aggressive Mode: Allows for re-entries if the trend is strong and valid conditions present themselves again (Pyramiding Type 1).
C. Advanced Exit Protocols
The strategy does not rely on a single exit point. It employs a "Layered Defense" approach:
Hard Stop Loss: A fixed percentage safety net.
Staged Take Profits (Scaling Out): The script allows you to set 3 distinct Take Profit levels. For example, you can close 10% of your position at TP1, 10% at TP2, and let the remaining 80% ride the trend.
Trailing Stop: A standard percentage-based trailer.
Advanced Adaptive Trailing Stop (AATS): This is a highly sophisticated volatility stop. It calculates market structure using Hirashima Sugita (HSRS) levels and Bollinger Bands to determine the "floor" and "ceiling" of price action.
If volatility is high: The stop loosens to prevent wicking out.
If volatility is low: The stop tightens to protect profit.
D. Repainting Protection
Many Pine Script strategies look great in backtesting but fail in live trading because they rely on "real-time" price data that disappears when the candle closes.
This Risk Management engine explicitly pulls data from the previous candle close (close , high , low ) for its calculations. This ensures that the backtest results you see match the reality of live execution.
4. For Developers & Modders
We encourage you to tear this code apart!
Look for the section titled // Super-AO Strategy Logic.
Replace that block with your own RSI, MACD, or Price Action logic.
Ensure your logic outputs a 2 for Buy and -2 for Sell.
Connect it to RM_EngineInput.
You now have a fully functioning Risk Management system for your custom strategy.
5. About Signal Lynx
Automation for the Night-Shift Nation 🌙
This code has been in action since 2022 and is a known performer in PineScript v5. We provide this open source to help the community build better, safer automated systems.
If you are looking to automate your strategies, please take a look at Signal Lynx in your search.
License: Mozilla Public License 2.0 (Open Source). If you make beneficial modifications, please release them back to the community!
Mean-Reversion with CooldownThis strategy requires no indicators or fundamental analysis. It is designed for longer-term positions and works especially well on unleveraged instruments with strong long-term upward trends, such as precious metals. Feel free to experiment with different timeframes — I’ve found that 1-hour charts work particularly well for cryptocurrencies.
The idea is to filter out ongoing bear phases as effectively as possible and capitalize on long-term bull runs.
The script implements an idea that came to me in a state of complete sleep deprivation: open a random long position with a fixed take-profit (TP) and a tight stop-loss (SL).
If the TP is hit — great, we simply try again.
If the SL is triggered — too bad, we pause for a while and then try again.
## Cooldown (Waiting) Mechanism
The waiting mechanism is simple: the more consecutive SL hits we get, the longer we wait before opening the next trade. The waiting time is measured in closed candles, and thus depends on the timeframe you are using.
## Two cooldown calculation modes are currently supported:
### 1. FIBONACCI
The cooldown follows the Fibonacci sequence, based on the number of consecutive losses:
1st loss → wait 1 bar
2nd loss → wait 1 bar
3rd loss → wait 2 or 3 bars (depending on definition)
4th loss → wait 3 or 5 bars
etc.
### 2. POWER OF TWO
The cooldown increases exponentially:
1st loss → wait 2 bars
2nd loss → wait 4 bars
3rd loss → wait 8 bars
4th loss → wait 16 bars
and so on, using the formula 2ⁿ.
## Configurable Parameters
### Cooldown Pause Calculation
The settings allow you to define the SL and TP as percentages of the position value.
The "Cooldown Pause Calculation" option determines how the next cooldown duration is computed after a losing trade.
The system keeps track of how many consecutive losses have occurred since the last profitable trade. That counter is then used to compute how many bars we must wait before opening the next position.
### Maximum Cooldown
The "Max Cooldown Candles" setting defines the maximum number of bars we are allowed to wait before placing a new trade. This prevents the strategy from “locking itself out” for too long and mitigates the fear of missing out (FOMO).
Once the cooldown duration reaches this maximum, the system essentially wraps around and starts the progression again. In the script, this is handled using a simple modulo operation based on the chosen maximum.
V Stop MTF → STRATEGY Why this strategy works so well (your backtest proves it):
FeatureBenefitMulti-timeframe Volatility StopSmarter trend detection than single TFRepainting controlYou can choose safe non-repainting modeLimbo/breach detectionAvoids whipsaws during HTF conflictsReversing systemAlways in the market → captures all trendsCandle coloring on reversalInstant visual confirmation
Recommended settings that match your +17.33% result:
Symbol: SP:SPX or ES1!
Timeframe: 9min or 15min Heikin-Ashi
HTF: "Multiple Of Current TF" × 3 → gives ~45min on 15min chart
ATR Length: 20
ATR Factor: **2.0






















