for drawing the same objects for several times.

 

 thanks for syntax checker program .i will use it.

i have a big problem with objects.

dealed with it all week.

at the below program  

there are are two objects which were created with objectcreate function.

at the first tick (at start) ea understands the condition and draws first object and then the other object.

 but after drawing the objects when the same conditions occur "ea " doesn't draw them again.

 

what can i do to draw the same objects continiously when  the same conditions occur?

 

(on other saying  at every start() ,after understanding the condition  i want the ea to draw the same objects again and again.

their name can be changed no matter but the objects should repeat .


)

 

PS:I understand EA draws objects with their specific name and never draws   again with the same name


.how can it be solved to draw same typed objects again and again with or without  changing their name ?

 

 

 

 

 

 

 

 

 

//-------------------------------------------------------------------

//| expert initialization function                                   |

//+------------------------------------------------------------------+

 

 

int start()

 

{

CCI_10=iCCI(NULL,0,10,0,0);

 

if (CCI_10<0 && CCI_10<-15)

{

Satis_Zamani=1;

Alert("Satis_Zamani=1");

//////i want this object to be drawn at every same condition . 

ObjectCreate( "Satış Zamanı", OBJ_ARROW,NULL,iTime(NULL,0,0),Bid);

 

 

 

}

 

 

if (CCI_10>0 && CCI_10>15)

{

Alis_Zamani=1;

Alert("Alis_Zamani=1");

 

///////i want this object to be drawn at every same condition . 

ObjectCreate( "Alış Zamanı", OBJ_ARROW,NULL,iTime(NULL,0,0),Bid);

}

 

 

return ;

}

 
 
pascalboy:

 thanks for syntax checker program .i will use it.

i have a big problem with objects.

dealed with it all week.

at the below program  

there are are two objects which were created with objectcreate function.

at the first tick (at start) ea understands the condition and draws first object and then the other object.

 but after drawing the objects when the same conditions occur "ea " doesn't draw them again.

 

what can i do to draw the same objects continiously when  the same conditions occur?

 

(on other saying  at every start() ,after understanding the condition  i want the ea to draw the same objects again and again.

their name can be changed no matter but the objects should repeat .

)

 

PS:I understand EA draws objects with their specific name and never draws   again with the same name

.how can it be solved to draw same typed objects again and again with or without  changing their name ?


Add a number to the name of the Object and for each new Object with the same name increment the number . . .  Alış Zamanı1,  Alış Zamanı2,  Alış Zamanı3,  Alış Zamanı4,  Alış Zamanı5,  etc. 
 
ObjectCreate( "Satış Zamanı", OBJ_ARROW,NULL,iTime(NULL,0,0),Bid);
  1. The names must be unique to display multiple objects. You can use a running count. Or "Satış Zamanı"+Time[0]
  2. Why are you using a function call iTime(NULL,0,0) instead of the quicker, more understandable Time[0]?
  3. Always use SRC
 

how can a "running count" work at  this situation?

Can you give  an example for it? 

 
pascalboy: how can a "running count" work at  this situation? Can you give  an example for it? 
When in doubt, T H I N K !!
int count;
int start(){
   count++;
   if (!ObjectCreate(name+count, ...);