国内新闻
我做的指标想用粗线代码应该怎么写?
2019-01-12 01:36  浏览:80
马上注册,结交更多好友,下载更多资源

您需要 登录 才可以下载或查看,没有帐号?注册 下面的代码画出的是细线,我想要粗线怎么写??
 
 #property indicator_chart_window
 #property indicator_buffers 3
 #property indicator_color1 Red
 #property indicator_color2 Yellow
 #property indicator_color3 Aqua //蓝线
 extern int ma01=5,ma02=10,ma03=60;
 double ma01line[],ma02line[],ma03line[];
 
 //+------------------------------------------------------------------+
 //| expert initialization function                       |
 //+------------------------------------------------------------------+
 int init()
    {
 //----
   SetIndexBuffer(0,ma01line);
   SetIndexBuffer(1,ma02line);
   SetIndexBuffer(2,ma03line);
   SetIndexStyle(0,DRAW_LINE);
   SetIndexStyle(1,DRAW_LINE);
   SetIndexStyle(2,DRAW_LINE);
   SetIndexDrawBegin(0,ma01);
   SetIndexDrawBegin(0,ma02);
   SetIndexDrawBegin(0,ma03);
   IndicatorDigits(Digits);
 //----
   return(0);
    }
外汇交易有很大的风险性,本站所有资源均来自网络,请选择使用,如若出现亏损,本站不承担任何责任!

发表评论
0评