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)

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.