Preventing multiple trades on the same bar

 

I have several EAs developped but one problem plagues them. During backtesting I have good initial entering and stops from the trailing stop however many times the same bar trips a new entry and 50% of the time a loss because of this erroneus entry signal. Any ideas on how to prevent re-entry into the same bar??? You help is greatly appreciated. Good trading to all!!!!!

 
You can try to put your source code at https://www.mql5.com/forum/en so other MQL4 programmers could help you.
Reason: