Handing Open Order

 
I have a problem to make order in EA. When a signal occur i want EA open order only in open price bar. But after take profit and bar not close yet, my EA open order again. So help me to make EA only open order in open price and not open again in same bar. I want only open in red line and not open again in blue line.
 
Only check for conditions to open a trade at the open of a new bar
 

GumRai:
Only check for conditions to open a trade at the open of a new bar

Thanks for your help. 

Reason: