OPEN-SOURCE SCRIPT

SCALPING STRATEGY

//version=5
strategy("High Probability Scalping Strategy", overlay=true)

// Indicators
emaFast = ta.ema(close, 9)
emaSlow = ta.ema(close, 21)
vwap = ta.vwap(close)
[rsiValue, rsiSignal] = [ta.rsi(close, 14), 50]
macdLine = ta.ema(close, 12) - ta.ema(close, 26)
signalLine = ta.ema(macdLine, 9)
bbMiddle = ta.sma(close, 20)
bbUpper = bbMiddle + (ta.stdev(close, 20) * 2)
bbLower = bbMiddle - (ta.stdev(close, 20) * 2)

// Buy Entry Conditions
buyCondition = ta.crossover(emaFast, emaSlow) and close > vwap and rsiValue > rsiSignal and macdLine > signalLine
if (buyCondition)
strategy.entry("Long", strategy.long)

// Sell Entry Conditions
sellCondition = ta.crossunder(emaFast, emaSlow) and close < vwap and rsiValue < rsiSignal and macdLine < signalLine
if (sellCondition)
strategy.entry("Short", strategy.short)

// Stop Loss & Take Profit
strategy.exit("Exit Long", from_entry="Long", loss=10, profit=20)
strategy.exit("Exit Short", from_entry="Short", loss=10, profit=20)

Disclaimer