Opened positions indicator [ ru ]

0
(0)
Name:
Opened positions indicator [ ru ]
Author: rainal (2009.11.23 14:41)
Downloaded: 2828
Download:
Opened positions indicator [ ru ] 1
 #_indicate_orders.mq4 (5.7 Kb) View

Description:

It shows a brief information about all of the positions opened.

It can be useful, if yours expert advisor trades many positions simultaneously.

During the debug of my expert advisor I have found that there is a problem to analyse all of the positions opened. It can be solved in the following way:

1) Positions should be grouped by direction

2) Profit and Loss positions should be separated visually.

3) The total profit/loss values of several positions should be grouped by direction

So, I have developed a function that solves this problem.

Image:

Opened positions indicator [ ru ] 2

The header contain: direction, number of positions with same direction, total volume, total profit. The same is for the positions.

You can find the function in the file attached, maybe it can be useful.

 

Editor's remark:

Note that it's a mirror translation of the original Russian version.

If you have any questions to the author, suggestions or comments, it's better to post them there.

If you have found this code useful for trading or educational purposes, don't forget to thank author

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?



Author: Forex Wiki Team
We are a team of highly experienced Forex Traders [2000-2023] who are dedicated to living life on our own terms. Our primary objective is to attain financial independence and freedom, and we have pursued self-education and gained extensive experience in the Forex market as our means to achieve a self-sustainable lifestyle.