Thread: How to code?
View Single Post
  #1475 (permalink)  
Old 12-03-2008, 02:38 AM
Limstylz Limstylz is offline
Senior Member
 
Join Date: Aug 2008
Location: London
Posts: 138
Limstylz is on a distinguished road
Total long and short positions

Hi Everyone,

Can someone please advise me how to programatically find the total number of long positions open and the total number of short postions open in MT4? I do not want the total number of all positions open together. My requirement is that I keep the same number of short and long positions open at the same time. eg:

Lets say I have a user-defined number of trades which are open concurrently, with an equal number of long and short positions. Some short and long positions close. I need to reopen an equal amount of short and long positions up to the user-defined limit.

Thanks in advance
Reply With Quote