PRIME PRO+ Indicator - Pine Script Code
//@version=5
indicator("PRIME PRO+ Indicator", overlay=true)
// === INPUTS === //
rsiPeriod = [Link](14, title="RSI Period")
rsiOverbought = [Link](70, title="RSI Overbought Level")
rsiOversold = [Link](30, title="RSI Oversold Level")
volumeMultiplier = [Link](1.5, title="Volume Spike Multiplier")
riskLevel = [Link](1.0, minval=0.1, maxval=10.0, title="Custom Risk Level")
// === RSI === //
rsi = [Link](close, rsiPeriod)
rsiBuy = rsi < rsiOversold
rsiSell = rsi > rsiOverbought
// === Volume === //
avgVolume = [Link](volume, 20)
volumeSpike = volume > avgVolume * volumeMultiplier
// === Breakout Detection === //
highestHigh = [Link](high, 20)
lowestLow = [Link](low, 20)
breakoutUp = close > highestHigh
breakoutDown = close < lowestLow
// === Buy/Sell Logic === //
buySignal = rsiBuy and volumeSpike or breakoutUp
sellSignal = rsiSell and volumeSpike or breakoutDown
plotshape(buySignal, title="Buy Signal", location=[Link], color=[Link], style=[Link], text="BUY
plotshape(sellSignal, title="Sell Signal", location=[Link], color=[Link], style=[Link], text="S
// === Alerts === //
alertcondition(buySignal, title="Buy Alert", message="PRIME PRO+ Buy Signal!")
alertcondition(sellSignal, title="Sell Alert", message="PRIME PRO+ Sell Signal!")