6 EMAThis indicator allows you to set up 6 EMAs.
By default, the EMAs are based on the candle's closing price.
The default values are 7, 20, 60, 120, 200, and 400, and you can toggle each EMA on or off as needed.
Indicators and strategies
Natural Moving Averages (Jim Sloman's Ocean Theory)Natural Moving Averages invented by Jim Sloman.
Code copied by IA from the TradeStation code.
Includes the Fast and the Regular NMAs.
Jim Sloman invented Ocean Theory and the NMA is its building block.
ES/NQ, Pre-Market High & Low (04:00 AM - 09:30 AM)This indicator marks the Pre market high and Pre market low from 04:00am to 09:30am for any us Index
tclibLibrary "tclib"
super_smoother(data, smoothing_period)
Parameters:
data (float)
smoothing_period (int)
SATHYA SMA Signal)This indicator overlays 20, 50, and 200 Simple Moving Averages (SMAs) on the chart. It generates bullish signals when the 20 SMA crosses above the 200 SMA before the 50 SMA, with both above 200 SMA. Bearish signals occur when the 20 SMA crosses below the 200 SMA before the 50 SMA, with both below 200 SMA. Signals appear as distinct triangles on the chart, helping traders identify trend reversals based on systematic SMA crossovers and order of crossing.
维加斯双通道策略Vegas Channel Comprehensive Strategy Description
Strategy Overview
A comprehensive trading strategy based on the Vegas Dual Channel indicator, supporting dynamic position sizing and fund management. The strategy employs a multi-signal fusion mechanism including classic price crossover signals, breakout signals, and retest signals, combined with trend filtering, RSI+MACD filtering, and volume filtering to ensure signal reliability.
Core Features
Dynamic Position Sizing: Continue adding positions on same-direction signals, close all positions on opposite signals
Smart Take Profit/Stop Loss: ATR-based dynamic TP/SL, updated with each new signal
Fund Management: Supports dynamic total amount management for compound growth
Time Filtering: Configurable trading time ranges
Risk Control: Maximum order limit to prevent over-leveraging
Leverage Usage Instructions
Important: This strategy does not use TradingView's margin functionality
Setup Method
Total Amount = Actual Funds × Leverage Multiplier
Example: Have 100U actual funds, want to use 10x leverage → Set total amount to 100 × 10 = 1000U
Trading Amount Calculation
Each trade percentage is calculated based on leveraged amount
Example: Set 10% → Actually trade 100U margin × 10x leverage = 1000U trading amount
Maximum Orders Configuration
Must be used in conjunction with leveraged amount
Example: 1000U total amount, 10% per trade, maximum 10 orders = maximum use of 1000U
Note: Do not exceed 100% of total amount to avoid over-leveraging
Parameter Configuration Recommendations
Leverage Configuration Examples
Actual funds 100U, 5x leverage, total amount setting 500U, 10% per trade, 50U per trade, recommended maximum orders 10
Actual funds 100U, 10x leverage, total amount setting 1000U, 10% per trade, 100U per trade, recommended maximum orders 10
Actual funds 100U, 20x leverage, total amount setting 2000U, 5% per trade, 100U per trade, recommended maximum orders 20
Risk Control
Conservative: 5-10x leverage, 10% per trade, maximum 5-8 orders
Aggressive: 10-20x leverage, 5-10% per trade, maximum 10-15 orders
Extreme: 20x+ leverage, 2-5% per trade, maximum 20+ orders
Strategy Advantages
Signal Reliability: Multiple filtering mechanisms reduce false signals
Capital Efficiency: Dynamic fund management for compound growth
Risk Controllable: Maximum order limits prevent liquidation
Flexible Configuration: Supports various leverage and fund allocation schemes
Time Control: Configurable trading hours to avoid high-risk periods
Usage Notes
Ensure total amount is set correctly (actual funds × leverage multiplier)
Maximum orders should not exceed the range allowed by total funds
Recommend starting with conservative configuration and gradually adjusting parameters
Regularly monitor strategy performance and adjust parameters timely
维加斯通道综合策略说明
策略概述
基于维加斯双通道指标的综合交易策略,支持动态加仓和资金管理。策略采用多信号融合机制,包括经典价穿信号、突破信号和回踩信号,结合趋势过滤、RSI+MACD过滤和成交量过滤,确保信号的可靠性。
核心功能
动态加仓:同向信号继续加仓,反向信号全部平仓
智能止盈止损:基于ATR的动态止盈止损,每次新信号更新
资金管理:支持动态总金额管理,实现复利增长
时间过滤:可设置交易时间范围
风险控制:最大订单数限制,防止过度加仓
杠杆使用说明
重要:本策略不使用TradingView的保证金功能
设置方法
总资金 = 实际资金 × 杠杆倍数
示例:实际有100U,想使用10倍杠杆 → 总资金设置为 100 × 10 = 1000U
交易金额计算
每笔交易百分比基于杠杆后的金额计算
示例:设置10% → 实际交易 100U保证金 × 10倍杠杆 = 1000U交易金额
最大订单数配置
必须配合杠杆后的金额使用
示例:1000U总资金,10%单笔,最大10单 = 最多使用1000U
注意:不要超过总资金的100%,避免过度杠杆
参数配置建议
杠杆配置示例
实际资金100U,5倍杠杆,总资金设置500U,单笔百分比10%,单笔金额50U,建议最大订单数10单
实际资金100U,10倍杠杆,总资金设置1000U,单笔百分比10%,单笔金额100U,建议最大订单数10单
实际资金100U,20倍杠杆,总资金设置2000U,单笔百分比5%,单笔金额100U,建议最大订单数20单
风险控制
保守型:5-10倍杠杆,10%单笔,最大5-8单
激进型:10-20倍杠杆,5-10%单笔,最大10-15单
极限型:20倍以上杠杆,2-5%单笔,最大20单以上
策略优势
信号可靠性:多重过滤机制,减少假信号
资金效率:动态资金管理,实现复利增长
风险可控:最大订单数限制,防止爆仓
灵活配置:支持多种杠杆和资金配置方案
时间控制:可设置交易时间,避开高风险时段
使用注意事项
确保总资金设置正确(实际资金×杠杆倍数)
最大订单数不要超过总资金允许的范围
建议从保守配置开始,逐步调整参数
定期监控策略表现,及时调整参数
My script//@version=6
strategy("Elite Option Signal Strategy", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=10)
// === INPUTS ===
fastLength = input.int(9, title="Fast MA Length")
slowLength = input.int(21, title="Slow MA Length")
trendLength = input.int(50, title="Trend MA Length")
rsiLength = input.int(14, title="RSI Length")
rsiOversold = input.int(30, title="RSI Oversold Level")
rsiOverbought = input.int(70, title="RSI Overbought Level")
useStopLoss = input.bool(true, title="Use Stop Loss?")
stopLossPercent = input.float(2.0, title="Stop Loss %", minval=0.1, maxval=10.0)
// === INDICATORS ===
fastMA = ta.sma(close, fastLength)
slowMA = ta.sma(close, slowLength)
trendMA = ta.sma(close, trendLength)
rsi = ta.rsi(close, rsiLength)
// === CONDITIONS ===
bullishTrend = close > trendMA
bearishTrend = close < trendMA
longCondition = ta.crossover(fastMA, slowMA) and bullishTrend and rsi < rsiOverbought
shortCondition = ta.crossunder(fastMA, slowMA) and bearishTrend and rsi > rsiOversold
// === EXECUTION ===
if longCondition
strategy.entry("Long", strategy.long)
if useStopLoss
strategy.exit("Exit Long", "Long", stop=close * (1 - stopLossPercent / 100))
if shortCondition
strategy.entry("Short", strategy.short)
if useStopLoss
strategy.exit("Exit Short", "Short", stop=close * (1 + stopLossPercent / 100))
// === PLOTS ===
plot(fastMA, color=color.green, title="Fast MA")
plot(slowMA, color=color.red, title="Slow MA")
plot(trendMA, color=color.blue, title="Trend MA")
plotshape(longCondition, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.triangleup)
plotshape(shortCondition, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.triangledown)
Fed Funds Rate-of-ChangeFed Funds Rate-of-Change
What it does:
This indicator pulls the Effective Federal Funds Rate (FRED:FEDFUNDS, monthly) and measures how quickly it’s changing over a user-defined lookback. It offers stabilized change metrics that avoid the “near-zero blow-up” you see with naive % ROC. The plot turns red only when the signal is below the lower threshold and heading down (i.e., value < –threshold and slope < 0).
This indicator is meant to be useful in monitoring fast cuts on the part of the FED - a signal that has preceded recession or market pullbacks in times prior.
Change modes: Percentage, log and delta.
Percent ROC (ε floor): 100 * (now - prev) / max(prev, ε)
Log change (ε): 100 * (ln(now + ε) - ln(prev + ε))
Delta (bps): (now - prev) * 100 (basis points; avoids percentage math)
Tip: For “least drama,” use Delta (bps). For relative change without explosions near zero, use Log change (ε).
Key inputs:
Lookback (months): ROC window in calendar months (because source is monthly).
Change Metric: one of the three options above.
ε (percentage points): small constant (e.g., 0.25 pp) used by Percent ROC (ε) and Log change (ε) to stabilize near-zero values.
EMA Smoothing length: light smoothing of the computed series.
Clip |value| at: optional hard cap to tame outliers (0 = off).
Threshold % / Threshold bps: lower/upper threshold band; unit adapts to the selected metric.
Plot as histogram: optional histogram view.
Coloring / signal logic
Red: value is below the lower threshold (–threshold) and the series is falling on the current bar.
How to use:
Add to any chart (timeframe doesn’t matter; data is monthly under the hood).
Pick a Change Metric and set Lookback (e.g., 3–6 months).
Choose a reasonable threshold:
Percent/Log: try 10–20%
Delta (bps): try 50–100 bps
Optionally smooth (EMA 3–6) and/or clip extreme spikes.
Interpretation
Sustained red often marks periods of accelerating downside in the Fed Funds change metric (e.g., policy easing momentum when using bps).
Neutral (gray) provides context without implying direction bias.
Notes & limitations
Source is monthly FRED series; values update on monthly closes and are stable (no intrabar repainting of the monthly series).
Threshold units switch automatically with the metric (%, %, or bps).
Smoothing/clip are convenience tools; adjust conservatively to avoid masking important shifts.
Relative Strength vs. Benchmark (相對強度)This "Relative Strength vs. Benchmark" indicator helps you see a stock's true performance against a benchmark (like the S&P 500) at a glance. By calculating the price ratio between the two, it strips away the overall market noise, allowing you to focus on identifying true market leaders and underperforming laggards.
How It Works
Core Formula: Relative Strength = Stock Price / Benchmark Index Price
A Rising Line: Means the stock is outperforming the benchmark.
A Falling Line: Means the stock is underperforming the benchmark.
The indicator also includes a Moving Average (MA) of the Relative Strength line itself. This MA helps to confirm the trend of relative strength and filter out short-term noise.
How to Use
Find Market Leaders: When the market is in an uptrend or consolidating, look for stocks whose RS line is breaking out to new highs.
Avoid Laggards: If the RS line is consistently below its moving average or making new lows, the stock is significantly underperforming the market and should be treated with caution.
Trend Change Signals: A cross of the RS line above its MA can be seen as a signal that a new trend of relative outperformance is beginning. A cross below suggests the trend is weakening.
Features & Settings
Customizable Benchmark: You can change the default benchmark from TWSE:TSE to any symbol you need, such as SP:SPX for the S&P 500 or NASDAQ:NDX for the Nasdaq 100.
Adjustable MA Length: Customize the period for the RS Moving Average to fit your trading style (short-term or long-term).
Visual Toggle: Easily turn the colored background fill on or off according to your preference.
Hope you find this tool helpful in your analysis!
Hybrid Trend MAHybrid Trend MA (Pine Script v6)
This indicator combines Exponential Moving Averages (EMA) and Arnaud Legoux Moving Averages (ALMA) into a single hybrid trend-following tool. It is designed to help traders visualize medium- and long-term trend directions while also capturing smoother short-term signals.
Key Features:
EMA Trend Structure
Three EMAs are plotted (lengths: 38, 62, 200).
Each EMA line changes color depending on whether it is rising or falling relative to the others:
Red → Strong uptrend alignment.
Lime → Strong downtrend alignment.
Aqua → Neutral or transition.
The indicator also fills the space between EMA zones with silver shading to highlight trend channels.
ALMA Trend Confirmation
Two ALMA curves are plotted (lengths: 13, 50).
Similar rising/falling logic is applied to color them:
Red → Bullish alignment and rising.
Green → Bearish alignment and falling.
Cyan → Neutral or uncertain trend.
A cross marker is plotted whenever the fast and slow ALMA lines cross, which may serve as an entry/exit confirmation.
Customizable Smoothing
The smoothe setting controls how many bars are checked to confirm whether an EMA or ALMA is rising/falling, helping reduce noise.
How to Use:
Trend Identification: The EMA set shows the larger market structure. When all EMAs align in direction and color, the trend is stronger.
Entry & Exit Confirmation: The ALMA cross signals can be used to refine entries and exits within the broader EMA trend.
Dynamic Visuals: Colored EMAs + ALMAs make it easy to distinguish bullish, bearish, and ranging conditions at a glance.
Unusual Moves Detector# Unusual Moves Detector
A TradingView indicator that detects and alerts users to unusual price movements based on ATR (Average True Range) and volume analysis. This indicator is designed to identify price action that deviates significantly from normal market behavior.
## Features
### Core Detection Mechanisms
- **ATR-Based Volatility Detection**: Identifies price movements that exceed normal volatility levels
- **Volume Analysis**: Optional volume spike detection to confirm unusual moves
- **Signal Persistence Tracking**: Monitors how many signals occur within a lookback period
### Visual Indicators
- **Up/Down Arrows**: Green triangles for unusual upward moves, red triangles for downward moves
- **Signal Strength Labels**: Numbers showing how many signals occurred in the lookback period
- **Real-time Metrics Table**: Displays current ATR and volume ratios
### Customizable Parameters
1. **ATR Period** (default: 14)
- Length for Average True Range calculation
- Affects volatility measurement sensitivity
2. **Volume MA Period** (default: 20)
- Period for volume moving average
- Used in volume spike detection
3. **ATR Multiplier** (default: 2.0)
- How many times the ATR to trigger a signal
- Higher values = less sensitive to price moves
4. **Volume Multiplier** (default: 2.0)
- How many times the average volume to consider "high volume"
- Higher values = less sensitive to volume spikes
5. **Include Volume Analysis** (default: true)
- Toggle volume confirmation requirement
- When disabled, only price volatility matters
6. **Signal Lookback Period** (default: 5)
- How many bars to look back for signal counting
- Affects signal strength calculation
### Alert System
- **Upward Movement Alerts**: Triggers when unusual upward price action is detected
- **Downward Movement Alerts**: Triggers when unusual downward price action is detected
- **Customizable Alert Messages**: Can be configured in TradingView's alert system
### Information Display
Real-time metrics table shows:
- Current ATR value
- Volume ratio (current volume / average volume)
- Net signal count (up signals - down signals)
## Installation
1. Open TradingView's Pine Script Editor
2. Create a new indicator
3. Copy and paste the indicator code
4. Click "Add to Chart" to apply the indicator
## Usage Guide
### Basic Setup
1. Add the indicator to your chart
2. Adjust parameters based on your trading timeframe and style
3. Configure alerts if desired
### Parameter Tuning Tips
- **For More Signals**: Lower the ATR and Volume multipliers
- **For Fewer Signals**: Increase the multipliers
- **For Trend Following**: Increase the lookback period
- **For Quick Signals**: Decrease the lookback period
### Alert Setup
1. Click the indicator settings
2. Go to "Create Alert"
3. Choose either up or down move condition
4. Configure alert settings (sound, notification, etc.)
## Backtesting Compatibility
- Fully compatible with TradingView's backtesting engine
- All calculations use historical data only
- No forward-looking data or repainting
## Technical Details
- Written in Pine Script v6
- Optimized for real-time calculation
- Uses native TradingView functions for performance
- Compatible with all timeframes
## Performance Considerations
- Lightweight computation using built-in functions
- Efficient memory usage with variable optimization
- Real-time calculation with minimal lag
## Support and Contribution
Feel free to modify and improve the indicator according to your needs. The code is well-commented for easy understanding and modification.
## License
Free to use and modify for personal and commercial purposes.
## Disclaimer
This indicator is for informational purposes only. Always conduct your own analysis and consider multiple factors when making trading decisions.
QTrade Golden, Bronze & Death, Bubonic Cross AlertsThis indicator highlights key EMA regime shifts with simple, color-coded triangles:
- Golden / Death Cross — 50 EMA crossing above/below the 200 EMA.
- Bronze / Bubonic Cross — 50 EMA crossing above/below the 100 EMA.
- Early-Warning Proxy — tiny triangles for the 4 EMA vs. 200 EMA (4↑200 and 4↓200). These often fire before the 50/100 and 50/200 crosses.
No text clutter on the chart—just triangles. Colors: gold (50↑200), red (50↓200), darker-yellow bronze (50↑100), burgundy (50↓100), turquoise (4↑200), purple (4↓200).
What it tells you (in order of warning → confirmation)
- First warning: 4 EMA crosses the 200 EMA (proxy for price shifting around the 200 line).
- Second warning: 50 EMA crosses the 100 EMA (Bronze/Bubonic).
- Confirmation: 50 EMA crosses the 200 EMA (Golden/Death).
Alerts included
- Golden Cross (50↑200) and Death Cross (50↓200)
- Bronze Cross (50↑100) and Bubonic Cross (50↓100)
- 4 EMA vs. 200 EMA crosses (up & down) — early-warning proxy
- Price–100 EMA events (touch/cross, if enabled in settings)
Horrible Pine ScriptA script with a bug in setting the background color. Specifically written for the QQQ. Regardless of the parameter, the color is always red. Three test values are output.
Candlestick Themes NYSE Pro [GPXalgo]The Critical Role of Color in Trading Performance
Professional trading environments demand visual systems that support rapid decision-making while
minimizing cognitive load and visual fatigue. The NYSE trading desk color schemes have evolved
through decades of refinement, incorporating feedback from over 10,000 active traders and
quantitative performance analysis.
Key Design Principles
1. Contrast Optimization
Minimum contrast ratio of 7:1 for critical data elements against dark backgrounds (#0A0A0A to
#1C1C1C).
2. Semantic Consistency
Universal color language across all trading platforms and instruments.
3. Fatigue Mitigation
Spectral distribution optimized for extended viewing periods without degradation in pattern
recognition.
4. Information Hierarchy
Clear visual prioritization of price action, volume, and technical indicators.
Scientific Foundation
Visual Perception in Trading Contexts
Neurological Processing
The human visual cortex processes color information 60,000 times faster than text. In trading
contexts, this translates to:
• 0.13 seconds average recognition time for color-coded signals
• 0.45 seconds for text-based information
• 72% improvement in pattern recognition with optimized color schemes
Circadian Rhythm Consideration
Trading desk colors are calibrated to minimize melatonin suppression during extended sessions:
• Blue light emission reduced by 65% compared to standard displays
• Warm-spectrum alternatives for overnight sessions
• Adaptive brightness curves aligned with natural circadian cycles
Eye Strain Metrics
Laboratory studies (n=500 traders, 6-month period) demonstrate:
• 43% reduction in reported eye strain
• 31% decrease in headache frequency• 28% improvement in focus duration
• 17% increase in profitable trade execution
Implementation Standards
Display Calibration Requirements
Monitor Specifications
Minimum 1000:1 contrast ratio
sRGB coverage ≥ 99%
Delta E < 2.0 color accuracy
Brightness: 120-150 cd/m² (dark environment)
Color temperature: 5800K ± 200K
Multi-Monitor Consistency
• Maximum ΔE variance between displays: 1.5
• Synchronized brightness across array
• Uniform color profiles (ICC v4)
Accessibility Compliance
WCAG 2.1 Level AA Standards
Normal text: 4.5:1 contrast minimum
Large text: 3:1 contrast minimum
Interactive elements: 3:1 contrast minimum
Focus indicators: 3:1 contrast minimum
Colorblind Accommodation All critical information maintains distinguishability under:
• Protanopia (red-blind)
• Deuteranopia (green-blind)
• Tritanopia (blue-blind)
Nifty Options Ladder (static ATM)This Indicator Shows CE, PE of three near by Strike Price of the ATM you Select
FVG [hatefbw] Overview
This indicator is a modified version of the Luxalgo group’s FVG indicator. It introduces an additional feature designed to help traders filter only the strongest Fair Value Gaps (FVGs).
How it works
A new option called “Confirm Third Closed Body” has been added to the settings.
When enabled, the indicator only highlights FVGs where the close of the third candle is above the shadow of the second candle.
Such FVGs are generally considered more reliable and stronger in price action analysis.
Usage
Enable the Confirm Third Closed Body option if you want to filter weaker FVGs and focus only on the most valid ones.
Keep the option disabled if you wish to view all standard FVGs.
This tool is particularly useful for traders who prefer additional confirmation before taking trades based on FVG setups
leventtazeleventtaze is an open-source, arrow-based entry indicator designed for multi-markets: crypto, forex, gold and commodities.
It blends trend logic from EMA21/55 cross and EMA200 bias with an ADX filter and a dotted stop (simple supertrend-like line).
A green cloud highlights the EMA89-EMA200 zone, while a purple ATR channel visualizes expansion boundaries.
Entries appear as up/down arrows for clarity. Exits can be managed with TP1/TP2 target lines and an optional trailing stop (breakeven+).
For crypto only, BTC confirmation is used: BTC vs 200EMA and BTC.D/USDT.D context. For non-crypto markets this confirmation is off by default.
The tool supports any symbol and timeframe. It also includes alerts: BUY, SELL, EXIT, PUMP/DUMP and Upper/Lower Wick traps.
Recommended usage: confirm on bar close for stability; if you want more signals, lower the ADX threshold and cooldown; if you want higher quality, raise ADX and use higher timeframes.
Known limits: sideways markets can produce fake breakouts; increase ADX in choppy conditions.
This script does not repaint on closed bars. Educational only; not financial advice.
4H IB + BO Midpoint – [SANIXLAB]This indicator plots the Initial Balance (IB) high and low for each 4-hour period and automatically calculates potential breakout levels and midpoints.
At the start of every new 4-hour block the script:
Captures that block’s high and low (Initial Balance),
Draws horizontal lines at the IB high, low and midpoint,
Calculates breakout targets above and below the IB using (optional) extension factor,
Creates horizontal lines at those breakout levels and their midpoint,
Breakout areas extend as new bars arrive.
MR.L
EMA Crossover and Candle ColoringColors candles based on the 21D Ema , one or two closes above each and gives blue and orange dots for when the 5D ema is above or below the 21D ema
Simple system but it helps to identify trends