Multi Time Frame EA Problem

 

hi everyone

so here is the problem 

I wrote a Multi Time Frame EA that can open orders in any time frame 

but the problem is my code wanted to tell EA check if any order was opened before 

if not Send Order ()

if there is order already : check how many second has passed since last order open time then after 

a 900 or 3600 second you can open another position

so here is the code  

 

but the problem is ea does not follow the rules and open too many position 

 
OrderMagicNumber() != ORDER_MAGIC || OrderComment() != ORDER_COMMENT  ||

These are enums, not only that, they are MQL5 enums!

They have no place in your code.