0% found this document useful (0 votes)
13 views1 page

Poffff

This document is a TradingView script that implements an EMA crossover strategy with RSI confirmation. It allows users to customize parameters for fast and slow EMAs, as well as RSI levels for overbought and oversold conditions. The script generates buy and sell signals based on the crossover of EMAs and RSI conditions, and plots these signals along with the EMAs on the chart.

Uploaded by

Aj Deshmukh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views1 page

Poffff

This document is a TradingView script that implements an EMA crossover strategy with RSI confirmation. It allows users to customize parameters for fast and slow EMAs, as well as RSI levels for overbought and oversold conditions. The script generates buy and sell signals based on the crossover of EMAs and RSI conditions, and plots these signals along with the EMAs on the chart.

Uploaded by

Aj Deshmukh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

//@version=5

indicator("EMA Cross with RSI Confirmation", overlay=true)

// ‫ورودی‌های قابل تنظیم‬


fastLength = input.int(9, title="Fast EMA Period", minval=1)
slowLength = input.int(21, title="Slow EMA Period", minval=1)
rsiLength = input.int(14, title="RSI Period", minval=1)
rsiOverbought = input.int(70, title="RSI Overbought Level", minval=1, maxval=100)
rsiOversold = input.int(30, title="RSI Oversold Level", minval=1, maxval=100)

// ‫ محاسبه‬EMA ‫ و‬RSI
fastEMA = ta.ema(close, fastLength)
slowEMA = ta.ema(close, slowLength)
rsi = ta.rsi(close, rsiLength)

// ‫سیگنال خرید و فروش‬


buySignal = ta.crossover(fastEMA, slowEMA) and rsi < rsiOverbought
sellSignal = ta.crossunder(fastEMA, slowEMA) and rsi > rsiOversold

// ‫رسم سیگنال‌ها روی چارت‬


plotshape(buySignal, title="Buy Signal", location=location.belowbar,
color=color.green, style=shape.labelup, text="BUY", size=size.small)
plotshape(sellSignal, title="Sell Signal", location=location.abovebar,
color=color.red, style=shape.labeldown, text="SELL", size=size.small)

// ‫ رسم‬EMA‫ها روی چارت‬


plot(fastEMA, title="Fast EMA", color=color.blue, linewidth=2)
plot(slowEMA, title="Slow EMA", color=color.red, linewidth=2)

You might also like