Volume MAs Supertrend | Lyro RS📊 Volume MAs Supertrend | Lyro RS is an advanced trading tool that combines volume-adjusted moving averages with a dynamic Supertrend system. This indicator provides a robust framework for identifying market trends and entry/exit points.
✨ Key Features :
📈 Volume-Weighted Moving Averages (VWMA): Integrates price and volume data to provide a more accurate moving average, allowing for better trend analysis.
🔧 Multiple MA Types: Choose from SMA, EMA, WMA, VWMA, DEMA, TEMA, RMA, HMA, ALMA to suit your preferred trading strategy.
📊 Dual-Multiplier Supertrend System: Uses ATR to dynamically calculate upper and lower bands for long and short trends, with distinct multipliers for each.
🎨 Customizable Color Schemes: Choose from Classic, Mystic, Accented, and Royal color palettes or customize your own colors for bullish and bearish trends.
🔍 Visual Enhancements: Color-coded Supertrend lines, candlesticks, and bars for quick trend identification.
⏰ Alert System: Alerts for long and short signals based on trend changes.
🔧 How It Works :
The Supertrend line is calculated using ATR over a user-defined period, with separate multipliers for long and short positions.
📈 A bullish trend is signaled when the price crosses above the upper band, and a bearish trend is signaled when the price crosses below the lower band.
🎨 The Supertrend line changes color to reflect trend direction, with candlesticks and bars matching the trend's color for visual clarity.
⚙️ Customization Options :
🛠️ Moving Average Settings: Select your preferred moving average type (SMA, EMA, VWMA, etc.) and adjust the length for smoother or more responsive trend signals.
📐 Supertrend Parameters: Define the ATR period and adjust multipliers to fine-tune sensitivity for long and short signals.
🎨 Color Configuration: Choose from predefined color palettes or create your own custom scheme for trend signals.
📈 Use Cases :
✅ Confirm market trends before entering trades.
🚪 Identify potential entry/exit points as trend directions shift.
👀 Visually analyze market conditions with color-coded candlesticks and bars.
⚠️ Disclaimer :
This indicator should not be used as a standalone tool for making trading decisions. Always combine with other forms of analysis and risk management practices.
Indicadores e estratégias
HILo Ema Double Squeeze BandsThis indicator is a variation of "HiLo Ema squeeze bands".
It brings out the best of donchian & ema to identify price squeeze before a big move as well as gives support resistance and predict price targets(explained below)
The ema gets initialised at every new high or low. The upper ema tracks the highs and lower ema tracks the lows. The priced range between upper and lower is divided into 4 equal zones by these lines
upper2
upper1
middle
lower1
lower2
In principle you would use this similar to a donchian channel except the ema provides a trend much better than donchian
Settings has option to switch off either short or long ema bands
Predicting price targets:
When a price break out of upper2 level, price may reverse when upper1 or middle aligns with previous level of upper2
When a price break below of lower2 level, price may reverse when lower1 or middle aligns with previous level of lower2
Recommended settings :
200,1000 works very well for me on most timeframes and symbols.
DS Gurukul RoundupRoundup (Support & Resistance Indicator) For Bank Nifty
By DS Gurukul
To be used only for Bank Nifty.
Indicator Overview
The Round Figure Indicator identifies key psychological support and resistance levels based on round numbers. These levels often act as strong turning points in price action due to trader psychology and institutional order placement.
How It Works
Key Levels:
Mid Band (Black Solid Line): Major round number
Upper Band (Green Solid Line): Mid Band (resistance)
Lower Band (Red Solid Line): Mid Band (support)
Sub-Bands (Dotted Lines): ±100 levels for tighter zones
Alerts: Triggers when price touches any band, signaling potential reversals or breakouts.
Trading Strategy
✅ Bounce Trades:
Buy near Lower Band or Mid Sub-Lower with bullish confirmation (e.g., hammer candle).
Sell near Upper Band or Mid Sub-Upper with bearish rejection (e.g., shooting star).
✅ Breakout Trades:
Enter long on a close above Upper Band with volume.
Enter short on a close below Lower Band with momentum.
⚠️ Risk Management:
Place stops just beyond the opposite sub-band.
Avoid trading if price is stuck between mid/sub-bands (choppy market).
Why It Works
Round numbers attract limit orders (support/resistance).
Institutions use these levels for stop placements and profit targets.
Works across all timeframes (scalping to swing trading).
🔔 Tip: Combine with RSI/MACD for higher-probability trades!
The Traders Support & Resistance LevelsThis script automatically detects pivot-based support and resistance levels and draws dynamic trendlines based on recent price action.
🔹 Support & Resistance Levels
Pivot points are calculated using customizable left/right bar logic. A pivot high (or low) is confirmed when leftBars candles to the left and rightBars candles to the right are lower (or higher).
Triangles are plotted when a level is confirmed:
🔻 🟡 Yellow Down Triangle = Confirmed Resistance
🔺 🟣 Purple Up Triangle = Confirmed Support
Lines are drawn at confirmed levels.
If enough lines are confirmed, the oldest one is converted into a zone using a thick, semi-transparent line.
🔹 Trendline Logic
Trendlines are drawn between the last two support points (for uptrend) and last two resistance points (for downtrend).
The slope and price relationship determine trend strength, visualized by color:
Condition Color Meaning
Uptrend + Price Above + Steep 🟨 Yellow Strong Uptrend
Uptrend + Price Above 🔷 Blue Weak Uptrend
Downtrend + Price Below + Steep 💗 Fuchsia Strong Downtrend
Downtrend + Price Below 🟣 Purple Weak Downtrend
Otherwise ⚪️ Gray Neutral / No Trend
⚙️ Customizable Inputs
leftBars, rightBars: Adjust sensitivity of pivot detection
previewBars: Show early "draft" lines before confirmation
volumeThresh: Reserved for future enhancements
Hybrid: RSI + Breakout + DashboardHybrid RSI + Breakout Strategy
Adaptive trading system that switches modes based on market regime:
Ranging: Buys when RSI < 30 and sells when RSI > 70.
Trending: Enters momentum breakouts only in the direction of the 200-EMA bias, with ADX confirming trend strength.
Risk Management: Trailing stop locks profits and caps drawdown.
Optimized for BTC, ETH, and SOL on 1 h–1 D charts; back-tested from 2017 onward. Educational use only—run your own tests before deploying live funds.
SuperTrend CorregidoThis script implements a SuperTrend indicator based on the Average True Range (ATR). It is designed to help traders identify trend direction and potential buy/sell opportunities with visual signals on the chart.
🔧 Key Features:
ATR-Based Trend Detection: Calculates trend shifts using the ATR and a user-defined multiplier.
Buy/Sell Signals: Displays "Buy" and "Sell" labels directly on the chart when the trend changes direction.
Visual Trend Lines: Plots green (uptrend) and red (downtrend) SuperTrend lines to highlight the current market bias.
Trend Highlighting: Optionally fills the background to emphasize whether the market is in an uptrend or downtrend.
Customizable Settings:
ATR period and multiplier
Option to switch ATR calculation method
Toggle for signal visibility and trend highlighting
🔔 Alerts Included:
SuperTrend Buy Signal
SuperTrend Sell Signal
SuperTrend Direction Change
This indicator is useful for identifying entries and exits based on trend momentum and can be used across various timeframes.
Globex Overnight Futures ORB with FIB's by TenAMTrader📈 Globex Overnight Futures ORB with FIBs by TenAMTrader
This TradingView indicator is designed to plot the Opening Range Breakout (ORB) for the Globex Overnight Futures session, enhanced with customizable Fibonacci extension and retracement levels.
🕒 Session Definition
The indicator defines a primary time window, typically from 6:00 PM ET to 6:15 PM ET, capturing the first 15 minutes of the Globex session.
It identifies the high, low, and midpoint of this range, which are then used as reference levels throughout the trading day.
🔍 Visual Features
Plots lines for the Opening High, Low, and Midpoint.
Shades two cloud regions: High to Midpoint and Low to Midpoint for easier visual identification.
Optionally displays Fibonacci levels, including:
Standard extensions and retracements (e.g., 0.618, 1.0, -0.618, etc.)
Intermediate levels within the primary range for intraday reactions
Option to toggle additional extension levels beyond the standard set.
🚨 Alerts
Optional alert triggers for price crossing the Opening High, Low, or Midpoint levels.
⚠️ Important Usage Note
This indicator is currently optimized for the 1-minute chart to ensure accurate and consistent ORB calculations. Using it on higher timeframes may result in incorrect range values until future updates add multi-timeframe support.
📘 Disclaimer
This script is for educational and informational purposes only and should not be considered financial advice. Trading involves risk, and past performance is not indicative of future results. Always do your own research and consult with a licensed financial advisor before making trading decisions.
Simple Moving Averages 68 & 274Double Simple Moving Average (default 68 & 274) with customizable timeframe (default 45 min)
Technical Signal Master📘 **Technical Signal Master** - Multi-Indicator Signal Table (50+ indicators)
This script integrates over 50 technical indicators and outputs Buy / Sell / Neutral signals into a dual-column table, helping traders evaluate market conditions at a glance.
---
🔍 **Included Indicators**
- Oscillators: RSI, MACD, Stochastic, Momentum, ADX, CCI, Williams %R, Awesome Oscillator
- Trend Tools: EMA (20/50/75/100/200), Supertrend, PSAR, HMA, KAMA, DMI
- Volume-Based: OBV, MFI, CMF, Chaikin Oscillator, VFI, Force Index, Acc/Dist
- Composite: TDI, Aroon, KST, Coppock, TSI, DPO, ROC, PPO
---
🧠 **What This Script Does**
- Each indicator outputs a numeric value and a signal (Buy = green, Sell = red, Neutral = gray)
- A total score is calculated to summarize the market sentiment (Bullish / Bearish / Neutral)
- All signals are shown in a fixed table at the top-right (overlay = false)
---
🎯 **Use Case**
This tool is designed for:
- Discretionary traders to make informed decisions
- Streamers or instructors to visually show signal summaries
- Anyone needing a unified signal dashboard
---
📝 **日本語説明(for JP users)**
このスクリプトは、50種類以上のテクニカル指標を統合し、それぞれの買い/売り/中立の判定をテーブル形式で表示します。チャート上には描画せず、右上に固定テーブルを表示するのみです。裁量判断や配信補助ツールとして活用できます。
---
✅ No repaint / No overlay plots / Fully open source
VWAP Predictive Breakout + RSI + OB + Trend/Chop📈 VWAP Predictive Breakout + RSI + Order Blocks + Trend/Chop Filter
This multi-layered day trading and scalping tool is designed to predict price direction after a VWAP breakout, rather than react to it. It combines volume, RSI, candlestick structure, order blocks, and trend/chop analysis to improve the accuracy of intraday signals.
🔍 Core Features
VWAP Predictive Breakout
Signals are generated when price breaks above/below VWAP with strength (volume spike + strong candle body), supported by trend confirmation.
RSI Momentum Filter
Uses RSI divergence behavior to validate breakouts, filtering out weak or exhausted moves.
Order Block Detection
Marks bullish and bearish engulfing patterns and checks for proximity to these zones as confirmation for breakouts.
Trend vs Chop Detection
Uses ADX, ATR, EMA distance, Bollinger Band width, and candlestick cleanliness to dynamically identify whether the market is trending or choppy.
Clean Candle Behavior
Filters out noisy or indecisive candles by analyzing wick-to-body ratio and ATR-based body size.
📌 Visual Markers
🟢 Buy Signal: Green triangle below bar
🔴 Sell Signal: Red triangle above bar
🟢⚪ Bullish Order Block: Green circle
🔴⚪ Bearish Order Block: Red circle
🟩 Trending Background: Light green
🟥 Choppy Background: Light red
🛎 Alerts Included
Long signal: VWAP breakout + RSI + Order Block + Clean Candle
Short signal: VWAP breakdown + RSI + Order Block + Clean Candle
🧠 Best Use Cases
Scalping high-probability VWAP reversals or continuations
Day trading in markets where trend clarity is critical
Filtering noise in sideways conditions using real-time chop detection
Market Structure Break Signals [5min] + 3:1 RRthis is a market structure strat that im using to test 5min moves
10 Monday's 1H Avg Range + 30-Day Daily Range🇬🇧 English Version
This script is especially useful for traders who need to measure the range of the first four 15-minute candles of the week.
It provides three key pieces of information :
🕒 Highlights the First 4 Candles
Marks the first four 15-minute candles of the week and displays the total range between their high and low.
📊 10-Week Average (Yellow Line)
Shows the average range of those candles over the last 10 weeks, allowing you to compare the current week with past patterns.
📈 30-Day Daily Candle Average (Green Line)
Displays the average range of the last 30 daily candles.
This is especially useful when setting the Stop Loss, as a range greater than 1/3 of the daily average may make it difficult for the trade to close on the same day.
Feel free to contact me for upgrades or corrections.
– Bernardo Ramirez
🇵🇹 Versão em Português (Corrigida e Estilizada)
Este script é especialmente útil para traders que precisam medir o intervalo das quatro primeiras velas de 15 minutos da semana.
Ele oferece três informações principais :
🕒 Destaque das 4 Primeiras Velas
Marca as primeiras quatro velas de 15 minutos da semana e exibe o intervalo total entre a máxima e a mínima.
📊 Média de 10 Semanas (Linha Amarela)
Mostra a média do intervalo dessas velas nas últimas 10 semanas, permitindo comparar a semana atual com padrões anteriores.
📈 Média dos Últimos 30 Candles Diários (Linha Verde)
Exibe a média do intervalo das últimas 30 velas diárias.
Isso é especialmente útil para definir o Stop Loss, já que um valor maior que 1/3 da média diária pode dificultar que a operação feche no mesmo dia.
Sinta-se à vontade para me contactar para atualizações ou correções.
– Bernardo Ramirez
🇪🇸 Versión en Español (Corregida y Estilizada)
Este script es especialmente útil para traders que necesitan medir el rango de las primeras cuatro velas de 15 minutos de la semana.
Proporciona tres datos clave :
🕒 Resalta las Primeras 4 Velas
Señala las primeras cuatro velas de 15 minutos de la semana y muestra el rango total entre su máximo y mínimo.
📊 Promedio de 10 Semanas (Línea Amarilla)
Muestra el promedio del rango de esas velas durante las últimas 10 semanas, lo que permite comparar la semana actual con patrones anteriores.
📈 Promedio Diario de 30 Días (Línea Verde)
Muestra el rango promedio de las últimas 30 velas diarias.
Esto es especialmente útil al definir un Stop Loss, ya que un rango mayor a un tercio del promedio diario puede dificultar que la operación se cierre el mismo día.
No dudes en contactarme para mejoras o correcciones.
– Bernardo Ramirez
Dva_GusyaWhat it does
• Designed only for Bitcoin on the daily chart.
• Plots a simple moving average (SMA) and two parallel “buy-zone” levels beneath it.
• Generates two scale-in entries:
• Entry #1 – when price touches or falls below the first offset.
• Entry #2 – when price touches or falls below the second offset (adds to the existing long).
• Position size is split 50 % / 50 % by default.
• All core parameters (SMA length, offsets, sizing) remain editable in the Settings panel.
BTC High-Return StrategyTimeframe: H1 (hourly), backtested from January 1, 2023, to December 31, 2025.
Position Sizing: 50% of equity per trade (e.g., $500/trade on $1,000).
Entries:
RSI Long: Buy when 10-period RSI < 30 (oversold, pullback entry).
Breakout Long: Buy when price exceeds 7-period high (bullish breakout).
Exits:
RSI Exit: Sell RSI trades when RSI > 50 (neutral).
Profit Target: RSI trades target 5x ATR (~10–25% gains, e.g., $50–$125).
Trailing Stop: Breakout trades use 3.5x ATR (~15–30% gains, e.g., $75–$150).
Stop-Loss: 1.0x ATR (~1–3% loss, e.g., $5–$15).
Key Features:
High Frequency: 50–100 trades/month for frequent opportunities.
Bull Market Focus: Long-only to avoid losses in BTC’s uptrend.
Debug Plots: RSI and breakout triggers (red/yellow) to verify entries.
Bar ColorFX Gold is multi market position sizing tool designed to help you manage risk quickly and accurately. with the script simple enter your account capital the percentage of risk you wish to take and stop in ticks depending on the market lets open first after we cools see how the price will paly out .
As Always use proper risk management Guys Trade wisely best of Luck.
Smoothed Momentum Signal (15-Bar Window)Price up 12 out of 15 days
Price up 25% in 15 days
Volume up 25% in 15 Days
David Ryan Institutional Volume Parameters. Can be used as Entry and Exit Basis.
Improved Hybrid: RSI + Breakout + DashboardThe Improved Hybrid RSI + Breakout Strategy is a Pine Script® v6 trading system designed for BTC/USDT on TradingView. It combines RSI mean-reversion and breakout trades to capitalize on both ranging and trending markets. In ranging markets (ADX ≤ 25), it buys when RSI < 35 (oversold) and sells when RSI > 70 (overbought), aligning with the 200-period EMA trend (bullish/bearish). In trending markets (ADX > 25), it enters long/short positions when price breaks above/below the 20-period high/low. Each trade risks 10% of equity ($10,000 of default $100,000 capital), with 1.2x ATR stop-losses for RSI trades and 1.5x ATR trailing stops for breakouts, minimizing drawdowns. Trades are executed post-2020, optimized for BTC’s volatility on H1/H4 timeframes.
50-Line OscillatorFractal Vortex Oscillator
Version 5 | Overlay: Off
Overview
The Fractal Vortex Oscillator blends multiple moving-average trends into a single, rainbow-colored “vortex” that highlights shifting market momentum and internal crossovers. By stacking 26 sequential moving averages (SMA, EMA, WMA) with gradually increasing lengths, it creates a rich, multicolored band whose twists and overlaps reveal trend strength and turning points.
Key Features
Dynamic Trend Lines (26):
Uses a mix of SMA, EMA, and WMA on your chosen source (default = close).
Base length starts at 14 and increases by 1 for each subsequent line.
Rainbow Coloring:
Seven semi-transparent hues (red → orange → yellow → green → blue → fuchsia → navy) cycle through the lines for easy visual separation.
Filled Bands:
Adjacent trend lines are softly filled with aqua-tinted shading to emphasize the vortex bands.
Crossover Counting:
Internally tallies the number of times faster lines cross over or under their immediate slower neighbors on each bar.
Displays a small gray label on price showing “Up: X / Down: Y” to quantify rising vs. falling momentum.
Inputs
Base Length (base_length, default 14) – Starting period for the first moving average; all others increment from here.
Source (source, default close) – Price series to feed into the moving averages.
How It Works
Trend Array Creation
An array of 26 floats is built, each element computed by choosing SMA, EMA, or WMA in rotation and applying it to source with periods base_length + index.
Color Assignment
A seven-color palette is cycled through, giving every third line the same hue for a smooth rainbow gradient.
Plotting & Filling
Each of the 26 lines is plotted in its assigned color.
Consecutive lines are filled with a semi-transparent aqua to accentuate the “vortex” effect.
Momentum Signals
On each bar, the script checks for crossovers between each pair of adjacent lines:
CrossUp increments when a faster line crosses above a slower one.
CrossDown increments when it crosses below.
A label at the current bar displays the total counts, giving a quick read on whether upward or downward momentum dominates.
Interpretation & Usage
Wide, uniform bands suggest a steady trend; tight, overlapping bands point to consolidation or indecision.
Rising “Up” count signals growing bullish momentum; rising “Down” count signals bearish pressure.
Use the vortex’s twists—where different-colored lines intersect—as early warnings of potential trend shifts.
Bar Value TableBar Values Calculated
ATR
Previous Bar Value
Current Bar Value
Displays values in a table at the bottom left of chart
Heikinisi Candle (With MA + Smoothing + Buy/Sell with Cooldown)This custom Heikinisi Candle (With MA + Smoothing + Buy/Sell with Cooldown) indicator combines the advantages of Heikin-Ashi candles with the flexibility of multiple moving averages and smoothing options. The built-in buy/sell signals with cooldown functionality help traders avoid overtrading while capturing trend reversals and momentum shifts. Whether you're a day trader, swing trader, or long-term investor, this indicator offers powerful tools for analyzing price action and making informed trading decisions.
Note: Disable the regular candle to get better visualization.
Key Features:
Custom Heikin-Ashi Candles:
The core feature of this script is the Heikin-Ashi candles, which are known for smoothing price action and helping traders identify market trends more clearly.
Unlike traditional Heikin-Ashi, this version adjusts the Heikin-Ashi close based on specific price action patterns, including rejection signals and engulfing patterns.
The custom Heikin-Ashi open also incorporates momentum, adjusting dynamically based on recent price changes.
Price Action Measurements:
The indicator measures key price action components, including:
Body: The absolute difference between the open and close.
Candle Range: The total range from high to low.
Upper Wick: The distance from the highest price to the maximum of open or close.
Lower Wick: The distance from the lowest price to the minimum of open or close.
These measurements help detect bullish and bearish conditions, as well as price rejection signals.
Buy/Sell Signal Logic:
Buy Signal: Triggered when the Heikin-Ashi close is above the chosen moving average (MA1), with a cooldown period to avoid too frequent signals.
Sell Signal: Triggered when the Heikin-Ashi close falls below the MA1 after a buy signal has already been issued.
The cooldown period ensures that buy and sell signals are spaced apart by a specific number of bars, preventing excessive signal generation during periods of price consolidation.
Multiple Moving Averages (MA):
This script supports up to three customizable moving averages (MA1, MA2, MA3), each of which can be set to different types and lengths, including:
Simple Moving Average (SMA)
Exponential Moving Average (EMA)
Weighted Moving Average (WMA)
Volume Weighted Moving Average (VWMA)
Volume Weighted Moving Price (VWMP)
Least Squares Moving Average (LSMA)
Hull Moving Average (HMA)
Double Exponential Moving Average (DEMA)
Triple Exponential Moving Average (TEMA)
Users can adjust the length and type of each MA for tailored analysis.
Smoothing Options for MAs:
Users can smooth the output of MAs using various types of smoothing algorithms (SMA, EMA, LSMA, WMA, Gaussian) and a customizable length. This helps to reduce noise in the moving average lines and provides clearer signals.
Gaussian Filter (Advanced Smoothing):
A Gaussian Filter is available as a smoothing option for MAs. This filter reduces noise and makes the moving averages smoother, which can be particularly helpful in volatile or choppy markets.
Alerts and Visualization:
The script allows users to plot buy and sell signals on the chart with distinctive markers. A Buy Signal is shown below the bar with a lime green marker and text "Buy," while a Sell Signal is shown above the bar with a red marker and text "Sell."
Traders can also set up alerts based on the buy/sell signals to get notified in real time.
Indicator Configuration:
Heikin-Ashi Candle Configuration:
Automatically adjusts Heikin-Ashi candles based on rejection signals, engulfing patterns, and momentum. It uses custom formulas for the Heikin-Ashi open and close, making it more sensitive to price action than standard Heikin-Ashi candles.
Moving Averages (MA) Configuration:
You can select from multiple moving average types and lengths (MA1, MA2, MA3) for trend-following analysis.
Choose between SMA, EMA, WMA, VWMA, VWMP, LSMA, HMA, DEMA, and TEMA.
Smoothing Options:
Enable or disable smoothing for the moving averages.
Select from different smoothing types, including SMA, EMA, RMA, WMA, LSMA, and Gaussian.
Cooldown Period:
Control the number of bars that must pass before a new buy/sell signal is triggered. This cooldown period helps prevent excessive trading signals in quick succession.
How to Use:
Analyze Price Action with Heikin-Ashi Candles:
The custom Heikin-Ashi candles are ideal for spotting market trends, reversals, and price rejection. Use the candle patterns to gauge the market sentiment.
Use MAs for Trend Confirmation:
The moving averages (MA1, MA2, MA3) can help identify the prevailing trend. A price above a rising MA indicates an uptrend, while a price below a falling MA suggests a downtrend.
Trigger Buy and Sell Signals:
When the Heikin-Ashi close crosses above MA1, a buy signal is triggered.
When the Heikin-Ashi close crosses below MA1 after a buy signal, a sell signal is triggered.
The cooldown period ensures that signals are spaced out, preventing overtrading.
Use Smoothing for Clearer Signals:
If you are trading in a volatile market, you can use the smoothing options to make the MAs smoother and reduce noise.
DavSabs - Triple EMA 5>10 strategy + MACD and RSIThis is one of my favorite buy sell strategies and I'm holding on to this for now.
I have perfected buy sell signals with shorter EMA and made soft red and green if MACD and RSI is not supporting the buy.
Strong Green Buy signal = 5>10 EMA AND price over 30 EMA.
Soft Green if buy green signal = above and MACD < signal line or RSI < RSI-based EMA
Strong RED Sell signal = Price close below 10 EMA
Soft Red sell signal = above and MACD > signal line or RSI > RSI-based EMA
Always add your own analysis.
Best EMA FinderBASED ON BEST SMA FINDER BY Julien_Eche
Purpose
Identifies the single most robust exponential moving average (EMA) length on any chart by backtesting every EMA from 10 to 1000 periods and ranking them by a custom “robustness” score.
Core Logic
Backtest loop: For each EMA length, run either a “Long Only” or “Buy & Sell” backtest.
Metrics computed:
Total trades
Profit factor (gross profit / gross loss)
Win rate
Robustness score = Profit Factor × √(Win Rate) × log(Trades)
Filter: Discard any EMA with fewer trades than the user‐defined minimum.
Select: Choose the EMA length with the highest robustness score.
Visualization
Plots the optimal EMA in blue on your chart.
Optionally displays a table (top-right) showing the chosen EMA length, trade count, profit factor, win rate, and robustness score.
User Inputs
Strategy Type: “Long Only” or “Buy & Sell”
Minimum Trades: Exclude under-sampled EMAs
Show Stats Table: Toggle summary display
Use Case
Perfect for traders who want to automatically pick an EMA that’s historically balanced between profitability and consistency—no manual trial-and-error needed.
Limitations
No position sizing, stops, or profit targets
Only one open trade per direction
Intended as an exploratory optimization tool, not a full trading system.