软件名称:[B]间隔指标 画间距线源码[MT4公式][/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/
软件语言:简体中文
授权方式:免费版
软件大小:0 Bytes
官方主页:Home Page
更新时间:2013-02-12 02:01:07
软件简介:
//+------------------------------------------------------------------+
//| 间隔指标.mq4 |
//| LIU SONG |
//| www.cxh99.com qq:262069696 |
//+------------------------------------------------------------------+
#property copyright "LIU SONG"
#property link www.cxh99.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);
}
[url=http://www.70822.com/soft/sort013/sort067/down-58468.html]间隔指标 画间距线源码[MT4公式][/url]