松本-收盘价更高

时间:2020-05-06 09:59:04

标签: pine-script

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

当前收盘价小于上一个收盘价(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)

我已经拥有了,但是不正确,因为我有类似下面的内容。

如何查看当前收盘价大于上一个收盘价但形状...

1 个答案:

答案 0 :(得分:0)

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

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

enter image description here