• 产品
  • 社区
  • 市场
  • 经纪商
  • 更多
开始
  • 社区
  • /指标和策略
  • /Experiment

Experiment

Zigzag Array ExperimentalThis is experimental script for zigzag which uses type, method and array. Not recommend for actual usage, for pine script study maybe useful. In this experiment, I use type as coded below. It seems have limitation as specially when push as array. As Trading View recommendation, pushing float and int into array especially for type not guarantee to work. I agree with that. Preferred to push array as line or label especially for types. // @type Used for point especially for array // @field x int value for bar_index // @field y float value for price // @field sty label style // @field col color for text label // @field str high or low string type point int x = na float y = na string sty = na color col = na string str = na I simulate the arrays as below. var dirLine = array.new() var dirLabel = array.new() var dirPoint = array.new() .... dirPoint.unshift(zigzag.createPoint(0)) dirLabel.unshift(zigzag.createLabel(fontSize, 0, true)) dirLine.unshift(zigzag.createLine(width, switchLine, 0, true)) Here are some results.
Pine Script®指标
由RozaniGhani-RG提供
1313
Running Average [EXPERIMENT]Predicting the future has nothing to do with trading, understanding your indicator and knowing how to use it does. Probably not the most efficient code, oh well.. Let me know if it's useful :)
Pine Script®指标
由EvoCrypto提供
已更新
1010

选择由ICE数据服务提供的市场数据。选择由FactSet提供的参考数据。版权所有 © 2025 FactSet Research Systems Inc. © 2025 TradingView, Inc.

不仅是产品
  • 超级图表
筛选器
  • 股票
  • ETFs
  • 债券
  • 加密货币
  • CEX对
  • DEX对
  • Pine
热图
  • 股票
  • ETFs
  • 加密货币
日历
  • 经济
  • 收益
  • 股利
更多产品
  • 收益率曲线
  • 期权
  • 新闻流
  • Pine Script®
应用程序
  • 移动版
  • 电脑版
社区
  • 社交网络
  • 爱心墙
  • 推荐朋友
  • 网站规则
  • 版主
观点
  • 交易
  • 教学
  • 编辑精选
Pine脚本
  • 指标和策略
  • 大师
  • 自由开发人员
工具和订阅
  • 功能特色
  • 价格
  • 市场数据
交易
  • 概览
  • 经纪商
特别优惠
  • CME集团期货
  • Eurex期货
  • 美国股票包
关于公司
  • 我们是谁
  • 太空任务
  • 博客
  • 职涯
  • 媒体工具包
商品
  • TradingView商店
  • 交易者塔罗牌
  • C63 TradeTime
政策和安全
  • 使用条款
  • 免责声明
  • 隐私政策
  • Cookies政策
  • 无障碍声明
  • 安全提示
  • 漏洞赏金计划
  • 状态页面
商业解决方案
  • 插件
  • 图表库
  • Lightweight Charts™
  • 高级图表
  • 交易平台
成长机会
  • 广告
  • 经纪业务集成
  • 合作伙伴计划
  • 教育计划
社区
  • 社交网络
  • 爱心墙
  • 推荐朋友
  • 网站规则
  • 版主
观点
  • 交易
  • 教学
  • 编辑精选
Pine脚本
  • 指标和策略
  • 大师
  • 自由开发人员
商业解决方案
  • 插件
  • 图表库
  • Lightweight Charts™
  • 高级图表
  • 交易平台
成长机会
  • 广告
  • 经纪业务集成
  • 合作伙伴计划
  • 教育计划
Look FirstLook First