Auto Buy-Sell Strategy with MA and RSIotomatik al sat otomatik al sat otomatik al sat otomatik al sat otomatik al satotomatik al satotomatik al satotomatik al satotomatik al satotomatik al satotomatik al satotomatik al satotomatik al satotomatik al satotomatik al sat
指标和策略
8 PM IST Breakout StrategyThis strategy works on US markets (US30,S&P500),forex(EUR/USD,GBP/USD,USD/JPY) AND GOLD as well no need to sit for hours and do remeber to exit the trade on or before 12AM IST as volumes decreas and book whatever you get
Keep practicing and connect with me if you have any new ideas.
KEEP HUSTLING KEEP GROWING UNTILL YOU ARE THE RICHEST OF YOUR BLOODLINE
20-Day Low % Diff for Screenercustom column in TradingView’s stock screener using Pine Script, but TradingView doesn’t allow direct integration of Pine Script indicators into the screener.
Simplified Doha Session High-Lowidentifies high and low of previous day as well as the premarket high and low to start trading London session
30MA Volatile Assets StrategyThis strategy features:
Gaussian Channel with SMA basis and standard deviation bands
Stochastic RSI filter for entries
Long-only trades with 100% equity allocation
0.1% commission and no slippage
Clear entry/exit conditions based on price and indicator positions
Defined trading period from 2024 to 2069
Numerology IndicatorThis indicator calculates the digit root number of highest high and lowest low price. It marks them as turning points of the trend. These candles can be used probable trend reversal points.
Scalping con EMA y RSIes una nueva extrategia que estoy poniendo en practiva basada en. dosmedias mobiles y elrsi si algunprofesional la pudiera revisary desirme si estoy iniciando bien para mi seria un honor
EMA Crossover Strategy - High Reward, Low Loss Trading Indicator🔹 Created by Aniketsinh
🚀 About This Strategy:
The EMA Crossover Strategy is designed for traders who prefer fewer trades with higher profit potential. It focuses on catching strong trends while minimizing unnecessary losses. Even if only 4 out of 10 trades succeed, the risk-reward ratio ensures more profits than losses.
📌 Key Features:
✅ Uses 50 EMA & 200 EMA for trend confirmation
✅ RSI filtering for momentum-based entries
✅ Volume confirmation to avoid false signals
✅ Stop Loss & Take Profit with a 3x reward-to-risk ratio
✅ Works well on crypto, forex, and stocks
📈 How It Works:
BUY Signal: 50 EMA crosses above 200 EMA, RSI > 50, and volume is high.
SELL Signal: 50 EMA crosses below 200 EMA, RSI < 50, and volume is high.
Stop Loss & Take Profit: Stop loss below recent low, and take profit at 3x risk.
🔍 Best Timeframes: Works well on higher timeframes like 1H, 4H, Daily for better accuracy.
⚠️ Risk Disclaimer:
No strategy is 100% perfect. Always use proper risk management and backtest before live trading.
💡 Try It Now & Optimize for Your Trading Style!
Let me know your feedback! 🚀
RSI Deviation BY DINVESTORQOverview:
This indicator analyzes the Relative Strength Index (RSI) over 252 days, calculating its mean (average) and standard deviation. Based on this, it sets an upper and lower threshold to determine overbought and oversold conditions.
Additionally, it calculates the correlation between RSI and price using a moving average, helping traders understand if RSI is moving in sync with price trends.
Key Features:
✅ RSI Deviation Bands
Upper Limit = RSI Avg + (2 × SD × 2.5)
Lower Limit = RSI Avg - (2 × SD × 2.5)
✅ Trading Signals:
Sell Signal: RSI crosses above the upper limit
Buy Signal: RSI drops below the lower limit
✅ RSI-Price Correlation Moving Average
Uses 50-day correlation between RSI and price
Helps confirm trend strength
✅ Customizable Parameters
RSI Length (Default: 252 Days)
Correlation Period (Default: 50 Days)
✅ Chart Visuals:
Plots RSI (blue), Upper Band (red), Lower Band (green)
Plots RSI-Price Correlation (orange)
Buy/Sell signals appear on chart
TradingView Indicator: RSI Deviation & Correlation Indicator
Overview:
This indicator analyzes the Relative Strength Index (RSI) over 252 days, calculating its mean (average) and standard deviation. Based on this, it sets an upper and lower threshold to determine overbought and oversold conditions.
Additionally, it calculates the correlation between RSI and price using a moving average, helping traders understand if RSI is moving in sync with price trends.
Key Features:
✅ RSI Deviation Bands
Upper Limit = RSI Avg + (2 × SD × 2.5)
Lower Limit = RSI Avg - (2 × SD × 2.5)
✅ Trading Signals:
Sell Signal: RSI crosses above the upper limit
Buy Signal: RSI drops below the lower limit
✅ RSI-Price Correlation Moving Average
Uses 50-day correlation between RSI and price
Helps confirm trend strength
✅ Customizable Parameters
RSI Length (Default: 252 Days)
Correlation Period (Default: 50 Days)
✅ Chart Visuals:
Plots RSI (blue), Upper Band (red), Lower Band (green)
Plots RSI-Price Correlation (orange)
Buy/Sell signals appear on chart
Pine Script for TradingView:
pinescript
Copy
Edit
//@version=5
indicator("RSI Deviation & Correlation Indicator", overlay=false)
// User Inputs
length = input.int(252, title="RSI Period")
corr_length = input.int(50, title="Correlation Period")
// RSI Calculation
rsi_value = ta.rsi(close, length)
// Calculate Mean and Standard Deviation of RSI
rsi_avg = ta.sma(rsi_value, length)
rsi_sd = ta.stdev(rsi_value, length) * 2.5
// Define Upper and Lower Limits
upper_limit = rsi_avg + (rsi_sd * 2)
lower_limit = rsi_avg - (rsi_sd * 2)
// Buy and Sell Signals
buy_signal = rsi_value < lower_limit
sell_signal = rsi_value > upper_limit
// Correlation Moving Average between RSI and Price
rsi_price_correlation = ta.correlation(rsi_value, close, corr_length)
// Plot RSI with Bands
plot(rsi_value, title="RSI", color=color.blue)
plot(upper_limit, title="Upper Limit", color=color.red, linewidth=2)
plot(lower_limit, title="Lower Limit", color=color.green, linewidth=2)
plot(rsi_avg, title="Average RSI", color=color.gray, linewidth=2)
// Display Buy/Sell Signals on Chart
plotshape(buy_signal, location=location.bottom, color=color.green, style=shape.labelup, title="BUY Signal", size=size.small)
plotshape(sell_signal, location=location.top, color=color.red, style=shape.labeldown, title="SELL Signal", size=size.small)
// Plot Correlation Moving Average
plot(rsi_price_correlation, title="RSI-Price Correlation", color=color.orange, linewidth=2)
// Alerts for Buy/Sell
alertcondition(buy_signal, title="BUY Alert", message="RSI is below the Lower Limit - BUY Signal")
alertcondition(sell_signal, title="SELL Alert", message="RSI is above the Upper Limit - SELL Signal")
How to Use in TradingView:
1️⃣ Open TradingView and go to the Pine Editor
2️⃣ Paste the above Pine Script
3️⃣ Click Add to Chart
4️⃣ Adjust RSI Length and Correlation Period if needed
5️⃣ Buy/Sell alerts will trigger when conditions match
Trading Strategy:
📉 Sell (Short Entry) when RSI crosses above the upper limit
📈 Buy (Long Entry) when RSI drops below the lower limit
📊 Confirm trends with RSI-Price Correlation:
+1 means RSI and price are moving together
-1 means RSI and price are diverging
Final Notes:
Works best on higher timeframes (Daily, Weekly)
Helps filter overbought/oversold false signals
Can be combined with other indicators (MACD, Bollinger Bands, etc.)
Alinachi TrendI have Created Supertrend, Bollinger Bands, EMA with Smoothing Indicator
for Trading View you can use multiple indicators. only you need to be set indicator settings and use it.
we are trying to add more useful indicators in our code
MTF EMA crossover Sentiment - SimplifiedMTF EMA crossover Sentiment Exponential Moving Average (EMA full form in stock market) is a kind of moving average that places a greater weight and importance on the most current data points. It is used for evaluating the bullish and bearish trends in securities over a certain span of duration.
XAU/USD Swing Trading Strategy//@version=5
indicator("XAU/USD Swing Trading Strategy", overlay=true)
// Inputs
ema200_length = input.int(200, title="200 EMA Length")
ema50_length = input.int(50, title="50 EMA Length")
ema100_length = input.int(100, title="100 EMA Length")
rsi_length = input.int(14, title="RSI Length")
rsi_overbought = input.int(70, title="RSI Overbought Level")
rsi_oversold = input.int(30, title="RSI Oversold Level")
fib_levels = input.string("38.2, 50, 61.8", title="Fibonacci Levels")
// EMAs
ema200 = ta.ema(close, ema200_length)
ema50 = ta.ema(close, ema50_length)
ema100 = ta.ema(close, ema100_length)
// RSI
rsi = ta.rsi(close, rsi_length)
// Fibonacci Retracement Levels
fib_382 = 0.382
fib_500 = 0.5
fib_618 = 0.618
// Plot EMAs
plot(ema200, color=color.blue, title="200 EMA", linewidth=2)
plot(ema50, color=color.orange, title="50 EMA", linewidth=1)
plot(ema100, color=color.red, title="100 EMA", linewidth=1)
// Plot RSI
hline(rsi_overbought, "Overbought", color=color.red)
hline(rsi_oversold, "Oversold", color=color.green)
// Candlestick Patterns
bullish_engulfing = ta.crossover(close , open ) and close > open and close < open
bearish_engulfing = ta.crossover(open , close ) and close < open and close > open
pin_bar_bullish = (low < low and close > (high + low) / 2)
pin_bar_bearish = (high > high and close < (high + low) / 2)
// Trend Direction
uptrend = close > ema200
downtrend = close < ema200
// Entry Signals
long_signal = uptrend and bullish_engulfing and rsi > rsi_oversold
short_signal = downtrend and bearish_engulfing and rsi < rsi_overbought
// Plot Signals
plotshape(series=long_signal, title="Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(series=short_signal, title="Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
// Fibonacci Levels
fib_high = ta.highest(high, 50)
fib_low = ta.lowest(low, 50)
fib_range = fib_high - fib_low
plot(fib_high - fib_range * fib_382, color=color.purple, title="38.2% Fib")
plot(fib_high - fib_range * fib_500, color=color.blue, title="50% Fib")
plot(fib_high - fib_range * fib_618, color=color.orange, title="61.8% Fib")
// Alerts
alertcondition(long_signal, title="Buy Signal", message="BUY XAU/USD")
alertcondition(short_signal, title="Sell Signal", message="SELL XAU/USD")
Multi Stochastic AlertHello Everyone,
I have created a Multi Stochastic Alert based on Scalping Strategy
The Strategy uses below 4 Stochastic indicator:
1. Stochastic (9,3)
2. Stochastic (14,3)
3. Stochastic (40,4)
4. Stochastic (60,10)
Trade entry become active when all of these goes below 20 or above 80, In this indicator you don't need to use all 4, this will show red and green background whenever all of them goes below 20 or above 80.
As shown in picture below, it works better when script is making a channel, Our indicator shows green or red signal, we wait for RSI Divergence and we enter. We book when blue line (9,3) goes above 80, as shown by arrow, and trail rest at breakeven or your own trailing method
Same Situation shown for Short side. We book 50% when Blue line (9,3) Goes below 20 and trail rest at breakeven or your own trailing method
Happy trading, Let me know if any improvements required.
Swing Trading Strategy - Indian MarketTrend Identification:
The script uses 50 EMA and 200 EMA to identify the trend.
Uptrend: 50 EMA > 200 EMA.
Downtrend: 50 EMA < 200 EMA.
Momentum Confirmation:
RSI is used to confirm momentum.
Buy when RSI crosses above 30 (oversold) in an uptrend.
Sell when RSI crosses below 70 (overbought) in a downtrend.
Volume Filter:
The script checks if the current volume is 1.5x the average volume (adjustable) to confirm breakouts.
Signals:
Buy Signal: Green "BUY" label below the candle.
Sell Signal: Red "SELL" label above the candle.
Background Highlight:
The background is highlighted green during an uptrend and red during a downtrend.
Crypto Movement PredictorKey Features
Moving Averages (MA):
The indicator calculates two moving averages:
Short-term MA (50 periods): A faster-moving average that reacts quickly to price changes.
Long-term MA (200 periods): A slower-moving average that smooths out price fluctuations and represents the broader trend.
These moving averages are plotted on the chart for visual reference.
Crossover Strategy:
The indicator predicts potential bullish or bearish movements based on the crossover of the two moving averages:
Bullish Signal: When the short-term MA crosses above the long-term MA, the indicator predicts a potential upward movement.
Bearish Signal: When the short-term MA crosses below the long-term MA, the indicator predicts a potential downward movement.
These signals are displayed as labels on the chart for easy identification.
Last 500 Candlesticks:
The indicator plots the closing prices of the last 500 candlesticks to provide historical context. This helps traders understand the recent price action and how it relates to the moving averages.
Visualization:
The short-term MA is plotted in blue, and the long-term MA is plotted in red.
Bullish signals are marked with a green label saying "Bullish," and bearish signals are marked with a red label saying "Bearish."
The last 500 candlesticks are plotted in orange for reference.
Bollinger Bands Strategy TGBollinger Bands strategy to buy when the close price goes above the lower bollinger band and to close the long position when the close price goes above the upper bollinger band.
Appears to be working well.
Moving Average Shaded with Angle2 moving averages which you can edit in the settings. Selections are SMA,EMA or HMA and of course how many periods are available. In addition to the moving averages you have a color coded Cloud showing bullish or bearish trends. Lastly there are 3 print tables Top Right, Bottom Right and Middle Right. Top Right is the angle of the fast moving average. Bottom Right is the angle of the slow moving average and Middle right is an average of the 2. These are also color coded green numbers are bullish and red numbers are bearish. In the settings are threshold fields which allow increasing angle thresholds to give grey numbers if the angles are below these thresholds allowing for numerically quantifying sideways markets vs strong trending markets.
Donchian Reversal Scanner by Hitesh2603How It Works:
Bearish Side Logic:
If the price is falling with bearish candles and touching the lower Donchian Channel, the bearishCondition flag is set to true.
When a bullish candle appears afterward, the flag is reset, and the bullishReversalSquare condition becomes true.
Bullish Side Logic:
If the price is rising with bullish candles and touching the upper Donchian Channel, the bullishCondition flag is set to true.
When a bearish candle appears afterward, the flag is reset, and the bearishReversalSquare condition becomes true.
Plotting Squares:
A green square is plotted below the candle when bullishReversalSquare is true.
A red square is plotted above the candle when bearishReversalSquare is true.
Scanner Output:
The scanCondition variable is true when either bullishReversalSquare or bearishReversalSquare is true.
How to Use the Script:
On the Chart:
Add the script to your chart.
You will see squares plotted on the chart when the conditions are met:
Green squares below the candle for bullish reversals.
Red squares above the candle for bearish reversals.
In the Scanner:
Open the Scanner tab in TradingView.
Click on "Create New Scanner".
In the "Condition" field, select the script you just created.
Choose the market or watchlist you want to scan (e.g., "NYSE", "NASDAQ", or a custom watchlist).
Run the scan. The Scanner will return a list of instruments where the scanCondition is true.
Why This Works:
The scanCondition variable is now properly declared and used.
The plotchar function explicitly outputs the scanCondition variable as a plot, which the Scanner can recognize.
TEMA,SMA & VWAP Indicator//@version=5
indicator("TEMA,SMA & VWAP Indicator", overlay=true)
// Input parameter for TEMA length
tema_length = input.int(title="TEMA Length", defval=30, minval=1, step=1)
// Input settings for SMAs
sma5_length = input.int(5, title="SMA 5 Length")
sma20_length = input.int(20, title="SMA 20 Length")
sma50_length = input.int(50, title="SMA 50 Length")
sma100_length = input.int(100, title="SMA 100 Length")
sma200_length = input.int(200, title="SMA 200 Length")
// Calculate TEMA manually
ema1 = ta.ema(close, tema_length)
ema2 = ta.ema(ema1, tema_length)
ema3 = ta.ema(ema2, tema_length)
tema = 3 * (ema1 - ema2) + ema3
// Calculate SMAs
sma5 = ta.sma(close, sma5_length)
sma20 = ta.sma(close, sma20_length)
sma50 = ta.sma(close, sma50_length)
sma100 = ta.sma(close, sma100_length)
sma200 = ta.sma(close, sma200_length)
// VWAP Calculation
vwap = ta.vwap
// Plot TEMA
plot(tema, title="TEMA", color=color.orange, linewidth=1, style=plot.style_line)
// Plot SMAs
plot(sma5, color=color.yellow, title="SMA 5")
plot(sma20, color=color.purple, title="SMA 20")
plot(sma50, color=color.red, title="SMA 50")
plot(sma100, color=color.green, title="SMA 100")
plot(sma200, color=color.black, title="SMA 200")
// Plot VWAP
plot(vwap, color=color.blue, linewidth=1, title="VWAP")
// Optional: Add background color based on trend
bgcolor(close > sma200 ? color.new(color.green, 90) : close < sma200 ? color.new(color.red, 90) : na, title="Trend Background")
TEMA,SMA & VWAP Indicator//@version=5
indicator("TEMA,SMA & VWAP Indicator", overlay=true)
// Input parameter for TEMA length
tema_length = input.int(title="TEMA Length", defval=30, minval=1, step=1)
// Input settings for SMAs
sma5_length = input.int(5, title="SMA 5 Length")
sma20_length = input.int(20, title="SMA 20 Length")
sma50_length = input.int(50, title="SMA 50 Length")
sma100_length = input.int(100, title="SMA 100 Length")
sma200_length = input.int(200, title="SMA 200 Length")
// Calculate TEMA manually
ema1 = ta.ema(close, tema_length)
ema2 = ta.ema(ema1, tema_length)
ema3 = ta.ema(ema2, tema_length)
tema = 3 * (ema1 - ema2) + ema3
// Calculate SMAs
sma5 = ta.sma(close, sma5_length)
sma20 = ta.sma(close, sma20_length)
sma50 = ta.sma(close, sma50_length)
sma100 = ta.sma(close, sma100_length)
sma200 = ta.sma(close, sma200_length)
// VWAP Calculation
vwap = ta.vwap
// Plot TEMA
plot(tema, title="TEMA", color=color.orange, linewidth=1, style=plot.style_line)
// Plot SMAs
plot(sma5, color=color.yellow, title="SMA 5")
plot(sma20, color=color.purple, title="SMA 20")
plot(sma50, color=color.red, title="SMA 50")
plot(sma100, color=color.green, title="SMA 100")
plot(sma200, color=color.black, title="SMA 200")
// Plot VWAP
plot(vwap, color=color.blue, linewidth=1, title="VWAP")
// Optional: Add background color based on trend
bgcolor(close > sma200 ? color.new(color.green, 90) : close < sma200 ? color.new(color.red, 90) : na, title="Trend Background")
Stoc + Liq Zon + Buy/Sell Signals [5M/15M] RGUARDADOSV//@version=6
indicator("Stochastic + Liquidity Zones + Buy/Sell Signals ", overlay=true)
// Parámetros del Estocástico
stochLength = input.int(14, title="Stochastic Length")
kSmoothing = input.int(3, title="%K Smoothing")
dSmoothing = input.int(3, title="%D Smoothing")
overbought = input.int(80, title="Overbought Level")
oversold = input.int(20, title="Oversold Level")
// Calcular el Estocástico
k = ta.sma(ta.stoch(close, high, low, stochLength), kSmoothing)
d = ta.sma(k, dSmoothing)
// Condiciones de sobrecompra y sobreventa (Estocástico)
isOverbought = k >= overbought and d >= overbought
isOversold = k <= oversold and d <= oversold
// Identificar puntos de liquidez (soportes y resistencias)
liquidityLookback = input.int(20, title="Liquidity Lookback Period") // Ajusta según la temporalidad
recentHigh = ta.highest(high, liquidityLookback)
recentLow = ta.lowest(low, liquidityLookback)
// Dibujar soportes y resistencias
plot(recentHigh, color=color.new(color.red, 50), linewidth=2, title="Resistencia")
plot(recentLow, color=color.new(color.green, 50), linewidth=2, title="Soporte")
// Señales de compra y venta
buySignal = isOversold and close <= recentLow * 1.005 // Cerca de soporte y Estocástico en sobreventa
sellSignal = isOverbought and close >= recentHigh * 0.995 // Cerca de resistencia y Estocástico en sobrecompra
// Dibujar señales en el gráfico
plotshape(series=buySignal, location=location.belowbar, color=color.new(color.green, 0), style=shape.labelup, text="BUY", size=size.small)
plotshape(series=sellSignal, location=location.abovebar, color=color.new(color.red, 0), style=shape.labeldown, text="SELL", size=size.small)
// Alertas para señales de compra y venta
alertcondition(buySignal, title="Buy Signal Alert", message="Buy Signal Detected!")
alertcondition(sellSignal, title="Sell Signal Alert", message="Sell Signal Detected!")
======================================================================
Qué Hace el Código
Estocástico:
Identifica condiciones de sobrecompra (Estocástico ≥ 80) y sobreventa (Estocástico ≤ 20).
Utiliza las líneas %K y %D para confirmar las señales.
Puntos de Liquidez:
Identifica niveles clave de soporte (mínimos recientes) y resistencia (máximos recientes).
Dibuja líneas horizontales en estos niveles.
Señales de Compra y Venta:
Compra (BUY): Cuando el Estocástico está en sobreventa y el precio está cerca de un soporte.
Venta (SELL): Cuando el Estocástico está en sobrecompra y el precio está cerca de una resistencia.
Visualización:
Las señales se muestran en el gráfico con etiquetas "BUY" (verde) y "SELL" (roja).
Alertas:
Genera alertas cuando se detectan señales de compra o venta.
Cómo Usar el Script
Señales de Compra (BUY):
Aparece cuando el Estocástico está en sobreventa (≤ 20) y el precio está cerca de un soporte.
Es una señal para considerar una posición larga.
Señales de Venta (SELL):
Aparece cuando el Estocástico está en sobrecompra (≥ 80) y el precio está cerca de una resistencia.
Es una señal para considerar una posición corta.
Stop-loss y Take-profit:
Para BUY: Coloca el stop-loss por debajo del soporte y el take-profit en el siguiente nivel de resistencia.
Para SELL: Coloca el stop-loss por encima de la resistencia y el take-profit en el siguiente nivel de soporte.
Ejemplo de Uso
En un gráfico de 5 minutos:
Si aparece una señal "BUY", es una oportunidad para entrar en largo.
Si aparece una señal "SELL", es una oportunidad para entrar en corto.
En un gráfico de 15 minutos:
Las señales son menos frecuentes pero más confiables. Espera confirmación adicional (por ejemplo, un patrón de velas o un rompimiento de nivel).
MACD + RSI Buy/Sell Strategy//@version=5
strategy("MACD + RSI Buy/Sell Strategy", overlay=true)
// MACD Settings
= ta.macd(close, 12, 26, 9)
// RSI Settings
rsiLength = 14
rsi = ta.rsi(close, rsiLength)
// Buy & Sell Conditions
buyCondition = ta.crossover(macdLine, signalLine) and rsi < 30
sellCondition = ta.crossunder(macdLine, signalLine) and rsi > 70
// Plot Buy and Sell Signals
plotshape(series=buyCondition, location=location.belowbar, color=color.green, style=shape.labelup, size=size.small, title="Buy Signal")
plotshape(series=sellCondition, location=location.abovebar, color=color.red, style=shape.labeldown, size=size.small, title="Sell Signal")
// Execute Trades
strategy.entry("Buy", strategy.long, when=buyCondition)
strategy.close("Buy", when=sellCondition)