OPEN-SOURCE SCRIPT

Webhook Buy/Sell Signals Yogendra Kumar Singh

89
//version=5
indicator("Webhook Buy/Sell Signals", overlay=true)

// Fetching External Inputs
buySignal = request.security("WEBHOOK_SOURCE", timeframe.period, close) > 0
sellSignal = request.security("WEBHOOK_SOURCE", timeframe.period, close) < 0

// Plot Buy/Sell Markers
plotshape(buySignal, location=location.belowbar, color=color.green, style=shape.labelup, size=size.small, title="Buy Signal")
plotshape(sellSignal, location=location.abovebar, color=color.red, style=shape.labeldown, size=size.small, title="Sell Signal")

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.