NQ Position Size CalculatorNQ Position Size Line Calculator is designed specifically for Nasdaq 100 futures (NQ) and micro futures (MNQ) traders who want to maintain disciplined risk management. This visual tool eliminates the guesswork from position sizing by displaying distance lines and contract calculations directly on your chart.
The indicator creates horizontal lines at 10-tick intervals from your stop loss level, showing you exactly how many contracts to trade at each distance to maintain your predetermined risk amount. Whether you're trading regular NQ contracts or micro MNQ contracts, this calculator ensures you never risk more than intended while providing instant visual feedback for optimal position sizing decisions.
How to Use the Indicator
Step 1: Configure Your Settings
Stop Loss Price: Enter your exact stop loss level (e.g., 20000.00)
Risk Amount ($): Set your maximum dollar risk per trade (e.g., $500)
Contract Type: Choose between:
NQ (Regular): $5 per tick - for larger accounts
MNQ (Micro): $0.50 per tick - for smaller accounts or conservative sizing
Display Options:
Max Lines: Number of distance lines to show (default: 30)
Show Labels: Toggle tick distance and contract count labels
Line Color: Customize the color of distance lines
Label Size: Choose tiny, small, or normal label sizes
Step 2: Read the Visual Display
Once configured, the indicator displays:
Stop Loss Line:
Thick yellow line marking your exact stop loss level
Yellow label showing the stop loss price
Distance Lines:
Dashed red lines at 10-tick intervals above and below your stop loss
Lines appear on both sides for long and short position planning
Labels (if enabled):
Green labels (right side): For long positions above your stop loss
Red labels (left side): For short positions below your stop loss
Format: "20T 5x" means 20 ticks distance, 5 contracts maximum
Step 3: Use the Information Tables
The indicator provides two helpful tables:
Position Size Table (top-right):
Shows common tick distances (10, 20, 40, 80, 160 ticks)
Displays risk per contract at each distance
Contract count for your specified risk amount
Total risk with rounded contract numbers
Settings Table (bottom-right):
Confirms your current risk amount
Shows selected contract type
Displays current settings for quick reference
Step 4: Apply to Your Trading
For Long Positions:
Look at the green labels on the right side of your chart
Find your desired entry level
Read the label to see: distance in ticks and maximum contracts
Example: "30T 8x" = 30 ticks from stop, buy 8 contracts maximum
For Short Positions:
Look at the red labels on the left side of your chart
Find your desired entry level
Read the label for tick distance and contract count
Example: "40T 6x" = 40 ticks from stop, sell 6 contracts maximum
Step 5: Trading Execution
Before Entering a Trade:
Identify your stop loss level and input it into the indicator
Choose your entry point by looking at the distance lines
Note the contract count from the corresponding label
Verify the risk amount matches your trading plan
Execute your trade with the calculated position size
Risk Management Features:
Contract rounding: All position sizes are rounded down (never up) to ensure you don't exceed your risk limit
Zero position filtering: Lines only show where position size is at least 1 contract
Dual-sided display: Plan both long and short opportunities simultaneously
Indicatori e strategie
Advanced Currency Strength Meter# Advanced Currency Strength Meter (ACSM)
The Advanced Currency Strength Meter (ACSM) is a scientifically-based indicator that measures relative currency strength using established academic methodologies from international finance and behavioral economics. This indicator provides traders with a comprehensive view of currency market dynamics through multiple analytical frameworks.
### Theoretical Foundation
#### 1. Purchasing Power Parity (PPP) Theory
Based on Cassel's (1918) seminal work and refined by Froot & Rogoff (1995), PPP suggests that exchange rates should reflect relative price levels between countries. The ACSM momentum component captures deviations from long-term equilibrium relationships, providing insights into currency misalignments.
#### 2. Uncovered Interest Rate Parity (UIP) and Carry Trade Theory
Building on Fama (1984) and Lustig et al. (2007), the indicator incorporates volatility-adjusted momentum to capture carry trade flows and interest rate differentials that drive currency strength. This approach helps identify currencies benefiting from interest rate differentials.
#### 3. Behavioral Finance and Currency Momentum
Following Burnside et al. (2011) and Menkhoff et al. (2012), the model recognizes that currency markets exhibit persistent momentum effects due to behavioral biases and institutional flows. The indicator captures these momentum patterns for trading opportunities.
#### 4. Portfolio Balance Theory
Based on Branson & Henderson (1985), the relative strength matrix captures how portfolio rebalancing affects currency cross-rates and creates trading opportunities between different currency pairs.
### Technical Implementation
#### Core Methodologies:
- **Z-Score Normalization**: Following Sharpe (1994), provides statistical significance testing without arbitrary scaling
- **Momentum Analysis**: Uses return-based metrics (Jegadeesh & Titman, 1993) for trend identification
- **Volatility Adjustment**: Implements Average True Range methodology (Wilder, 1978) for risk-adjusted strength
- **Composite Scoring**: Equal-weight methodology to avoid overfitting and maintain robustness
- **Correlation Analysis**: Risk management framework based on Markowitz (1952) portfolio theory
#### Key Features:
- **Multi-Source Data Integration**: Supports OANDA, Futures, and CFD data sources
- **Scientific Methodology**: No arbitrary scaling or curve-fitting; all calculations based on established statistical methods
- **Comprehensive Dashboard**: Clean, professional table showing currency strengths and best trading pairs
- **Alert System**: Automated notifications for strong/weak currency conditions and extreme values
- **Best Pair Identification**: Algorithmic detection of highest-potential trading opportunities
### Practical Applications
#### For Swing Traders:
- Identify currencies in strong uptrends or downtrends
- Select optimal currency pairs based on relative strength divergence
- Time entries based on momentum convergence/divergence
#### For Day Traders:
- Use with real-time futures data for intraday opportunities
- Monitor currency correlations for risk management
- Detect early reversal signals through extreme value alerts
#### For Portfolio Managers:
- Multi-currency exposure analysis
- Risk management through correlation monitoring
- Strategic currency allocation decisions
### Visual Design
The indicator features a clean, professional dashboard that displays:
- **Currency Strength Values**: Each major currency (EUR, GBP, JPY, CHF, AUD, CAD, NZD, USD) with color-coded strength values
- **Best Trading Pairs**: Filtered list of highest-potential currency pairs with BUY/SELL signals
- **Market Analysis**: Real-time identification of strongest and weakest currencies
- **Potential Score**: Quantitative measure of trading opportunity strength
### Data Sources and Latency
The indicator supports multiple data sources to accommodate different trading needs:
- **OANDA (Delayed)**: Free data with 15-20 minute delay, suitable for swing trading
- **Futures (Real-time)**: CME currency futures for real-time analysis
- **CFDs**: Alternative real-time data source option
### Mathematical Framework
#### Strength Calculation:
Momentum = (Price - Price ) / Price * 100
Z-Score = (Price - Mean) / Standard Deviation
Volatility-Adjusted = Momentum / ATR-based Volatility
Composite = 0.5 * Momentum + 0.3 * Z-Score + 0.2 * Volatility-Adjusted
#### USD Strength Derivation:
USD strength is calculated as the weighted average of all USD-based pairs, providing a true baseline for relative strength comparison.
### Performance Considerations
The indicator is optimized for:
- **Computational Efficiency**: Uses Pine Script v6 best practices
- **Memory Management**: Appropriate lookback periods and array handling
- **Visual Clarity**: Clean table design optimized for both light and dark themes
- **Alert Reliability**: Robust signal generation with statistical significance testing
### Limitations and Risk Disclosure
- Model performance may vary during extreme market stress (Black Swan events)
- Requires stable data feeds for accurate calculations
- Not optimized for high-frequency scalping strategies
- Central bank interventions may temporarily distort signals
- Performance assumes normal market conditions with behavioral adjustments
### Academic References
- Branson, W. H., & Henderson, D. W. (1985). "The Specification and Influence of Asset Markets"
- Burnside, C., Eichenbaum, M., & Rebelo, S. (2011). "Carry Trade and Momentum in Currency Markets"
- Cassel, G. (1918). "Abnormal Deviations in International Exchanges"
- Fama, E. F. (1984). "Forward and Spot Exchange Rates"
- Froot, K. A., & Rogoff, K. (1995). "Perspectives on PPP and Long-Run Real Exchange Rates"
- Jegadeesh, N., & Titman, S. (1993). "Returns to Buying Winners and Selling Losers"
- Lustig, H., Roussanov, N., & Verdelhan, A. (2007). "Common Risk Factors in Currency Markets"
- Markowitz, H. (1952). "Portfolio Selection"
- Menkhoff, L., Sarno, L., Schmeling, M., & Schrimpf, A. (2012). "Carry Trades and Global FX Volatility"
- Sharpe, W. F. (1994). "The Sharpe Ratio"
- Wilder, J. W. (1978). "New Concepts in Technical Trading Systems"
### Usage Instructions
1. **Setup**: Add the indicator to your chart and select your preferred data source
2. **Currency Selection**: Choose which currencies to analyze (default: all major currencies)
3. **Methodology**: Select calculation method (Composite recommended for most users)
4. **Monitoring**: Watch the dashboard for strength changes and best pair opportunities
5. **Alerts**: Set up notifications for strong/weak currency conditions
MA5 — 四點高低 + H1/L1 水平線 + 突破/回買 + 月季線交叉//@version=5
indicator("MA5 — 四點高低 + H1/L1 水平線 + 突破/回買 + 月季線交叉", overlay=true)
// 1. 均線設定
ma5 = ta.sma(close, 5)
ma10 = ta.sma(close, 10)
ma20 = ta.sma(close, 20)
ma60 = ta.sma(close, 60) // ← 加上這一行
// 畫出均線
plot(ma5, title="MA5", color=color.red)
plot(ma10, title="MA10", color=color.orange)
plot(ma20, title="MA20", color=color.yellow)
plot(ma60, title="MA60", color=color.green)
// 2. 全域變數:方向、區段極值
var int direction = na
var float segHigh = na
var int segHighBar = na
var float segLow = na
var int segLowBar = na
// 3. 全域變數:儲存兩組高低
var float high1 = na
var int high1Bar = na
var float high2 = na
var int high2Bar = na
var float low1 = na
var int low1Bar = na
var float low2 = na
var int low2Bar = na
// 4. 全域變數:標籤與線段句柄
var label highLbl1 = na
var label highLbl2 = na
var label lowLbl1 = na
var label lowLbl2 = na
var line highLine = na
var line lowLine = na
var line h1Line = na
var line l1Line = na
// 5. 全域變數:回買訊號控制
var bool buyBackShown = false
// 6. 判斷當前段方向
currDir = close > ma5 ? 1 : close < ma5 ? -1 : direction
// 7. 首次初始化
if na(direction)
direction := currDir
segHigh := high
segHighBar := bar_index
segLow := low
segLowBar := bar_index
// 8. 同段內更新極值
if currDir == 1 and high > segHigh
segHigh := high
segHighBar := bar_index
if currDir == -1 and low < segLow
segLow := low
segLowBar := bar_index
// 9. 段落切換:推舊值→更新 H1/L1→刪舊標籤/線→畫新標籤/線→重置 seg*
if currDir != direction
high2 := high1
high2Bar := high1Bar
low2 := low1
low2Bar := low1Bar
if direction == 1
high1 := segHigh
high1Bar := segHighBar
else
low1 := segLow
low1Bar := segLowBar
buyBackShown := false
if not na(highLbl1)
label.delete(highLbl1)
if not na(highLbl2)
label.delete(highLbl2)
if not na(lowLbl1)
label.delete(lowLbl1)
if not na(lowLbl2)
label.delete(lowLbl2)
if not na(high2)
highLbl2 := label.new(high2Bar, high2, "H2", style=label.style_label_down, color=color.blue, textcolor=color.white)
if not na(high1)
highLbl1 := label.new(high1Bar, high1, "H1", style=label.style_label_down, color=color.blue, textcolor=color.white)
if not na(low2)
lowLbl2 := label.new(low2Bar, low2, "L2", style=label.style_label_up, color=color.purple, textcolor=color.white)
if not na(low1)
lowLbl1 := label.new(low1Bar, low1, "L1", style=label.style_label_up, color=color.purple, textcolor=color.white)
if not na(highLine)
line.delete(highLine)
if not na(high1) and not na(high2)
highLine := line.new(high2Bar, high2, high1Bar, high1, color=color.blue, width=2)
if not na(lowLine)
line.delete(lowLine)
if not na(low1) and not na(low2)
lowLine := line.new(low2Bar, low2, low1Bar, low1, color=color.purple, width=2)
if not na(h1Line)
line.delete(h1Line)
if not na(high1)
h1Line := line.new(high1Bar, high1, bar_index, high1, xloc=xloc.bar_index, extend=extend.right, color=color.green, style=line.style_dashed)
if not na(l1Line)
line.delete(l1Line)
if not na(low1)
l1Line := line.new(low1Bar, low1, bar_index, low1, xloc=xloc.bar_index, extend=extend.right, color=color.red, style=line.style_dashed)
segHigh := high
segHighBar := bar_index
segLow := low
segLowBar := bar_index
// 10. 更新方向
direction := currDir
// 11. 突破訊號:收盤首次突破 H1 且 ma5>ma10>ma20
buySignal = not na(high1) and ta.crossover(close, high1) and ma5 > ma10 and ma10 > ma20
if buySignal
label.new(bar_index, low, "突破", style=label.style_label_up, color=color.green, textcolor=color.white)
// 12. 回買訊號:L1 之後任一 K 棒,首次收盤突破 MA5,且高於 L1、漲幅>2%、ma5>ma10>ma20、且收盤>ma20
buyBackSignal = not na(low1) and bar_index > low1Bar and ta.crossover(close, ma5) and high > low1 and (close - open) / open > 0.02 and ma5 > ma10 and ma10 > ma20 and close > ma20 and not buyBackShown
if buyBackSignal
label.new(bar_index, low, "回買", style=label.style_label_up, color=color.green, textcolor=color.white)
buyBackShown := true
// 13. 月季線交叉且四線多頭排列時,在 K 棒正下方標示放大三角形
if ta.cross(ma20, ma60) and ma5 > ma10 and ma10 > ma20 and ma20 > ma60
label.new(bar_index, low, "▲", xloc=xloc.bar_index, yloc=yloc.belowbar, style=label.style_label_center, color=color.new(color.white, 100), textcolor=color.white, size=size.large)
DrCID-CISD LevelThe CISD Levels indicator is a sophisticated market structure analysis tool that automatically identifies and plots critical support and resistance levels based on Change in State Direction (CISD) methodology. This indicator helps traders visualize key market turning points and potential breakout/breakdown levels with precision.
SymFlex Band - RSI-MAD Asymmetric
🔮 SymFlex Band – RSI-MAD Asymmetric Band by Kwang Il Lee
Source: surirang.com
The SymFlex Band is a unique asymmetric envelope built on a hybrid concept that fuses RSI momentum dynamics with MAD (Mean Absolute Deviation). Unlike traditional symmetric bands (like Bollinger Bands or Keltner Channels), this band expands and contracts asymmetrically, reflecting the directional momentum of the market.
🎯 Core Innovation
🔸 RSI-Based Asymmetry
This band is not centered merely on price volatility. Instead, it uses the RSI's deviation from the neutral line (50) to determine whether bullish or bearish pressure is dominating — dynamically expanding or compressing the upper/lower bands accordingly.
🔸 MAD-Weighted Scaling
To ensure the band responds accurately to real price deviation, MAD is used instead of standard deviation or ATR. It provides a more robust and median-sensitive envelope for noisy or volatile markets.
🔸 Dynamic Adaptation
The band is adaptive in both direction and width:
When RSI rises above 50, the upper band stretches wider.
When RSI falls below 50, the lower band stretches instead.
A minimum width threshold ensures stability.
📈 How to Use
Use breakouts from the band as potential trend signals.
Confirm market strength via table: Check if price is “In Range” or breaking out.
Monitor the correlation between MAD and RSI in the dynamic table to detect momentum sync.
🔍 Technical Notes
Supports multiple MA types (SMA, EMA, TEMA, DEMA, Zerolag, etc.) as the band basis.
Designed for both trend-following and range-trading interpretations.
Fully responsive to different market conditions through minimal user inputs.
🚨 Note: This is not a combination of unrelated indicators. The RSI-MAD structure is purpose-built to represent a new type of envelope based on directional momentum and deviation sensitivity.
Intermarket Analysis ProIntermarket Analysis Pro Indicator
Overview
The Intermarket Analysis Pro is a sophisticated trading indicator designed for forex traders, integrating technical analysis with comprehensive macroeconomic insights. This tool features Exponential Moving Averages (EMA 10/20) for trend detection, a consolidated table combining timeframe biases, trading signals, and intermarket data, delivering a holistic view to optimize decision-making in volatile markets.
Usage Instructions
Installation: Access TradingView, navigate to the Pine Editor, paste the script, and save it as "Intermarket_Analysis_Pro". Apply it to your desired forex chart (e.g., EURUSD on a 5-minute timeframe).
Configuration:
EMA Settings: Select EMA Source as "close" for precise alignment with candle closes, adjust EMA 10 Period (default 10) and EMA 20 Period (default 20) to suit your strategy, and toggle Show EMA Value Labels or Show (B)/(S) Signal Labels for enhanced visibility.
Table Settings: Enable Show Combined Table, select Combined Table Position (e.g., "Bottom Right"), and choose Text Size (e.g., "Small") for optimal display.
Intermarket Parameters: Fine-tune Bias Threshold (default 0.3) and Score Change Threshold (default 10) to refine intermarket bias sensitivity.
Display Options: Switch between "Light" or "Dark" themes to match your chart environment.
Signal Interpretation:
EMA Indicators: A crossover of EMA 10 (orange) above EMA 20 (blue) signals a potential BUY, while a crossunder indicates a SELL. Confirm with "(B)" or "(S)" labels on the chart.
Combined Table: Analyze timeframe biases (e.g., "BULLISH" on 1m), logic signals (e.g., "BUY" on 5m), and intermarket trends (e.g., "EUR Rise (+30)") to align with market conditions.
Strategic Application: Utilize on lower timeframes (1m, 5m) for scalping or higher timeframes (1h, 4h) for swing trading. Ensure smooth scrolling to verify EMA and table synchronization with candles.
Alert Setup: Configure alerts for "Buy Signal" or "Sell Signal" on your preferred timeframe to receive real-time notifications.
Key Features
EMA 10/20: Provides customizable short-term trend analysis with optional value labels.
Unified Table: Merges SimpleBias (timeframe trends), Logic (trading signals), and Intermarket (global currency, index, and bond movements) into a single, scrollable interface.
Intermarket Insights: Evaluates 18 assets (e.g., DXY, SPX500, EUR, XAUUSD) for macroeconomic sentiment, updated hourly with color-coded change indicators.
Customization: Offers adjustable positions, sizes, and thresholds to adapt to individual trading preferences.
Market Context: Reflects current sentiment, such as a bullish EURUSD trend supported by weak NFP data and hawkish ECB policies (as of July 2025).
Best Practices
Timeframe Alignment: Match the chart timeframe with your analysis to ensure accurate EMA and table data representation.
Optimal Trading Hours: Maximize effectiveness during the NY session (08:00-17:00 EST) when intermarket activity is most pronounced.
Troubleshooting: If EMA lags during scrolling, disable labels or reduce additional indicators. Report discrepancies (e.g., "EMA 10 at 1.08840, candle at 1.08850") for further optimization.
Additional Notes
The Intermarket Analysis Pro is tailored for traders seeking to integrate global sentiment with technical signals. Test thoroughly on a demo account and adjust settings to align with your trading strategy. As of July 5, 2025, 04:04 AM WIB, the market indicates a bullish EURUSD outlook, with intermarket data reinforcing BUY opportunities on lower timeframes.
ABCD Pattern FinderThis is a basic version: more robust implementations use zigzag structures and advanced filtering.
You may want to filter by Fibonacci ratios like 61.8%, 78.6%, or 127.2% depending on your preferred ABCD variation.
Enhanced Ichimoku Cloud Strategy V1 [Quant Trading]Overview
This strategy combines the powerful Ichimoku Kinko Hyo system with a 171-period Exponential Moving Average (EMA) filter to create a robust trend-following approach. The strategy is designed for traders seeking to capitalize on strong momentum moves while using the Ichimoku cloud structure to identify optimal entry and exit points.
This is a patient, low-frequency trading system that prioritizes quality over quantity. In backtesting on Solana, the strategy achieved impressive results with approximately 3600% profit over just 29 trades, demonstrating its effectiveness at capturing major trend movements rather than attempting to profit from every market fluctuation. The extended parameters and strict entry criteria are specifically optimized for Solana's price action characteristics, making it well-suited for traders who prefer fewer, higher-conviction positions over high-frequency trading approaches.
What Makes This Strategy Original
This implementation enhances the traditional Ichimoku system by:
Custom Ichimoku Parameters: Uses non-standard periods (Conversion: 7, Base: 211, Lagging Span 2: 120, Displacement: 41) optimized for different market conditions
EMA Confirmation Filter: Incorporates a 171-period EMA as an additional trend confirmation layer
State Memory System: Implements a sophisticated memory system to track buy/sell states and prevent false signals
Dual Trade Modes: Offers both traditional Ichimoku signals ("Ichi") and cloud-based signals ("Cloud")
Breakout Confirmation: Requires price to break above the 25-period high for long entries
How It Works
Core Components
Ichimoku Elements:
-Conversion Line (Tenkan-sen): 7-period Donchian midpoint
-Base Line (Kijun-sen): 211-period Donchian midpoint
-Span A (Senkou Span A): Average of Conversion and Base lines, plotted 41 periods ahead
-Span B (Senkou Span B): 120-period Donchian midpoint, plotted 41 periods ahead
-Lagging Span (Chikou Span): Current close plotted 41 periods back
EMA Filter: 171-period EMA acts as a long-term trend filter
Entry Logic (Ichi Mode - Default)
A long position is triggered when ALL conditions are met:
Cloud Bullish: Span A > Span B (41 periods ago)
Breakout Confirmation: Current close > 25-period high
Ichimoku Bullish: Conversion Line > Base Line
Trend Alignment: Current close > 171-period EMA
State Memory: No previous buy signal is still active
Exit Logic
Positions are closed when:
Ichimoku Bearish: Conversion Line < Base Line
Alternative Cloud Mode
When "Cloud" mode is selected, the strategy uses:
Entry: Span A crosses above Span B with additional cloud and EMA confirmations
Exit: Span A crosses below Span B with cloud and EMA confirmations
Default Settings Explained
Strategy Properties
Initial Capital: $1,000 (realistic for average traders)
Position Size: 100% of equity (appropriate for backtesting single-asset strategies)
Commission: 0.1% (realistic for most brokers)
Slippage: 3 ticks (accounts for realistic execution costs)
Date Range: January 1, 2018 to December 31, 2069
Key Parameters
Conversion Periods: 7 (faster than traditional 9, more responsive to price changes)
Base Periods: 211 (much longer than traditional 26, provides stronger trend confirmation)
Lagging Span 2 Periods: 120 (custom period for stronger support/resistance levels)
Displacement: 41 (projects cloud further into future than standard 26)
EMA Period: 171 (long-term trend filter, approximately 8.5 months of daily data)
How to Use This Strategy
Best Market Conditions
Trending Markets: Works best in clearly trending markets where the cloud provides strong directional bias
Medium to Long-term Timeframes: Optimized for daily charts and higher timeframes
Volatile Assets: The breakout confirmation helps filter out weak signals in choppy markets
Risk Management
The strategy uses 100% equity allocation, suitable for backtesting single strategies
Consider reducing position size when implementing with real capital
Monitor the 25-period high breakout requirement as it may delay entries in fast-moving markets
Visual Elements
Green/Red Cloud: Shows bullish/bearish cloud conditions
Yellow Line: Conversion Line (Tenkan-sen)
Blue Line: Base Line (Kijun-sen)
Orange Line: 171-period EMA trend filter
Gray Line: Lagging Span (Chikou Span)
Important Considerations
Limitations
Lagging Nature: Like all Ichimoku strategies, signals may lag significant price moves
Whipsaw Risk: Extended periods of consolidation may generate false signals
Parameter Sensitivity: Custom parameters may not work equally well across all market conditions
Backtesting Notes
Results are based on historical data and past performance does not guarantee future results
The strategy includes realistic slippage and commission costs
Default settings are optimized for backtesting and may need adjustment for live trading
Risk Disclaimer
This strategy is for educational purposes only and should not be considered financial advice. Always conduct your own analysis and risk management before implementing any trading strategy. The unique parameter combinations used may not be suitable for all market conditions or trading styles.
Customization Options
Trade Mode: Switch between "Ichi" and "Cloud" signal generation
Short Trading: Option to enable short positions (disabled by default)
Date Range: Customize backtesting period
All Ichimoku Parameters: Fully customizable for different market conditions
This enhanced Ichimoku implementation provides a structured approach to trend following while maintaining the flexibility to adapt to different trading styles and market conditions.
First Opposite Candle After 3+ (Yellow & Streak Alerts)This overlay tracks consecutive candle direction: when three or more bars run the same way, the very next opposite-color candle is spotlighted in yellow. Two built-in alert events keep you hands-free:
“First Opposite Candle After 3+” – fires the moment that yellow reversal prints.
“3+ Candle Streak” – pings every bar while a bullish-or-bearish run is ≥ 3 candles long.
Volume Data Table (Real-time & Historical Volume Analysis)Volume Data Table (Real-time & Historical Volume Analysis)
Overview:
The Volume Data Table indicator is a powerful tool designed to provide concise, real-time, and historical volume insights directly on your chart. It aggregates critical volume metrics into an organized, customizable table, making it incredibly easy to identify unusual volume activity, sudden surges, or sustained interest in a particular asset.
This indicator is perfect for traders who rely on volume analysis to confirm price movements, spot potential reversals, or gauge market conviction.
Key Features & How It Works:
Real-time Volume Metrics:
The table prominently displays the volume data for the current (last) candle, including:
Time: The precise time of the current candle's close, formatted in IST (Indian Standard Time - UTC+5:30) for your convenience.
Volume: The total volume for the current candle, smartly formatted in K (Thousands) or M (Millions) for readability.
Change % (Chg%): The percentage change in volume compared to the immediately preceding candle. This helps you quickly spot sudden increases or decreases in trading activity.
Vs 4-Avg % (vs4Avg%): The percentage change in volume compared to the average volume of the last 4 preceding candles. This is crucial for identifying volume surges or drops relative to recent historical activity, which can signal significant market events.
Configurable Historical Data:
Beyond the current candle, you can customize how many previous candles' volume data you wish to display. A simple input setting allows you to choose from 1 to 20 historical rows, giving you flexibility to review recent volume trends. Each historical row also provides its own "Change %" and "Vs 4-Avg %" for detailed analysis of past candle activity.
Intuitive Color-Coding:
Percentage change values are intuitively color-coded for instant visual cues:
Green: Indicates a positive (increase) in volume percentage.
Red: Indicates a negative (decrease) in volume percentage.
Clean & Organized Table Display:
The indicator presents all this data in a neat, easy-to-read table positioned at the top-right of your chart. The table automatically adjusts its height based on the number of historical rows you choose, ensuring a compact and efficient use of screen space.
Ideal Use Cases:
Volume Confirmation: Quickly confirm the conviction behind price movements. A strong price move on high "Vs 4-Avg %" volume often indicates higher reliability.
Spotting Abnormal Volume: Identify candles with unusually high or low volume compared to their recent average, which can precede or accompany significant price action.
Momentum Analysis: Understand if buying/selling pressure is increasing or decreasing over recent periods.
Scalping & Day Trading: The real-time updates and concise format make it highly effective for fast-paced short-term decision-making.
Complements Other Indicators: Use it alongside price action, candlestick patterns, or other technical indicators for a more robust analysis.
Customization Options:
Number of Historical Rows: Adjust Number of Historical Rows from 1 to 20 to tailor the depth of your historical volume review.
Important Disclaimer:
This indicator is a technical analysis tool and should be used as part of a comprehensive trading strategy. It is not financial advice. Trading in financial markets involves substantial risk, and you could lose money. Always perform your own research and risk management.
High/Low of Previous 3 Days & Daily Open (Frame-Independent)High/Low of Previous 3 Days & Daily Open
This indicator automatically plots:
The highest high and lowest low of the previous 3 trading days (excluding today),
Today’s daily open,
And shows a clear “Buy chủ đạo” (Strong Buy) label if price closes above the 3D-High,
Or a “Sell chủ đạo” (Strong Sell) label if price closes below the 3D-Low.
Key advantages:
Always calculates the true 3-day range on any timeframe (not just 3 bars),
Instantly highlights breakout zones for strong trend trading,
Simple, clean, and highly effective for both breakout and trend-following traders.
Just add it to your chart and watch for strong moves whenever price breaks out of the recent 3-day range!
RSI For LoopTitle: RSI For Loop
SurgeQuant’s RSI with Threshold Colors and Bar Coloring indicator is a sophisticated tool designed to identify overbought and oversold conditions using a customizable Relative Strength Index (RSI). By averaging RSI over a user-defined lookback period, this indicator provides clear visual signals for bullish and bearish market conditions. The RSI line and price bars are dynamically colored to highlight momentum, making it easier for traders to spot potential trading opportunities.
How It Works
RSI Calculation:
Computes RSI based on a user-selected price source (Close, High, Low, or Open) with a configurable length (default: 5). Optional moving average smoothing refines the RSI signal for smoother analysis.
Lookback Averaging:
Averages the RSI over a user-defined lookback period (default: 5) to generate a stable momentum indicator, reducing noise and enhancing signal reliability.
Threshold-Based Signals:
Long Signal: Triggered when the averaged RSI exceeds the upper threshold (default: 52), indicating overbought conditions.
Short Signal: Triggered when the averaged RSI falls below the lower threshold (default: 48), indicating oversold conditions.
Visual Representation
The indicator provides a clear and customizable visual interface: Green RSI Line and Bars: Indicate overbought conditions when the averaged RSI surpasses the upper threshold, signaling potential long opportunities.
Red RSI Line and Bars: Indicate oversold conditions when the averaged RSI drops below the lower threshold, signaling potential short opportunities.
Neutral Gray RSI Line: Represents RSI values between thresholds for neutral market conditions.
Threshold Lines: Dashed gray lines mark the upper and lower thresholds on the RSI panel for easy reference.
Customization & Parameters
The RSI with Threshold Colors and Bar Coloring indicator offers flexible parameters to suit
various trading styles: Source: Select the input price (default: Close; options: Close, High, Low, Open).
RSI Length: Adjust the RSI calculation period (default: 5).
Smoothing: Enable/disable moving average smoothing (default: enabled) and set the smoothing length (default: 10).
Moving Average Type: Choose from multiple types (SMA, EMA, DEMA, TEMA, WMA, VWMA, SMMA, HMA, LSMA, ALMA; default: ALMA).
ALMA Sigma: Configure the ALMA smoothing parameter (default: 5).
Lookback Period: Set the period for averaging RSI (default: 5).
Thresholds: Customize the upper (default: 52) and lower (default: 48) thresholds for signal generation.
Color Settings: Transparent green and red colors (70% transparency) for bullish and bearish signals, with gray for neutral states.
Trading Applications
This indicator is versatile and can be applied across various markets and strategies: Momentum Trading: Highlights strong overbought or oversold conditions for potential entry or exit points.
Trend Confirmation: Use bar coloring to confirm RSI-based signals with price action on the main chart.
Reversal Detection: Identify potential reversals when RSI crosses the customizable thresholds.
Scalping and Swing Trading: Adjust parameters (e.g., RSI length, lookback) to suit short-term or longer-term strategies.
Final Note
SurgeQuant’s RSI with Threshold Colors and Bar Coloring indicator is a powerful tool for traders seeking to leverage RSI for momentum and reversal opportunities. Its combination of lookback-averaged RSI, dynamic threshold signals, and synchronized RSI and bar coloring offers a robust framework for informed trading decisions. As with all indicators, backtest thoroughly and integrate into a comprehensive trading strategy for optimal results.
MACD Trend StatusOverview:
The Dynamic MACD Trend Status indicator is a sophisticated yet easy-to-interpret tool designed to provide instant, color-coded insights into the current MACD momentum and trend strength directly on your chart. Unlike traditional MACD indicators that clutter your main price panel, this indicator distills complex MACD calculations into a single, prominent text label, ideal for quick confirmations and fast-paced trading.
It features two distinct logic modes, allowing you to customize its sensitivity and confirmation level, making it adaptable to various market conditions and trading styles.
Key Features & How It Works:
Two Selectable Logic Modes:
This indicator offers a unique dropdown setting (Logic Selection) to switch between two powerful MACD interpretation algorithms:
a) Option 3 (Robust) - (Default)
This is the most stringent and reliable mode, designed to filter out market noise and highlight only strong, accelerating trends. It declares a "Bullish" or "Bearish" status when ALL of the following conditions are met:
Bullish: MACD Line is above Signal Line AND MACD Histogram is positive AND MACD Histogram is increasing (momentum is accelerating) AND both MACD Line and Signal Line are above the Zero Line (confirming an overall uptrend).
Bearish: MACD Line is below Signal Line AND MACD Histogram is negative AND MACD Histogram is decreasing (momentum is accelerating) AND both MACD Line and Signal Line are below the Zero Line (confirming an overall downtrend).
Neutral: If none of the above strong conditions are met, indicating sideways movement, weakening momentum, or a transition phase.
b) Option 4 (Simplified + Enhanced)
This mode offers a more responsive signal while still providing a clear distinction for exceptionally strong moves. It determines status based on:
"MACD Bullish +" (Super Bullish): If all the rigorous conditions of "Option 3 (Robust) - Bullish" are met. This provides an immediate visual cue of extreme bullish strength within the simpler logic.
"MACD Bearish +" (Super Bearish): If all the rigorous conditions of "Option 3 (Robust) - Bearish" are met. This highlights exceptional bearish strength.
"MACD Bullish": MACD Line is above Signal Line AND MACD Histogram is positive (basic bullish momentum).
"MACD Bearish": MACD Line is below Signal Line AND MACD Histogram is negative (basic bearish momentum).
"MACD Neutral": If none of the above conditions are met.
Instant Color-Coded Status:
The indicator provides clear visual feedback through dynamic text colors:
Green: "MACD Bullish" (Standard Bullish)
Red: "MACD Bearish" (Standard Bearish)
Gray: "MACD Neutral" (Choppy/Unclear)
Blue: "MACD Bullish +" (Enhanced Strong Bullish - when using Option 4)
Fuchsia/Purple: "MACD Bearish +" (Enhanced Strong Bearish - when using Option 4)
(Note: Colors for "+" signals are customizable in the code if you wish)
Unobtrusive Display:
The status is displayed in a transparent, discreet table positioned at the middle-right of your main chart panel. This avoids cluttering the top corners or the indicator sub-panel, keeping your price action clear.
Ideal Use Cases:
Quick Confirmation: Rapidly confirm your trade ideas with a glance at the MACD's underlying momentum.
Scalping & Day Trading: The instant visual feedback is invaluable for fast-paced short-term strategies.
Momentum Filtering: Use it to filter trades, ensuring you're entering when MACD momentum is in your favor.
Complementary Tool: Designed to work hand-in-hand with your primary analysis (price action, support/resistance, other indicators). It's not intended as a standalone signal but as a powerful re-confirmation tool.
Customization Options:
MACD Settings: Adjust Fast Length, Slow Length, and Signal Length.
Logic Selection: Toggle between "Option 3 (Robust)" and "Option 4 (Simplified)" for different sensitivities.
Show Status Text: Toggle the visibility of the status text On/Off.
Text Size: Choose from "tiny", "small", "normal", "large", "huge" for optimal visibility.
Important Disclaimer:
This indicator is a technical analysis tool and should be used as part of a comprehensive trading strategy. It is not financial advice. Trading in financial markets involves substantial risk, and you could lose money. Always perform your own research and risk management.
VEP - Volume Explosion Predictor💥 VEP - Volume Explosion Predictor
General Overview
The Volume Explosion Predictor (VEP) is an advanced indicator that analyzes volume peaks to predict when the next volume explosion might occur. Using statistical analysis on historical patterns, it provides accurate probabilities on moments of greater trading activity.
MAIN FEATURES
🎯 Intelligent volume peak detection
Automatically identifies significant volume peaks
Anti-consecutive filter to avoid redundant signals
Customizable threshold for detection sensitivity
📊 Advanced statistical analysis
Calculates the average distance between volume peaks
Monitors the number of sessions without peaks
Tracks the maximum historical range without activity
🔮 Predictive system
Dynamic probability: Calculates the probability of an imminent peak
Visual indicators: Background colors that change based on probability
Time forecasts: Estimates remaining sessions to the next peak
📈 Visual signals
Colored arrows: Green for bullish peaks, red for bearish peaks
Statistics table: Complete real-time overview
ALERT SYSTEM
🚨 Three Alert Levels
New Valid Volume Peak: New peak detected
Approaching Prediction: Increasing probability
High Peak Probability: High probability of explosion
HOW TO USE IT
📋 Recommended setup
Timeframe : Works on all timeframes but daily, weekly or monthly timeframe usage is recommended. In any case, it should always be used consistently with your time horizon
Markets : Stocks, crypto, forex, commodities
Threshold for volume peak realization : It's recommended to start with 2.0x (i.e., twice the volume average) for normal markets, 1.5x for more volatile markets. This parameter can be set in the settings as desired
🎨 Visual interpretation
Green Arrows : Peak during bullish candle
Red Arrows : Peak during bearish candle
Red Background : High probability (>90%) of new peak
Yellow Background : Medium probability (50-70%)
📊 STATISTICS TABLE
The table shows:
Total peaks analyzed
Average distance between peaks
Current sessions without peaks
Forecast remaining sessions
Percentage probability
Volume threshold needed for peak realization
STRATEGIC ADVANTAGES
🎯 For Day Traders
Anticipates moments of greater volatility for analysis, supporting the evaluation of trading setups and providing context on low volume periods
📈 For Swing Traders
Identifies high-probability volume patterns, supporting breakout analysis with volume and improving understanding of market timing
🔍 For Technical Analysts
Understands the stock's volume patterns.
Helps evaluate the historical market interest and supports quantitative research and analysis
OTHER THINGS TO KNOW...
A) Anti-Consecutive Algorithm : allows to avoid multiple and consecutive volume signals and peaks at close range
B) Statistical Validation : Uses standard deviation for accuracy
C) Memory Management : Limits historical data for optimal performance
D) Compatibility : Works with all TradingView chart types
⚠️ IMPORTANT DISCLAIMER
This indicator is exclusively a technical analysis tool for studying volume patterns. It does not provide investment advice, trading signals or entry/exit points. All trading decisions are at the complete discretion and responsibility of the user. Always use in combination with other technical and fundamental analysis and proper risk management.
DESCRIZIONE IN ITALIANO
💥 VEP - Volume Explosion Predictor
Panoramica Generale
Il Volume Explosion Predictor (VEP) è un indicatore avanzato che analizza i picchi di volume per prevedere quando potrebbe verificarsi la prossima esplosione di volume. Utilizzando analisi statistiche sui pattern storici, fornisce probabilità accurate sui momenti di maggiore attività di trading.
CARATTERISTICHE PRINCIPALI
🎯 Rilevamento intelligente dei picchi di volume
- Identifica automaticamente i picchi di volume significativi
- Filtro anti-consecutivo per evitare segnali ridondanti
- Soglia personalizzabile per la sensibilità del rilevamento
📊 Analisi statistica avanzata
Calcola la distanza media tra i picchi di volume
Monitora il numero di sessioni senza picchi
Traccia il range massimo storico senza attività
🔮 Sistema predittivo
Probabilità dinamica: Calcola la probabilità di un imminente picco
Indicatori visivi: Colori di sfondo che cambiano in base alla probabilità
Previsioni temporali: Stima delle sessioni rimanenti al prossimo picco
📈 Segnali visivi
1) Frecce colorate: Verdi per picchi rialzisti, rosse per ribassisti
2) Tabella statistiche: Panoramica completa in tempo reale
SISTEMA DI ALERT
🚨 Tre Livelli di Alert
1) New Valid Volume Peak: Nuovo picco rilevato
2) Approaching Prediction: Probabilità in aumento
3) High Peak Probability: Alta probabilità di esplosione
COME UTILIZZARLO
📋 Setup consigliato
- Timeframe : Funziona su tutti i timeframe ma è consigliabile un utilizzo su timeframe giornaliero, settimanale o mensile. In ogni caso va sempre utilizzato coerentemente con il proprio orizzonte temporale
- Mercati : Azioni, crypto, forex, commodities
- Limite affinché si realizzi il picco di volumi : Si consiglia di iniziare con 2.0x (ovvero due volte la media dei volumi) per mercati normali, 1.5x per mercati più volatili. Questo parametro può essere settato nelle impostazioni a proprio piacimento
🎨 Interpretazione visuale
Frecce Verdi : Picco durante candela rialzista
Frecce Rosse : Picco durante candela ribassista
Sfondo Rosso : Alta probabilità (>90%) di nuovo picco
Sfondo Giallo : Probabilità media (50-70%)
📊 TABELLA STATISTICHE
La tabella mostra:
1. Totale picchi analizzati
2. Distanza media tra picchi
3. Sessioni attuali senza picchi
4. Previsione sessioni rimanenti
5. Probabilità percentuale
6. Soglia volume necessaria affinché si realizzi il picco di volumi
VANTAGGI STRATEGICI
🎯 Per Day Traders
Anticipa i momenti di maggiore volatilità per analisi, supportando la valutazione dei setup di trading e fornendo al contempo un contesto sui periodi di basso volume
📈 Per Swing Traders
1. Identifica pattern di volume ad alta probabilità, supportando l'analisi dei breakout con volume e migliorando la comprensione dei tempi di mercato
🔍 Per Analisti Tecnici
Comprende i pattern di volume del titolo.
Aiuta a fare una valutazione dell'interesse storico del mercato ed è di supporto alla ricerca e analisi quantitativa
ALTRE COSE DA SAPERE...
A) Algoritmo Anti-Consecutivo : permette di evitare segnali e picchi di volume multipli e consecutivi multipli a distanza ravvicinata
B) Validazione Statistica : Utilizza deviazione standard per l'accuratezza
C) Gestione Memoria : Limita i dati storici per performance ottimali
D) Compatibilità : Funziona con tutti i tipi di grafico TradingView
⚠️ DISCLAIMER IMPORTANTE
Questo indicatore è esclusivamente uno strumento di analisi tecnica per lo studio dei pattern di volume. Non fornisce consigli di investimento, segnali di trading o punti di ingresso/uscita. Tutte le decisioni di trading sono a completa discrezione e responsabilità dell'utente. Utilizzare sempre in combinazione con altre analisi tecniche, fondamentali e una adeguata gestione del rischio.
ARSI – (VWAP & ATR) 3QKRAKThe ARSI Long & Short – Dynamic Risk Sizing (VWAP & ATR) indicator combines three core components—an adjusted RSI oscillator (ARSI), Volume‐Weighted Average Price (VWAP), and Average True Range (ATR)—so that entry/exit signals and position sizing are always tailored to current market conditions. ARSI, plotted from 0 to 100 with clearly marked overbought and oversold zones, is the primary signal driver: when ARSI falls below the lower threshold it indicates an excessive sell‐off and flags a long opportunity, whereas a break above the upper threshold signals overextended gains and foreshadows a short. A midpoint line at 50 can serve as an early exit or reduction signal when crossed against your position.
VWAP, showing the volume‐weighted average price over the chosen period, acts as a trend filter—long trades are only taken when price sits above VWAP, and shorts only when it’s below—ensuring each trade aligns with the prevailing market momentum. ATR measures current volatility and is used both to set safe stop‐loss levels and to dynamically size each position. In practice, this means positions automatically shrink in high‐volatility environments and grow in quieter markets, all while risking a fixed percentage of your capital.
Everything appears on a single chart: the ARSI pane below the price window with its reference levels; VWAP overlaid on the price; and the ATR‐based stop‐loss distances graphically displayed. Traders thus get a comprehensive, at-a-glance view of entries, exits, trend confirmation, and exactly how large a position they can safely take. The indicator runs in real time, removing the need for manual parameter calculations and letting you focus on strategic decision-making.
Wyckoff Smart Signals (Long + Short)- Wycoff Smart signals made by Melik
Using Wycoff fundamentals and volume confirmation to form a bias
HEMA Trend by Rostek (Filters + ATR + RR) For testing by anyone. Enjoy! :)
HEMA Trend Levels with Gradient, ATR-based SL & TP, HTF Filter, and R/R Statistics
This advanced indicator is designed to help you detect high-quality trend crossovers using HEMA (Hull Exponential Moving Average) smoothing logic. It integrates dynamic visualization, strong multi-layer filters, and risk management levels — all in one package.
✅ Core Concept
The indicator plots two HEMAs (fast and slow), with a gradient fill between them that dynamically changes color based on the trend direction. Crossovers between these HEMAs generate potential trade signals (long or short).
🎨 Key Visual Features
Smooth gradient fill area between fast and slow HEMA.
Dynamic arrows marking crossover points (precisely above/below HEMA cross).
Optional ATR-based Stop Loss (SL) and Take Profit (TP) levels shown as dashed lines with labels.
Automatic display of calculated Risk/Reward (R/R) ratio next to TP level.
⚙️ Powerful Filters
You can enable/disable each of these filters individually:
✅ EMA Filter — Confirm signals only when the price is above/below a selected EMA (default: 100).
✅ ADX Filter — Confirms signals only if ADX value exceeds a set threshold (default: 20).
✅ RSI Filter — Filter signals based on RSI value (e.g., >50 for longs, <50 for shorts).
✅ Higher Time Frame (HTF) EMA Filter — Only take signals aligned with a higher timeframe EMA trend (e.g., daily EMA 100).
📏 Risk Management Features
ATR-based Stop Loss (SL): Dynamic stop level calculated using ATR, configurable multiplier (e.g., 1.5 × ATR).
ATR-based Take Profit (TP): Dynamic take profit level based on ATR, configurable multiplier (e.g., 3 × ATR).
Risk/Reward Statistics: Calculates and displays R/R ratio on the chart to help visually evaluate trade setups.
🔔 Alerts
A single unified alert condition for both long and short filtered signals, making it easy to set up TradingView alerts.
⚡ Usage Tips
Adjust HEMA lengths (default: 20 & 40) to tune responsiveness.
Enable/disable filters depending on your strategy and market conditions.
Fine-tune ATR multipliers for SL/TP based on your risk tolerance.
Use HTF filter to trade only in the direction of the main higher timeframe trend.
✅ Ideal for
Trend-following traders who want smoothed entries.
Traders looking for integrated visual risk management levels.
Users who want precise, customizable signals with strong filtering logic.
Hybrid candles by Marian BWill plot normal candles with the Heikin-Ashi colors.
You must bring the visiual order to front.
FVG IndicatorYet another indicator allowing you to plot FVGs with the following specific features:
FVG Detection: It automatically identifies bullish (BISI) and bearish (SIBI) FVGs based on the relationship between candle highs and lows.
Clear Visualization: It draws boxes to represent the FVGs and adds a median line for each FVG, making them easier to identify.
Dynamic Styles: The indicator adapts the appearance of FVGs (color and border style) based on their current state:
Untested: When the price has not yet interacted with the FVG.
Tested (Partially Traversed): When the price has entered the FVG.
Fully Traversed (Unmitigated): When the price has completely crossed the FVG but has not yet "invalidated" it (closed beyond the FVG).
Mitigated: When the FVG is invalidated by price action, it disappears from the chart to avoid clutter. This disappearance only occurs after the closing of the mitigating candle.
Full Customization: You can adjust all colors and border styles for each FVG state via the indicator's settings, as well as the maximum number of FVGs displayed.
----------------------------------------------------------------------------------------------------------------------
Multi-Time Period Charts with Wicks - ENEXSLWe wanted to see the candle wicks on the official Multi-Time Period Charts indicator.
This version has wick calculations added. Please see www.tradingview.com for the original indicator breakdown.
In short, this indicator will reference larger time periods and draw a candle with the wick around a smaller timeframe chart..
Micropulse Crypto Reversal – 1 Minute📛 Micropulse Crypto Reversal – 1 Minute
📘 Strategy Description:
Micropulse Reversal is a specialized scalping strategy designed for 1-minute cryptocurrency charts such as BTC/USDT and ETH/USDT. It captures fast reversal opportunities with a scientifically guided combination of price action, volume dynamics, and volatility filtering.
🎯 Core Features:
Hybrid use of RSI, Bollinger Bands, Hull Moving Average, and OBV
Scoring system ensures only strong, high-confidence signals trigger trades
ATR filter blocks signals in low-volatility (choppy) conditions
Supports both long and short entries, with automatic position reversal logic
Optimized parameters are fixed and not user-editable (fully locked)
⚙️ Hardcoded Parameters:
RSI Length: 9, Oversold: 40, Overbought: 60
Bollinger Bands: 20 / 2.0
Hull MA: 13, OBV short/long: 3 / 8
ATR Filter: > 0.1% of price
Take Profit: +0.8%, Stop Loss: -0.6%
Minimum Signal Score to Enter: 4 / 5
📈 Ideal Use:
BTC, ETH, and other major crypto pairs with high volume
Timeframe: 1-minute
Fast-entry, fast-exit trades
Works well for bot integration, signal alerts, or manual scalping
⚠️ Risk Disclaimer:
This strategy is optimized for past data and short-term momentum conditions. Past performance does not guarantee future results.
Always validate on forward data and use proper risk management before live deployment.
My Script v6SMA Calculation: Computes a Simple Moving Average of the selected input source (default is the closing price) over a user-defined period (Length, default 14).
Buy Signal: Displays a green "BUY" label below the bar when the price crosses above the SMA (bullish crossover).
Sell Signal: Displays a red "SELL" label above the bar when the price crosses below the SMA (bearish crossunder).
Overlay Enabled: The indicator is drawn directly on the price chart (overlay=true).