OPEN-SOURCE SCRIPT

AI Signals: Blue-Chip Dip Scanner

622
//version=5
indicator("AI Signals: Blue-Chip Dip Scanner", overlay=true)

//-------------------------//
// SETTINGS //
//-------------------------//
lengthRSI = input.int(14, "RSI Length")
rsiOversold = input.int(30, "RSI Oversold")
rsiOverbought = input.int(70, "RSI Overbought")

//-------------------------//
// CALCULATIONS //
//-------------------------//
rsi = ta.rsi(close, lengthRSI)
ema50 = ta.ema(close, 50)
ema200 = ta.ema(close, 200)

//-------------------------//
// CONDITIONS //
//-------------------------//
dip = ta.crossunder(close, ema50) and rsi < rsiOversold

//-------------------------//
// SIGNALS //
//-------------------------//
buySignal = dip

plotshape(buySignal, title="Buy Dip", style=shape.labelup,
color=color.green, text="BUY", size=size.small, location=location.belowbar)

//-------------------------//
// ALERTS //
//-------------------------//
alert_msg = '{"symbol":"{{ticker}}","price":"{{close}}"}'
alertcondition(buySignal, title="AI Buy Dip Signal", message=alert_msg)

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。