Simple MA Crossover - TradicatorsSimple MA Crossover is a beginner-friendly indicator that visualizes moving average crossovers to help identify potential trend shifts. It uses two simple moving averages (SMA):
A Fast Moving Average (short-term)
A Slow Moving Average (long-term)
When the fast MA crosses above the slow MA, a green BUY label appears below the candle. When the fast MA crosses below the slow MA, a red SELL label appears above the candle.
These crossovers can be used as basic signals to suggest potential trend continuation or reversal points. The indicator works on all timeframes and can be used with various assets.
📌 This script is for educational and illustrative purposes only and should not be considered financial advice. Use it in conjunction with your own research, trading strategy, and risk management practices.
Add the Indicator
Open any chart on TradingView
Click on the Indicators tab
Search for “Simple MA Crossover” and add it to your chart
How It Works
The script plots two colored lines:
Orange Line: Fast Moving Average (default 9-period)
Blue Line: Slow Moving Average (default 21-period)
When the orange line crosses above the blue line → a BUY signal is printed
When the orange line crosses below the blue line → a SELL signal is printed
Customization
You can change the lengths of the moving averages in the settings to match your style
Works on any chart — crypto, stocks, forex, etc.
Try different timeframes (15min, 1H, 4H, Daily) to see what suits your strategy best
Reminder
Always test the indicator on a demo account before using it in live trading
Combine this tool with your own technical/fundamental analysis
No indicator guarantees profits or prevents losses
移動平均線
ADRIXAUUSD BUY/SELL/AlertsThis strategy is designed for XAU/USD (Gold) on the 15-minute timeframe.
It combines multiple confluences to identify high-probability trades:
1) EMA Cross (9/50) to capture trend direction.
2) Fibonacci Golden Zone (0.236 – 0.786) as a key retracement area.
3) Fair Value Gaps (FVG) for imbalance confirmation.
4) ATR-based Stop Loss and Take Profit for adaptive risk management.
The script works as both a backtesting strategy and a live indicator:
✅ Strategy Tester shows profit factor, win rate, and performance.
✅ On-chart signals with "BUY 🚀" and "SELL 🔻".
✅ Built-in alerts for real-time notifications.
Strategy Selector 101🚀 Strategy Selector - The Ultimate Multi-Strategy Trading Arsenal
Unleash the Power of Three Elite Trading Systems in One Revolutionary Indicator!
Stop juggling multiple indicators and cluttering your charts. This game-changing tool delivers three battle-tested strategies with surgical precision, allowing you to dominate any market condition with the flip of a switch.
⚡ THREE POWERHOUSE INSTRUMENTS:
🎯 R25 Strategy - The PRECISION TOOL!
Laser-focused trend analysis merged with higher timeframe support/resistance zones and surgical percentage levels. Features intelligent weekly range mapping with automatic box generation and precise retracement calculations. Perfect for traders who need confluence between trend direction and key mathematical levels. Watch price respect your levels with uncanny accuracy as you pick off high-probability setups at exact percentage points.
💎 D4 Strategy - The PROFESSIONAL'S INSTRUMENT!
Dual-timeframe powerhouse featuring both daily AND weekly support/resistance mapping that evolves with price action. Includes dynamic line tracking that changes colour when price raids key levels, plus comprehensive box management across multiple timeframes. Experience institutional-level confluence with automatic daily range detection and higher timeframe zone projection. Perfect for swing traders who demand multi-timeframe precision.
⚔️ River Only Strategy - The PURIST'S SOLUTION!
Stripped-down trend mastery delivering pure Smart River analysis without any support/resistance distractions. Features advanced break-of-structure detection across multiple swing timeframes, trend change alerts, and crystal-clear directional signals. Perfect for day traders and scalpers who want clean charts with laser-focused trend identification. Pure price action excellence at your fingertips.
🔥 UNIVERSAL FEATURES (ALL STRATEGIES):
Smart River technology that reads market sentiment with dynamic colour coding
Lightning-fast break of structure alerts across multiple swing point timeframes
Multi-timeframe swing analysis with automatic pivot detection
Intelligent trend change alert system with customizable notifications
Professional daily trend analysis table with real-time status updates
Military-grade precision with automatic box and line clean-up
Zero-conflict guarantee - one strategy active, maximum focus, devastating results
💰 TRADING TRANSFORMATION AWAITS:
Whether you're scalping minutes or swinging weeks, this indicator adapts to YOUR style. Choose your tool, activate your strategy, and watch as the markets reveal their secrets through proven mathematical analysis and institutional-grade logic.
Ready to trade like the pros? Your competition is already using advanced tools - don't get left behind.
Transform confusion into clarity. Turn signals into profits. Make every trade count.
Dual EMA (EMA Average)Simple EMA visual with 2 EMAs + Average
Includes:
2 EMAs with timeframe settings
EMA Midline - an average of EMAs
shaded space between EMA lines
Five MAs Multi-Moving Average Pack (SMA/EMA/WMA/RMA/HMA/VWMA)Display up to 5 MAs in one script. Per-line type/length/color/width/show, optional band fill, and built-in price×MA cross alerts.
Overview
This indicator draws up to five moving averages in one script.
Each line has independent controls for type (SMA/EMA/WMA/RMA/HMA/VWMA), length, color, width, and visibility. It also includes alert conditions when price crosses each MA, helping you track trend, pullbacks, and breakouts without cluttering the chart.
Key Features
Manage 5 MAs from a single indicator
Per-line MA type selection: SMA, EMA, WMA, RMA, HMA, VWMA
Independent length/color/width/show for each line
Optional band fill between MA1 and MA5
Price vs MA cross alert conditions included
Selectable input source (e.g., close, hlc3)
Inputs
Source: price source used for calculations (default: close)
MA1–MA5
Type: SMA / EMA / WMA / RMA / HMA / VWMA
Length: period (e.g., 5, 20, 50, 100, 200)
Color: line color
Width: line width
Show: visibility toggle
Fill between MA1 and MA5: draw a subtle band between MA1 and MA5
Enable price-cross alerts: expose alertconditions for price crossing each MA
Alerts (Price × MA)
Price crosses UP MA#: close crosses above MA#
Price crosses DOWN MA#: close crosses below MA#
Create alerts via the chart’s Alerts panel and choose the desired condition from this indicator.
Note: alertcondition() is declared in the global scope. On/off is controlled by an input flag.
How to Use
Paste the code into the Pine Editor → Save → Add to chart.
Configure Type / Length / Color / Width / Show for each MA.
Turn on Fill between MA1 and MA5 if you want a band.
Enable price-cross alerts and set them up in the Alerts panel.
Suggested Defaults
MA1: EMA 5
MA2: SMA 20
MA3: SMA 50
MA4: SMA 100
MA5: SMA 200
Good all-round set for intraday to swing and higher timeframes.
Best Practices
Check the same params across multiple timeframes to assess trend consistency.
The MA1–MA5 band helps visualize trend strength and volatility expansion/contracting.
Picking a type:
EMA: faster response, good for short-term signals
SMA: standard smoothing
HMA: smooth yet responsive
VWMA: volume-weighted perspective
FAQ / Troubleshooting
“Syntax error at input 'end of line without line continuation'”
Wrap multi-line ternaries in parentheses or use a switch. The script uses switch to avoid this.
“Cannot use 'fill' in local scope”
fill() must be in the global scope. Here it’s always called globally; on/off is done with a transparent color.
Performance
Hide unused lines and keep widths modest if your chart feels heavy.
Disclaimer
This script is for educational and informational purposes only and is not financial advice. Use at your own risk.
Five MAs|5本移動平均パック(SMA/EMA/WMA/RMA/HMA/VWMA)
1つのインジで最大5本の移動平均線を表示。種類・期間・色・太さ・表示ON/OFFを個別設定。価格が各MAを上下クロスするアラート内蔵。
概要
このインジケーターは、**1つのスクリプトで5本の移動平均(MA)**を同時表示します。
各ラインは 種類(SMA/EMA/WMA/RMA/HMA/VWMA)、期間、色、太さ、表示を個別に調整できます。さらに、価格が各MAをクロスした際のアラート条件を標準搭載。短期〜長期のトレンド判定、押し目/戻り目の把握、クロス監視などに活用できます。
主な機能
5本のMAを1つのインジで管理(チャートをすっきり)
MAの種類を個別に選択(SMA/EMA/WMA/RMA/HMA/VWMA)
期間・色・線幅・表示/非表示を個別設定
**MA1とMA5の帯(フィル)**の任意描画(ON/OFF)
価格×各MAのクロスをアラート条件として登録可能
入力ソース切替(close / hlc3 など)
入力パラメータ
Source:計算に使う価格(既定:close)
MA1〜MA5
Type:SMA / EMA / WMA / RMA / HMA / VWMA
Length:期間(例:5, 20, 50, 100, 200 など)
Color:ライン色
Width:ライン太さ
Show:表示/非表示
Fill between MA1 and MA5:MA1とMA5の間を塗りつぶす(薄い帯)
Enable price-cross alerts:価格が各MAを上下クロスした際のアラート条件を有効化
アラート(価格×MA)
Price crosses UP MA#:close が MA# を上抜け
Price crosses DOWN MA#:close が MA# を下抜け
アラート作成:チャート右上「アラート」→「条件」から本インジの該当項目を選択。
注:alertcondition() はグローバルスコープで宣言しています。ON/OFFは入力フラグで制御しています。
使い方(手順)
Pineエディタにコードを貼り付け → 保存 → チャートへ追加。
設定で各MAの Type / Length / Color / Width / Show を調整。
帯を使う場合は Fill between MA1 and MA5 をON。
クロス通知を使う場合は Enable price-cross alerts をONにし、アラート画面で該当条件を選択して作成。
推奨の初期構成(例)
MA1:EMA 5
MA2:SMA 20
MA3:SMA 50
MA4:SMA 100
MA5:SMA 200
短期〜長期のバランスが良く、デイトレ〜スイング〜中長期まで幅広く確認可能。
ベストプラクティス
時間軸をまたいで同じパラメータを見ると、トレンドの一貫性を評価しやすいです。
帯(MA1–MA5)はトレンド強度やボラの広がり/収縮の視覚化に有効です。
種類の選択:
EMA:反応が速く短期向き
SMA:ノイズを均しやすい標準
HMA:滑らか&速い応答
VWMA:出来高加重で指値の厚みを反映
よくある質問・トラブルシュート
「Syntax error at input 'end of line without line continuation'」
三項演算子を改行で繋ぐときは全体を括弧で包むか、switch 構文を使ってください。最新版では switch を採用しています。
「Cannot use 'fill' in local scope」
fill() は ローカルスコープ不可。本スクリプトでは常時グローバルで呼び、ON/OFFは透明色で制御しています。
表示が重い
必要なMAのみ表示(Show)にしたり、線幅を細くすることで軽くなります。
免責
本スクリプトは情報提供のみを目的としており、投資助言ではありません。利用による損失について作者は責任を負いません。
Dynamic EMA x VWAP AlertsDynamic EMA × VWAP Alerts generates buy and sell signals only when an EMA crossover happens in a meaningful VWAP (or standard deviation band) context. By combining classic EMA logic with flexible VWAP anchors (Daily, Weekly, Rolling) and optional advanced filters (ATR, Relative Volume, Deviation, Distance, Time Windows) to trim noise further, the script creates location-aware, filterable alerts rather than “everywhere” crosses. The value for trading and originality here lies in the integration of one or multiple anchors, band gating, combinator logic, and advanced regime filters. It’s designed for use across multiple instruments and timeframes, where EMA/VWAP context is relevant. It can run quietly in the background while you focus on price action and your own S/R levels.
What it does (quick take)
Detects EMA crossovers (double or optional triple) and evaluates them in VWAP context.
Plots Buy/Sell markers only when all chosen conditions are met.
Clean UX: keep all or parts of the engine visible or hide everything and let alerts run based on the silent engine behind your own S/R levels in an uncluttered, practical chart, as illustrated below.
Engine illustration: All selected engines visible
Practical use case: Same snapshot sequence as above but all selected engines invisible
Swing examples (beyond intraday)
Signals-only (clean value view):
Signals + your own S/R lines:
EMA selection (choose your playbook)
Defaults: Fast 9, Medium 21 (common intraday combo).
Modes: Double Cross — Fast vs Medium.
Triple Cross (optional) — adds a Slow EMA trend filter (enable Slow > 0).
Ranges: you can set each EMA 0–200 (0 = hidden/off)
Visuals are optional; you can display or hide each EMA line
EMA cross footprints (optional): Helps you assess trend continuation or change.
Use your own strategy: switch to 9/50, 20/50, 50/200, or whatever EMA set you trust for your instrument/timeframe.
VWAP Selection (the context engine)
Daily VWAP – resets each chart day (00:00–23:59). Typical fit: scalpers and fast intraday decision points.
Weekly VWAP – resets at the start of the calendar week. Typical fit: intraday with higher-timeframe context (aligns day trades with weekly bias).
Rolling VWAP – an adjustable VWMA-based rolling anchor (not session-reset), used as a flexible context reference Typical fit: multi-day swings when you want a flexible anchor that adapts across sessions.
Standard deviation bands (σ ±1/±2/±3) available for each anchor and help you express the “how far from fair value” idea.
Why VWAP matters: it’s a running, volume-weighted anchor where strong moves relative to VWAP and its bands help frame mean-reversion vs. trend-continuation risk. Evaluating crosses relative to VWAP/±σ reduces “everywhere” noise and helps frame potential setups.
How alerts are decided
An alert triggers only when:
Your selected EMA crossover occurs, and
Your chosen VWAP gate(s) and any filters pass. (Computed on bar close to avoid mid-bar noise)
Signals and alerts do not repaint; alerts evaluate and fire once per bar close.
Alert gates (Single / AND / OR)
Select one VWAP source or combine two (e.g., Daily + Weekly) with Single, AND, or OR logic.
Choose gate levels from VWAP or standard deviation bands (±σ). Typical long logic: price at/under VWAP or −σ. Typical short logic: price at/over VWAP or +σ.
Practical recipes:
Trend-follow: Daily AND Weekly at/above VWAP → confirms strength on two anchors.
Mean-reversion probe: Daily OR Rolling at −1σ → allows earlier fades with flexibility.
Advanced filtering: Suitable for advanced/Quant traders
During the research and development of this indicator, the EMA/VWAP cross logic was tested on historical S&P500 Futures data to explore patterns on multiple timeframes. These selected filtering indicators below showed correlation between certain market conditions and chosen indicator thresholds, helping reduce noise and lower-quality alerts. Results were research-oriented and are not predictive of future performance.
Therefore, I have built these indicator filters that run silently in the background. They let you trim noise by requiring alerts to appear only in market regimes you define. Each one constrains alert conditions; using them together helps tailor alerts to your strategy—but overly strict settings may filter out most or all alerts.
Relative Volume (RVOL): compares current volume to a baseline; ensures alerts arrive with participation instead of thin tape.
Deviation Threshold (%): controls how close the cross must be to the VWAP/σ level; tight = anchored signals, loose = more activity.
ATR Gate (+ Relative regime): keeps alerts inside a volatility regime; avoids both dead tape and chaotic spikes.
Distance Guard: requires price to be at least X ticks/% away from VWAP; useful to avoid premature signals near fair value.
Note: It’s not recommended to activate all of them at once or change the values aggressively. Unless you’ve done deeper backtesting or machine learning calibration, you can easily filter out everything. Use small thresholds at first, then adjust to your instrument once you see how each filter changes alert frequency and quality. Advanced/quant users can fine-tune freely.
Case example:
Unfiltered: Timeframe 15 min, EMA Selection 9/21, VWAP gates Rolling (250 bars) OR Weekly
Filtered: Same setup as above + activated filters:
RVOL: 100 bars, Min. RVOL 0.4
Deviation threshold (%): 0.3
ATR Length: 14
Min ATR (%): 0.05
Relative regime: Base length 2000, Min Ratio 0.85, Max Ratio 2
Under the hood
This indicator leans on TradingView built-ins (e.g., EMA, VWMA, ATR, alertcondition) to maximize speed, stability, and compatibility while we implement the custom logic (VWAP anchors, band gating, combinator gates, advanced filters, time windows). Built-ins were easy to work with and reduced edge-case bugs and kept the visuals responsive, while the design gives fine-tuning and clean visuals—so both discretionary traders and quant-minded users can shape the alerts to their strategy and workflow.
Disclaimer
The tools, scripts, and indicators presented here are provided for educational and informational purposes only. They are not financial advice and should not be interpreted as investment recommendations, trading signals, or a solicitation to buy or sell any financial instrument.
All forms of trading and investing involve risk. The past performance of any security, strategy, or market condition does not guarantee future outcomes. Users are solely responsible for their own trading and investment decisions, including evaluating their financial situation, objectives, and risk tolerance.
By using this indicator, you acknowledge that you do so at your own risk. The author accepts no liability for any direct or indirect loss or damage—including, without limitation, loss of profits—that may arise from the use of, or reliance upon, this tool.
Trend Engine Pro v1.3Trend Engine Pro v1.3 is a custom-built trading indicator designed to simplify market direction and decision-making by combining multiple confirmations into one tool. It analyzes price action across the 4H, 1H, 30M, and 5M timeframes, pulling both regular candle trends and Heikin-Ashi candle trends together to form a stronger, more reliable signal. The indicator also integrates a dynamic 20 EMA ribbon, which changes color based on trend direction and strength, giving instant visual feedback on momentum shifts. On top of that, fractals are plotted directly on the chart with customizable colors, helping traders spot potential reversal points or continuation setups with clarity. All results are summarized in a boxed panel, which displays the trend status of each timeframe, the overall market bias (Strong Buy, Strong Sell, or Hold), and a real-time trading tip. The goal is to remove second-guessing, keep you aligned with the trend, and reinforce discipline—so you can focus on executing your strategy with confidence.
Forex Fire Trend Filter# Forex Fire Trend Filter - Usage Guide
## Overview
The Forex Fire Trend Filter is a technical analysis indicator that combines advanced noise filtering with dynamic support/resistance bands and an EMA overlay to help identify trend direction and potential entry opportunities.
## How It Works
### Core Components:
1. **Triple-Smoothed Trend Line**: Uses a noise filter with three-stage exponential smoothing to reduce market noise while maintaining responsiveness
2. **Dynamic Bands**: Creates 6 Fibonacci-based bands around the trend line (3 above, 3 below) using ratios of 0.236, 0.382, and 0.618
3. **Gradient Coloring**: Visual representation of trend strength with color gradients
4. **EMA 21**: Additional moving average for confluence and retest opportunities
5. **Signal Diamonds**: Orange markers indicating potential trend changes
### Visual Elements:
- **Green Trend Line**: Bullish momentum (diff ≥ 0)
- **Red Trend Line**: Bearish momentum (diff < 0)
- **Black EMA Line**: 21-period exponential moving average
- **Colored Bands**: Gradient-filled areas showing trend strength zones
- **Orange Diamonds**: Crossover signals when trend momentum changes direction
## Suggested Trading Approach (Educational Purpose Only)
### Bullish Setup:
1. **Trend Identification**: Price and trend line are in bullish mode (green)
2. **EMA Confluence**: Wait for price to retrace to EMA 21
3. **Retest Entry**: Consider long positions when price bounces off EMA 21 while remaining above the trend filter
4. **Confirmation**: Look for price to respect the lower bands as support
### Bearish Setup:
1. **Trend Identification**: Price and trend line are in bearish mode (red)
2. **EMA Confluence**: Wait for price to retrace to EMA 21
3. **Retest Entry**: Consider short positions when price rejects EMA 21 while remaining below the trend filter
4. **Confirmation**: Look for price to respect the upper bands as resistance
### Entry Rules (Example System):
- **Long Entry**: Trend filter is bullish + price retraces to and bounces from EMA 21
- **Short Entry**: Trend filter is bearish + price retraces to and rejects from EMA 21
- **Stop Loss**: Beyond the opposite side bands or recent swing points
- **Take Profit**: At band extremes or predetermined risk/reward ratios
## Key Features:
- **Noise Reduction**: Triple-smoothed algorithm reduces false signals
- **Multi-Timeframe**: Works on all timeframes from M1 to Monthly
- **Customizable**: Adjustable colors, line widths, and EMA settings
- **Clear Signals**: Visual diamond markers for trend changes
- **Trend Strength**: Gradient coloring shows momentum intensity
## Settings:
- **Source**: Price input (default: close)
- **Length**: Smoothing period (default: 25)
- **Line Width**: Trend line thickness
- **Colors**: Bullish/bearish color scheme
- **Transparency**: Band fill transparency
- **EMA Length**: Moving average period (default: 21)
- **EMA Width**: EMA line thickness
## Best Practices:
1. **Multiple Confirmations**: Use with other technical analysis tools
2. **Risk Management**: Always use appropriate position sizing
3. **Market Context**: Consider overall market conditions
4. **Backtesting**: Test any strategy on historical data first
5. **Practice**: Use demo accounts before live trading
## Important Notes:
- This indicator is for educational and analysis purposes only
- Past performance does not guarantee future results
- Always conduct your own analysis and risk assessment
- Trading involves substantial risk of loss
- Consider your risk tolerance and trading experience
- The suggested system is theoretical and requires proper testing
## Disclaimer:
This indicator and any suggested trading approaches are provided for educational purposes only and should not be considered as financial advice. Trading in financial markets carries significant risk and may not be suitable for all investors. Always consult with a qualified financial advisor and conduct thorough research before making any trading decisions. The creator of this indicator is not responsible for any trading losses that may occur from its use.
EMA + RSI + Candle Pattern StrategyEMA RSI CANDLE PATTERN
calculates ema 9,20 and 50 along with RSI and identifies patterns
SAMINVTRDA multi-factor signal generator that identifies and classifies three distinct levels of market activity, from minor price fluctuations to significant shifts in the core trend.
SAMINVTR15This analysis tool decodes market behavior by distinguishing between transient price movements and substantive shifts in directional momentum. By generating unique visual cues for each condition, it offers a multi-dimensional view of trend integrity and potential inflection points. This is on a higher timeframe.
SAMINVTRThis analysis tool decodes market behavior by distinguishing between transient price movements and substantive shifts in directional momentum. By generating unique visual cues for each condition, it offers a multi-dimensional view of trend integrity and potential inflection points.
EMA (7, 21, 50, 200)EMA 4 in One shows 7,21,50 and 200 with CPR. this do not have any strategy, only have indicators in one.
Ramen & OJ V1Ramen & OJ V1 — Strategy Overview
Ramen & OJ V1 is a mechanical price-action system built around two entry archetypes—Engulfing and Momentum—with trend gates, session controls, risk rails, and optional interval take-profits. It’s designed to behave the same way you’d trade it manually: wait for a qualified impulse, enter with discipline (optionally on a measured retracement), and manage the position with clear, rules-based exits.
Core Idea (What the engine does)
At its heart, the strategy looks for a decisive candle, then trades in alignment with your defined trend gates and flattens when that bias is no longer valid.
Entry Candle Type
Engulfing: The body of the current candle swallows the prior candle’s body (classic momentum shift).
Momentum: A simple directional body (close > open for longs, close < open for shorts).
Body Filter (lookback): Optional guard that requires the current body to be at least as large as the max body from the last N bars. This keeps you from chasing weak signals.
Primary MA (Entry/Exit Role):
Gate (optional): Require price to be above the Primary MA for longs / below for shorts.
Exit (always): Base exit occurs when price closes back across the Primary MA against your position.
Longs: qualifying bullish candle + pass all enabled filters.
Shorts: mirror logic.
Entries (Impulse vs. Pullback)
You choose how aggressive to be:
Market/Bars-Close Entry: Fire on the bar that confirms the signal (respecting filters and sessions).
Retracement Entry (optional): Instead of chasing the close, place a limit around a configurable % of the signal candle’s range (e.g., 50%). This buys the dip/sells the pop with structure, often improving average entry and risk.
Flip logic is handled: when an opposite, fully-qualified signal appears while in a position, the strategy closes first and then opens the new direction per rules.
Exits & Trade Management
Primary Exit: Price closing back across the Primary MA against your position.
Interval Take-Profit (optional):
Pre-Placed (native): Automatically lays out laddered limit targets every X ticks with OCO behavior. Each rung can carry its own stop (per-rung risk). Clean, broker-like behavior in backtests.
Manual (legacy): Closes slices as price steps through the ladder levels intrabar. Useful for platforms/brokers that need incremental closes rather than bracketed OCOs.
Per-Trade Stop: Choose ticks or dollars, and whether the $ stop is per position or per contract. When pre-placed TP is on, each rung uses a coordinated OCO stop; otherwise a single hard stop is attached.
Risk Rails (Session P&L Controls)
Session Soft Lock: When a session profit target or loss limit is hit, the strategy stops taking new trades but does not force-close open positions.
Session Hard Lock: On reaching your session P&L limit, all orders are canceled and the strategy flattens immediately. No new orders until the next session.
These rails help keep good days good and bad days survivable.
Filters & How They Work Together
1) Trend & Bias
Primary MA Gate (optional): Only long above / only short below. This keeps signals aligned with your primary bias.
Primary MA Slope Filter (optional): Require a minimum up/down slope (in degrees over a defined bar span). It’s a simple way to force impulse alignment—green light only when the MA is actually moving up for longs (or down for shorts).
Secondary MA Filter (optional): An additional trend gate (SMA/EMA, often a 200). Price must be on the correct side of this higher-timeframe proxy to trade. Great for avoiding countertrend picks.
How to combine:
Use Secondary MA as the “big picture” bias, Primary MA gate as your local regime check, and Slope to ensure momentum in that regime. That three-layer stack cuts a lot of chop.
2) Volatility/Exhaustion
CCI Dead Zone Filter (optional): Trades only when CCI is inside a specified band (default ±200). This avoids entries when price is extremely stretched; think of it as a no-chase rule.
TTM Squeeze Filter (optional): When enabled, the strategy avoids entries during a squeeze (Bollinger Bands inside Keltner Channels). You’re effectively waiting for the release, not the compression itself. This plays nicely with momentum entries and the slope gate.
How to combine:
If you want only the clean breaks, enable Slope + Squeeze; if you want structure but fewer chases, add CCI Dead Zone. You’ll filter out a lot of low-quality “wiggle” trades.
3) Time & Market Calendar
Sessions: Up to two session windows (America/Chicago by default), with background highlights.
Good-Till-Close (GTC): When ON, trades can close outside the session window; when OFF, all positions are flattened at session end and pending orders canceled.
Market-Day Filters: Skip US listed holidays and known non-full Globex days (e.g., Black Friday, certain eves). Cleaner logs and fewer backtest artifacts.
How to combine:
Run your A-setup window (e.g., cash open hour) with GTC ON if you want exits to obey system rules even after the window, or GTC OFF if you want the book flat at the bell, no exceptions.
Practical Profiles (mix-and-match presets)
Trend Rider: Primary MA gate ON, Slope filter ON, Secondary MA ON, Retracement ON (50%).
Goal: Only take momentum that’s already moving, buy the dip/sell the pop back into trend.
Structure-First Pullback: Primary MA gate ON, Secondary MA ON, CCI Dead Zone ON, Retracement 38–62%.
Goal: Filter extremes, use measured pullbacks for better R:R.
Break-Only Mode: Slope ON + Squeeze filter ON (avoid compression), Body filter ON with short lookback.
Goal: Only catch clean post-compression impulses.
Session Scalper: Tight session window, GTC OFF, Interval TP ON (small slices, short rungs), per-trade tick stop.
Goal: Quick hits in a well-defined window, always flat after.
Automation Notes
The system is built with intrabar awareness (calc_on_every_tick=true) and supports bracket-style behavior via pre-placed interval TP rungs. For webhook automation (e.g., TradersPost), keep chart(s) open and ensure alerts are tied to your order events or signal conditions as implemented in your alert templates. Always validate live routing with a small-size shakedown before scaling.
Tips, Caveats & Good Hygiene
Intrabar vs. Close: Backtests can fill intrabar where your broker might not. The pre-placed mode helps emulate OCO behavior but still depends on feed granularity.
Slippage & Fees: Set realistic slippage/commission in Strategy Properties to avoid fantasy equity curves.
Session Consistency: Use the correct timezone and verify that your broker’s session aligns with your chart session settings.
Don’t Over-stack Filters: More filters ≠ better performance. Start with trend gates, then add one volatility filter if needed.
Disclosure
This script is for educational purposes only and is not financial advice. Markets carry risk; only trade capital you can afford to lose. Test thoroughly on replay and paper before using any automated routing.
TL;DR
Identify a decisive candle → pass trend/vol filters → (optionally) pull back to a measured limit → scale out on pre-planned rungs → exit on Primary MA break or session rule. Clear, mechanical, repeatable.
WAVE (Fusion B-L/S)Title: WAVE (Fusion B-L/S)
This strategy executes entries and exits according to the logic described below; set capital, commission and slippage in Properties to match publication defaults.
Esta estrategia ejecuta entradas y salidas según la lógica descrita abajo; ajusta capital, comisión y slippage en Propiedades para que coincidan con los valores por defecto de la publicación.
Overview
• Timeframe: 5 minutes. Market: /MNQ (Micro E-mini Nasdaq-100 futures).
• Entries: EMA cross confirmation + VWAP proximity + Weinstein (WSA) + volatility gate (ATR by default, optional Regime filter ADX+ATRrel).
• Management: fixed SL/TP per direction + trailing stop (step-line) + optional auto-close by bars + on-chart bars counter.
• Signals/Webhooks: supports “Order fills (alert_message)”, “alert() only”, or “Both (debug)”. RTH gate affects only alert sending (not backtest).
• Version tag in payloads: mnq_wave_v4.
Core Logic (concise)
• Long: fast EMA crosses above slow EMA, plus WSA long condition, VWAP proximity (price above smoothed VWAP within % window), and volatility OK (ATR or Regime). One position at a time.
• Short: fast EMA crosses below slow EMA with fast<slow, plus WSA short, VWAP proximity (price below VWAP within % window), and volatility OK. One position at a time.
• Exits: directional TP, directional SL, or trailing stop (activates after % run-up/run-down from entry). Optional auto-close after N bars. Bars label shows “LONG/SHORT x/y”.
What’s New in this Update (non-breaking)
• CME Break Shield (NY time): protects around 17:00–18:00 NY with configurable pre/post buffers. Helps avoid clustered signals near the daily CME break.
• Session Entry Filter (NY): optional blocks for Sunday 18:00–18:16 and Mon–Thu 17:00–17:16.
• Webhook RTH Gate: optional limit to send alerts only between 09:30–16:00 NY with a cutoff buffer before the close. This DOES NOT change backtest fills—only alert dispatch timing.
• Payloads remain unchanged and include meta {ch:"advice"|"signal"} and version "mnq_wave_v4".
Properties (set these defaults for fair, realistic results)
• Initial capital: 10,000 (USD).
• Commission: Cash per order = 1.42.
• Slippage: 1–2 ticks recommended for /MNQ (set in Properties → Slippage).
• Order size: 1 contract (fixed).
• Pyramiding: off (flat-only).
• Backtest fill limits assumption: 0.
• Bar close confirmation: entries and exits evaluate on confirmed bars.
Key Inputs (high-level)
• EMA (per side): Fast=5, Slow=13 (type/source selectable).
• VWAP (per side): smoothed VWAP (default SMA 22); proximity gate (Long 1.1%, Short 0.3%).
• WSA: SMA(23) slope and simple volume confirmation per side.
• Volatility:
– Default ATR filter with length/smoothing per side, threshold=8.0.
– Optional Regime filter (ADX + ATR relative): modes “Block Chop Only”, “Trend Only”, “Trend + Transition”; optional DI bias.
• Management:
– Long: SL 1.2%, TP 2.7%, trailing start 0.5%, trail 0.4%.
– Short: SL 1.0%, TP 4.5%, trailing start 0.5%, trail 0.4%.
– Optional auto-close by bars (default 20) + on-chart bars counter label.
• Direction selector: Both / Longs Only / Shorts Only.
Alerts / Webhooks (summary)
• “Order fills (alert_message)”: attaches an execution-style JSON; optional include SL/TP on entries.
• “alert() only”: pushes pre-built JSON for /advice or /signal; quantity from input.
• “Both (debug)”: emits both simultaneously.
• RTH gate (if enabled) restricts sending window only; strategy/backtest logic and fills do not change.
Usage Notes
• Set the chart timezone to America/New_York to keep session gates aligned.
• This strategy does not repaint; signals confirm on bar close.
• Risk discipline: keep per-trade risk under 5–10% of account; results vary across brokers due to slippage, margins, and fees.
Changelog (update)
• Added CME Break Shield and NY filters near the CME break (17:00–18:00 NY) and early reopening minutes.
• Added optional RTH send-window for alert/webhook dispatch only (unchanged trading logic and backtest).
• No removals of plots/inputs; prior payload structure preserved (version "mnq_wave_v4").
----------------------------------------------------------------------------------------------------------------------
Estrategia 5m para /MNQ: entradas por cruce de EMAs + proximidad a VWAP y WSA, con filtro de volatilidad (ATR por defecto o Regime ADX+ATRrel). Gestión con SL/TP por lado, trailing stop y cierre opcional por barras (contador en gráfico). Incluye “CME Break Shield” y filtros NY; la compuerta RTH limita solo el envío de alertas (backtest sin cambios). Soporta Order fills, alert() o ambos; payloads con versión mnq_wave_v4.
Xbos Buy and sell- Sideways Market alertsThis tool is a comprehensive market analysis solution designed to help traders and investors identify potential buying and selling opportunities, as well as assess overall market conditions. It combines multiple analytical methods to provide a clearer picture of market trends, momentum, volatility, and strength.
The system offers customizable inputs, allowing users to adjust parameters based on their trading preferences. It integrates real-time data from both internal calculations and external sources, offering alerts and visual cues for key market signals such as trend reversals, price gaps, volume spikes, and periods of low activity.
With its intuitive interface, easy-to-understand notifications, and adjustable settings, this tool empowers users to make informed decisions while navigating complex financial markets. Whether you're a beginner or an experienced trader, it helps you stay aware of changing conditions and react quickly to market movements.Core Features
📊 Customizable Input Parameters
🔢 Adjustable numeric inputs for trend detection periods.
✅ Toggle switches to enable or disable filters and conditions.
🌐 Option to input external data symbols for volatility analysis.
🎨 Adjustable settings for display elements like label size.
📈 Real-Time Market Analysis
📉 Detection of trend changes and reversal points.
📊 Monitoring of price movements relative to dynamic thresholds.
⚡ Identification of sudden price jumps or gaps in data.
🔍 Multiple Analytical Perspectives
📈 Trend-based signals using moving averages.
💪 Momentum and strength analysis.
🌪 Market volatility assessment using both internal and external data sources.
📊 Volume spike detection to highlight unusual trading activity.
📉 Market Condition Indicators
💤 Alerts for sideways or consolidating markets.
🎯 Notifications when momentum indicators stabilize around neutral levels.
⚠ Warnings for low market strength or directional uncertainty.
😊 Signals for potential exit from stagnant market phases.
🎨 Visual Enhancements
📌 Graphical labels for actionable events like buy/sell signals or market stagnation.
🌈 Color-coded highlights to quickly distinguish conditions on the chart.
🖼 Background shading to visually indicate specific market phases.
🔔 Alert System
⏰ Real-time notifications based on user-defined thresholds.
🚨 Alerts for significant changes, such as market entry/exit points or unstable conditions.
💬 Display of concise messages with relevant emojis for intuitive interpretation.
⚙️ Data Availability Checks
🚫 Notifications when specific datasets are not available.
⚠ Visual cues to alert users of missing or incomplete data.
👥 User-Friendly Display Options
🖋 Adjustable label sizes to suit different chart preferences.
👀 Option to show or hide certain indicators based on user needs.
🧩 Simplified interface for non-expert users while retaining advanced functionality.
🔗 Integration Capabilities
🌐 Ability to pull external data feeds for broader market insights.
🔄 Seamless interaction with charting tools for enhanced user experience.
📚 Documentation and Support
📖 Clear instructions on how each feature is used.
🔍 Suggestions for valid external data sources.
💡 Alerts and messages designed to guide users through market analysis without overwhelming them.
Weekly MAA combination of 3 weekly simple moving averages.
These moving averages are also displayed on the daily chart.
EMA Kombine Strateji
EMA Combined Strategy is a flexible trading system that enhances EMA crossovers with RSI, MACD, ADX, volume, and ATR filters to generate more reliable signals, featuring ATR-based stop-loss and take-profit levels.
Dual Best MA Strategy AnalyzerDual Best MA Strategy Analyzer (Lookback Window)
What it does
This indicator scans a range of moving-average lengths and finds the single best MA for long crossovers and the single best MA for short crossunders over a fixed lookback window. It then plots those two “winner” MAs on your chart:
Best Long MA (green): The MA length that would have made the highest total profit using a simple “price crosses above MA → long; exit on cross back below” logic.
Best Short MA (red): The MA length that would have made the highest total profit using “price crosses below MA → short; exit on cross back above.”
You can switch between SMA and EMA, set the min/max length, choose a step size, and define the lookback window used for evaluation.
How it works (brief)
For each candidate MA length between Min MA Length and Max MA Length (stepping by Step Size), the script:
Builds the MA (SMA or EMA).
Simulates a naïve crossover strategy over the last Lookback Window candles:
Long model: enter on crossover, exit on crossunder.
Short model: enter on crossunder, exit on crossover.
Sums simple P&L in price units (no compounding, no fees/slippage).
Picks the best long and best short lengths by total P&L and plots those two MAs.
Note: Long and short are evaluated independently. The script plots MAs only; it doesn’t open positions.
Inputs
Min MA Length / Max MA Length – Bounds for MA search.
Step Size – Spacing between tested lengths (e.g., 10 tests 10, 20, 30…).
Use EMA instead of SMA – Toggle average type.
Lookback Window (candles) – Number of bars used to score each MA. Needs enough history to be meaningful.
What the plots mean
Best Long MA (green): If price crosses above this line (historically), that MA length produced the best long-side results over the lookback.
Best Short MA (red): If price crosses below this line (historically), that MA length produced the best short-side results.
These lines can change over time as new bars enter the lookback window. Think of them as adaptive “what worked best recently” guides, not fixed signals.
Practical tips
Timeframe matters: Run it on the timeframe you trade; the “best” length on 1h won’t match 1m or 1D.
Step size trade-off: Smaller steps = more precision but heavier compute. Larger steps = faster scans, coarser choices.
Use with confirmation: Combine with structure, volume, or volatility filters. This is a single-factor tester.
Normalization: P&L is in raw price units. For cross-symbol comparison, consider using one symbol at a time (or adapt the script to percent P&L).
Limitations & assumptions
No fees, funding, slippage, or position sizing.
Simple “in/out” on the next crossover; no stops/targets/filters.
Results rely on lookback choice and will repaint historically as the “best” length is re-selected with new data (the plot is adaptive, not forward-fixed).
The script tests up to ~101 candidates internally (bounded by your min/max/step).
Good uses
Quickly discover a recently effective MA length for trend following.
Compare SMA vs EMA performance on your market/timeframe.
Build a playbook: note which lengths tend to win in certain regimes (trending vs choppy).
Not included (by design)
Alerts, entries/exits, or a full strategy report. It’s an analyzer/overlay.
If you want alerts, you can add simple conditions like:
ta.crossover(close, plotLongMA) for potential long interest
ta.crossunder(close, plotShortMA) for potential short interest
Changelog / Notes
v1: Initial release. Array-based scanner, SMA/EMA toggle, adaptive long/short best MA plots, user-set lookback.
Disclaimer
This is educational tooling, not financial advice. Test thoroughly and use proper risk management.
Extremum Range MA Crossover Strategy1. Principle of Work & Strategy Logic ⚙️📈
Main idea: The strategy tries to catch the moment of a breakout from a price consolidation range (flat) and the start of a new trend. It combines two key elements:
Moving Average (MA) 📉: Acts as a dynamic support/resistance level and trend filter.
Range Extremes (Range High/Low) 🔺🔻: Define the borders of the recent price channel or consolidation.
The strategy does not attempt to catch absolute tops and bottoms. Instead, it enters an already formed move after the breakout, expecting continuation.
Type: Trend-following, momentum-based.
Timeframes: Works on different TFs (H1, H4, D), but best suited for H4 and higher, where breakouts are more meaningful.
2. Justification of Indicators & Settings ⚙️
A. Moving Average (MA) 📊
Why used: Core of the strategy. It smooths price fluctuations and helps define the trend. The price (via extremes) must cross the MA → signals a potential trend shift or strengthening.
Parameters:
maLength = 20: Default length (≈ one trading month, 20-21 days). Good balance between sensitivity & smoothing.
Lower TF → reduce (10–14).
Higher TF → increase (50).
maSource: Defines price source (default = Close). Alternatives (HL2, HLC3) → smoother, less noisy MA.
maType: Default = EMA (Exponential MA).
Why EMA? Faster reaction to recent price changes vs SMA → useful for breakout strategies.
Other options:
SMA 🟦 – classic, slowest.
WMA 🟨 – weights recent data stronger.
HMA 🟩 – near-zero lag, but “nervous,” more false signals.
DEMA/TEMA 🟧 – even faster & more sensitive than EMA.
VWMA 🔊 – volume-weighted.
ZLEMA ⏱ – reduced lag.
👉 Choice = tradeoff between speed of reaction & false signals.
B. Range Extremes (Previous High/Low) 📏
Why used: Define borders of recent trading range.
prevHigh = local resistance.
prevLow = local support.
Break of these levels on close = trigger.
Parameters:
lookbackPeriod = 5: Searches for highest high / lowest low of last 5 candles. Very recent range.
Higher value (10–20) → wider, stronger ranges but rarer signals.
3. Entry & Exit Rules 🎯
Long signals (BUY) 🟢📈
Condition (longCondition): Previous Low crosses MA from below upwards.
→ Price bounced from the bottom & strong enough to push range border above MA.
Execution: Auto-close short (if any) → open long.
Short signals (SELL) 🔴📉
Condition (shortCondition): Previous High crosses MA from above downwards.
→ Price rejected from the top, upper border failed above MA.
Execution: Auto-close long (if any) → open short.
Exit conditions 🚪
Exit Long (exitLongCondition): Close below prevLow.
→ Uptrend likely ended, range shifts down.
Exit Short (exitShortCondition): Close above prevHigh.
→ Downtrend likely ended, range shifts up.
⚠️ Important: Exit = only on candle close beyond extremes (not just wick).
4. Trading Settings ⚒️
overlay = true → indicators shown on chart.
initial_capital = 10000 💵.
default_qty_type = strategy.cash, default_qty_value = 100 → trades fixed $100 per order (not lots). Can switch to % of equity.
commission_type = strategy.commission.percent, commission_value = 0.1 → default broker fee = 0.1%. Adjust for your broker!
slippage = 3 → slippage = 3 ticks. Adjust to asset liquidity.
currency = USD.
margin_long = 100, margin_short = 100 → no leverage (100% margin).
5. Visualization on Chart 📊
The strategy draws 3 lines:
🔵 MA line (thickness 2).
🔴 Previous High (last N candles).
🟢 Previous Low (last N candles).
Also: entry/exit arrows & equity curve shown in backtest.
Disclaimer ⚠️📌
Risk Warning: This description & code are for educational purposes only. Not financial advice. Trading (Forex, Stocks, Crypto) carries high risk and may lead to full capital loss. You trade at your own risk.
Testing: Always backtest & demo test first. Past results ≠ future profits.
Responsibility: Author of this strategy & description is not responsible for your trading decisions or losses.
PolyFilter [BackQuant]PolyFilter
A flexible, low-lag trend filter with three smoothing engines—optimized for clean bias, fewer whipsaws, and clear alerting.
What it does
PolyFilter draws a single “intelligent” baseline that adapts to price while suppressing noise. You choose the engine— Fractional MA , Ehlers 2-Pole Super Smoother , or a Multi-Kernel blend . The line can color itself by slope (trend) or by position vs price (above/below), and you get four ready-made alerts for flips and crosses.
What it plots
PolyFilter line — your smoothed trend baseline (width set by “Line Width”).
Optional candle & background coloring — choose: color by trend slope or by whether price is above/below the filter.
Signal markers — Arrows with L/S when the slope flips or when price crosses the line (if you enable shapes/alerts).
How the three engines differ
Fractional MA (experimental) — A power-law weighting of past bars (heavier focus on the most recent samples without throwing away history). The Adaptation Speed acts like the “fraction” exponent (default 0.618). Lower values lean more on recent bars; higher values spread weight further back.
Ehlers 2-Pole Super Smoother — Classic low-lag IIR smoother that aggressively reduces high-frequency noise while preserving turns. Great default when you want a steady, responsive baseline with minimal parameter fuss.
Multi-Kernel — A 70/30 blend of a Gaussian window and an exponential kernel. The Gaussian contributes smooth structure; the exponential adds a hint of responsiveness. Useful for assets that oscillate but still trend.
Reading the colors
Trend mode (default) — Line & candles turn green while the filter is rising (signal > signal ) and red while it’s falling.
Above/Below mode — Line & candles reflect price’s position relative to the filter: green when price > filter, red when price < filter. This is handy if you treat the filter like a dynamic “fair value” or bias line.
Inputs you’ll actually use
Calculation Settings
Price Source — Default HLC/3. Switch to Close for stricter trend, or HLC3/HL2 to soften single-print spikes.
Filter Length — Window/period for all engines. Shorter = snappier turns; longer = smoother line.
Adaptation Speed — Only affects Fractional MA . Lower it for faster, more local weighting; raise it for smoother, more global weighting.
Filter Type — Pick one of: Fractional MA, Ehlers 2-Pole, Multi-Kernel.
UI & Plotting
Color based off… — Choose Trend (slope) or > or < Close (position vs price).
Long/Short Colors — Customize bull/bear hues to your theme.
Show Filter Line / Paint candles / Color background — Visual toggles for the line, bars, and backdrop.
Line Width — Make the filter stand out (2–3 works well on most charts).
Signals & Alerts
PolyFilter Trend Up — Slope flips upward (the filter crosses above its prior value). Good for early continuation entries or stop-tightening on shorts.
PolyFilter Trend Down — Slope flips downward. Often used to scale out longs or rotate bias.
PolyFilter Above Price — The filter line crosses up through price (filter > price). This can confirm that mean has “caught up” after a pullback.
PolyFilter Below Price — The filter line crosses down through price (filter < price). Useful to confirm momentum loss on bounces.
Quick starts (suggested presets)
Intraday (5–15m, crypto or indices) — Ehlers 2-Pole, Length 55–80. Trend coloring ON, candle paint ON. Look for pullbacks to a rising filter; avoid fading a falling one.
Swing (1H–4H) — Multi-Kernel, Length 80–120. Background color OFF (cleaner), candle paint ON. Add a higher-TF confirmation (e.g., 4H filter rising when you trade 1H).
Range-prone FX — Fractional MA, Length 70–100, Adaptation ~0.55–0.70. Consider Above/Below mode to trade mean reversion to the line with a strict risk cap.
How to use it in practice
Bias line — Trade in the direction of the filter slope; stand aside when it flattens and color chops back and forth.
Dynamic support/resistance — Treat the line as a moving value area. In trends, entries often appear on shallow tags of the line with structure confluence.
Regime switch — When the filter flips and holds color for several bars, tighten stops on the opposing side and look for first pullback in the new color.
Stacking filters — Many users run PolyFilter on the active chart and a slower instance (longer length) on a higher timeframe as a “macro bias” guardrail.
Tuning tips
If you see too many flips, lengthen the filter or switch to Multi-Kernel.
If turns feel late, shorten the filter or try Ehlers 2-Pole for lower lag.
On thin or very noisy symbols, prefer HLC3 as the source and longer lengths.
Performance note: very large lengths increase computation time for the Multi-Kernel and Fractional engines. Start moderate and scale up only if needed.
Summary
PolyFilter gives you a single, trustworthy baseline that you can read at a glance—either as a pure trend line (slope coloring) or as a dynamic “above/below fair value” reference. Pick the engine that matches your market’s personality, set a sensible length, and let the color and alerts guide bias, entries on pullbacks, and risk on reversals.
Dynamic FIB Retracement Dynamic FIB Retracement.
Description:
This indicator automatically plots dynamic Fibonacci retracement levels (0.382, 0.5, 0.618) based on the highest high and lowest low of the selected lookback period on the current timeframe. It also provides Buy Above / Sell Below signals at the 0.5 Fibonacci level with trend confirmation, making it easier to spot high-probability trade setups.
Key Features:
Dynamic Fibonacci Levels – Automatically calculates 0.382, 0.5, and 0.618 retracements based on recent price action.
Trend Filter Confirmation – Signals only trigger in the direction of the trend using an EMA-based trend filter (user-adjustable).
Customizable Lookback – Choose how many bars the script should use to detect the high and low for Fibonacci levels.
Visual Alerts – Signals are displayed directly on the chart with triangles, and alerts can be configured for both Buy and Sell events.
Easy to Use – Works on any timeframe and updates automatically as price moves.
Inputs:
Lookback Bars: Determines the number of bars to calculate high and low for Fibonacci levels.
EMA Length: Sets the period for EMA used in trend filtering signals.
Use Cases:
Identify potential retracement zones for entries and exits.
Filter trades in the direction of the trend for higher accuracy.
Quick visualization of key Fibonacci levels for swing or intraday trading.
How to Use:
Apply the indicator to your chart.
Adjust the lookback period and EMA length to match your trading style.
Watch for Buy Above / Sell Below signals near the 0.5 Fibonacci level aligned with the trend.
Optionally, set alerts for automatic notifications when signals occur.