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.
how can a "running count" work at this situation?
Can you give an example for it?
int count; int start(){ count++; if (!ObjectCreate(name+count, ...);
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
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 ;
}