Custom Indicator - Problem with ObjectCreate in the past

 

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.

 
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.
 
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 :)
Reason: