|
|
void W_Creat_Label_Spread()
{
double double_点差 = (Ask - Bid) / Point ;
string str_点差 = Symbol() + ": " + DoubleToString(double_点差, 1) + " 点" ;
if(ObjectFind("Spread") < 0)
{
ObjectCreate("Spread", OBJ_LABEL, 0, 0, 0, 0, 0, 0, 0);
ObjectSet("Spread", OBJPROP_CORNER, CORNER_RIGHT_UPPER);//1
ObjectSet("Spread", OBJPROP_XDISTANCE, 10.0);
ObjectSet("Spread", OBJPROP_YDISTANCE, 230.0);
ObjectSetText("Spread", str_点差, 10, "Arial", White);
}
else
{
ObjectSetText("Spread", str_点差, 10, "Arial", White);
WindowRedraw();
}
}复制代码 |
|