交易危机

 找回密码
 快捷注册(禁q号)

QQ登录

只需一步,快速开始

搜索
广告位
查看: 1230|回复: 1

[代码] 2017年正在使用的zigzag指标

[复制链接]

2127

主题

6万

积分

157

精华

大型投行

金钱
61245 美元
权重
640
发表于 2018-8-1 22:19 | 显示全部楼层 |阅读模式
idxinai 发表于 2017-4-14 16:43
F大现在的 zigzag是什么意思,长什么样啊,发张图让我等学习一下不~~






/部分
#property indicator_chart_window
#property indicator_buffers 1
#property indicator_color1 White
//---- indicator parameters
extern int ExtDepth=5;
extern int ExtDeviation=3;
extern int ExtBackstep=1;
//---- indicator buffers
double ZigzagBuffer[];
double HighMapBuffer[];
double LowMapBuffer[];
int level=3; // recounting\'s depth
bool downloadhistory=false;
extern color 标记颜色=Black;
extern double 间隔比例=0.02;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+





int init()
  {
   IndicatorBuffers(3);
//---- drawing settings
   SetIndexStyle(0,3);
//---- indicator buffers mapping
   SetIndexBuffer(0,ZigzagBuffer);
   SetIndexBuffer(1,HighMapBuffer);
   SetIndexBuffer(2,LowMapBuffer);
   SetIndexEmptyValue(0,0.0);

//---- indicator short name
   IndicatorShortName(\"ZigZag(\"+ExtDepth+\",\"+ExtDeviation+\",\"+ExtBackstep+\")\");
//---- initialization done
   return(0);
  }

来源: 2017年正在使用的zigzag指标

4

主题

9227

积分

0

精华

所有交易让市场验证

操盘专家

金钱
9227 美元
权重
8
发表于 2019-1-19 21:49 来自手机 | 显示全部楼层
消灭零回复
您需要登录后才可以回帖 登录 | 快捷注册(禁q号)

本版积分规则

QQ|黄金吧|黄金论坛|手机版|指标下载|非农|目录|交易危机

版权所有: ©2014-2021 fx3q.com Powered by Discuz! X3
浙ICP备: ICP14039028

浙公网安备 33011802001420号

风险提示:杠杆风险高,交易要谨慎 声明:坛友发言和回复均为个人观点,不代表论坛立场。
若有侵权请联系fx3q@qq.com删除

快速回复 返回顶部 返回列表