OPEN-SOURCE SCRIPT

AI Signals: Blue-Chip Dip Scanner

641
//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)

Thông báo miễn trừ trách nhiệm

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.