stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Pips conundrum
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3404
Page 1 of 1
Author:  sergiensergien [ Thu Jan 23, 2014 2:34 pm ]
Post subject:  Pips conundrum

Hi!

I've been trying to get around this small problem to try to code some basket strategies. Let's think we have two orders in a basket at the same time:
  • Order 1: EURUSD - BUY 1 lot with a loss of 100€
  • Order 2: EURUSD - SELL 2 lots with a profit of 200€

So the total profit/loss is +100€ (I'm not counting swaps nor commissions).

Let's see the result in pips:
  • Order 1: EURUSD - BUY 1 lot with a loss of 10 pips
  • Order 2: EURUSD - SELL 2 lots with a profit of 10 pips

So the total profit/loss is +0 pips.

Is this logic sound?

I've been looking through both the code of the MPTM and MPBM and in both cases the total sum of pips seems to follow this logic.

Best regards,
Sergien
Author:  phil_trade [ Thu Jan 23, 2014 2:44 pm ]
Post subject:  Re: Pips conundrum

sergiensergien » 8 minutes ago wrote:Hi!

I've been trying to get around this small problem to try to code some basket strategies. Let's think we have two orders in a basket at the same time:
  • Order 1: EURUSD - BUY 1 lot with a loss of 100€
  • Order 2: EURUSD - SELL 2 lots with a profit of 200€

So the total profit/loss is +100€ (I'm not counting swaps nor commissions).

Let's see the result in pips:
  • Order 1: EURUSD - BUY 1 lot with a loss of 10 pips
  • Order 2: EURUSD - SELL 2 lots with a profit of 10 pips

So the total profit/loss is +0 pips.

Is this logic sound?

I've been looking through both the code of the MPTM and MPBM and in both cases the total sum of pips seems to follow this logic.

Best regards,
Sergien
Hi

Of course it's logic, cause Profit $ is Pips * Volume !

cheers

Philippe
Author:  sergiensergien [ Thu Jan 23, 2014 3:00 pm ]
Post subject:  Re: Pips conundrum

Thanks, Phil!

Now I understand why Steve put all the "percentage" logic into the code of the basket part of the MPTM.

B&KR,
Sergio
All times are UTC Page 1 of 1