首页 > > 详细

代编MT4程序化交易指标公式、公式选股代做、代做公式选股、间隔指标 画间距线源码

增加往前画线要求 添加反向画线需求 fanxiang=true 时反向画线
源码:
//+------------------------------------------------------------------+
//| 间隔指标.mq4 |
//|LIUSONG |
//| qq: |
//+------------------------------------------------------------------+
#property copyright "LIUSONG"
#property linkqq:"
#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);
}
//+------------------------------------------------------------------+
voidDelete(){
for (int i = 0;
i< shuliang;
i++) {
ObjectDelete("间距"+i);
ObjectDelete("间距"+i);
ObjectDelete("间距"+i);
ObjectDelete("间距"+i);
}
return (0);


 

联系我们 - QQ: 88652583
© 2014 www.93stock.com
代写选股公式网!
声明:警惕假冒分子冒充本站提供证券咨询服务,选股公式网为非证券咨询机构,本站不提供有关股评、投资分析报告、股市预测,证券咨询等服务。本站仅提供股票、期货、黄金、外汇的软件技术交流与分享。本站文章为互联网文章,其仅供参考,并不构成投资建议。