OPEN-SOURCE SCRIPT

Bank Nifty VWAP + RSI Alert

40
//version=5
indicator("Bank Nifty VWAP + RSI Alert", overlay=true)

// VWAP
vwapValue = ta.vwap

// RSI
rsiValue = ta.rsi(close, 14)

// Conditions
longCondition = close > vwapValue and rsiValue > 60
shortCondition = close < vwapValue and rsiValue < 40

// Plot signals on chart
plotshape(longCondition, style=shape.labelup, color=color.green, text="CALL")
plotshape(shortCondition, style=shape.labeldown, color=color.red, text="PUT")

// Alert conditions
alertcondition(longCondition, title="CALL Alert", message="Bank Nifty crossed above VWAP + RSI > 60 - Consider Call")
alertcondition(shortCondition, title="PUT Alert", message="Bank Nifty crossed below VWAP + RSI < 40 - Consider Put")

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。