Download MetaTrader 5

Custom Indicator - Problem with ObjectCreate in the past

To add comments, please log in or register
Piratone
38
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.

Simon Gniadkowski
Moderator
18023
Simon Gniadkowski  
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  
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