Зміщена MA з урахуванням волатильності (ATR)This is an experimental script designed to mark potential entry points for spot or long futures trades.
It uses a moving average (SMA or EMA) that is dynamically shifted downward based on current ATR (volatility). When the price crosses above this adjusted MA, a potential long entry signal is generated.
A stoploss line is plotted below the adjusted MA — offset
Medie mobili
Zero Lag Moving AverageThis indicator is a trend detection tool that highlights significant momentum shifts with reduced lag. It uses two smoothed moving averages—fast and medium ZLEMAs—optionally enhanced with a Kalman filter to reduce noise. The indicator defines a bullish trend when the price is above both ZLEMAs, and bearish when it is below both. Rather than signaling every crossover, it focuses on trend changes, triggering buy or sell signals only when the trend flips (e.g., from bearish to bullish) and confirms those shifts with two filters: rising volume (above the 20-bar average) and a strong trend based on the ADX indicator. Visual features include optional candle coloring to reflect trend direction and signal markers (triangles) plotted only during a user-defined trading session. This setup helps traders act only on confirmed, high-quality momentum shifts, reducing false positives in low-volume or ranging markets.
EMA Cross Approach ScreenerWorks best on D/4H. Signals when the price of a stock is below the 200ema and the 9 and 20 are sloping up approaching the 200 while being 5% or less than from the 200. Helps the trader find a good buying point while keeping risk minimum.
Linear Mean Reversion Strategy📘 Strategy Introduction: Linear Mean Reversion with Fixed Stop
This strategy implements a simple yet powerful mean reversion model that assumes price tends to oscillate around a dynamic average over time. It identifies statistically significant deviations from the moving average using a z-score, and enters trades expecting a return to the mean.
🧠 Core Logic:
A z-score is calculated by comparing the current price to its moving average, normalized by standard deviation, over a user-defined half-life window.
Trades are entered when the z-score crosses a threshold (e.g., ±1), signaling overbought or oversold conditions.
The strategy exits positions either when price reverts back near the mean (z-score close to 0), or if a fixed stop loss of 100 points is hit, whichever comes first.
⚙️ Key Features:
Dynamic mean and volatility estimation using moving average and standard deviation
Configurable z-score thresholds for entry and exit
Position size scaling based on z-score magnitude
Fixed stop loss to control risk and avoid prolonged drawdowns
🧪 Use Case:
Ideal for range-bound markets or assets that exhibit stationary behavior around a mean, this strategy is especially useful on assets with mean-reverting characteristics like currency pairs, ETFs, or large-cap stocks. It is best suited for traders looking for short-term reversions rather than long-term trends.
Multi-Timeframe MA 200Multi-Timeframe MA 200
This powerful tool plots the 200-period Moving Average across multiple timeframes (5m, 15m, 30m, 1h, 4h, Daily) directly on your active chart. You can switch between SMA (Simple Moving Average) and EMA (Exponential Moving Average) for all timeframes at once.
Key features:
✅ 100% accurate calculation using the original timeframe
✅ Option to choose SMA or EMA
✅ Visual smoothing for cleaner display
✅ Floating labels showing the origin timeframe
✅ Clean interface – no clutter or legends
✅ Ideal for scalping, intraday, and swing traders
Developed by BELOTTO TRADER, founder of the CLUBE DO GAIN – one of the most engaged trading communities in the Portuguese-speaking world.
トレンドフォローBUY&SELL ver1.1Indicator Description
This indicator displays three moving averages (MAs) and generates buy and sell signals based on their crossovers. It’s designed to help traders easily follow the trend and avoid counter-trend trades.
1. Three Moving Averages
MA1 (Default: 7) – Short-term trend (Yellow)
MA2 (Default: 50) – Medium-term trend (Blue)
MA3 (Default: 200) – Long-term trend (Red), also used as a filter
2. Signal Types
(A) MA1 and MA3 Crossovers (Yellow Signals)
Golden Cross (BUY): MA1 crosses above MA3
Dead Cross (SELL): MA1 crosses below MA3
→ Helps identify shifts between short-term and long-term trends.
(B) MA1 and MA2 Crossovers (Green & Red Signals)
BUY (Green): MA1 and MA2 cross, and both are above MA3
SELL (Red): MA1 and MA2 cross, and both are below MA3
→ Only trend-aligned signals are shown (buy only above MA3, sell only below MA3).
(C) Gray Signals (Filtered-Out Signals)
If MA1 and MA2 cross but don’t meet the MA3 condition, a gray signal is displayed.
Example: “BUY” below MA3 or “SELL” above MA3 appears as gray.
→ This feature is ON by default but can be turned OFF in the settings.
3. Alerts
Alerts can be triggered for:
MA1 × MA3 Golden Cross / Dead Cross
MA1 × MA2 BUY / SELL (with MA3 filter)
This allows you to receive notifications when valid trade setups occur.
4. Key Benefits
Visualize short-, medium-, and long-term trends at the same time
Trade only in the direction of the 200MA trend using the built-in filter
Optionally view filtered-out (gray) signals for extra context
Set alerts to avoid missing trading opportunities
With this indicator, you can focus on trading with the trend—buying above the 200MA and selling below it—while staying informed of all crossover events.
このインジケーターは 3本の移動平均線(MA) と、
それらのクロスに基づいた 売買シグナル を表示するツールです。
1. 3本の移動平均線
MA1(デフォルト7):短期のトレンドを把握するための線(黄色)
MA2(デフォルト50):中期のトレンドを把握するための線(青)
MA3(デフォルト200):長期のトレンド(赤)。フィルターとしても使用
2. シグナルの種類
(A) MA1とMA3のクロス(黄色シグナル)
ゴールデンクロス(BUY):MA1がMA3を上抜け
デッドクロス(SELL):MA1がMA3を下抜け
→ 長期トレンドと短期の変化を確認するための参考シグナル
(B) MA1とMA2のクロス(緑・赤シグナル)
BUY(緑):MA1とMA2がクロスし、両方がMA3より上にある
SELL(赤):MA1とMA2がクロスし、両方がMA3より下にある
→ 200MAを基準に「上なら買い、下なら売り」のトレンド方向に沿ったシグナルだけを表示
(C) グレーシグナル(フィルター除外)
MA1とMA2がクロスしたが、MA3の条件を満たさなかった場合にグレー表示
例えば「MA3より下でBUY」「MA3より上でSELL」はグレー
→ 初期設定ではONになっていますが、オフにすることも可能
逆張りの指標や、トレンド転換のサインにもなる
3. アラート機能
MA1×MA3のゴールデンクロス/デッドクロス
MA1×MA2のBUY/SELL(MAフィルターあり)
→ これらが発生したタイミングでTradingViewのアラートを出せる
4. 使い方のポイント
短期・中期・長期のトレンドを同時に把握できる
200MAを基準にフィルターすることで「逆張りシグナル」を排除
フィルターで外れたシグナルもグレーで確認できる(任意)
アラートを設定すれば、チャンスを逃さずにエントリー可能
このインジケーターを使うことで、「200MAの上では買いのみ」「下では売りのみ」というシンプルでトレンドに沿ったトレードができるようになります。
Simple Trend Indicator (Heikin-Ashi) | Lyro RSSimple Trend Indicator (Heikin-Ashi)
A momentum oscillator using Heikin-Ashi smoothed data to filter trend direction with zero-line crosses.
This indicator calculates the normalized deviation of Heikin-Ashi OHLC values from their Simple Moving Average (SMA), then averages these deviations into a single oscillator. It simplifies trend detection by:
Reducing noise via Heikin-Ashi smoothing.
Highlighting momentum shifts through a zero-line cross system (bullish/bearish).
Providing clear visual signals with color-coded plots and directional dots.
Originality:
Unlike standard momentum oscillators, this tool uniquely combines:
Heikin-Ashi normalization for cleaner trend analysis.
Multi-component averaging (high, open, low, close) to balance sensitivity.
Minimalist design for clutter-free charting.
How It Works:
Data Input: Fetches Heikin-Ashi OHLC values using request.security().
Momentum Calculation: For each Heikin-Ashi component:
Computes % deviation from its SMA: (value − SMA(value, length)) / SMA(value, length) * 100.
Oscillator: Averages deviations of all four components into one line (sum).
Signals:
Bullish: Oscillator > 0 (green).
Bearish: Oscillator < 0 (red).
Cross Confirmation: Dots (⦿) mark zero-line crosses.
Usage:
Trend Following: Enter long/short on sustained oscillator breaks above/below zero.
Reversal Watch: Zero-line crosses may hint at weakening momentum.
Filter: Combine with volume or support/resistance levels.
⚠️Disclaimer: This indicator is a tool for technical analysis and does not provide guaranteed results. It should be used in conjunction with other analysis methods and proper risk management practices. The creators of this indicator are not responsible for any financial decisions made based on its signals.
CGPT Golden Cross / Death Cross AlertThis custom indicator identifies Golden Cross (Gx) and Death Cross (Dx) events using either EMA or SMA moving averages. A Golden Cross occurs when a short-term MA (e.g., 50) crosses above a long-term MA (e.g., 200), signaling potential bullish momentum. A Death Cross signals potential bearish momentum, with the short-term MA crossing below the long-term MA.
It includes:
📈 Customizable MA types (EMA or SMA)
⚙️ Adjustable fast & slow MA lengths
🟢🔴 Chart labels for Gx (green) and Dx (red)
🎯 Background highlights for visual trend shifts
🔔 Built-in alert conditions for real-time notifications
Ideal for crypto, stocks, or forex swing and trend trading
Mara JPY Bias ProMara JPY Bias Pro™ is a precision tool built for serious traders who focus on JPY and USD pairs.
This synthetic index combines USDJPY + EURJPY + GBPJPY, generating a smooth and dynamic representation of JPY strength or weakness. When the line turns green, JPY is weakening — time to look for LONG setups on XXX/JPY pairs. When red, JPY is strengthening — ideal moment for SHORT trades.
Built-in bias logic with adjustable MA-based trend detection or slope/momentum view lets you customize signals based on your strategy.
Plus, we’ve included a normalized DXY overlay, so you can track USD strength in parallel — perfect for traders working with EUR/USD, GBP/USD, USD/JPY and JPY crosses.
💡 Designed for day traders, scalpers, and smart money traders looking for clean confluence.
✅ Features:
Visual color-coded JPY bias (Green = Long / Red = Short)
Optional USD (DXY) strength overlay
Customizable MA length and bias logic
Built-in alerts for bias shifts & momentum flips
🔔 Alert-ready – never miss a reversal.
Trade smarter. Cut the noise. Stay on the right side of the move.
Triple MA Buy & Sell SignalsTriple MA Buy & Sell Signals Indicator
This indicator is designed to help traders identify high-probability entry points based on the combination of three moving averages (8, 50, and 200) while filtering signals in the direction of the main trend.
How It Works
Trend Filter (200 MA)
If the price is above the 200 MA, only BUY signals are displayed.
If the price is below the 200 MA, only SELL signals are displayed.
8 MA and 50 MA Cross (Regular Signals)
BUY (Green): When the 8 MA crosses above the 50 MA, and the price is above the 200 MA.
SELL (Red): When the 8 MA crosses below the 50 MA, and the price is below the 200 MA.
8 MA and 200 MA Cross (Major Trend Signals)
BUY (Yellow): When the 8 MA crosses above the 200 MA.
SELL (Yellow): When the 8 MA crosses below the 200 MA.
Purpose
This indicator is particularly useful for traders who follow Smart Money Concepts (SMC) or ICT-based strategies, as it helps:
Identify trend direction with the 200 MA.
Spot short-term trade entries using the 8/50 MA cross.
Highlight major trend reversals using the 8/200 MA cross.
BTC 1m Chop Top/Bottom Reversal (Stable Entries)Strategy Description: BTC 5m Chop Top/Bottom Reversal (Stable Entries)
This strategy is engineered to capture precise reversal points during Bitcoin’s choppy or sideways price action on the 5-minute timeframe. It identifies short-term tops and bottoms using a confluence of volatility bands, momentum indicators, and price structure, optimized for high-probability scalping and intraday reversals.
Core Logic:
Volatility Filter: Uses an EMA with ATR bands to define overextended price zones.
Momentum Divergence: Confirms reversals using RSI and MACD histogram shifts.
Price Action Filter: Requires candle confirmation in the direction of the trade.
Locked Signal Logic: Prevents repaints and disappearing trades by confirming signals only once per bar.
Trade Parameters:
Short Entry: Above upper band + overbought RSI + weakening MACD + bearish candle
Long Entry: Below lower band + oversold RSI + strengthening MACD + bullish candle
Take Profit: ±0.75%
Stop Loss: ±0.4%
This setup is tuned for traders using tight risk control and leverage, where execution precision and minimal drawdown tolerance are critical.
Moving Average RibbonMoving Averages creating a what I call internally a "ribbon". Rename as see fit.
EMA Crossover with Volume + Stacked TP & Trailing SLI am relatively new here. Here is my humble contribution to the community. Simple does it! Ema 21,55 with volume. Surprisingly high win rates and good profit factors on USDJPY, EURJPY, BTCUSD, XAGUSD,XAUUSD, USOIL, USDCAD, EURGBP and AUDNZD. I cannot write a single line of code. I used Copilot for this.
Advanced Supertrend StrategyA comprehensive Pine Script v5 strategy featuring an enhanced Supertrend indicator with multiple technical filters, risk management, and advanced signal confirmation for automated trading on TradingView.
## Features
- **Enhanced Supertrend**: Configurable ATR-based trend following with improved accuracy
- **RSI Filter**: Optional RSI-based signal filtering to avoid overbought/oversold conditions
- **Moving Average Filter**: Trend confirmation using SMA/EMA/WMA with customizable periods
- **Risk Management**: Built-in stop-loss and take-profit based on ATR multiples
- **Trend Strength Analysis**: Filters weak signals by requiring minimum trend duration
- **Breakout Confirmation**: Optional price breakout validation for stronger signals
- **Visual Interface**: Comprehensive chart plotting with multiple indicator overlays
- **Advanced Alerts**: Multiple alert conditions with detailed signal information
- **Backtesting**: Full strategy backtesting with commission and realistic execution
DEMACROSSOVA BY FLACODouble EMAs for entry signals
ATR Bands for stoploss
Fibonacci bollinger bands for early exit confirmation
Multi Averages - CustomizableThis script adds up to 5 moving averages to your plot!
Both type and length are customizable.
HMA Strategy HMA Strat (Hull Moving Average Strategy) Indicator Description
The HMA Strat is a trend-following strategy that uses a dual Hull Moving Average system. It helps identify continuation and high-probability reversal signals in both bullish and bearish market conditions. The strategy aims to reduce noise while maintaining sensitivity to changes in price momentum by comparing the standard Hull Moving Average (HMA) to a smoothed version.
This strategy is ideal for traders who focus on systematic backtesting, momentum entry, and simple charts. It features integrated plotting, color-zoning, and strategic actions based on TradingView's strategy engine. The system provides dynamic long and short signals based on crossover logic.
Key Features
Dual HMA Framework: To improve signal quality and reduce choppy trend identification, it compares a regular HMA with a smoothed version (HMA3).
Entries Based on Crossover
Multi EMA & SMA IndicatorDraws EMA 5/20/50/100 and SMA 200 in different colors and thickness in a single indicator
Buy/Sell Demand Pressure SMAThis indicator shows when competing buying and selling pressure has changed.
When bullish buying offsets bearish transaction volume, the indicator turns green. When bearish selling pressure offsets bullish buying volume the indicator is red.
Can be used as a normal SMA or to confirm buy/sell signals of other indicators.
Works best at the start of trades...and not exits but if set properly, it is a good indicator of when a trend has reversed.
~ jb tuttle
X1 newbie code trying to create
✅ Script Behavior on Other Stocks
• If you’re on a chart for SYM, it calculates indicators using SYM’s data.
• If you switch to NVDA, AVGO, CRDO, etc., it will automatically update to reflect that ticker’s:
• Price
• 50-day moving average
• Volume
• MACD
• RSI
• Index comparison
with 1. 📊 Volume shows in its own pane
2. ✅ MACD and RSI are included in separate panes (as promised)
3. 🎯 Script works cleanly with any ticker
EMA 10,20 SMA 50, 200This indicator is very helpful for swing traders who plan their trades using EMAs and SMAs. It is used on the daily chart and displays the 10- and 20-EMA, as well as the 50- and 200-SMA.