松脚本 - 收盘价,更深的井

Pine script - Close price, deeper well

如何绘制像下面这样的深井?

当前收盘价小于上次收盘价(close[1])。

// © BrunofAlmeida25

//@version=4
study(title="New lesson", overlay=true)

//calcular fechamento 
fecha=iff(close < close[1] and close[1] > close[2] and close[2] > close[3] and close[3] > close[4], close, na)

//plot da condição
plotchar(fecha, char="★", location=location.belowbar, color=timeframe.isdaily ? color.yellow : na)

我已经知道了,但不正确,因为我有如下内容。

你怎么能看到当前收盘价比上次收盘价大,但有一个形状...

您似乎在寻找这样的东西:

//@version=4
study("", "", true)
cond = close < min(open[1], close[1])
plotchar(cond, "cond", "•", location.belowbar)