Thread: MQL4 Learning
View Single Post
  #745 (permalink)  
Old 07-08-2009, 11:54 AM
luxinterior luxinterior is offline
Senior Member
 
Join Date: Nov 2006
Posts: 308
luxinterior is on a distinguished road
You need to count the number of total orders for the current symbol that have the same magic number as the EA and if it's more than one don't open any more. Take a look in some EA's you already have and you'll find numerous examples of counting orders.

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