bool ObjectSet(string name, int index, double value)
Changes the value of the specified object property. If the function succeeds,
the returned value will be TRUE. Otherwise, it will be FALSE. To get the
detailed error information, one has to call the GetLastError() function.
指定したオブジェクトのプロパティ値を変更します。正常終了した場合、返される値は TURE になります。それ以外の場合、FALSE になります。詳細なエラー情報を取得するには、GetLastError() を呼び出します。
参照 ObjectGet() 関数
Parameters: パラメータ:
| name |
- |
Object name. オブジェクトの名前。 |
| index |
- |
オブジェクト値のインデックス。オブジェクト プロパティの列挙値のいずれかを指定できます。 |
| value |
- |
New value of the given property. 指定したプロパティの新しい値。 |
|
Sample: サンプル: // moving the first coord to the last bar time
ObjectSet("MyTrend", OBJPROP_TIME1, Time[0]);
// setting the second fibo level
ObjectSet("MyFibo", OBJPROP_FIRSTLEVEL+1, 1.234);
// setting object visibility. object will be shown only on 15 minute and 1 hour charts
ObjectSet("MyObject", OBJPROP_TIMEFRAMES, OBJ_PERIOD_M15 | OBJ_PERIOD_H1);
|