Download MetaTrader 5
To add comments, please log in or register
Speed up MQL5 Cloud Network. Install Strategy Tester Agent!
Piratone
38
Piratone 2014.08.21 18:07 

Hi,

i've a problem with ObjectCreate instruction; i must anchor a text object at every histogram in my customer indicator, but when i use this instruction :

ObjectCreate(Nome,OBJ_TEXT,windowIndex,Time[i],Buffer[i])

i've correct compiling, but i've effect only for time current like It doesn't recognize Time[i].

Thanks for suggest.

Simon Gniadkowski
Moderator
17963
Simon Gniadkowski 2014.08.21 19:29  
Piratone:

Hi,

i've a problem with ObjectCreate instruction; i must anchor a text object at every histogram in my customer indicator, but when i use this instruction :

ObjectCreate(Nome,OBJ_TEXT,windowIndex,Time[i],Buffer[i])

i've correct compiling, but i've effect only for time current like It doesn't recognize Time[i].

Thanks for suggest.

You are creating one Object whose name is Nome . . .  if you want several Object you need several names . . .  each Object must have a unique name.
Piratone
38
Piratone 2014.08.22 07:29  
RaptorUK:
You are creating one Object whose name is Nome . . .  if you want several Object you need several names . . .  each Object must have a unique name.


Thanks Raptor....it's right, now my indicator is ok :)
/
To add comments, please log in or register