//+------------------------------------------------------------------+
//| ¼ä¸ôÖ¸±ê.mq4 |
//| LIU SONG |
//| liusongwh@qq.com qq:569638390 |
//+------------------------------------------------------------------+
#property copyright "LIU SONG"
#property link "liusongwh@qq.com qq:569638390"
#property indicator_chart_window
extern int LineLength = 20;
extern bool fanxiang=false;
extern int shuliang = 5;
extern int move = 0;
extern int xiankuan = 1;
extern color cRS1 = Aqua;
int deinit() {
Delete();
return (0);
}
int start()
{
if(!fanxiang){
for (int i = 0; i< shuliang;i++) {
ObjectCreate("¼ä¾à"+i,OBJ_VLINE, 0,Time[move+LineLength*i],0);
ObjectSet("¼ä¾à"+i, OBJPROP_STYLE, 2);
ObjectSet("¼ä¾à"+i, OBJPROP_WIDTH, xiankuan);
ObjectSet("¼ä¾à"+i, OBJPROP_COLOR, cRS1);
}
}
else{
for (int f = 0; f< shuliang;f++) {
ObjectCreate("¼ä¾à"+f,OBJ_VLINE, 0,Time[move]+(Time[1]-Time[2])*f*LineLength,0);
ObjectSet("¼ä¾à"+f, OBJPROP_STYLE, 2);
ObjectSet("¼ä¾à"+f, OBJPROP_WIDTH, xiankuan);
ObjectSet("¼ä¾à"+f, OBJPROP_COLOR, cRS1);
}
}
return(0);
}
//+------------------------------------------------------------------+
void Delete(){
for (int i = 0; i< shuliang;i++) {
ObjectDelete("¼ä¾à"+i);
ObjectDelete("¼ä¾à"+i);
ObjectDelete("¼ä¾à"+i);
ObjectDelete("¼ä¾à"+i);
}
return (0);
}
Comments