交易危机

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

QQ登录

只需一步,快速开始

搜索
广告位
查看: 1877|回复: 5
打印 上一主题 下一主题

[指标] 高手帮注释一下写的是舍意思?

[复制链接]

7

主题

146

积分

0

精华

见习操盘手

金钱
146 美元
权重
0
跳转到指定楼层
楼主
发表于 2018-3-11 11:15 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
#property indicator_buffers 6
#property indicator_color1 Black
#property indicator_color2 MediumBlue
#property indicator_color3 Yellow
#property indicator_color4 MediumBlue
#property indicator_color5 Green
#property indicator_color6 Red
#property indicator_separate_window

extern int RSI_Period = 13;         //8-25
extern int RSI_Price = MODE_CLOSE;           //0-6
extern int Volatility_Band = 34;    //20-40
extern int RSI_Price_Line = 2;      
extern int RSI_Price_Type = MODE_SMA;      //0-3
extern int Trade_Signal_Line = 7;   
extern int Trade_Signal_Type = MODE_SMA;   //0-3
extern bool UseAlerts = false;

double RSIBuf[],UpZone[],MdZone[],DnZone[],MaBuf[],MbBuf[];

int AlertPlayedonBar = 0;

int init()
  {
   IndicatorShortName("Traders Dynamic Index");
   SetIndexBuffer(0,RSIBuf);
   SetIndexBuffer(1,UpZone);
   SetIndexBuffer(2,MdZone);
   SetIndexBuffer(3,DnZone);
   SetIndexBuffer(4,MaBuf);
   SetIndexBuffer(5,MbBuf);
   
   SetIndexStyle(0,DRAW_NONE);
   SetIndexStyle(1,DRAW_LINE);
   SetIndexStyle(2,DRAW_LINE,0,2);
   SetIndexStyle(3,DRAW_LINE);
   SetIndexStyle(4,DRAW_LINE,0,2);
   SetIndexStyle(5,DRAW_LINE,0,2);
   
   SetIndexLabel(0,NULL);
   SetIndexLabel(1,"VB High");
   SetIndexLabel(2,"Market Base Line");
   SetIndexLabel(3,"VB Low");
   SetIndexLabel(4,"RSI Price Line");
   SetIndexLabel(5,"Trade Signal Line");

   SetLevelValue(0,50);
   
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 转播转播 分享分享 分享淘帖 支持支持 保留保留

32

主题

2936

积分

0

精华

中级操盘手

金钱
2936 美元
权重
0
沙发
发表于 2018-3-11 11:34 | 只看该作者
????
回复

使用道具 举报

130

主题

9785

积分

0

精华

操盘专家

金钱
9785 美元
权重
0
板凳
发表于 2018-3-11 11:58 | 只看该作者
指标代码,贴出完整的啊
装死

203

主题

1万

积分

0

精华

操盘专家

金钱
12664 美元
权重
14
地板
发表于 2018-3-11 13:56 | 只看该作者
人生如戏 全凭演技
回复

使用道具 举报

30

主题

1万

积分

0

精华

操盘专家

金钱
13785 美元
权重
1
5
发表于 2018-3-11 20:49 | 只看该作者
定义了几条线,与RSI有关的。其他看不出来……

32

主题

1万

积分

2

精华

操盘专家

金钱
12422 美元
权重
12
6
发表于 2018-3-12 10:30 | 只看该作者
不懂代码
您需要登录后才可以回帖 登录 | 快捷注册(禁q号)

本版积分规则

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

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

浙公网安备 33011802001420号

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

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