EMA and SMA Crossover with RSI14 FilteringExplanation of the Script:
Indicators:
EMA 5 and SMA 10: These are the two moving averages used to determine the trend direction.
Buy signal is triggered when EMA 5 crosses above SMA 10.
Sell signal is triggered when EMA 5 crosses below SMA 10.
RSI 14: This is used to filter buy and sell signals.
Buy trades are allowed only if RSI 14 is above 60.
Sell trades are allowed only if RSI 14 is below 50.
Buy Conditions:
The strategy waits for the EMA crossover (EMA 5 crosses above SMA 10).
The strategy checks if RSI 14 is above 60 for confirmation.
If the price is below 60 on RSI 14 at the time of crossover, the strategy will wait until the price crosses above 60 on RSI 14 to initiate the buy.
Sell Conditions:
The strategy waits for the EMA crossover (EMA 5 crosses below SMA 10).
The strategy checks if RSI 14 is below 50 for confirmation.
If the price is above 50 on RSI 14 at the time of crossover, the strategy will wait until the price crosses below 50 on RSI 14 to initiate the sell.
Exit Conditions:
The Buy position is closed if the EMA crossover reverses (EMA 5 crosses below SMA 10) or RSI 14 drops below 50.
The Sell position is closed if the EMA crossover reverses (EMA 5 crosses above SMA 10) or RSI 14 rises above 60.
Plotting:
The script plots the EMA 5, SMA 10, and RSI 14 on the chart for easy visualization.
Horizontal lines are drawn at RSI 60 and RSI 50 levels for reference.
Key Features:
Price Confirmation: The strategy ensures that buy trades are only initiated if RSI 14 crosses above 60, and sell trades are only initiated if RSI 14 crosses below 50. Additionally, price action must cross these RSI levels to confirm the trade.
Reversal Exits: Positions are closed when the EMA crossover or RSI condition reverses.
Backtesting:
Paste this script into the Pine Editor on TradingView to test it with historical data.
You can adjust the EMA, SMA, and RSI lengths based on your preferences.
Let me know if you need further adjustments or clarification!
אינדיקטורים ואסטרטגיות
Entradas Scalping IEGCalcula las entradas y coloca las linea de entrada, profit y stop, calculando tambien las monedas a comprar configurando los parametros requeridos
Demo GPT - Bollinger Bands StrategyDemo GPT - Bollinger Bands Strategy, this strategy is going to help the people in identifying buy and sell signals
YAMIL//@version=6
indicator(title = 'MACD+RSI+KONCORDE YAMIL', shorttitle = 'MAC+RSI+KON YAMIL')
//KONCORDE
showkoncorde = input(true, title = 'Koncorde')
deltaKon = input(-700, title = 'KONCORDE - Desfase')
escalaKoncorde = input(2, 'Koncorde - Escala')
calc_mfi(length) =>
100.0 - 100.0 / (1.0 + math.sum(volume * (ta.change(hlc3) <= 0 ? 0 : hlc3), length) / math.sum(volume * (ta.change(hlc3) >= 0 ? 0 : hlc3), length))
tprice = ohlc4
lengthEMA = 255
m = 15
pvim = ta.ema(ta.pvi, m)
pvimax = ta.highest(pvim, 90)
pvimin = ta.lowest(pvim, 90)
oscp = (ta.pvi - pvim) * 100 / (pvimax - pvimin)
nvim = ta.ema(ta.nvi, m)
nvimax = ta.highest(nvim, 90)
nvimin = ta.lowest(nvim, 90)
azul = (ta.nvi - nvim) * 100 / (nvimax - nvimin)
xmf = calc_mfi(14)
mult = 2.0
basis = ta.sma(tprice, 25)
dev = mult * ta.stdev(tprice, 25)
upper = basis + dev
lower = basis - dev
OB1 = (upper + lower) / 2.0
OB2 = upper - lower
BollOsc = (tprice - OB1) / OB2 * 100
xrsi = ta.rsi(tprice, 14)
calc_stoch(src, length, smoothFastD) =>
ta.sma(100 * (src - ta.lowest(low, length)) / (ta.highest(high, length) - ta.lowest(low, length)), smoothFastD)
stoc = calc_stoch(tprice, 21, 3)
marron = (xrsi + xmf + BollOsc + stoc / 3) / 2
verde = marron + oscp
media = ta.ema(marron, 21) //
vl = plot(showkoncorde ? verde * escalaKoncorde + deltaKon : na, color = color.new(#25BC00, 0), style = plot.style_columns, histbase = deltaKon, linewidth = 4, title = 'Manos Chicas')
ml = plot(showkoncorde ? marron * escalaKoncorde + deltaKon : na, color = color.new(#FFC34C, 0), style = plot.style_columns, histbase = deltaKon, linewidth = 4, title = 'Koncorde - marron')
al = plot(showkoncorde ? azul * escalaKoncorde + deltaKon : na, color = color.new(#6C3AFF, 0), style = plot.style_columns, histbase = deltaKon, linewidth = 4, title = 'Manos Grandes')
plot(showkoncorde ? marron * escalaKoncorde + deltaKon : na, color = color.new(#000000, 0), linewidth = 1, title = 'Koncorde - lmarron')
plot(showkoncorde ? media * escalaKoncorde + deltaKon : na, color = color.new(#FF0000, 0), linewidth = 1, title = 'Koncorde - media')
hline(-700, color = color.black, linestyle = hline.style_solid)
// MACD
// Getting inputs
showmacd = input(true, title = 'MADC')
deltaMacd = input(700, title = 'MACD - Desfase')
multMacd = input(5, title = 'MACD - Escala')
fast_length = input(title = 'MACD - Fast Length', defval = 12)
slow_length = input(title = 'MACD - Slow Length', defval = 26)
src = input(title = 'MACD - Source', defval = close)
signal_length = input.int(title = 'MACD - Signal Smoothing', minval = 1, maxval = 50, defval = 9)
sma_source = input(title = 'MACD - Simple MA(Oscillator)', defval = false)
sma_signal = input(title = 'MACD - Simple MA(Signal Line)', defval = false)
// Plot colors
col_grow_above = #2AFF00
col_grow_below = #FF0000
col_fall_above = #168500
col_fall_below = #980000
col_macd = #0042FF
col_signal = #FFA200
// Calculating
// = macd(close, fastLength, slowLength, signalLength)
fast_ma = sma_source ? ta.sma(src, fast_length) : ta.ema(src, fast_length)
slow_ma = sma_source ? ta.sma(src, slow_length) : ta.ema(src, slow_length)
macd = (fast_ma - slow_ma) / slow_ma * 1000 * multMacd
signal = sma_signal ? ta.sma(macd, signal_length) : ta.ema(macd, signal_length)
hist = macd - signal
plot(showmacd ? bool(hist) ? hist + deltaMacd : na : na, title = 'MACD - Histogram', style = plot.style_columns, color = hist >= 0 ? hist < hist ? col_grow_above : col_fall_above : hist < hist ? col_grow_below : col_fall_below, histbase = deltaMacd)
plot(showmacd ? bool(macd) ? macd + deltaMacd : na : na, title = 'MACD', color = color.new(col_macd, 0), linewidth = 1)
plot(showmacd ? bool(signal) ? signal + deltaMacd : na : na, title = 'MACD - Signal', color = color.new(col_signal, 0), linewidth = 1)
hline(700, color = color.black, linestyle = hline.style_solid, linewidth = 1)
// STOCH (14,3,1)
showrsi = input(true, title = 'RSI - STOCH')
deltaRSI = input(0, title = 'RSI/STOCH - Desfase')
multip = input(5, title = 'RSI/STOCH - Escala')
deltaSTOCH = deltaRSI - 50 * multip / 2
length = input.int(14, minval = 1, title = 'STOCH - Periodo')
smoothK = input.int(1, minval = 1, title = 'STOCH - Smooth K')
smoothD = input.int(3, minval = 1, title = 'STOCH - Smooth D')
k = ta.sma(ta.stoch(close, high, low, length), smoothK)
d = ta.sma(k, smoothD)
// RSI
bandm = hline(showrsi ? 0 + deltaRSI : na, color = color.black, linewidth = 1, linestyle = hline.style_solid)
band0 = hline(showrsi ? -20 * multip + deltaRSI : na, color = color.new(#59FF00, 0), linewidth = 1, linestyle = hline.style_dotted)
band1 = hline(showrsi ? 20 * multip + deltaRSI : na, color = color.new(#FF0000, 0), linewidth = 1, linestyle = hline.style_dotted)
fill(band1, band0, color = color.new(#FFFF00, 75), title = 'Background')
lengthRSI = input.int(14, minval = 1, title = 'RSI - Periodo')
RSIMain = ta.rsi(close, lengthRSI) - 50
rsiPlot = plot(showrsi ? RSIMain * multip + deltaRSI : na, color = color.new(#000000, 0), linewidth = 1)
// Media móvil en RSI
lengthMA = input.int(21, minval = 1, title = 'RSI - Media Móvil Ponderada Periodo')
RSIMA = ta.wma(RSIMain * multip + deltaRSI, lengthMA)
plot(showrsi ? RSIMA : na, color = color.new(#78FF00, 0), linewidth = 1, title = 'RSI - Media Móvil')
// STOCH (14,3,1) en RSI
showstoch = input(true, title = 'STOCH - RSI')
deltaSTOCH_RSI = input(100, title = 'STOCH - RSI Desfase')
kRSI = ta.sma(ta.stoch(RSIMain, RSIMain, RSIMain, length), smoothK)
dRSI = ta.sma(kRSI, smoothD)
plot(false ? bool(kRSI) ? kRSI + deltaSTOCH_RSI : na : na, title = 'STOCH - RSI K', color = color.new(#0000FF, 0), linewidth = 1)
plot(false ? bool(dRSI) ? dRSI + deltaSTOCH_RSI : na : na, title = 'STOCH - RSI D', color = color.new(#FFA500, 0), linewidth = 1)
STOCH ET RSI BY MATMATCe script combine l'Indice de Force Relative (RSI) et le Stochastic pour offrir une analyse approfondie des conditions de surachat et de survente sur le marché. Il met en évidence les moments où ces deux indicateurs atteignent des zones extrêmes et affiche un indicateur visuel clair sous le graphique.
Fonctionnalités principales :
✅ Affichage du RSI et du Stochastic
Le RSI est tracé avec une couleur violette semi-transparente.
Le Stochastic est représenté par les lignes %K (rouge) et %D (gris).
✅ Zones de surachat et de survente
Les seuils de 70/30 pour le RSI et 80/20 pour le RSI sont marqués par des lignes horizontales.
Une zone violette est remplie entre 30 et 70 pour le RSI afin de faciliter la lecture.
✅ Ligne centrale à 50 pour le RSI
Ajout d'une ligne pointillée blanche à 50 pour mieux visualiser la neutralité du RSI.
✅ Indicateur de surachat / survente sous le graphique
Une barre de couleur dynamique est affichée sous le graphique :
Rouge lorsque le RSI > 70 et le Stoch > 80 (Surachat).
Vert lorsque le RSI < 30 et le Stoch < 20 (Survente).
Gris foncé lorsque les conditions ne sont pas remplies.
✅ Alertes intégrées
Alerte de surachat : Se déclenche lorsque le RSI et le Stoch sont en zone de surachat.
Alerte de survente : Se déclenche lorsque le RSI et le Stoch sont en zone de survente.
Comment utiliser ce script ?
Ajoutez ce script à votre graphique dans TradingView.
Utilisez les couleurs et les signaux visuels pour repérer les opportunités de trading.
Activez les alertes pour être notifié automatiquement des conditions extrêmes du marché.
💡 Idéal pour les traders qui veulent confirmer les zones de surachat et de survente avant d'entrer ou de sortir d'une position.
Financial and Pricing ReferencesIt gathers essential data from TradingView, processes and filters it, and presents it in a structured format on the screen. Additionally, it highlights Pivot, Support, and Resistance levels.
Using the Graham Number, Dividend Ratio, and market analyst data, it calculates the fair value and displays the maximum price to pay directly on the chart.
Condition:
The time frame must be set to 'Daily'
Volume, Neckline, Min/Max Bars, Risk/Reward (No Negative Index)Script 2: “Volume, Neckline, Min/Max Bars, and Risk/Reward Demo”
Purpose: Provide a single script that deals with Volume Divergence detection, a Neckline line, a Min/Max bar concept, and an example of Risk/Reward lines.
How It’s Organized:
Each feature has a separate boolean toggle (showVolumeDiv, showNeckline, etc.).
Each feature has its own input parameters (volLookback, neckLookback, lsMin/lsMax, riskReward).
The script is purely an indicator: no actual trades, just lines and shapes for demonstration.
Financial and Pricing ReferencesIt gathers essential data from TradingView, processes and filters it, and presents it in a structured format on the screen. Additionally, it highlights Pivot, Support, and Resistance levels.
Using the Graham Number, Dividend Ratio, and market analyst data, it calculates the fair value and displays the maximum price to pay directly on the chart.
quartile retracement and expansion NQ and MNQ first 30 minutesCME_MINI:NQ1! white line (open us market 9.30 NY)
yellow line (third quartile q3)
orange line (second quartile q2)
red line (first quartile q1)
first 30 minutes
Straddle2.01) Straddle with an bollinger band.
2) Add your 6 strike price it will automatically give lowest straddle from 6 strikeprice.
3) how to use: for entry below avg or while pull back at avg & for full conformation take entry below 2bolliangerband.
4) For exit it upto your appetite.
5)I've backtested this strategy & its worked from 2019 till 2025 with 70% accuracy.
XAU/USD Strategy: Candlestick Patterns This script is a custom trading strategy that combines several technical analysis indicators and candlestick patterns to generate buy and sell signals for XAU/USD (Gold).
This script creates a trading strategy based on a combination of the following:
- RSI: Identifies overbought/oversold conditions.
- Supertrend: Helps identify the overall trend (bullish or bearish).
- Candlestick Patterns: Bullish and bearish engulfing patterns as potential reversal signals.
- Market Structure (SMC): Identifies swing highs and lows to assess price action.
- EMA: Although calculated, they are not directly used in the signals but could assist in identifying trend direction.
When a buy or sell signal occurs, labels are drawn on the chart, with lines connecting the signals to the relevant candlestick, providing visual cues for traders.
Multi-Timeframe Indicators Table with DivergenceThis indicator provides a comprehensive view of key technical indicators across multiple timeframes: Monthly, Weekly, and Daily. It includes the following:
RSI (Relative Strength Index): Shows momentum strength for each timeframe.
MFI (Money Flow Index): Tracks the flow of money into and out of the asset.
CCI (Commodity Channel Index): Identifies overbought or oversold conditions.
BB% (Bollinger Bands Percent): Measures the price relative to Bollinger Bands for volatility analysis.
The indicator also highlights potential divergences between price action and each technical indicator. Divergence is indicated when the price moves in one direction while the indicator moves in the opposite, which could signal a possible trend reversal.
Features:
Multi-timeframe analysis (Monthly, Weekly, Daily & Intraday)
Visual representation of key indicators with colors for easy interpretation
Divergence alerts for trend reversal opportunities
Customizable indicator lengths and colors
Use this tool to analyze price trends, potential reversals, and identify high-probability trading opportunities across different timeframes
quartile retracement and expansion US Market(for NQ and MNQ)white line (open us market 9.30 NY)
yellow line (third quartile q3)
orange line (second quartile q2)
red line (first quartile q1)
Base Candle IdentifierThis is a Base candle Identifier. Helps in marking support and resistance levels.
Market Performance by Yearly Seasons [LuxAlgo]The Market Performance by Yearly Seasons tool allows traders to analyze the average returns of the four seasons of the year and the raw returns of each separate season.
🔶 USAGE
By default, the tool displays the average returns for each season over the last 10 years in the form of bars, with the current session highlighted as a bordered bar.
Traders can choose to display the raw returns by year for each season separately and select the maximum number of seasons (years) to display.
🔹 Hemispheres
Traders can select the hemisphere in which they prefer to view the data.
🔹 Season Types
Traders can select the type of seasons between meteorological (by default) and astronomical.
The meteorological seasons are as follows:
Autumn: months from September to November
Winter: months from December to February
Spring: months from March to May
Summer: months from June to August
The astronomical seasons are as follows:
Autumn: from the equinox on September 22
Winter: from the solstice on December 21
Spring: from the equinox on March 20
Summer: from the solstice on June 21
🔹 Displaying the data
Traders can choose between two display modes, average returns by season or raw returns by season and year.
🔶 SETTINGS
Max seasons: Maximum number of seasons
Hemisphere: Select NORTHERN or SOUTHERN hemisphere
Season Type: Select the type of season - ASTRONOMICAL or METEOROLOGICAL
Display: Select display mode, all four seasons, or any one of them
🔹 Style
Bar Size & Autofit: Select the size of the bars and enable/disable the autofit feature
Labels Size: Select the label size
Colors & Gradient: Select the default color for bullish and bearish returns and enable/disable the gradient feature
Advanced Bitcoin Trading Strategy//@version=6
indicator("Advanced Bitcoin Trading Strategy", overlay=true)
// Define Short-term and Long-term MAs
shortTermMA = ta.sma(close, 9)
longTermMA = ta.sma(close, 21)
// Define RSI
rsi = ta.rsi(close, 14)
// Define Volume
volumeMA = ta.sma(volume, 20)
// Define Buy and Sell Conditions based on MA Crossovers, RSI, and Volume
buyCondition = ta.crossover(shortTermMA, longTermMA) and rsi < 30 and volume > volumeMA
sellCondition = ta.crossunder(shortTermMA, longTermMA) and rsi > 70 and volume > volumeMA
// Detect Bullish Engulfing Pattern
bullishEngulfing = (open > close ) and (close > open) and (close > high ) and (open < low )
// Detect Bearish Engulfing Pattern
bearishEngulfing = (open < close ) and (close < open) and (close < low ) and (open > high )
// Combine all Buy and Sell Conditions
finalBuyCondition = buyCondition or bullishEngulfing
finalSellCondition = sellCondition or bearishEngulfing
// Plot Short-term and Long-term MA
plot(shortTermMA, "Short Term MA", color=color.blue, linewidth=2)
plot(longTermMA, "Long Term MA", color=color.red, linewidth=2)
// Plot RSI
hline(70, "Overbought Level", color=color.red, linestyle=hline.style_dotted)
hline(30, "Oversold Level", color=color.green, linestyle=hline.style_dotted)
plot(rsi, "RSI", color=color.purple, linewidth=2)
// Plot Volume MA
plot(volumeMA, "Volume MA", color=color.orange, linewidth=1)
// Plot Buy and Sell Arrows
plotshape(series=finalBuyCondition, location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plotshape(series=finalSellCondition, location=location.abovebar, color=color.red, style=shape.labeldown, text="SELL")
plotarrow(series=finalBuyCondition ? 1 : na, title="Buy Arrow", colorup=color.green, offset=-1)
plotarrow(series=finalSellCondition ? -1 : na, title="Sell Arrow", colordown=color.red, offset=-1)
// Alert Conditions
alertcondition(finalBuyCondition, title="Buy Alert", message="Time to Buy Bitcoin!")
alertcondition(finalSellCondition, title="Sell Alert", message="Time to Sell Bitcoin!")
Directional Cycle Indicator (DCI) with True Apex/Nadir CyclesAn indication where the cycle goes over 0 it means it goes up and it's probably time to sell and give you the apex .When under zero and when it's it is in the nadir then it's time to buy , that's it
YO//@version=5
indicator("Custom MA Crossover", overlay=true, shorttitle="CMA Cross")
// Inputs
fast_length = input.int(9, title="Fast MA Length", minval=1)
slow_length = input.int(21, title="Slow MA Length", minval=1)
ma_type = input.string(title="MA Type", options= , defval="EMA")
// Calculations
fast_ma = ma_type == "SMA" ? ta.sma(close, fast_length) : ta.ema(close, fast_length)
slow_ma = ma_type == "SMA" ? ta.sma(close, slow_length) : ta.ema(close, slow_length)
// Crossover signals
bullish = ta.crossover(fast_ma, slow_ma)
bearish = ta.crossunder(fast_ma, slow_ma)
// Plotting
plot(fast_ma, color=color.new(color.blue, 0), title="Fast MA")
plot(slow_ma, color=color.new(color.red, 0), title="Slow MA")
// Plot signals
plotshape(bullish, style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small)
plotshape(bearish, style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small)
// Alerts
alertcondition(bullish, title="Bullish Crossover", message="Fast MA crossed above Slow MA")
alertcondition(bearish, title="Bearish Crossover", message="Fast MA crossed below Slow MA")
GOLDEN Trading System by @thejamiulThe Golden Trading System is a powerful trading indicator designed to help traders easily identify market conditions and potential breakout opportunities.
Source of this indicator :
This indicator is built on TradingView original pivot indicator but focuses exclusively on Camarilla pivots, utilising H3-H4 and L3-L4 as breakout zones.
Timeframe Selection:
Before start using it we should choose Pivot Resolution time-frame accordingly.
If you use 5min candle - use D
If you use 15min candle - use W
If you use 1H candle - use M
If you use 1D candle - use 12M
How It Works:
Sideways Market: If the price remains inside the H3-H4 as Green Band and L3-L4 as Red band, the market is considered range-bound.
Trending Market: If the price moves outside Green Band, it indicates a potential up-trend formation. If the price moves outside Red Band, it indicates a potential down-trend formation.
Additional Features:
Displays Daily, Weekly, Monthly, and Yearly Highs and Lows to help traders identify key support and resistance levels also helps spot potential trend reversal points based on historical price action. Suitable for both intraday and swing trading strategies.
This indicator is a trend-following and breakout confirmation tool, making it ideal for traders looking to improve their decision-making with clear, objective levels.
🔹 Note: This script is intended for educational purposes only and should not be considered financial advice. Always conduct your own research before making trading decisions.
SUP & RECIdentifying Support and Resistance: An indicator (likely visual) highlights areas on a price chart where the asset's price has historically struggled to break through. These are crucial levels to watch for potential price reversals.