Deviation Trend Profile [BigBeluga]🔵 OVERVIEW
A statistical trend analysis tool that combines moving average dynamics with standard deviation zones and trend-specific price distribution.
This is an experimental indicator designed for educational and learning purposes only.
🔵 CONCEPTS
Trend Detection via SMA Slope: Detects trend shifts when the slope of the SMA exceeds a ±0.1 threshold.
Standard Deviation Zones: Calculates ±1, ±2, and ±3 levels from the SMA using ATR, forming dynamic envelopes around the mean.
Trend Distribution Profile: Builds a histogram that shows how often price closed within each deviation zone during the active trend phase.
🔵 FEATURES
Trend Signals: Immediate shift markers using colored circles at trend reversals.
SMA Gradient Coloring: The SMA line dynamically changes color based on its directional slope.
Trend Duration Label: A label above the histogram shows how many bars the current trend has lasted.
Trend Distribution Histogram: Visual bin-based profile showing frequency of price closes within deviation bands during trend lookback period.
Adjustable Bin Count: Set the granularity of the distribution using the “Bins Amount” input.
Deviation Labels and Zones: Clearly marked ±1, ±2, ±3 lines with consistent color scheme.
Trend Strength Insight:
• Wide profile skewed to ±2/3 = strong directional trend.
• Profile clustered near SMA = potential trend exhaustion or range.
🔵 HOW TO USE
Use trend shift dots as entry signals:
• 🔵 = Bullish start
• 🔴 = Bearish start
Trade with the trend when price clusters in outer zones (±2 or ±3).
Be cautious or fade the trend when price distribution contracts toward the SMA.
View across multiple timeframes for trend confluence or divergence.
🔵 CONCLUSION
Deviation Trend Profile visualizes how price distributes during trends relative to statistical deviation zones.
It’s a powerful confluence tool for identifying strength, exhaustion, and the rhythm of price behavior—ideal for swing traders and volatility analysts alike.
Moving Averages
Erik_ORB+Sky_DDB+RSI_Swing+MA&VWAP-v5Erik_ORB + SkyArrow_Dynamic Bollinger Band + RSI Swing Indicator + SMA & EMA & VWAP (with timeframe restriction) MAGA STITCHED Ver.
Erik_ORB+Sky_DBB+RSI_Swing+MA&VWAP-v5Erik_ORB + SkyArrow_Dynamic Bollinger Band + RSI Swing Indicator + SMA & EMA & VWAP (with timeframe restriction) MAGA STITCHED Ver.
Fixed Market Path Predictionthis indicator is a line that is used to predict the way the market moves, if you combine it with my other indicator its better, go check it out.
Zero Lag Trend Strategy (MTF)🧠 Strategy Overview
The Zero Lag Trend Signals Strategy (MTF) is a high-precision, multi-timeframe trend-following system designed for traders seeking early trend entries and intelligent exits. Built around ZLEMA-based signal detection, based on the original indicator Zero Lag Trend Signals (MTF) from AlgoAlpha, now built as a strategy with several improvements for Exit Criteria include RR, ATR Stop Loss, Trailing stop loss, etc. See below.
This momentum strategy works much better for higher timeframes, typically 4 hours or higher. This particular combination only contains 57 trades because this captures larger trend moves. The dataset contains realistic commission and slippage. You can try to run this on a smaller timeframe, but you will need to try different combinations of length, band multiplier, risk-reward ratios, and other stop loss criteria.
🔍 Key Components
1️⃣ ZLEMA Trend Engine
ZLEMA (Zero-Lag EMA) forms the foundation of the trend signal system.
Detects bullish and bearish momentum by analyzing price action crossing custom ZLEMA bands.
Optional confirmation using 5-bar ZLEMA slope filters (up/down trends) ensures high-conviction entries.
2️⃣ Volatility-Based Signal Bands
Dynamic bands are calculated using ATR (volatility) stretched over 3× period length.
These bands define entry zones (outside the bands) and trend strength.
Price crossing above/below the bands triggers trend change detection.
3️⃣ Entry Logic
Primary long entries occur when price crosses above the upper ZLEMA band.
Short entries (optional) trigger on downside cross under the lower band.
Re-entry logic allows continuation trades during strong trends.
Filters include date range, ZLEMA confirmation, and previous position state.
4️⃣ Exit Logic & Risk Management
Supports multiple customizable exit mechanisms:
🔺 Stop-Loss & Take-Profit
ATR-Based SL/TP: Uses ATR multipliers to dynamically set levels based on volatility.
Fixed Risk-Reward TP: Targets profit based on predefined RR ratios.
Break-Even Logic: Automatically moves SL to entry once a threshold RR is hit.
EMA Exit: Optional trailing exit based on price vs. short EMA.
🔀 Trailing Stop
Follows price action using a trailing ATR-based buffer that tightens with trend movement.
🔁 Trend-Based Exit
Automatically closes positions when the detected trend reverses.
5️⃣ Multi-Option Trade Filtering
Enable/disable short trades, ZLEMA confirmations, re-entries, etc.
Time-based backtesting filters for isolating performance within custom periods.
6️⃣ Visual Feedback & Annotations
Trend shading overlays: Green for bullish, red for bearish zones.
Up/Down triangle markers show when ZLEMA is rising/falling for 5 bars.
Stop-loss, TP, trailing lines drawn dynamically on the chart.
Floating stats table displays live performance (PnL, win %, GOA, drawdown, etc.).
Trade log labels annotate closed trades with entry/exit, duration, and reason.
7️⃣ CSV Export Integration
Seamless export of trade data including:
Entry/exit prices
Bars held
Encoded exit reasons
Enables post-processing or integration with external optimizers.
⚙️ Configurable Parameters
All key elements are customizable:
Entry band length and multiplier
ATR lengths, multipliers, TP/SL, trailing stop, break-even
Profit target RR ratio
Toggle switches for confirmations, trade types, and exit methods
CHN TAB# CHN TAB - Technical Analysis Bot
## Overview
The TAB (Technical Analysis Bot) indicator is a comprehensive trading signal system that combines Simple Moving Average (SMA) crossovers with MACD momentum analysis to identify high-probability entry and exit points. This indicator provides both immediate and delayed signal detection with built-in risk management through automatic Take Profit (TP) and Stop Loss (SL) calculations.
## Key Features
- **Dual Signal Detection**: Combines SMA(50) price action with MACD momentum
- **Smart Signal Timing**: Offers both immediate and delayed signal recognition
- **Automatic Risk Management**: Calculates TP and SL levels using ATR (Average True Range)
- **Visual Feedback**: Color-coded candles and filled zones for easy identification
- **Comprehensive Alerts**: Three distinct alert conditions for different trading needs
## How It Works
### Buy Signals
**Immediate Buy Signal:**
- Price crosses above SMA(50) (open < SMA50 and close > SMA50)
- MACD crosses above zero line simultaneously
**Delayed Buy Signal:**
- Previous candle crossed above SMA(50)
- Previous MACD was ≤ 0, current MACD > 0
- Current candle remains above SMA(50)
### Sell Signals
**Immediate Sell Signal:**
- Price crosses below SMA(50) (open > SMA50 and close < SMA50)
- MACD crosses below zero line simultaneously
**Delayed Sell Signal:**
- Previous candle crossed below SMA(50)
- Previous MACD was ≥ 0, current MACD < 0
- Current candle remains below SMA(50)
### Risk Management
- **Take Profit**: Entry price ± 1.0 × ATR(14)
- **Stop Loss**: Entry price ± 1.5 × ATR(14)
- **Risk-Reward Ratio**: Automatic 1:1.5 setup
## Visual Elements
- **Green Candles**: Buy signal triggered
- **Red Candles**: Sell signal triggered
- **Orange Line**: Entry price level (displayed for 10 bars)
- **Green Fill**: Take profit zone
- **Red Fill**: Stop loss zone
## Alert System
1. **TAB Buy Signal**: Triggers only on buy signals
2. **TAB Sell Signal**: Triggers only on sell signals
3. **TAB Buy & Sell Signal**: Triggers on any signal (buy or sell)
## Best Practices
- Use on trending markets for better signal quality
- Combine with higher timeframe analysis for confirmation
- Consider market volatility when interpreting ATR-based levels
- Backtest on your preferred timeframes before live trading
## Technical Parameters
- **SMA Period**: 50
- **MACD Settings**: 12, 26, 9 (Fast, Slow, Signal)
- **ATR Period**: 14
- **Signal Display**: 10 bars duration
## Timeframe Recommendations
- Works on all timeframes
- Best performance on 15M, 1H, and 4H charts
- Higher timeframes provide more reliable signals
## Risk Disclaimer
This indicator is for educational and informational purposes only. Trading involves substantial risk of loss and is not suitable for all investors. Past performance does not guarantee future results. Always conduct your own analysis and consider your risk tolerance before making trading decisions.
---
**Version**: 6.0
**Overlay**: Yes
**Category**: Trend Following, Momentum
**Suitable For**: Forex, Stocks, Crypto, Commodities
Multi-Indicator Trend-Following Strategy v7This strategy is a trend-following system that combines multiple technical indicators into a single, optimized indicator to help identify high-probability Buy and Sell opportunities while maintaining a clean and uncluttered chart.
✅ How It Works:
This script utilizes a combination of Exponential Moving Averages (EMAs), Relative Strength Index (RSI), Volume, MACD, and Average True Range (ATR) to determine trade entries and exits.
🟢 Buy Conditions:
Trend Crossover Entry:
A Buy signal is generated when the Fast EMA crosses above the Slow EMA, indicating a potential bullish trend.
Oversold Reversal Entry:
Alternatively, a Buy is triggered when:
The Slow EMA is significantly below the Fast EMA (oversold market behavior),
The current price is well below the Fast EMA,
A volume spike occurs, suggesting a possible reversal.
🔴 Sell Conditions:
Trend Crossover Exit:
A Sell signal is generated when the Fast EMA crosses below the Slow EMA, indicating a bearish shift.
Overbought Reversal Exit:
A Sell is triggered when:
The Slow EMA is above the Fast EMA by a wide margin,
The price is well above the Fast EMA,
A volume spike suggests downward reversal pressure.
📏 Risk Management:
Uses ATR-based stop-loss and take-profit levels to dynamically manage risk per trade.
Includes adjustable input options for ATR multipliers, moving average lengths, volume filters, and more.
🧩 Why Use This Strategy?
Rather than juggling multiple indicators manually, this script combines and simplifies them into a single, convenient strategy. It’s ideal for traders who want:
Clean visual signals,
Robust entry/exit logic backed by volume and trend behavior,
A modular and customizable setup for testing and optimization.
⚠️ Disclaimer: This script is for educational and informational purposes only. It does not constitute financial advice. Always backtest strategies thoroughly and use proper risk management when trading live.
PulseMA + MADescription
The PulseMA + MA indicator is an analytical tool that combines the analysis of the price relationship to a base Exponential Moving Average (EMA) with a smoothed Simple Moving Average (SMA) of this relationship. The indicator helps traders identify the direction and momentum of market trends and generates entry signals, displaying data as lines below the price chart.
Key Features
PulseMA: Calculates trend momentum by multiplying the number of consecutive candles above or below the base EMA by the slope of this average. The number of candles determines trend strength (positive for an uptrend, negative for a downtrend), while the EMA slope reflects the rate of change of the average. The PulseMA value is scaled by multiplying by 100.
Smoothed Average (PulseMA MA): Adds a smoothed SMA, facilitating the identification of long-term changes in market momentum.
Dynamic Colors: The PulseMA line changes color based on the price position relative to the base EMA (green for price above, red for price below).
Zero Line: Indicates the area where the price is close to the base EMA.
Applications
The PulseMA + MA indicator is designed for traders and technical analysts who aim to:
Analyze the direction and momentum of market trends, particularly with higher PulseMA Length values (e.g., 100), which provide a less sensitive EMA for longer-term trends.
Generate entry signals based on the PulseMA color change or the crossover of PulseMA with PulseMA MA.
Anticipate potential price reversals to the zero line when PulseMA is significantly distant from it, which may indicate market overextension.
How to Use
Add the Indicator to the Chart: Search for "PulseMA + MA" in the indicator library and add it to your chart.
Adjust Parameters:
PulseMA Length: Length of the base EMA (default: 50).
PulseMA Smoothing Length: Length of the smoothed SMA (default: 20).
Interpretation:
Green PulseMA Line: Price is above the base EMA, suggesting an uptrend.
Red PulseMA Line: Price is below the base EMA, indicating a downtrend.
PulseMA Color Change: May signal an entry point (recommended to wait for 2 candles to reduce noise).
PulseMA Crossing PulseMA MA from Below: May indicate a buy signal in an uptrend.
Zero Line: Indicates the area where the price is close to the base EMA.
Significant Deviation of PulseMA from the Zero Line: Suggests a potential price reversal to the zero line, indicating possible market overextension.
Notes
The indicator generates trend signals and can be used to independently identify entry points, e.g., on PulseMA color changes (waiting 2 candles is recommended to reduce noise) or when PulseMA crosses PulseMA MA from below.
In sideways markets, it is advisable to use the indicator with a volatility filter to limit false signals.
Adjusting the lengths of the averages to suit the specific instrument can improve signal accuracy.
ATR & Ticker + SMA Display (Table)Displays ATR with moving average of choice
Allows display by screen location and by selection of moving average type
BB + SMA5 반전 신호 (중복 방지 + 알림)This is an indicator that generates a sell signal when the 5sma reverses downward within the Bollinger Band.
Sarjana Crypto TrendMaster + EMA 20/50/100/200It combines moving averages, a custom SuperTrend, and Heikin Ashi smoothing to help you spot trend direction and filter clean buy/sell signals.
This tool doesn’t predict — it reacts smartly to trend changes.
It's ideal for traders who want clear, filtered signals backed by trend logic and EMAs.
GMMA with Distance TableThis is a combination of
1. Moving averages 20, 50, 100 and 200.
2. Table showing-
-Distances of the CMP from these moving averages,
-Distance from 52 week high and recent swing high
-Monthly, weekly and annual returns.
Trend Blend
Trend blend is my new indicator. I use it to identify my bias when trading and filter out fake setups that are going in the wrong direction.
Trend blend utilises the 9 EMA (Red), 21 EMA (Black), and if you trade futures or Bitcoin, you can also use the VWAP (Blue).
There is also a table at the top right that displays the chart time frame bias
I prefer to use the 1-hour time frame for bias and execute the trades on 5-minute charts, mainly, and sometimes on the 1-minute for a smaller stoploss.
Here's an example of the trade I took during the London session on XAU/USD
1 hour bias was Bearish
Price broke out of the range
I waited for the London session to open, where I ended up taking a short on the 5-minute time frame as we broke out of the pre-London range
Entry was at the Fair Value Gap (5-minute bias was also Bearish as price traded into the FVG)
Stoploss was at the last high
Take Profit was the next major support level
Another set that I like to trade with the Trend blend is when price is trending bullish and price trades inside the 9 and 21 EMA, and there is a bullish candle closer above the 9 EMA with Stoploss below the low of the bullish candle and Take profit between 1-2 Risk to Reward
Same when there's a bearish trend, I wait for price to trade inside the 9 and 21 EMA, and I'll take sells when a bearish candle closes below the 9 EMA.
This setup works best in strong trends, or it can be used to enter a trade on a pullback or to scale into an existing trade.
Moving Average Crossover Fast Moving Average (default: 9-period ) — reacts quickly to price changes.
Slow Moving Average (default: 21-period ) — smooths out long-term trends.
How It Works:
A Buy Signal is generated when the fast MA crosses above the slow MA, indicating potential upward momentum.
A Sell Signal is triggered when the fast MA crosses below the slow MA, signaling possible bearish momentum.
Features:
Customizable fast and slow MA periods.
Clear BUY/SELL labels directly on the chart.
Works on any timeframe or asset (stocks, crypto, forex, etc.).
Great for trend-following and swing trading strategies.
GK Accounting - Gold Trading Signalhi this is new indicator for trading anytime frame any market its work really good
EMA Confluence Oscillator📌 EMA Confluence Oscillator + Signal
This oscillator helps detect ranging vs trending conditions by measuring EMA alignment, slope, and choppiness. It’s designed for traders who want to avoid chop and trade in clean directional moves.
⸻
🔍 How It Works:
• Uses 3 EMAs (Fast, Medium, Slow) to assess market structure
• Measures how flat the slow EMA is (low slope = range)
• Detects short-term momentum flips in fast/medium EMAs
• Calculates EMA spread to find tight, choppy zones
• Combines all signals into a Range Score (0–1 scale)
⸻
🧠 How to Use:
• High Range Score (near 1): Market likely ranging
• Low Range Score (near 0): More directional/trending
• Watch for crosses below the range threshold to spot trend breakouts
• Optional Signal Line helps smooth decision points
⸻
⚙️ Features:
• Custom lengths for 3 EMAs
• Adjustable slope and convergence thresholds
• Toggle smoothing and signal line
• Background highlight when market is likely in a range
• Clean layout designed for fast intraday analysis
⸻
🛠️ Input Settings Explained:
• Fast/Medium/Slow EMA: Controls trend detection windows
• Slope Lookback: Period used to assess flatness of slow EMA
• Convergence Threshold: How close EMAs must be to count as “tight”
• Smooth Output: Reduces noise in final Range Score
• Signal Line: Smoothed version of the score for easier reading
• Range Threshold: Level where choppiness is likely
• Show Background: Highlights range zones visually
MTF RSI MA System + Adaptive BandsMTF RSI MA System + Adaptive Bands
Overview
MTF RSI MA System + Adaptive Bands is a highly customizable Pine Script indicator for traders seeking a versatile tool for multi-timeframe (MTF) analysis. Unlike traditional RSI, it focuses on the Moving Average of RSI (RSI MA), delivering smoother and more flexible trading signals. The main screenshot displays the indicator in two panels to showcase its diverse capabilities.
Important: Timeframes do not adjust automatically – users must manually set them to match the chart’s timeframe.
Features
Core Component: Built around RSI MA, not raw RSI, for smoother trend signals.
Multi-Timeframe: Analyze RSI MA across three customizable timeframes (default: 4H, 8H, 12H).
Adaptive Bands: Three band calculation methods (Fixed, Percent, StdDev) for dynamic signals.
Flexible Signals: Generated via RSI MA crossovers, band interactions, or directional alignment across timeframes.
Background Coloring: Highlights when RSI MAs across timeframes move in the same direction, aiding trend confirmation.
Screenshot Panels Configuration
Upper Panel: Shows RSI, RSI MA, and fixed bands for reversal strategies (RSI crossing bands).
Lower Panel: Displays three RSI MAs (Alligator-style) for trend-following, with background coloring for directional alignment.
Band Calculation Methods
The indicator offers three ways to calculate bands around RSI MA, each with unique characteristics:
Fixed Bands
Set at a fixed point value (default: 10) above and below RSI MA.
Example: If RSI MA = 50, band value = 10 → upper band = 60, lower = 40.
Use Case: Best for stable markets or fixed-range preferences.
Tip: Adjust the band value to widen or narrow the range based on asset volatility.
Percent Bands
Calculated as a percentage of RSI MA (default: 10%).
Example: If RSI MA = 50, band value = 10% → upper band = 55, lower = 45.
Use Case: Ideal for assets with varying volatility, as bands scale with RSI MA.
Tip: Experiment with percentage values to match typical price swings.
Standard Deviation Bands (StdDev)
Based on RSI’s standard deviation over the MA period, multiplied by a user-defined factor (default: 10).
Example: If RSI MA = 50, standard deviation = 5, factor = 2 → upper band = 60, lower = 40.
Important: The default value (10) may produce wide bands. Reduce to 1–2 for tighter, practical bands.
Use Case: Best for dynamic markets with fluctuating volatility.
Configuration Options
RSI Length: Set RSI calculation period (default: 20).
MA Length: Set RSI MA period (default: 20).
MA Type: Choose SMA or EMA for RSI MA (default: EMA).
Timeframes: Configure three timeframes (default: 4H, 8H, 12H) for MTF analysis.
Overbought/Oversold Levels: Optionally display fixed levels (default: 70/30).
Background Coloring: Enable/disable for each timeframe to highlight directional alignment.
How to Use
Add Indicator: Load it onto your TradingView chart.
Setup:
Reversals: Configure like the upper panel (RSI, RSI MA, bands) and watch for RSI crossing bands.
Trends: Configure like the lower panel (three RSI MAs) and look for fastest MA crossovers and background coloring.
Adjust Timeframes: Manually set tf1, tf2, tf3 (e.g., 1H, 2H, 4H on a 1H chart) to suit your strategy.
Adjust Bands: Choose band type (Fixed, Percent, StdDev) and value. For StdDev, reduce to 1–2 for tighter bands.
Experiment: Test settings to match your trading style, whether scalping, swing trading, or long-term.
Notes
Timeframes: Always match tf1, tf2, tf3 to your chart’s needs, as they don’t auto-adjust.
StdDev Bands: Lower the default value (10) to avoid overly wide bands.
Versatility: Works across markets (stocks, forex, crypto).
Adaptive Multi-MA OptimizerAdaptive Multi-MA Optimizer
This indicator provides a powerful, customizable solution for traders seeking dynamically optimized moving averages with precision and control. It integrates multiple custom-built moving average types, applies real-time volatility-based optimization, and includes an optional composite smoothing engine.
🧠 Key Features
Dynamic Optimization:
Automatically selects the optimal lookback length based on market volatility stability using a custom standard deviation differential model.
Multiple Custom MA Types:
Includes fully custom implementations of:
SMA (Simple Moving Average)
EMA (Exponential Moving Average)
WMA (Weighted Moving Average)
VWMA (Volume Weighted MA)
DEMA (Double EMA)
TEMA (Triple EMA)
Hull MA
ALMA (Arnaud Legoux MA)
Composite MA Option:
A unique "Composite" mode blends all supported MAs into a single average, then applies optional smoothing for enhanced signal clarity.
Dynamic Smoothing:
The composite mode supports volatility-adjusted smoothing (based on optimized lookback), making it adaptable to different market regimes.
Fully Custom Logic:
No built-in MA functions are used — every moving average is hand-coded for transparency and educational value.
⚙️ How It Works
Optimization:
The script evaluates a range of lengths (minLen to maxLen) using the standard deviation of price returns. It selects the length with the most stable recent volatility profile.
Calculation:
The selected MA type is calculated using that optimized length. If "Composite" is chosen, all MA types are averaged and smoothed dynamically.
Visualization:
The adaptive MA is plotted on the chart, changing color based on its position relative to price.
📌 Use Cases
Trend-following strategies that adapt to different market conditions.
Traders wanting a high-fidelity composite of multiple MAs.
Analysts interested in visualizing market smoothness without lag-heavy signals.
Coders looking to learn how to build custom indicators from scratch.
🧪 Inputs
MA Type: Choose from 8 MA types or a blended Composite.
Lookback Range: Control min/max and step size for optimization.
Source: Choose any price series (e.g., close, hl2).
⚠️ Disclaimer
This indicator is for educational and informational purposes only and does not constitute financial advice, trading advice, or investment recommendations. Use of this script is at your own risk. Past performance does not guarantee future results. Always perform your own analysis and consult with a qualified financial advisor before making trading decisions.
Donchian + EMA + T3 + Supertrend (RR 1:2)Trend Catcher Build with Donchain channels and EMA cross, also confirmation with Supertrend
Past ADR (3 & 5 Days)Average Daily Range for the past 3 and 5 days.
It takes the daily ranges and calculates the averages.
By hovering over the numbers on the left side of the screen, you will see the averages.
EMA Curl Strength📌 EMA Curl Strength
EMA Curl Strength is a trend momentum oscillator based on the slope of an EMA, normalized using Z-scores. It helps identify when a market is trending vs. ranging, and how strong the current momentum is.
⸻
🔍 How it works:
• Measures the slope of an EMA and standardizes it with Z-scores.
• Smooths the result and compares it to a signal line.
• The histogram shows the difference between the two.
• Color-coded lines represent mild, moderate, and strong trend strength.
⸻
🧠 How to use it:
• Watch for crosses of the zero line as possible trade signals.
• Use bright green/red for strong trends, gray/faint tones for weak or ranging conditions.
• Best used with other indicators (like RSI, moving averages, or price action) for trade confirmation.
⸻
⚙️ Key Features:
• Adjustable EMA, smoothing, and histogram settings
• Custom Z-score thresholds for trend strength
• Toggleable threshold lines (mild, moderate, strong)
• Optional zero-cross dots and color gradient fill
• All colors and styles customizable
⸻
🛠️ Input Overview:
• EMA Length: Speed of trend detection
• Smoothing Lengths: Control signal smoothness
• Z Lookback: Sensitivity to slope changes
• Histogram Settings: Affect shape and signal of histogram
• Gradient Opacity: Controls background color fill strength
• Toggle Lines & Dots: Show/hide elements like threshold lines or cross markers
SMA & EMA Combo (10/20/50/200)How This Works
Inputs: Four separate input fields let you adjust each moving average’s period from the indicator’s settings panel.
Calculation: Uses ta.sma for SMAs and ta.ema for EMAs, both calculated on the close price.
Plotting: Each moving average is plotted with a distinct color and label for clarity.
How to Use
Open TradingView, go to the Pine Script editor.
Paste the code above.
Add the script to your chart.
You’ll see four lines: 10 SMA (purple), 20 SMA (green), 50 EMA (red), 200 EMA (blue). You can adjust the periods in the indicator’s settings.