- bool ArrowLeftPriceCreate(const long chart_ID=0,
- const string name="LeftPrice",
- const int sub_window=0,
- datetime time=0,
- double price=0,
- const color clr=clrRed,
- const ENUM_LINE_STYLE style=STYLE_SOLID,
- const int width=1,
- const bool back=false,
- const bool selection=true,
- const bool hidden=true,
- const long z_order=0)
- {
- ChangeArrowEmptyPoint(time,price);
- ResetLastError();
- if(!ObjectCreate(chart_ID,name,OBJ_ARROW_LEFT_PRICE,sub_window,time,price))
- {
- Print(__FUNCTION__,
- ": failed to create the left price label! Error code = ",GetLastError());
- return(false);
- }
- ObjectSetInteger(chart_ID,name,OBJPROP_COLOR,clr);
- ObjectSetInteger(chart_ID,name,OBJPROP_STYLE,style);
- ObjectSetInteger(chart_ID,name,OBJPROP_WIDTH,width);
- ObjectSetInteger(chart_ID,name,OBJPROP_BACK,back);
- ObjectSetInteger(chart_ID,name,OBJPROP_SELECTABLE,selection);
- ObjectSetInteger(chart_ID,name,OBJPROP_SELECTED,selection);
- ObjectSetInteger(chart_ID,name,OBJPROP_HIDDEN,hidden);
- ObjectSetInteger(chart_ID,name,OBJPROP_ZORDER,z_order);
- return(true);
- }
复制代码
|