View Single Post
  #4 (permalink)  
Old 10-31-2005, 07:20 PM
yaniv_av yaniv_av is offline
Member
 
Join Date: Oct 2005
Posts: 34
yaniv_av is on a distinguished road
Basic question ...

Hi,
I'm new with MetaTrader and have a basic question:

I want to limit the open positions in my expert-advisor to only 1 position at a time - but I want that limitation per symbol, so if I'll run another expert-advisor on another symbol, It will open a new position on that symbol.
In another words, I want to be able to open 1 positions for all the symbols, but not more than 1 position for a symbol (And I'm talking about many expert-advisor on many symbols...)
How can I do It ?

I saw the "totaltrades" function, but from the documentation I understood that this function applys to the account and not for the current symbol,
so "if totaltrades=1 then exit;" will cause to 1 position at a time for all the symbols...

10X !
Reply With Quote