Custom Indicator Labling Problem.

 

I created a custom indicator with seperate window

but when i try to create object in that window i was unable to create it.

meanwhile object created in above windows screenshot included.


IWI = WindowFind("MInfo");
if ( ObjectFind("Symbol Lable") != 0 )
{
ObjectCreate( "Symbol Lable", OBJ_LABEL, IWI, 0, 0 );
ObjectSetText("Symbol Lable","Just Checking the Positions", 14, "Arial", Red);
ObjectSet( "Symbol Lable", OBJPROP_XDISTANCE, 30 );
ObjectSet( "Symbol Lable", OBJPROP_YDISTANCE, 20 );
ObjectSet( "Symbol Lable", OBJPROP_BACK, true );
}else{
ObjectSetText("Symbol Lable","Just Checking the Positions", 14, "Arial", Red);
ObjectSet( "Symbol Lable", OBJPROP_XDISTANCE, 30 );
ObjectSet( "Symbol Lable", OBJPROP_YDISTANCE, 20 );
}

when creating the object i try to use the index of that windows please analyze the code. the code compiles perfectly .