ObjectSetInteger( "MyLabel", 0, Time[0], Close[0]); // Current Time, Current Price
You need to include the property that you are modifying.
Time can be modified by an integer,
price usually requires a double, so use ObjectSetDouble() for price
Why not use ObjectMove ?
Sorry... paste wrong... this is the right... But not works!
... ObjectSetText( "MyLabel", "My Text on label", 12, "Times New Roman", clrRed); ObjectMove( "MyLabel", 0, Time[0], Close[0]); // Current Time, Current Price... Right!?! return(rates_total)
Need to move at the example on the image below and keep it at right of the current bar
GumRai:
Sorry,
I failed to notice that you had actually created a label.
A label is anchored by pixels. You need OBJ_TEXT to anchor with time and price
Tx my friend... works fine now!
Hello
Can I ask how you anchor the text with time and price. I thinking of displaying the bid price to it.
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
Hi, i need to move an label object to the current price position but not works... please see the code:
return(rates_total); }