Best SMA FinderThis script, Best SMA Finder, is a tool designed to identify the most robust simple moving average (SMA) length for a given chart, based on historical backtest performance. It evaluates hundreds of SMA values (from 10 to 1000) and selects the one that provides the best balance between profitability, consistency, and trade frequency.
What it does:
The script performs individual backtests for each SMA length using either "Long Only" or "Buy & Sell" logic, as selected by the user. For each tested SMA, it computes:
- Total number of trades
- Profit Factor (total profits / total losses)
- Win Rate
- A composite Robustness Score, which integrates Profit Factor, number of trades (log-scaled), and win rate.
Only SMA configurations that meet the user-defined minimum trade count are considered valid. Among all valid candidates, the script selects the SMA length with the highest robustness score and plots it on the chart.
How to use it:
- Choose the strategy type: "Long Only" or "Buy & Sell"
- Set the minimum trade count to filter out statistically irrelevant results
- Enable or disable the summary stats table (default: enabled)
The selected optimal SMA is plotted on the chart in blue. The optional table in the top-right corner shows the corresponding SMA length, trade count, Profit Factor, Win Rate, and Robustness Score for transparency.
Key Features:
- Exhaustive SMA optimization across 991 values
- Customizable trade direction and minimum trade filters
- In-chart visualization of results via table and plotted optimal SMA
- Uses a custom robustness formula to rank SMA lengths
Use cases:
Ideal for traders who want to backtest and auto-select a historically effective SMA without manual trial-and-error. Useful for swing and trend-following strategies across different timeframes.
📌 Limitations:
- Not a full trading strategy with position sizing or stop-loss logic
- Only one entry per direction at a time is allowed
- Designed for exploration and optimization, not as a ready-to-trade system
This script is open-source and built entirely from original code and logic. It does not replicate any closed-source script or reuse significant external open-source components.
Simple Moving Average (SMA)
Dskyz (DAFE) GENESIS Dskyz (DAFE) GENESIS: Adaptive Quant, Real Regime Power
Let’s be honest: Most published strategies on TradingView look nearly identical—copy-paste “open-source quant,” generic “adaptive” buzzwords, the same shallow explanations. I’ve even fallen into this trap with my own previously posted strategies. Not this time.
What Makes This Unique
GENESIS is not a black-box mashup or a pre-built template. It’s the culmination of DAFE’s own adaptive, multi-factor, regime-aware quant engine—built to outperform, survive, and visualize live edge in anything from NQ/MNQ to stocks and crypto.
True multi-factor core: Volume/price imbalances, trend shifts, volatility compression/expansion, and RSI all interlock for signal creation.
Adaptive regime logic: Trades only in healthy, actionable conditions—no “one-size-fits-all” signals.
Momentum normalization: Uses rolling, percentile-based fast/slow EMA differentials, ALWAYS normalized, ALWAYS relevant—no “is it working?” ambiguity.
Position sizing that adapts: Not fixed-lot, not naive—not a loophole for revenge trading.
No hidden DCA or pyramiding—what you see is what you trade.
Dashboard and visual system: Directly connected to internal logic. If it’s shown, it’s used—and nothing cosmetic is presented on your chart that isn’t quantifiable.
Inputs and What They Mean (Read Carefully)
📊 Main Signal Inputs
Maximum Raw Score: How many distinct factors can contribute to regime/trade confidence (default 4). If you extend the quant logic, increase this.
RSI Length / Min RSI for Shorts / Max RSI for Longs: Fine-tunes how “overbought/oversold” matters; increase the length for smoother swings, tighten floors/ceilings for more extreme signals.
⚡ Regime & Momentum Gates
Min Normed Momentum/Score (Conf): Raise to demand only the strongest trends—your filter to avoid algorithmic chop.
🕒 Volatility & Session
ATR Lookback, ATR Low/High Percentile: These control your system’s awareness of when the market is dead or ultra-volatile. All sizing and filter logic adapts in real time.
Trading Session (hours): Easy filter for when entries are allowed; default is regular trading hours—no surprise overnight fills.
📊 Sizing & Risk
Max Dollar Risk / Base-Max Contracts: All sizing is adaptive, based on live regime and volatility state—never static or “just 1 contract.” Control your max exposures and real $ risk.
🔄 Exits & Scaling
Stop/Trail/Scale multipliers: You choose how dynamic/flexible risk controls and profit-taking need to be. ATR-based, so everything auto-adjusts to the current market mode.
Visuals That Actually Matter
Dashboard (Top Right): Shows only live, relevant stats: scoring, status, position size, win %, win streak, total wins—all from actual trade engine state (not “simulated”).
Watermark (Bottom Right): Momentum bar visual is always-on, regime-aware, reflecting live regime confidence and momentum normalization. If the bar is empty, you’re truly in no-momentum. If it glows lime, you’re riding the strongest possible edge.
*No cosmetics, no hidden code distractions.
Why It Wins
While others put out “AI-powered” strategies with little logic or soul, GENESIS is ruthlessly practical. It is built around what keeps traders alive:
- Context-aware signals, not just patterns
- Tight, transparent risk
- Inputs that adapt, not confuse
- Visuals that clarify, not distract
- Code that runs clean, efficient, and with minimal overfitting risk (try it on QQQ, AMD, SOL, etc. out of the box)
Disclaimer (for TradingView compliance):
Trading is risky. Futures, stocks, and crypto can result in significant losses. Do not trade with funds you cannot afford to lose. This is for educational and informational purposes only. Use in simulation/backtest mode before live trading. No past performance is indicative of future results. Always understand your risk and ownership of your trades.
Personal Note to Mods and Traders:
Yes, this statement is DIFFERENT, because this script IS different. If you see this taken down for some technicality (charting labels etc.), know I will fix, adapt, and repost until the system and its truth are visible to the community.
This will not be my last—my goal is to keep raising the bar until DAFE is a brand or I’m forced to take this private.
Use with discipline, use with clarity, and always trade smarter.
— Dskyz, powered by DAFE Trading Systems.
50 & 200 SMA Death CrossSimple 50 and 200 Simple Moving Average Script with customizations. You can use these on the Daily Timeframe to confirm the "Death Cross" when trading Bitcoin. Right before the "Death Cross" happens the price usually dumps, and Right as they cross the price usually pumps. (Bitcoin must be in a bull market already)
Created by: Dan Heilman (www.youtube.com)
Golden & Death CrossThis indicator highlights Golden Cross and Death Cross signals based on customizable moving averages. It is ideal for swing traders and trend-following strategies across various timeframes.
🔍 Features:
Customizable moving average types: Choose between Simple Moving Average (SMA) and Exponential Moving Average (EMA)
Flexible MA lengths: Default 50/200, but can be adjusted to any short/long period (e.g., 9/21 for crypto)
Clear visual markers: Plots labels directly on the chart where crossovers occur
Alert support: Built-in alerts for Golden and Death Cross events
Overlay-enabled: MAs and signals display directly over price action
📈 Signal Logic:
Golden Cross = Short MA crosses above Long MA → bullish signal
Death Cross = Short MA crosses below Long MA → bearish signal
Common configurations:
50/200 EMA → Long-term trend shifts
9/21 EMA → Short-term momentum
🔔 Alerts:
You can create alerts using:
Golden Cross Alert: Triggers on bullish crossover
Death Cross Alert: Triggers on bearish crossover
✅ Use Cases:
Spot major trend shifts
Confirm entry/exit points with moving average dynamics
Combine with volume, RSI, or other filters for advanced strategies
Notes:
This is a basic yet powerful crossover tool. For more advanced filtering, trend confirmation, or backtesting logic, feel free to clone and expand it.
Questions or suggestions? Leave a comment or fork the script for your own use.
All‑MA Crossover + analyzer + risk Management [quantotc]🔍 Overview
All‑MA Trend Analyzer + Risk Management is a full-featured, multi-purpose trend and crossover system that lets you compare 8 different moving average types, visualize their alignment across timeframes, and apply robust risk management strategies — all in one powerful tool.
🧠 What Makes This Indicator Unique?
🔄 8 Moving Average Types — Easily switch between SMA, EMA, WMA, VWMA, HMA, RMA, SMMA, and TMA.
🟢 Signal Clarity — Buy/Sell labels appear on fast/slow MA crossovers.
📊 Dual Analysis Tables
Top-right: Multi-timeframe crossover trends (15m, 1h, 4h, Daily)
Bottom-right: MA type trends on current timeframe (Bull/Bear)
⚙️ Risk Management
Supports fixed SL/TP or trailing stop-loss
Works in % or Points
Visual SL/TP/TSL exit labels with separate alerts
🎯 How to Use
Select your desired MA Type (e.g., TMA, VWMA, etc.)
Adjust Fast/Slow Lengths depending on your strategy
Enable Long/Short entries as needed
Choose SL/TP Mode: Points or Percentage
Enable Trailing Stop for dynamic protection
Each feature is grouped and labeled with tooltips in the settings panel for clarity.
🖼 Visual Aids
A TMA Bull signal
Table-based trend analysis
Buy label clarity
Sell label clarity
Exit label on Take Profit
Exit label on Stop Loss
Trailing Stop Loss Exit
🚨 Alerts Included
BUY / SELL
TAKE PROFIT
STOPLOSS
TRAILING STOPLOSS
Each is customizable in the settings.
👤 Developer Info
Developer: quantotc
Website: quantotc.com
YouTube:https://youtube.com/@quantotc
Tags: multi timeframe, crossover, risk management, all MA, trailing stop, bullish bearish, trend table, strategy builder
⚠️ Disclaimer
This script is for educational purposes only. No guarantee of profitability. Always backtest and use proper risk management.
BLCKBOX Moving Average RibbonThe BLCKBOX Moving Average Ribbon is a simple moving average ribbon overlayed on the chart with the following timeframes;
7, 21, 42, 90, 180, 365
I hope you find this indicator useful. I have released several indicators that can be used in conjunction to hopefully improve your chances of making a ton of money!
BLCKBOX indicators include;
BLCKBOX Buying / Selling Sentiment
BLCKBOX MACD Indicator
BLCKBOX Relative Strength Index
BLCKBOX Crypto Bear Market Prediction
BLCKBOX Stochtastic
BLCKBOX EMA Cross Study
BLCKBOX Moving Average Ribbon
If you find this or any other indicator useful and wish to show your gratitude, you may!
Doge
DJwW7XazGk2R8nXjt8y5ydQfGKYSz3XV3h
Litecoin
ltc1qh8t4dmz8sugjcd5unn0g49985u0tz5gs6kf98y
Bitcoin
bc1q0deh9t9w9tm3qgd3npn7965rzel35qumez7m5v
Ethereum
0xa23a7bbde03ea31f5cce4b115c8ef1ea8bc9f467
Pepe
Pr7DZSXKwVGv7LYhRQ9oSuuWxUecc3Dvwq
SMAs (8,21,33,55,233) by lharsha5 SMA's in one indicator, rather than using seperate indicators for each moving average
SMA & EMA Lines//@version=6
indicator("SMA & EMA Lines", shorttitle="FattyPockets-SMAD", overlay=true)
//── Inputs ───────────────────────────────────────────────────────
src = input.source(close, "Source for Price")
len7 = input.int(7, "SMA Length 7", minval=1)
len25 = input.int(25, "SMA Length 25", minval=1)
len50 = input.int(50, "SMA Length 50", minval=1)
len99 = input.int(99, "SMA Length 99", minval=1)
len200 = input.int(200, "SMA Length 200", minval=1)
lenEma = input.int(20, "EMA Length 20", minval=1)
//── Visibility Toggles ────────────────────────────────────────────
show7 = input.bool(true, "Show SMA 7")
show25 = input.bool(true, "Show SMA 25")
show50 = input.bool(true, "Show SMA 50")
show99 = input.bool(true, "Show SMA 99")
show200 = input.bool(true, "Show SMA 200")
showEma = input.bool(true, "Show EMA 20")
//── Price Series ────────────────────────────────────────────────
price = request.security(syminfo.tickerid, timeframe.period, src)
//── Moving Averages ─────────────────────────────────────────────
sma7 = ta.sma(price, len7)
sma25 = ta.sma(price, len25)
sma50 = ta.sma(price, len50)
sma99 = ta.sma(price, len99)
sma200 = ta.sma(price, len200)
ema20 = ta.ema(price, lenEma)
//── Plots ───────────────────────────────────────────────────────
// note: titles must be constant strings in v6, so we hard-code them
plot(show7 ? sma7 : na, "SMA 7", color=color.orange, linewidth=2)
plot(show25 ? sma25 : na, "SMA 25", color=color.blue, linewidth=2)
plot(show50 ? sma50 : na, "SMA 50", color=color.green, linewidth=2)
plot(show99 ? sma99 : na, "SMA 99", color=color.purple, linewidth=2)
plot(show200 ? sma200 : na, "SMA 200", color=color.white, linewidth=2)
plot(showEma ? ema20 : na, "EMA 20", color=color.maroon, linewidth=2)
EMA Break & Retest + Trend TableA technical analysis tool that:
Detects EMA break & retest setups
Filters signals using higher timeframe trends
Shows buy/sell signals on the chart
Displays a trend table for multiple timeframes
sMA200 w/ voL FiLL //JiTNyC]A visually appealing "Trend" indicator that displays the 200 SMA... Blue & Gray have been swapped out for traditional Green & Red. The shading on both sides corresponds to the volume. The lighter the shade, the closer to a reversal. Created for any ticker via NYSE & works on any timeframe.
Color Changing MAs📌 Indicator: Color Changing Moving Averages
This script plots up to four customizable moving averages, each with dynamic color changes based on price positioning and optional RSI filtering.
🧩 Key Features:
✅ 4 independent moving averages (SMA or EMA)
✅ Custom inputs for:
Length
Source (e.g. close, OHLC4, etc.)
Offset
Bullish/Bearish color
✅ Toggle visibility for each MA
✅ Global RSI filter to enhance trend signals:
User-defined RSI length
Adjustable Bullish/Bearish thresholds
Universal neutral color for flat/unclear momentum
✅ Global timeframe control — all MAs and RSI are calculated on a single timeframe of your choice (e.g. D, W, M)
🎯 Color Logic:
Bullish color = MA is below both open and close, and RSI is above threshold
Bearish color = MA is above both open and close, and RSI is below threshold
Neutral gray = MA is trending but RSI contradicts the move (filtered out)
🛠️ Use Cases:
Spot trend changes with visual clarity
Identify pullbacks within strong RSI-confirmed trends
Apply higher-timeframe signals while on lower-timeframe charts
⚠️ Notes:
This version uses request.security() to support global timeframe selection — higher timeframes on lower TF charts will display step-like behavior (as per TradingView architecture).
No smoothing/interpolation is applied to preserve raw signal accuracy.
Advanced MACD Strategy (EURUSD 5min)This is an advanced MACD-based trading strategy designed specifically for the EURUSD forex pair on the 5-minute timeframe. It combines traditional MACD crossovers with powerful trend, momentum, volume, and volatility filters to increase trade quality and reduce false signals.
Key Features:
MACD Cross + Histogram Confirmation:
Entries occur only when MACD line crosses the Signal line with supporting momentum from the MACD histogram.
200 EMA Trend Filter:
Trades are allowed only in the direction of the dominant market trend (above EMA for longs, below EMA for shorts).
Volume Filter:
Ensures entries only happen when volume is above its 20-period average, helping avoid illiquid market conditions.
ATR-Based Dynamic Risk Management:
Stop-loss set at 1× ATR from entry price.
Take-profit set at 2× ATR from entry price.
Emergency exits are triggered after 4 hours if neither TP nor SL is hit.
Trading Hours Filter:
Trades are only allowed between 01:00 and 22:00 UTC to avoid low-liquidity periods.
Fully Adjustable Inputs:
All key parameters (MACD settings, EMA length, volume lookback, ATR multipliers, session hours) can be optimized for individual preferences.
Best Use:
Ideal for active traders who prefer high-frequency trading styles.
Designed for automated execution and easy integration with external bots (such as PineConnector ).
Works best during London and New York trading sessions due to higher liquidity.
Disclaimer:
Past performance does not guarantee future results. Always backtest and forward-test on demo accounts before trading live capital. Trading forex involves substantial risk.
Express Generator StrategyExpress Generator Strategy
Pine Script™ v6
The Express Generator Strategy is an algorithmic trading system that harnesses confluence from multiple technical indicators to optimize trade entries and dynamic risk management. Developed in Pine Script v6, it is designed to operate within a user-defined backtesting period—ensuring that trades are executed only during chosen historical windows for targeted analysis.
How It Works:
- Entry Conditions:
The strategy relies on a dual confirmation approach:- A moving average crossover system where a fast (default 9-period SMA) crossing above or below a slower (default 21-period SMA) average signals a potential trend reversal.
- MACD confirmation; trades are only initiated when the MACD line crosses its signal line in the direction of the moving average signal.
- An RSI filter refines these signals by preventing entries when the market might be overextended—ensuring that long entries only occur when the RSI is below an overbought level (default 70) and short entries when above an oversold level (default 30).
- Risk Management & Dynamic Position Sizing:
The strategy takes a calculated approach to risk by enabling the adjustment of position sizes using:- A pre-defined percentage of equity risk per trade (default 1%, adjustable between 0.5% to 3%).
- A stop-loss set in pips (default 100 pips, with customizable ranges), which is then adjusted by market volatility measured through the ATR.
- Trailing stops (default 50 pips) to help protect profits as the market moves favorably.
This combination of volatility-adjusted risk and equity-based position sizing aims to harmonize trade exposure with prevailing market conditions.
- Backtest Period Flexibility:
Users can define the start and end dates for backtesting (e.g., January 1, 2020 to December 31, 2025). This ensures that the strategy only opens trades within the intended analysis window. Moreover, if the strategy is still holding a position outside this period, it automatically closes all trades to prevent unwanted exposure.
- Visual Insights:
For clarity, the strategy plots the fast (blue) and slow (red) moving averages directly on the chart, allowing for visual confirmation of crossovers and trend shifts.
By integrating multiple technical indicators with robust risk management and adaptable position sizing, the Express Generator Strategy provides a comprehensive framework for capturing trending moves while prudently managing downside risk. It’s ideally suited for traders looking to combine systematic entries with a disciplined and dynamic risk approach.
TrendCraft ICT SwiftEdge// The TrendCraft ICT SwiftEdge is a trend-following indicator that combines Simple Moving Averages (SMAs) with Inner Circle Trader (ICT) concepts, specifically Break of Structure (BOS) and Market Structure Shift (MSS), to generate precise buy and sell signals. This unique mashup leverages the strengths of trend confirmation through SMAs and market structure analysis via ICT to help traders identify high-probability trend entries. The indicator is designed to be intuitive, customizable, and suitable for traders of all levels seeking to align with market trends on various timeframes.
//
// ### What It Does
// The indicator plots two SMAs based on the high and low prices of candles to define the trend direction. It colors the SMAs and fills the area between them to visually indicate whether the price is in a bullish (above both SMAs), bearish (below both SMAs), or neutral (between SMAs) state. Simultaneously, it identifies BOS and MSS levels on a user-defined higher timeframe to confirm trend continuation or reversal points. Buy and sell signals are generated when the price closes above/below the latest BOS or MSS level (based on user preference) while also being correctly positioned relative to the SMAs, ensuring alignment with the trend.
//
// ### Why Combine SMAs and ICT?
// SMAs provide a reliable way to gauge trend direction by smoothing price data, but they can lag or generate false signals in choppy markets. ICT's BOS and MSS concepts address this by focusing on key market structure breaks, offering context for significant price movements. By requiring price to close beyond a BOS or MSS level and align with the SMA-defined trend, the TrendCraft ICT SwiftEdge filters out noise and enhances signal reliability. This combination creates a robust system that balances trend-following simplicity with structural market insights, making it ideal for trend traders.
//
// ### How to Use
// 1. **SMA Length**: Adjust the `SMA Length` (default: 20) to control the sensitivity of the SMAs. Shorter lengths react faster to price changes, while longer lengths provide smoother trends.
// 2. **Structure Timeframe**: Set the `Structure Timeframe` to a higher timeframe (e.g., "1H" on a 15M chart) to calculate BOS and MSS levels. This ensures structural signals are based on significant market moves.
// 3. **Chart Timeframe**: Select the `Chart Timeframe` to optimize pivot point calculations for your current chart (e.g., "30M" for a 30-minute chart).
// 4. **Signal Type**: Choose between "BOS" (default) for signals based on trend continuation breaks or "MSS" for signals based on potential reversal points (breakers).
// 5. **Display Options**: Enable/disable `Show Continuation (BOS)` and `Show Breaker (MSS)` to toggle the visibility of BOS and MSS lines. Customize their colors for better chart clarity.
//
// ### Signals
// - **Buy Signal**: Appears when the close price crosses above the latest BOS or MSS level (based on Signal Type) and is above both SMAs, indicating a bullish trend entry. Marked with a green "Buy" label.
// - **Sell Signal**: Appears when the close price crosses below the latest BOS or MSS level (based on Signal Type) and is below both SMAs, indicating a bearish trend entry. Marked with a red "Sell" label.
//
// ### Originality
// The TrendCraft ICT SwiftEdge stands out by integrating the trend-following reliability of SMAs with the structural precision of ICT's BOS and MSS. Unlike standalone SMA or ICT indicators, this script requires both trend alignment and structural confirmation, reducing false signals. The user-selectable Signal Type (BOS or MSS) adds versatility, allowing traders to adapt the indicator to trend-following or counter-trend strategies. Its dynamic timeframe adjustments and visual clarity make it a unique tool for traders seeking to capture trend entries with confidence.
//
// ### Notes
// - Ensure the `Structure Timeframe` is higher than your chart timeframe to avoid calculation issues.
// - Signals are generated only when the trend state changes to avoid redundant signals in the same trend direction.
// - Past performance is not indicative of future results. Always combine this indicator with other analysis and risk management techniques.
Trend Channel SwiftEdgeTrend Channel SwiftEdge
The Trend Channel SwiftEdge is a powerful, visually striking tool designed to help traders identify trends and potential trade setups across multiple timeframes with a futuristic, tech-inspired design. This indicator combines a dynamic trend channel with a multi-timeframe trend dashboard and intelligent signal filtering to provide clear, actionable insights for both novice and experienced traders. Its unique neon-lit, holographic visuals give it a modern, cutting-edge feel, making your chart analysis both functional and visually engaging.
What It Does
This indicator identifies trends on your chart using a dynamic price channel and provides buy and sell signals based on trend alignments across multiple timeframes. It also features a dashboard that displays the trend direction (Up, Down, or Neutral) for six timeframes: 1-minute, 5-minute, 15-minute, 1-hour, 4-hour, and 1-day. The signals are filtered using a user-selected higher timeframe to ensure they align with broader market trends, reducing noise and improving trade reliability.
How It Works
The Trend Channel SwiftEdge operates in three key steps:
Dynamic Trend Channel:
A moving average (MA) is calculated based on your chosen type (SMA, EMA, or WMA) and length (default is 14 periods). This MA forms the backbone of the trend channel.
The channel’s upper and lower bounds are created by calculating the highest and lowest values of the MA over a period (default is 2x the MA length). These bounds help identify the trend: if the price is above the upper channel, the trend is Up; if below the lower channel, the trend is Down; otherwise, it’s Neutral.
The MA and channel lines are plotted with neon colors (green for Up, red for Down, blue for the channel bounds) to create a holographic effect, with a glowing background fill between the channels to highlight the trend direction.
Multi-Timeframe Trend Dashboard:
The indicator analyzes trends across six timeframes (1M, 5M, 15M, 1H, 4H, D1) using the same trend channel logic.
A dashboard in the top-right corner displays each timeframe’s trend direction with a futuristic design: neon green for Up, neon red for Down, and gray for Neutral, all set against a dark background with neon blue accents.
Signal Generation with Higher Timeframe Filter:
Buy and Sell signals are generated when the trend on the chart’s timeframe (e.g., 1M) aligns with a user-selected higher timeframe (e.g., 15M).
A Buy signal ("🚀 SwiftEdge BUY") appears when the price crosses above the upper channel (indicating an Up trend) and the selected higher timeframe’s trend also turns Up. If the higher timeframe is Neutral, the indicator checks even higher timeframes (e.g., 1H and 4H for a 15M filter) to confirm the trend direction.
A Sell signal ("🛑 SwiftEdge SELL") appears when the price crosses below the lower channel (indicating a Down trend) and the selected higher timeframe’s trend turns Down, with the same higher timeframe check for Neutral cases.
Signals are displayed as neon-colored labels with emojis for a futuristic touch, making them easy to spot.
Why This Combination?
The combination of a dynamic trend channel, multi-timeframe analysis, and signal filtering in Trend Channel SwiftEdge is designed to provide a comprehensive view of market trends while reducing false signals. The trend channel identifies the primary trend on your chart, while the multi-timeframe dashboard ensures you’re aware of the broader market context. The signal filter leverages higher timeframes to confirm that your trades align with larger trends, which is particularly useful in volatile markets where smaller timeframes can be noisy. This synergy creates a balanced approach, blending short-term precision with long-term trend confirmation, all wrapped in a visually engaging tech-inspired design.
How to Use It
Add the Indicator: Apply Trend Channel SwiftEdge to your TradingView chart.
Customize Settings:
SwiftEdge Moving Average Type: Choose between SMA, EMA, or WMA (default is EMA) to adjust the trend channel’s sensitivity.
SwiftEdge MA Length: Set the period for the moving average (default is 14).
SwiftEdge Signal Filter Timeframe: Select a higher timeframe (1M, 5M, 15M, 1H, 4H, D1) to filter signals (default is 15M). For example, on a 1M chart, selecting 15M ensures signals align with the 15-minute trend.
Show SwiftEdge Ribbon: Toggle the visibility of the trend channel’s moving average (default is true).
Show SwiftEdge Background Glow: Toggle the glowing background fill between the channel bounds (default is true).
Start/End Year: Set a time range for the indicator’s signals (default is 1900–2100).
Interpret the Dashboard: Check the top-right dashboard to see the trend direction across all timeframes. Use this to understand the broader market context.
Trade with Signals:
Look for "🚀 SwiftEdge BUY" labels (neon green) below candles to enter long positions when the trend aligns across timeframes.
Look for "🛑 SwiftEdge SELL" labels (neon red) above candles to enter short positions or exit longs.
Ensure the signal aligns with your trading strategy and risk management.
What Makes It Original?
Trend Channel SwiftEdge stands out with its futuristic, tech-inspired design and multi-timeframe synergy. Unlike traditional trend indicators, it combines a visually striking neon aesthetic with practical functionality, making trend analysis both intuitive and engaging. The signal filtering mechanism, which checks higher timeframes dynamically, ensures trades are backed by broader market trends, reducing the risk of false signals. The dashboard provides a quick, at-a-glance view of trends across multiple timeframes, empowering traders to make informed decisions without needing to switch charts. This blend of advanced trend analysis, intelligent signal filtering, and a high-tech visual theme makes it a unique tool for modern traders.
Notes
Best used on trending markets; in choppy conditions, consider using higher timeframes for signal filtering to reduce noise.
Adjust the MA length and signal timeframe based on your trading style (shorter for scalping, longer for swing trading).
Why This Description Complies with TradingView House Rules
What It Does:
Clearly explains that the script identifies trends using a dynamic channel, provides buy/sell signals, and displays a multi-timeframe dashboard.
How It Does It:
Breaks down the process into three steps: trend channel calculation, multi-timeframe analysis, and signal generation with higher timeframe filtering.
Explains the logic (e.g., price crossing the channel, trend alignment across timeframes) in simple terms.
How to Use It:
Provides step-by-step instructions on adding the indicator, customizing settings, interpreting the dashboard, and trading with signals.
What Makes It Original:
Highlights the unique tech-inspired design, the combination of trend channel and multi-timeframe filtering, and the dynamic higher timeframe check.
Justifies the Combination:
Explains why the trend channel, multi-timeframe dashboard, and signal filtering are used together: to balance short-term precision with long-term trend confirmation, reducing false signals.
Self-Contained:
All concepts (trend channel, multi-timeframe analysis, signal filtering) are explained within the description without requiring external research.
Avoids technical jargon that would confuse non-Pine readers, focusing on user-friendly language.
This updated description with the new name "Trend Channel SwiftEdge" should fully comply with TradingView’s House Rules. If you need further adjustments, let me know!
Chandelier Exit with ZLSMA SwiftEdgeChandelier Exit with ZLSMA
Overview
The "Chandelier Exit with ZLSMA" indicator is a powerful trading tool designed to identify trend reversals and high-probability entry points in financial markets. By combining the volatility-based Chandelier Exit with the low-lag Zero Lag Least Squares Moving Average (ZLSMA), this indicator provides clear Buy and Sell signals, enhanced with a unique signal strength score to help traders prioritize high-quality opportunities. Visual enhancements, including dynamic color coding, background highlights, and trend arrows, make it intuitive and visually appealing for both novice and experienced traders.
What It Does
This indicator generates Buy and Sell signals when a trend reversal is detected by the Chandelier Exit, but only if the price crosses the ZLSMA for the first time in the direction of the trend. Each signal is accompanied by a percentage score (0-100%) that measures its strength based on price movement and momentum. The indicator overlays directly on the price chart, displaying:
Buy/Sell labels with signal strength (e.g., "Buy (85%)").
A ZLSMA line that changes color (green for bullish, red for bearish) to indicate trend direction.
Background highlights to mark signal candles.
Trend arrows to visually confirm signal points.
How It Works
The indicator combines two complementary components:
Chandelier Exit:
Uses the Average True Range (ATR) to create dynamic trailing stop levels (long_stop and short_stop) that adapt to market volatility.
Signals a Buy when the price crosses above the short stop (indicating a potential uptrend) and a Sell when it crosses below the long stop (indicating a potential downtrend).
Default settings use an ATR period of 1 and a multiplier of 2.0 for high sensitivity to short-term price movements.
Zero Lag LSMA (ZLSMA):
A low-lag moving average based on linear regression, designed to reduce delay compared to traditional moving averages.
Acts as a trend filter: Buy signals are only generated when the price closes above ZLSMA for the first time, and Sell signals when it closes below for the first time.
Default length of 50 balances smoothness with responsiveness.
Signal Strength Score:
Each signal is assigned a score (0-100%) based on:
Distance to ZLSMA (60% weight): How far the price is from ZLSMA, normalized by ATR. Larger distances indicate stronger breakouts.
Candlestick size (40% weight): The size of the signal candle, normalized by ATR. Larger candles suggest stronger momentum.
A high score (e.g., >80%) indicates a robust signal, while a low score (e.g., <50%) suggests caution.
Visual Features:
The ZLSMA line changes color (green for bullish, red for bearish) to reflect the trend.
Signal candles are highlighted with a subtle green (Buy) or red (Sell) background.
Tiny triangular arrows appear below Buy signals and above Sell signals for clear visual confirmation.
Why Combine Chandelier Exit and ZLSMA?
The Chandelier Exit excels at identifying trend reversals through volatility-based stops, but it can generate false signals in choppy markets due to its sensitivity (especially with a short ATR period of 1). The ZLSMA addresses this by acting as a trend filter, ensuring signals are only triggered when the price confirms a trend by crossing the ZLSMA for the first time. This combination reduces noise and focuses on high-probability setups. The signal strength score further enhances decision-making by quantifying the conviction behind each signal, making the indicator feel intuitive and "smart."
How to Use
Setup:
Add the indicator to your chart in TradingView.
Adjust inputs in the settings panel:
ATR Period (default: 1): Controls the sensitivity of Chandelier Exit. Increase for smoother signals.
ATR Multiplier (default: 2.0): Sets the distance of stop levels from price extremes.
ZLSMA Length (default: 50): Adjusts the smoothness of the ZLSMA line. Shorter lengths (e.g., 20-30) are more responsive; longer lengths (e.g., 50-100) are smoother.
Use Close Price for Extremums (default: true): Determines whether Chandelier Exit uses closing prices or high/low prices for calculations.
Interpreting Signals:
Buy Signal: A green "Buy (X%)" label appears below a candle when the price crosses above the Chandelier Exit short stop and closes above ZLSMA for the first time. The percentage indicates signal strength (higher = stronger).
Sell Signal: A red "Sell (X%)" label appears above a candle when the price crosses below the Chandelier Exit long stop and closes below ZLSMA for the first time.
Use the ZLSMA line’s color (green for bullish, red for bearish) to confirm the overall trend.
Prioritize signals with high strength scores (e.g., >70%) for better reliability.
Trading Considerations:
Combine signals with other analysis (e.g., support/resistance, volume) for confirmation.
Test the indicator on a demo account or use TradingView’s Strategy Tester to evaluate performance.
Be cautious with the default ATR period of 1, as it is highly sensitive and may generate frequent signals in volatile markets.
What Makes It Unique
This indicator stands out due to its thoughtful integration of Chandelier Exit and ZLSMA, creating a synergy that balances sensitivity with reliability. The first-cross filter ensures signals are triggered only at the start of potential trends, reducing false positives. The signal strength score adds a layer of intelligence, helping traders assess the quality of each signal without needing external tools. Visual enhancements, such as dynamic ZLSMA coloring, background highlights, and trend arrows, make the indicator user-friendly and visually engaging, appealing to traders seeking a modern, intuitive tool.
Limitations and Notes
The short ATR period (1) makes the indicator highly sensitive, which suits short-term traders but may produce noise in sideways markets. Increase the ATR period for smoother signals.
The signal strength score is a heuristic based on price movement and momentum, not a predictive model. Use it as a guide, not a definitive predictor.
Always backtest the indicator on your preferred market and timeframe to ensure it aligns with your trading strategy.
MA Crossover [AlchimistOfCrypto]🌌 MA Crossover Quantum – Illuminating Market Harmonic Patterns 🌌
Category: Trend Analysis Indicators 📈
"The moving average crossover, reinterpreted through quantum field principles, visualizes the underlying resonance structures of price movements. This indicator employs principles from molecular orbital theory where energy states transition through gradient fields, similar to how price momentum shifts between bullish and bearish phases. Our implementation features algorithmically optimized parameters derived from extensive Python-based backtesting, creating a visual representation of market energy flows with dynamic opacity gradients that highlight the catalytic moments where trend transformations occur."
📊 Professional Trading Application
The MA Crossover Quantum transcends the traditional moving average crossover with a sophisticated gradient illumination system that highlights the energy transfer between fast and slow moving averages. Scientifically optimized for multiple timeframes and featuring eight distinct visual themes, it enables traders to perceive trend transitions with unprecedented clarity.
⚙️ Indicator Configuration
- Timeframe Presets 📏
Python-optimized parameters for specific timeframes:
- 1H: EMA 23/395 - Ideal for intraday precision trading
- 4H: SMA 41/263 - Balanced for swing trading operations
- 1D: SMA 8/44 - Optimized for daily trend identification
- 1W: SMA 32/38 - Calibrated for medium-term position trading
- 2W: SMA 17/20 - Engineered for long-term investment signals
- Custom Settings 🎯
Full parameter customization available for professional traders:
- Fast/Slow MA Length: Fine-tune to specific market conditions
- MA Type: Select between EMA (exponential) and SMA (simple) calculation methods
- Visual Theming 🎨
Eight scientifically designed visual palettes optimized for neural pattern recognition:
- Neon (default): High-contrast green/red scheme enhancing trend transition visibility
- Cyan-Magenta: Vibrant palette for maximum visual distinction
- Yellow-Purple: Complementary colors for enhanced pattern recognition
- Specialized themes (Green-Red, Forest Green, Blue Ocean, Orange-Red, Grayscale): Each calibrated for different market environments
- Opacity Control 🔍
- Variable transparency system (0-100) allowing seamless integration with price action
- Adaptive glow effect that intensifies around crossover points - the "catalytic moments" of trend change
🚀 How to Use
1. Select Timeframe ⏰: Choose from scientifically optimized presets based on your trading horizon
2. Customize Parameters 🎚️: For advanced users, disable presets to fine-tune MA settings
3. Choose Visual Theme 🌈: Select a color scheme that enhances your personal pattern recognition
4. Adjust Opacity 🔎: Fine-tune visualization intensity to complement your chart analysis
5. Identify Trend Changes ✅: Monitor gradient intensity to spot high-probability transition zones
6. Trade with Precision 🛡️: Use gradient intensity variations to determine position sizing and risk management
Developed through rigorous mathematical modeling and extensive backtesting, MA Crossover Quantum transforms the fundamental moving average crossover into a sophisticated visual analysis tool that reveals the molecular structure of market momentum.
Pino Trend Pack (SMA/EMA + Bollinger)🔹 Pino Trend Pack is a compact trend-following and volatility indicator that includes:
📈 Moving Averages:
- SMA 10, SMA 30
- EMA 21, EMA 55, EMA 89
(All configured for short-term to mid-term trend analysis by default, but fully adjustable for user preference.)
📊 Bollinger Bands:
- Period: 20
- Standard Deviation: 2.0
- Includes Upper Band, Lower Band, and Basis (SMA 20)
This pack is designed for traders who want a clean visual of price dynamics across multiple short-term trend layers, combined with volatility tracking. It helps you identify compression, expansion, and trend shifts at a glance.
🧠 Ideal for swing trading, short- to mid-term setups, or as a supporting tool in any confluence-based strategy.
Trailing Monster StrategyTrailing Monster Strategy
This is an experimental trend-following strategy that incorporates a custom adaptive moving average (PKAMA), RSI-based momentum filtering, and dynamic trailing stop-loss logic. It is designed for educational and research purposes only, and may require further optimization or risk management considerations prior to live deployment.
Strategy Logic
The strategy attempts to participate in sustained price trends by combining:
- A Power Kaufman Adaptive Moving Average (PKAMA) for dynamic trend detection,
- RSI and Simple Moving Average (SMA) filters for market condition confirmation,
- A delayed trailing stop-loss to manage exits once a trade is in profit.
Entry Conditions
Long Entry:
- RSI exceeds the overbought threshold (default: 70),
- Price is trading above the 200-period SMA,
- PKAMA slope is positive (indicating upward momentum),
- A minimum number of bars have passed since the last entry.
Short Entry:
- RSI falls below the oversold threshold (default: 30),
- Price is trading below the 200-period SMA,
- PKAMA slope is negative (indicating downward momentum),
-A minimum number of bars have passed since the last entry.
Exit Conditions
- A trailing stop-loss is applied once the position has been open for a user-defined number of bars.
- The trailing distance is calculated as a fixed percentage of the average entry price.
Technical Notes
This script implements a custom version of the Power Kaufman Adaptive Moving Average (PKAMA), conceptually inspired by alexgrover’s public implementation on TradingView .
Unlike traditional moving averages, PKAMA dynamically adjusts its responsiveness based on recent market volatility, allowing it to better capture trend changes in fast-moving assets like altcoins.
Disclaimer
This strategy is provided for educational purposes only.
It is not financial advice, and no guarantee of profitability is implied.
Always conduct thorough backtesting and forward testing before using any strategy in a live environment.
Adjust inputs based on your individual risk tolerance, asset class, and trading style.
Feedback is encouraged. You are welcome to fork and modify this script to suit your own preferences and market approach.
Multi-Timeframe MA DashboardThis indicator monitors 5 timeframes: 5min, 15min, 1hr, 4hr, and Daily. It displays fast and slow moving averages for each timeframe, along with the current price. The trend direction is color-coded: green for bullish (fast MA above slow MA) and red for bearish (fast MA below slow MA).
The dashboard also shows the last crossover signal (Buy/Sell) for each timeframe.
Visual arrows are plotted on the chart for the current timeframe. A green up arrow indicates a potential bullish crossover (Buy signal), while a red down arrow indicates a potential bearish crossover (Sell signal).
The dashboard is elegant and professional, with alternating row colors for better readability. It can be placed in any corner of the screen and customized with user-defined colors for bullish and bearish trends.
Alerts are triggered when a crossover occurs on any timeframe. These alerts include the timeframe and signal type (e.g., "5min: ↑ BUY").
How to Read the Indicator
The dashboard displays the following for each timeframe:
Fast MA: The value of the fast moving average.
Slow MA: The value of the slow moving average.
Price: The current price for the timeframe.
Trend: The current trend direction (Bullish or Bearish).
Signal: The last crossover signal (↑ BUY or ↓ SELL).
On the chart, green up arrows indicate a bullish crossover (Fast MA crosses above Slow MA), while red down arrows indicate a bearish crossover (Fast MA crosses below Slow MA).
Green text in the dashboard indicates a bullish trend or signal, while red text indicates a bearish trend or signal.
How to Use the Indicator
Use the dashboard to monitor the trend direction across multiple timeframes. Look for confluence (agreement) between timeframes to identify stronger trends. Observe the "Signal" column in the dashboard for the last crossover on each timeframe. Use the arrows on the chart to identify potential crossover points for the current timeframe.
Enable alerts to be notified of crossover signals on any timeframe. Alerts include the timeframe and signal type for easy reference.
Adjust the fast and slow moving average lengths to suit your trading style. Choose between EMA, SMA, or WMA for the moving average type. Customize the dashboard placement and colors for better visibility.
Important Notes
This indicator is not a buy or sell recommendation. It is a tool to assist traders in their analysis. Always use this indicator in conjunction with other tools, such as support/resistance levels, volume analysis, and price action. Past performance of moving averages does not guarantee future results.
How to Add the Indicator
Add the indicator to your chart from the TradingView library. Configure the inputs:
Fast MA Length: Default is 20.
Slow MA Length: Default is 50.
MA Type: Choose between EMA, SMA, or WMA.
Dashboard Placement: Select the corner of the screen where the dashboard will appear.
Colors: Customize the colors for bullish and bearish trends.
Monitor the dashboard and chart for trends and signals.
Disclaimer
This indicator is for educational and informational purposes only. It does not provide financial, investment, or trading advice. Always perform your own analysis and consult with a financial advisor before making trading decisions.
111D SMA / (350D SMA * 2)Indicator: Pi Cycle Ratio
This custom technical indicator calculates a ratio between two moving averages that are used for the PI Cycle Top indicator. The PI Cycle Top indicator triggers when the 111-day simple moving average (111D SMA) crosses up with the 350-day simple moving average (350D SMA *2).
The line value is ratio is calculated as:
Line Value = 111DSMA / (350D SMA × 2)
When the 111D SMA crosses with the 350D SMA triggering the PI Cycle Top, the value of the ratio between the two lines is 1.
This visualizes the ratio between the two moving averages into a single line. This indicator can be used for technical analysis for historical and future moves.