OPEN-SOURCE SCRIPT
Quick Reversal Strategy - Bash Modrs

//version=5
indicator("Quick Reversal Strategy - Bash Modrs", overlay=true)
// === Moving Averages ===
ema9 = ta.ema(close, 9)
ema21 = ta.ema(close, 21)
// === RSI ===
rsi = ta.rsi(close, 14)
// === Bollinger Bands ===
basis = ta.sma(close, 20)
dev = ta.stdev(close, 20)
upper = basis + dev * 2
lower = basis - dev * 2
// === Volume ===
vol = volume
vol_avg = ta.sma(volume, 20)
vol_color = vol > vol_avg ? color.new(color.green, 0) : color.new(color.red, 0)
// === Plot Indicators ===
plot(ema9, color=color.yellow, linewidth=2, title="EMA 9")
plot(ema21, color=color.orange, linewidth=2, title="EMA 21")
plot(basis, color=color.blue, title="BB Basis")
plot(upper, color=color.new(color.blue, 50))
plot(lower, color=color.new(color.blue, 50))
plot(vol, color=vol_color, style=plot.style_columns, title="Volume")
// === Entry Conditions ===
longCond = ta.crossover(ema9, ema21) and rsi > 40 and rsi < 60
shortCond = ta.crossunder(ema9, ema21) and rsi > 40 and rsi < 60
// === Alerts ===
alertcondition(longCond, title="Buy Signal", message="🟢 Buy Signal - Quick Reversal Strategy")
alertcondition(shortCond, title="Sell Signal", message="🔴 Sell Signal - Quick Reversal Strategy")
// === Plot Signals on Chart ===
plotshape(longCond, title="Buy", location=location.belowbar, color=color.new(color.green, 0), style=shape.triangleup, size=size.large)
plotshape(shortCond, title="Sell", location=location.abovebar, color=color.new(color.red, 0), style=shape.triangledown, size=size.large)
indicator("Quick Reversal Strategy - Bash Modrs", overlay=true)
// === Moving Averages ===
ema9 = ta.ema(close, 9)
ema21 = ta.ema(close, 21)
// === RSI ===
rsi = ta.rsi(close, 14)
// === Bollinger Bands ===
basis = ta.sma(close, 20)
dev = ta.stdev(close, 20)
upper = basis + dev * 2
lower = basis - dev * 2
// === Volume ===
vol = volume
vol_avg = ta.sma(volume, 20)
vol_color = vol > vol_avg ? color.new(color.green, 0) : color.new(color.red, 0)
// === Plot Indicators ===
plot(ema9, color=color.yellow, linewidth=2, title="EMA 9")
plot(ema21, color=color.orange, linewidth=2, title="EMA 21")
plot(basis, color=color.blue, title="BB Basis")
plot(upper, color=color.new(color.blue, 50))
plot(lower, color=color.new(color.blue, 50))
plot(vol, color=vol_color, style=plot.style_columns, title="Volume")
// === Entry Conditions ===
longCond = ta.crossover(ema9, ema21) and rsi > 40 and rsi < 60
shortCond = ta.crossunder(ema9, ema21) and rsi > 40 and rsi < 60
// === Alerts ===
alertcondition(longCond, title="Buy Signal", message="🟢 Buy Signal - Quick Reversal Strategy")
alertcondition(shortCond, title="Sell Signal", message="🔴 Sell Signal - Quick Reversal Strategy")
// === Plot Signals on Chart ===
plotshape(longCond, title="Buy", location=location.belowbar, color=color.new(color.green, 0), style=shape.triangleup, size=size.large)
plotshape(shortCond, title="Sell", location=location.abovebar, color=color.new(color.red, 0), style=shape.triangledown, size=size.large)
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。