int obj_total = ObjectsTotal();
ArrayResize(VlineTimeArray, obj_total);
ArrayResize(HlineArrayPrice, obj_total);
ArrayResize(TrendArrayPrice, obj_total);
VlineTimeArray[0]=NULL;
HlineArrayPrice[0]=NULL;
TrendArrayPrice[0]=NULL;
string name,text; int i, j;
for(i = 0; i < obj_total; i++)
{
name = ObjectName(i);
if(ObjectType(name) == OBJ_VLINE) {
VlineTimeArray[VlineCount]=ObjectGet(name,OBJPROP_TIME1);
VlineCount++;
}if(ObjectType(name) == OBJ_HLINE) {
HlineArrayPrice[HlineCount]=ObjectGet(name,OBJPROP_PRICE1);
HlineCount++;
}
if(ObjectType(name)==OBJ_TREND) //ObjectGetValueByShift {
TrendArrayPrice[TrendCount]=ObjectGetValueByShift(name,0);
TrendCount++; }
}//for(i = 0; i < obj_total;
i++)VlineBar=iBarShift(Symbol(),0,VlineTimeArray[0],true);
HlineBar=HlineArrayPrice[0];
if(显示开关) {
//_Show(\订单号,0,200,0);
_ShowStr(\划线文字X位置,划线文字Y位置);
_Show(\划线文字X位置,划线文字Y位置+20,文字颜色);
_Show(\划线文字X位置,划线文字Y位置+40,文字颜色);
_Show(\划线文字X位置,划线文字Y位置+60,文字颜色); }
if(!显示开关) {
// ObjectDelete(\
ObjectDelete(\
ObjectDelete(\
ObjectDelete(\
ObjectDelete(\ }}
//====================================================================================== 4 在屏幕上显示自定义文字_show() 可以用来 显示 整形 double 数据
_showStr() 可以用来显示字符串可以见3 中的使用方法
//======================================================================================
void _Show(string Str,double dTemp,int dNum,int xOffset,int
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库外汇MT4编程:一种画线数值的编写方法(3)在线全文阅读。
相关推荐: