|
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
|