Why tooltip doesn’t show up during indicator backtest totally clueless.
For vertical line changing position during backtesting one to another issue. Here is the code:
for(int ml=0;ml <200; ml++)
{
MTemp[ml] = Calculation;
for(int pl=0; pl < 9; pl++)
{
if(Conditions)
{
datetime dt1 = (ND + (ml*300));
Object_VLine ("objectvline"+IntegerToString(pl),pl,dt1,Stl0,width2,"Level",Name[pl],Col17,"level");
}
}
}
//---Seperate Void function for drawing Vlines -----//
void Object_VLine ( string Name1, int Name2, datetime V_Time, int style, int o_width,string first_text, string second_text, color o_col,string aname)
{
string asp1;
StringConcatenate(asp1,IntegerToString(Name2),Name1);
Obj_Name = asp1;
ObjectCreate(CI,Obj_Name,OBJ_VLINE,0,V_Time,0);
ObjectSetInteger(CI,Obj_Name, OBJPROP_COLOR,o_col);
ObjectSetInteger(CI,Obj_Name, OBJPROP_STYLE,style);
ObjectSetInteger(CI,Obj_Name,OBJPROP_WIDTH, o_width);
ObjectSetInteger(CI,Obj_Name, OBJPROP_BACK,ObjOnBckgrnd);
ObjectSetInteger(CI,Obj_Name, OBJPROP_SELECTABLE,objectselectable);
ObjectSetInteger(CI,Obj_Name, OBJPROP_HIDDEN,objecthidden);
ObjectSetInteger(CI,Obj_Name,OBJPROP_READONLY,ObjReadOnly);
string as1,aspp1;
StringConcatenate(as1,first_text,second_text);
ObjectSetString(CI,Obj_Name,OBJPROP_TEXT,as1);
StringConcatenate(aspp1,second_text,aname,TimeToString(V_Time,TIME_MINUTES));
ObjectSetString(CI,Obj_Name,OBJPROP_TOOLTIP,aspp1);
ObjectMove(CI,Obj_Name,0,V_Time,0);
ObjectMove(CI,Obj_Name,1,V_Time,0);
}
not sure why its behaving such strangely.