您需要 登录 才可以下载或查看,没有帐号?注册
//+------------------------------------------------------------------+
//| 间隔指标.mq4 |
//| |
//| |
//+------------------------------------------------------------------+
#property copyright
#property link
#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);
}
外汇交易有很大的风险性,本站所有资源均来自网络,请选择使用,如若出现亏损,本站不承担任何责任!