指定したオブジェクトの値(プロパティ)を取得する。
double ObjectGet(①string object_name,②int index);
①string object_name
オブジェクト名。
②int index
オブジェクトプロパティインデックス。
int init()
{
ObjectCreate("obj01",OBJ_ARROW,0,0,0);
ObjectMove("obj01",0,Time[5],Low[5]);
ObjectSet("obj01", OBJPROP_ARROWCODE, 233);
ObjectSet("obj01", OBJPROP_WIDTH,5);
ObjectSet("obj01", OBJPROP_COLOR, Red);
string obj_name = ObjectName(0);
Print("オブジェクト名:"+obj_name);
double obj_price = ObjectGet(obj_name,OBJPROP_PRICE1);
Print("オブジェクト価格:"+obj_price);
return(0);
}