为什么我收到错误:找不到函数或函数引用“研究”?

Nar*_*ely 6 pine-script

//DeMark_9_Indicator_Wealth_Insider\nstudy("DeMark9 Indicator",overlay=true)\nTD = close > close[4] ?nz(TD[1])+1:0\nTS = close < close[4] ?nz(TS[1])+1:0\nTDUp = TD - valuewhen(TD < TD[1], TD , 1 )\nTDDn = TS - valuewhen(TS < TS[1], TS , 1 )\nplotshape(TDUp==7?true:na,style=shape.triangledown,text="7",color=green,location=location.abovebar)\nplotshape(TDUp==8?true:na,style=shape.triangledown,text="8",color=green,location=location.abovebar)\nplotshape(TDUp==9?true:na,style=shape.triangledown,text="\xe2\x9a\xa0\xef\xb8\x8f",color=green,location=location.abovebar)\nplotshape(TDDn==7?true:na,style=shape.triangleup,text="7",color=red,location=location.belowbar)\nplotshape(TDDn==8?true:na,style=shape.triangleup,text="8",color=red,location=location.belowbar)\nplotshape(TDDn==9?true:na,style=shape.triangleup,text="\xe2\x9c\x85",color=red,location=location.belowbar)\n
Run Code Online (Sandbox Code Playgroud)\n

在第 2 行,我收到一条无法找到函数或函数引用“研究”的消息,我不知道为什么。这是针对 TradingView 及其 Pine 脚本的。

\n

小智 16

在 pine 脚本 v5 中,study() 现在称为 Indicator()。

我遇到了同样的问题,在发行说明中找到了深埋的答案。