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. קרא עוד בתנאים וההגבלות.