View Single Post
  #70 (permalink)  
Old 11-08-2007, 01:16 AM
luxinterior luxinterior is offline
Senior Member
 
Join Date: Nov 2006
Posts: 308
luxinterior is on a distinguished road
Hi

You might want to revise this line...

total = OrdersTotal();

as it returns ALL open orders not just the ones associated with your EA. Better to check for orders in the same currency and having the same magic number otherwise it throws your logic out.

Just an FYI

Good luck

Lux
__________________
Build An Expert Advisor. FREE E-course As Seen On TV
ForexArea.com
Users of Gap Trader from 'Forex-Assistant' MUST Read This
Reply With Quote