EA - Open trade if current candle has met conditions; check every new candle - page 2

 
bool isSignalCond() {
   string objname="nameOfObject";
   if (ObjectFind(objname) != -1){
   string txt=ObjectDescription(objname);
   int index=StringFind(txt, "keyword", 0);
   if(index!=-1){
          return(true);
          }else {
          return(false);
          }return (false);}
}

The rest of the signal conditions are like this.

I'm trying to identify if a word comes up in a specific object on the screen. 

 
raidenfx:

The rest of the signal conditions are like this.

I'm trying to identify if a word comes up in a specific object on the screen. 

OK,  so check the datetime of the Object,  check the OrderOpenTime() for the last Orders and if you have already opened an Order based on these Objects don't open  another . . .
 

That sounds like a good idea.

So, I need to create a new function to check the datetime of the object, and then on the start function only open trade if datetime of the object is different than OrderOpenTime of last orders?

How can I make that first function? Make a similar function to isSignalCond and make it return datetime?

 

Thank you 

 
I'm having the exact same problem. I've tried the same solution but it still is opening trades in both candles.

Any hints?
 
134f:
I'm having the exact same problem. I've tried the same solution but it still is opening trades in both candles.

Any hints?
Start your own thread and show your code.
Reason: