How do I close all orders at total profit in pips? - page 5

 
Renat Akhtyamov:

But I have my own ))))

I think with the commercialisation of this site, it's time to stop throwing around free source code.


Forum - for sharing experiences, opinions, open source. Closed source -> Market only.

 
Alekseu Fedotov:

No it isn't, a point is still a point.


try to open several positions with different volumes and different prices in MT5 with Netting
and exactly the same in MT4

and count pips with your function)

 
Vladimir Karputov:

Forum - for sharing experiences, opinions, open source code. Closed code -> Market only.

there you go.

ok

 
Taras Slobodyanik:

try in MT5 with netting to open several positions with different volumes and different prices
and exactly the same in MT4

and count the points with your function)


It doesn't matter what volume you open the poses with. A pip will still be a pip.

my respect.
 
Alekseu Fedotov:

It doesn't matter what volume you open the item with. A pip will remain a pip.

with respect.

i'm not saying that a pip will not be a pip)
i'm saying - that you're counting pips incorrectly...

The problem is "How do I close all orders at a total profit in pips?

you need to calculate the average(total) opening price of all positions, and from it determine the current points

i have a free product that calculates the total profit in pips and cache

 
Taras Slobodyanik:

I'm not saying a pip won't be a pip.)
I'm not saying that you're counting pips wrong...

Task - "How do I close all orders at a total profit in pips?

you need to calculate the average(total) opening price of all positions, and from it determine the current points

i have a free product that calculates the total profit in pips and cache

What does the average price have to do with it?

You can sum up the profit/loss in pips and it's ok.

Although, if the lots are different, then you are right.

On the other hand - the point value will be different for different currency pairs.

With a third - swap and commissions are not taken into account.

And CONCLUSION - should such a closure be necessary, because it could lead to an unexpected loss?

 
Taras Slobodyanik:

I'm not saying that a pip will not be a pip.)
I'm saying that you're counting pips wrong...

Task - "How do I close all orders at a total profit in pips?

you need to calculate the average(total) opening price of all positions, and from it determine the current points

i have a free product that calculates the total profit in pips and cache


you do not need to display theaverage(total)opening price, count pips.

try it with the calculator 40+(-15)+(-5), you get 20 and that's the average in pips

So what is wrong here?

 
Alekseu Fedotov:

No need to displaythe average(total)opening price, count points

Try 40+(-15)+(-5) with the calculator, you'll get 20 - that's the average in pips.

So what is wrong here?


Where should we put the average in points? What is its purpose and what is the use of it?

 
Renat Akhtyamov:

What does the average price have to do with it at all?

You may sum up the profit/loss in pips and that's OK.

Although, if the lots are different, then most likely YES, you are right.

On the other hand, the point value will also be different for different currency pairs.

From the third one, the swap and commissions are not taken into account.

and CONCLUSION - should such a closure be done, because it may lead to unexpected losses?

Exactly, you have to take it all into account - add up all the lots, all the opening prices, all the swaps and commissions...
and only then count points from this price.


Alekseu Fedotov:

You do not need to displayan average(total)opening price, count points.

You may use the calculator 40+(-15)+(-5) and you will get 20 pips.

So what's wrong here?

Did you compare the same deals in MT4 and in MT5 with netting?
 
Dmitry Fedoseev:

Where would you put this average in points? What is the point of it and what good is it?


Dima. You're one step away from a new discovery. Just be patient. Just kidding. But tolerance is definitely not enough.

Reason: