It's better to set coordinates after object is created.
void CreateObject(){ ObjectCreate(0,"Trade",OBJ_TEXT,0,0,0); int first=(int)ChartGetInteger(0,CHART_FIRST_VISIBLE_BAR)-3; double max=WindowPriceMax()-50*Point; ObjectSetInteger(0,"Trade",OBJPROP_TIME1,Time[first]); ObjectSetDouble(0,"Trade",OBJPROP_PRICE1,max); ObjectSetText("Trade","Buy",9,"Arial",clrBlue); ObjectSetDouble(0,"Trade",OBJPROP_ANGLE,ALIGN_LEFT); }
Ernst Van Der Merwe:
Comment("\nShow it here: ",Trade)
It's better to set coordinates after object is created.
Mohammad Soubra:
Only works on label, button and edit objects.
You can also use the function similar to this below:
Mohammad Soubra:
how do i write this
You can also use the function similar to this below:

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello all, i am trying to work with text objects, i want to create and align a line of text to the top left, please tell me how i can do it
i tried this but nothing showed up
and am putting the code in an indicator, not an EA