SMA 20/50 Crossover Strategy - Peter GangmeiSMA 20/50 Crossover Strategy – Peter Gangmei
This indicator visualizes a classic moving average crossover strategy using Simple Moving Averages (SMA). It plots the 20, 50, and 200 period SMAs and generates clear Buy and Sell signals based on the crossover between the 20 and 50 SMAs:
✅ Buy Signal: When the 20 SMA crosses above the 50 SMA
🔻 Sell Signal: When the 20 SMA crosses below the 50 SMA
📈 The 200 SMA is also plotted for long-term trend context.
Visual cues are displayed on the chart using up/down triangles to indicate entry opportunities. The script also includes built-in alerts so you never miss a trading signal.
Ideal for traders who want a simple, visually intuitive way to follow trend shifts and momentum.
Moving Averages
Multi-Indicator Switch PanelAdaptive Entry Toolkit
This powerful indicator combines three high-quality trading systems into one modular, easy-to-use panel. Each system is independently toggleable, enabling full customization based on your trading style and market conditions.
📦 INCLUDED MODULES:
1. RSI Pullback Signals
Identifies momentum exhaustion and possible reversal zones using the Relative Strength Index.
Conditions tuned to detect when RSI pulls back after reaching oversold (for buys) or overbought (for sells) levels.
Highlights potential early entry points in trending markets.
2. Double EMA Pullback
Detects pullbacks in strong trends using a fast and slow EMA (default: 50 & 200).
Buy/Sell signals generated when price crosses back over the faster EMA in the direction of the larger trend.
Great for trend continuation entries.
🧠 ADVANCED FEATURES
Fully customizable inputs for each module
Alerts for every signal (RSI pullback, EMA cross, breakout from suppression)
Minimalistic and lightweight for real-time use
Overlay-based for clean integration with your price chart
🧰 Best Used For:
Anticipating breakouts
Trend continuation setups
Low-volatility squeeze detection
Confluence-based entries
RSX OBV & VWAP Weighted+This indicator combines RSX (Relative Strength eXtra), OBV (On-Balance Volume), and VWAP (Volume-Weighted Average Price) into a powerful momentum oscillator. It helps traders identify overbought/oversold conditions, accumulation/distribution zones, and trend strength with volume confirmation.
Key Features:
RSX Fast & Slow Lines: Smoothed momentum oscillator with adjustable lengths.
Volume Weighting: Option to weight price action using OBV or VWAP for better trend confirmation.
Custom Moving Average: Choose between SMA, EMA, WMA, or DEMA applied to RSX values.
Accumulation/Distribution Zones: Visual thresholds for extreme momentum conditions.
Volume Histogram: Displays OBV/VWAP impact on momentum (optional).
How to Use It?
Trend Identification:
Fast RSX > Slow RSX → Bullish momentum.
Fast RSX < Slow RSX → Bearish momentum.
Overbought/Oversold Levels:
Above 71 (Upper Level) → Overbought (potential reversal/sell signal).
Below 29 (Lower Level) → Oversold (potential reversal/buy signal).
Volume Confirmation:
OBV/VWAP Histogram shows if volume supports the trend.
Custom MA:
Use the moving average as a dynamic support/resistance level.
Best Settings:
Intraday Trading: Fast RSX (7), Slow RSX (14).
Swing Trading: Fast RSX (14), Slow RSX (21).
Volume Weighting: Enable for stronger trend confirmation.
Что такое индикатор RSX OBV & VWAP Weighted+?
Этот индикатор объединяет RSX (Relative Strength eXtra), OBV (On-Balance Volume) и VWAP (Volume-Weighted Average Price) в мощный осциллятор. Он помогает определять перекупленность/перепроданность, зоны накопления/распределения и силу тренда с учетом объема.
Основные функции:
RSX Fast & Slow Lines: Сглаженный осциллятор с настраиваемыми периодами.
Взвешивание по объему: Возможность учитывать OBV или VWAP для усиления сигналов.
Скользящая средняя: На выбор SMA, EMA, WMA или DEMA, применяемая к значениям RSX.
Зоны накопления/распределения: Визуальные уровни для экстремальных состояний.
Гистограмма объема: Показывает влияние OBV/VWAP на импульс (опционально).
Как использовать?
Определение тренда:
Fast RSX > Slow RSX → Бычий импульс.
Fast RSX < Slow RSX → Медвежий импульс.
Уровни перекупленности/перепроданности:
Выше 71 (верхний уровень) → Перекупленность (сигнал к продаже).
Ниже 29 (нижний уровень) → Перепроданность (сигнал к покупке).
Подтверждение объемом:
Гистограмма OBV/VWAP показывает, поддерживает ли объем движение.
Скользящая средняя:
Используйте как динамический уровень поддержки/сопротивления.
Рекомендуемые настройки:
Внутридневная торговля: Fast RSX (7), Slow RSX (14).
Свинг-трейдинг: Fast RSX (14), Slow RSX (21).
Взвешивание по объему: Включите для более сильных сигналов.
EMA Hierarchy Alternating Alert MarkersThis script allows you to set EMA 5, 13 & 26 in a single indicator
// It allows you to set an alert when PCO or NCO happens where 5>13>26 (PCO) or 5<13<26 (NCO)
// It has been deisgned in such a way that the alert will only be sounded on the first PCO or NCO
// Once a PCO has happened then the next PCO alert will only come after the NCO has happened
// This feature helps you to avoid getting multiple alerts specially if you are using a lower timeframe
// EMA crossover strategy has been one of the favorite strategy which helps traders understand the trend in various timeframes and accordingly ride the wave - both upside and downside. This indicator helps to time your trade once you get an alert on crossover happening and eliminates the need for constant monitoring of the screen
// Scripts: Equities, F&O, Commodity, Crypto, Currency
// Time Frame: All
// By TrustingOwl83470
Adaptive RSI Oscillator📌 Adaptive RSI Oscillator
This indicator transforms the classic RSI into a fully adaptive, self-optimizing oscillator — normalized between -1 and 1, dynamically smoothed, and enhanced with divergence detection.
🔧 Key Features
Self-Optimizing RSI: Automatically selects the optimal RSI lookback length based on return stability (no hardcoded periods).
Dynamic Smoothing: Adapts to market conditions using a fraction of the optimized length.
Normalized Output : Converts traditional RSI to a consistent scale across all assets and timeframes.
Divergence Detection: Compares RSI behavior vs. price percentile ranks and scales the signal accordingly.
Gradient Visualization: Color-coded background and plot lines reflect the strength and direction of the signal with soft transitions.
Neutral Zone Adaptation: Dynamically widens or narrows the zone of inaction based on volatility, reducing noise.
🎯 Use Cases
Identify extreme momentum zones without relying on fixed 70/30 RSI levels
Detect divergences early with adaptive filtering
Highlight potential exhaustion or continuation
⚠️ Disclaimer: This indicator is for informational and educational purposes only. It does not constitute financial advice or a recommendation to buy or sell any security. Always conduct your own research and consult a licensed financial advisor before making investment decisions. Use at your own risk.
9 EMA & 150 EMA Crossover Arrows//@version=5
indicator("9 EMA & 150 EMA Crossover Arrows", overlay=true)
// EMA definitions
ema9 = ta.ema(close, 9)
ema150 = ta.ema(close, 150)
// Candle conditions
isBullish = close > open
isBearish = close < open
// Crossover logic
bullishCross = ta.crossover(ema9, ema150)
bearishCross = ta.crossunder(ema9, ema150)
// Entry conditions
bullishSignal = bullishCross and isBullish and close >= ema9
bearishSignal = bearishCross and isBearish and close <= ema9
// Plot arrows
plotshape(bullishSignal, title="Bullish Entry", location=location.belowbar, color=color.green, style=shape.arrowup, size=size.small)
plotshape(bearishSignal, title="Bearish Entry", location=location.abovebar, color=color.red, style=shape.arrowdown, size=size.small)
// Plot EMAs
plot(ema9, color=color.orange, title="EMA 9")
plot(ema150, color=color.blue, title="EMA 150")
150 EMA Crossover with Confirmation Candle//@version=5
indicator("150 EMA Crossover with Confirmation Candle", overlay=true)
// Define EMAs
ema9 = ta.ema(close, 9)
ema150 = ta.ema(close, 150)
// Conditions
bullishCandle = close > open
bearishCandle = close < open
emaCrossUp = ta.crossover(ema9, ema150)
emaCrossDown = ta.crossunder(ema9, ema150)
// Buy Signal
buySignal = emaCrossUp and bullishCandle and close >= ema9
// Sell Signal
sellSignal = emaCrossDown and bearishCandle and close <= ema9
// Plot EMAs
plot(ema9, color=color.orange, title="EMA 9")
plot(ema150, color=color.blue, title="EMA 150")
// Plot signals
plotshape(buySignal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.arrowup, size=size.small)
plotshape(sellSignal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.arrowdown, size=size.small)
MOM Buy/Sell + MACD Histogram Signal TableThis gives you a bullish and bearish buy signal based on macd crossing 0 level and macd crossing signal line...and it gives sell signal the first time after a buy signal price closes across the 13 ema. It also gives a table on what the macd histogram is doing on multiple time frames so you know where the momentum is.
8 EMA Ribbon# 📈 8 EMA Ribbon - Dynamic Color Trend Indicator
**Professional EMA ribbon with intelligent color-changing technology that instantly reveals market trend direction and strength.**
## 🎯 Key Features
### 🌈 **Dynamic Color System**
- **Green EMAs**: Price is above the EMA (bullish)
- **Red EMAs**: Price is below the EMA (bearish)
- **Real-time updates**: Colors change instantly as price moves through each level
### 📊 **Fibonacci-Based Ribbon**
- **Perfect Spacing**: 8, 13, 21, 34, 55, 89, 144, 233 periods
- **Optimal Coverage**: Short-term to long-term trend analysis
- **Natural Flow**: Creates smooth ribbon effect for trend visualization
### ⚙️ **Ultra-Clean Interface**
- **Single-Line Settings**: Each EMA configured on one compact row
- **Quick Toggles**: Enable/disable any EMA instantly
- **Custom Colors**: Set your preferred bullish/bearish colors
- **Adjustable Width**: 1-4 line thickness for each EMA
- **50% Transparency**: Default semi-transparent design doesn't obstruct price action
## 💡 Trading Applications
### 📈 **Trend Identification**
- **All Green**: Strong uptrend - look for long opportunities
- **All Red**: Strong downtrend - consider short positions
- **Mixed Colors**: Consolidation or trend transition zones
### 🎯 **Support & Resistance**
- EMAs act as dynamic support/resistance levels
- Color changes highlight when key levels are broken
- Multiple timeframes create robust trading zones
### ⚡ **Entry Signals**
- Price breaking through ribbon indicates trend changes
- Color transitions provide early trend reversal warnings
- Use with other indicators for confirmation
## 🔧 Perfect Setup
### **Default Configuration:**
- All 8 EMAs enabled for complete ribbon effect
- Fibonacci periods for optimal market coverage
- Green (bullish) and red (bearish) color scheme
- 50% transparency for clear price visibility
### **Customizable Options:**
- Toggle any EMA on/off
- Adjust periods to match your strategy
- Change colors to suit your chart theme
- Modify line thickness for emphasis
## 🚀 Who It's For
- **Day Traders**: Quick trend identification across timeframes
- **Swing Traders**: Multi-period trend analysis
- **Scalpers**: Fast visual confirmation of trend direction
- **Position Traders**: Long-term trend assessment
## 💎 Why Choose This Ribbon?
- **Visual Clarity**: Instant trend recognition at a glance
- **Professional Design**: Clean, uncluttered interface
- **Proven Math**: Fibonacci-based periods for natural market flow
- **Performance Optimized**: Lightweight code, smooth operation
- **Fully Customizable**: Adapt to any trading style or timeframe
**Transform your charts with intelligent trend visualization. Install now and see the market like never before!**
---
*Compatible with all timeframes and instruments | No repainting | Pine Script v6*
Liquidity Rush (VWAP × Avg Daily Vol in Cr)Liquidity Rush SHOWS TRADED VALUE PER DAY.It shows how much rupee volume (turnover) is concentrating around VWAP, giving you a sense of institutional participation, volume weight, or momentum readiness.
Zimpact Custom ColorsZimpact Custom Colors – Buy/Sell Signals with Personalized Styling
Description:
This script is an enhanced version of the Zimpact indicator, designed to deliver clear Buy and Sell signals with the added flexibility of customizable line and background colors. The indicator combines two variants of the Hull Moving Average (HMA and a modified HMA) to detect trend changes and provide visually intuitive trading cues.
Key Features:
Dynamic line coloring: Lines automatically change color depending on trend direction (up/down).
Customizable colors: Users can set their own line colors and background transparency.
Clear Buy/Sell signals: Label markers highlight crossover points for potential entries.
Built-in alerts: Receive alerts when Buy or Sell signals are triggered.
How the Indicator Works:
Two HMAs are calculated: a standard and a modified version.
A Buy signal appears when the modified HMA crosses above the standard HMA.
A Sell signal appears when the modified HMA crosses below the standard HMA.
Line and background colors adapt dynamically to trend direction.
All visual elements can be adjusted via user input settings.
Adjustable Inputs:
Price source (hl2, close, etc.)
Period and shift for HMA calculations
Toggle Buy/Sell labels on or off
Colors for bullish and bearish trends
Background fill transparency (0% to 100%)
Who It's For:
This indicator is ideal for swing and intraday traders seeking a visually simple yet informative tool for trend detection and trade entries.
Note: This is not financial advice. Always use additional tools and perform your own analysis before entering a trade.
Medico Weekly EMA12-26 Buy/Sell Trend with Bar ColorUsing EMA 12 and EMA 26 to create "buy" and "sell" signal. Best on timeframe weeky chart. Enjoy and Good luck.
Medico Action Zone self adjust TFput "buy" and "sell" signal by using EMA 12/26 and you can adjust TF for short term or long term.
Bollinger Bands with Buy/Sell SignalsWhen price crosses above the upper band → green “BUY” label appears below the bar
When price crosses below the lower band → red “SELL” label appears above the bar
Multiple EMA 50/100/200 by SKL
This script plots three Exponential Moving Averages (EMAs) — EMA 50, EMA 100, and EMA 200.
✅ Features :
Plots EMA 50 (Black), EMA 100 (Green), and EMA 200 (Red)
13 EMA vs 20 SMA CloudThis indicator is for trend signal primarily used on the 15 minute timeframe. look for the retest of the 13 ema from above as a long entry and retest of 13 ema from below as a short entry. Once the 13 ema crosses the 20 sma to the upside it is indicating a bullish reversal and vice versa when the 13 ema crosses the 20 sma to the downside it is indicating a possible bearish reversal
Holy Grail (100% Win Rate)tldr:
1. Here you go folks – no repaint, no dodgy stuff, and 100% win rate
2. DO NOT TRADE THIS
________________________________________
Key points:
• Assets to trade: SPY, NASDAQ, DAX, FTSE, Bitcoin
• Time Frame: 1D or higher
________________________________________
What does the script do?
The script buys a certain amount of the asset every time we're in a pullback, and sells when we make a new All-Time High (ATH). More specifically, it waits for the first green candle after the lowest point of the pullback, and then adds to the position. We assume that when we see a green candle, the pullback is over. If we go even lower – we wait for another green candle. The script sells on the first red candle after an ATH.
The pullback is identified using a simple moving average (MA) – if we're below the MA, we're in a pullback.
You can set the MA length in the settings. I considered adding different types of MAs, but decided against it as it wouldn't change much in terms of the general idea.
You can also set the percentage of your account to invest on the very first candle – this is an initial pre-filling of the position, so you have something to sell if the price goes straight up after you start trading. If you think we’re in a bear market and the only way is up, you might want to set a higher number. On the other hand, if you believe we’re near the top of a bull market, set a lower one.
You can set the percentage of the position to sell on each red candle after ATH under Settings → Input → Exit % . Similarly, you can set the percentage to buy on each green candle after a pullback low under Settings → Properties → Order Size . Since bull markets tend to last longer than bear market pullbacks, you’ll typically want Exit % to be larger than Order Size — though this may vary depending on your initial pre-fill.
________________________________________
Why these assets?
These are assets that are expected to go up over the long run. I call them “number go up” assets. Meaning: no matter where they are now, at some point in the future they’ll make a new ATH. That’s why this might not work on individual stocks like Nvidia or Tesla — there’s no guarantee they won’t go bust tomorrow. We all remember big companies from the past (Enron, Lehman Brothers, etc.) that collapsed unexpectedly.
With SPY, you're betting on the American economy. And the American economy will go up at least because of inflation. If you believe inflation will continue, then you believe we’ll eventually see a new ATH in SPY. It may take years — like from 2007 to 2013 — but it happened. And there was a bull run after that.
And if you think the American economy will never grow again — well, if that’s true, we’ll all have much bigger problems than trading scripts.
________________________________________
Why this time frame?
Because, as mentioned, it may take a long time to reach a new ATH. You can use a shorter time frame, but that requires a higher TradingView subscription plan to view multi-year data.
Also, if you choose a shorter time frame, you should reduce the Order Size and Exit % accordingly, because the script will jump in on every new green candle after a pullback. On a 1-minute chart, that could mean 100x more entries compared to daily. Conversely, if you go to a higher time frame, increase the sizes — otherwise, too much of your capital will just sit unused.
________________________________________
So if everything is so great and it has a real 100% win rate – why not trade it?
If you turn on the “buy & hold equity” curve, you’ll see that the profit from all closed trades (with a 100% win rate) is smaller than if you had simply bought the asset and held it for years.
Real-world slippage and fees will reduce your actual profits even more.
If you’re unlucky and start trading at the very top of a bull market, it might take 10 years before even a single trade is closed.
Some assets that seem like they can only go up long-term... might not. Take Bitcoin. Many believe it can only go up in the long term, but it could still die — just like anything else. The only reason I included it is because many people treat it as a “number go up” asset. And I know some will try to trade it. You've been warned. But I don’t want to start holy wars in the holy grail description (pun intended), so let’s move on.
________________________________________
What if, after all this, you do decide to trade this strategy?
Why would you? Maybe not for profit, but just to impress your friends with a 100% win rate. Or maybe you skipped the entire explanation above and just want to jump in because it sounds like a sure win.
Whatever your reason, first you should research the asset’s historical max time (in years) between ATHs. That’s how long you might need to keep a trade open. My other script – Cycles Analysis – might help with this.
Second, experiment with the input parameters. There aren't many, so it should be easy to find what works best for your asset. You can also enable “Show stats table” in settings – it’ll help you see how many entries/exits the script makes, which will help you find the right Order Size to Exit % ratio.
Yes, this might lead to over-optimization — but hey, if we’re at this stage, who cares, right?
That said, I did find some rare cases where specific parameter setups caused performance to dip below 100% due to a mandatory close at the wrong time.
Also, since trades can last for years, don’t use this with futures — you'd have to keep rolling them over. Use ETFs or similar long-holdable assets.
________________________________________
The final word
In short, this is a glorified “Buy the Dip” strategy. It only works long-term on a very limited set of assets, and in most cases performs worse than just buying and holding for the same period.
I created this script as a teaching tool — to show new traders that win rate isn’t everything. Even if the win rate is 100%. Trust me: it’s extremely hard to beat the market (especially without leverage), and this script is just more proof of that.
10 EMA & 10 SMA Crossover with Dot/Cross ON ChartCombining 10MA an 10SMA is very powerful indicator, it give early indication of trend.
Tried to combine 10MA and 10SMA crossover on same chart with cross over indicator.
Back test it. It works well in trending market.
Tried to combine RSI, ADX and 10 MA combination on chart but could not make appropriate/effective Pine Script.
Your suggestion's are welcome to improve it further.
MA + ATR + U/D + RS + Total (Two Rows)An indicator that displays distances from moving averages plus ATR
Minervini-style RS (Relative Strength) + summary of the 8 entry conditions
200 MAThis is a 200-period Simple Moving Average (SMA) indicator, widely used to identify long-term market trends. The MA 200 is a key level for gauging overall market strength and potential support or resistance
100 MAThis is a 100-period Simple Moving Average (SMA) indicator, designed to highlight longer-term trends. The MA 100 provides insight into overall market direction and helps identify key support and resistance levels.