pine-script - 为什么我收到错误:找不到函数或函数参考“研究”?
问题描述
//DeMark_9_Indicator_Wealth_Insider
study("DeMark9 Indicator",overlay=true)
TD = close > close[4] ?nz(TD[1])+1:0
TS = close < close[4] ?nz(TS[1])+1:0
TDUp = TD - valuewhen(TD < TD[1], TD , 1 )
TDDn = TS - valuewhen(TS < TS[1], TS , 1 )
plotshape(TDUp==7?true:na,style=shape.triangledown,text="7",color=green,location=location.abovebar)
plotshape(TDUp==8?true:na,style=shape.triangledown,text="8",color=green,location=location.abovebar)
plotshape(TDUp==9?true:na,style=shape.triangledown,text="⚠️",color=green,location=location.abovebar)
plotshape(TDDn==7?true:na,style=shape.triangleup,text="7",color=red,location=location.belowbar)
plotshape(TDDn==8?true:na,style=shape.triangleup,text="8",color=red,location=location.belowbar)
plotshape(TDDn==9?true:na,style=shape.triangleup,text="✅",color=red,location=location.belowbar)
在第 2 行,我收到一个找不到函数或函数引用“研究”,我不知道为什么。这是针对 TradingView 及其 Pine 脚本的。
解决方案
study() 现在在 pine 脚本 v5 中称为 indicator()。
我遇到了同样的问题,在发行说明中找到了答案。
推荐阅读
- mysql - 无法连接到 Visual Studio 2017 中的 MySQL 数据源
- javascript - 如何扩展 TypeScript 接口并对其进行非部分化
- python - 代码不工作:在 Coursera 作业中提示输入文件
- javascript - 在反应中使用 d3 中的本地 .csv 时遇到问题
- reactjs - React 路由组件在 reactDOM.render() = >( 元素类型无效:) @ auth0 实现中失败
- python-3.x - 在python中读取DSL数据文件
- php - 查询失败 您的 SQL 语法有错误;检查与您的 MariaDB 服务器版本相对应的手册以获取正确的语法
- python - 检测 SQLAlchemy 模型是否有与之关联的挂起写操作
- mysql - 如何在删除该表中的数据之前使用 IF EXISTS 检查表是否存在
- angular - 更新对象时,ngrx 商店不更新订阅