I asked you to answer the same simple question twice . . . you haven't and you are still asking for help . . . why won't you help those trying to help you ?
RaptorUK:
I asked you to answer the same simple question twice . . . you haven't and you are still asking for help . . . why won't you help those trying to help you ?
Sorry, because I did not understand your question before, :-). I just tried to modify existed code I found from internet.
where are you trying to place the Object ? I want to place a TEXT in the sub-window, so I used 1, and when price close, then buffer[0], is the following code right?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Thanks,
it still doesn't work.
Thanks for your reply, I set "sub-window" is 1, but it still did not display name.
{ int width = 0; int i =0; if(0 > StringFind(Symbol(), "USD", 0)) width = 1; else width = Line_Thickness; SetIndexStyle(0, DRAW_LINE, DRAW_LINE, width, Color_USD); SetIndexBuffer(0, arrUSD); SetIndexLabel(0, "USD"); //string name = "text_object"; //if(ObjectFind(name) != -1) ObjectDelete(name); ObjectCreate( "name",OBJ_TEXT,1,Time[0],arrUSD[0]+5*Point); //ObjectCreate( name,OBJ_TEXT,WindowFind("name"),Time[0],arrUSD[0]+5*Point); //ObjectCreate( "name",OBJ_TEXT,1,0,arrUSD[0]+5*Point); //ObjectSetText("name",DoubleToStr(arrUSD[0],Digits)+" USD",10,"Tahoma",Gold); //ObjectSet("name", OBJPROP_XDISTANCE, 100); //ObjectSet("name", OBJPROP_YDISTANCE, 100); ObjectSetText("name","USD",10,"Tahoma",Gold); }Read the documentation . . . it is obvious you still haven't.
:-(
:-(
I asked you to answer the same simple question twice . . . you haven't and you are still asking for help . . . why won't you help those trying to help you ?
Sorry, because I did not understand your question before, :-). I just tried to modify existed code I found from internet.
where are you trying to place the Object ? I want to place a TEXT in the sub-window, so I used 1, and when price close, then buffer[0], is the following code right?
Thanks!
Thanks for your reply, I set "sub-window" is 1, but it still did not display name.
In your posted code you do not assign a value to arrUSD[0]
Why +5*Point ?
It is not clear whether your code is in init() or start()
Make sure that an object is only created once in your code, if you try to create an object with the same name, you will get an error.
Create the object once and then use ObjectMove.
In your posted code you do not assign a value to arrUSD[0]
Why +5*Point ?
It is not clear whether your code is in init() or start()
Make sure that an object is only created once in your code, if you try to create an object with the same name, you will get an error.
Create the object once and then use ObjectMove.