当前位置:首页 > MT4公式 > 内容

间隔指标 画间距线源码[MT4公式]

作者:公式指标网   更新时间:2015-10-22   点击:

//+------------------------------------------------------------------+
 //|                                                     间隔指标.mq4 |
 //|                                          LIU                SONG |
 //|                         www.gszb.com            qq:262069696 |
 //+------------------------------------------------------------------+
 #property copyright "LIU                SONG"
 #property link      www.gszb.com            qq:262069696"

#property indicator_chart_window
 extern int LineLength = 20;
 extern int shuliang   = 5;
 extern int move       = 0;
 extern int xiankuan   = 1;
 extern color cRS1 = Aqua;

int deinit() {
    Delete();
    return (0);
 }

int start()
   {
  
  
  for (int i = 0; i< shuliang;i++) {
           
    ObjectCreate("间距"+i,OBJ_VLINE, 0, Time[move+LineLength*i],0);
    ObjectSet("间距"+i, OBJPROP_STYLE, STYLE_SOLID);
    ObjectSet("间距"+i, OBJPROP_WIDTH, xiankuan);
    ObjectSet("间距"+i, OBJPROP_COLOR, cRS1);
      }
    return(0);
   }
 //+------------------------------------------------------------------+
 void  Delete(){
    for (int i = 0; i< shuliang;i++) {
    ObjectDelete("间距"+i);
    ObjectDelete("间距"+i);
    ObjectDelete("间距"+i);
    ObjectDelete("间距"+i);
     }
    return (0);
   
    }

间隔指标 画间距线源码[MT4公式]

间隔指标 画间距线源码[MT4公式]

资源下载

相关文章

热门推荐

移动端首页 | PC端

© by gszx.com.cn Mobile Web