- #include <Errors.mqh>
-
- int start()
- {
-
- bool fm;
- double UpLevelPrice=ObjectGet("UP_LEVEL",OBJPROP_PRICE1);
- double DownLevelPrice=ObjectGet("DOWN_LEVEL",OBJPROP_PRICE1);
- int Rasst=(UpLevelPrice-DownLevelPrice)/Point;
- fm=ObjectCreate("DIAPAZON",OBJ_LABEL,0,0,0);
- if(fm==0 || fm==-1){GeneralError();}
- fm=ObjectSetText("DIAPAZON","Канал = "+Rasst+" pt.",24,"Verdana",Blue);
- if(fm==0 || fm==-1){GeneralError();}
- fm=ObjectSet("DIAPAZON",OBJPROP_CORNER,0);
- if(fm==0 || fm==-1){GeneralError();}
- fm=ObjectSet("DIAPAZON",OBJPROP_XDISTANCE,350);
- if(fm==0 || fm==-1){GeneralError();}
- fm=ObjectSet("DIAPAZON",OBJPROP_YDISTANCE,315);
- if(fm==0 || fm==-1){GeneralError();}
- // ------------------------------------------------------------------
- Sleep(5000);
-
- fm=ObjectDelete("DIAPAZON");
- if(fm==0 || fm==-1){GeneralError();}
- }
复制代码
|