# What volume is needed to earn a specific amount?

26

I need help with a formula for an expert adviser that I am creating.

I need to earn \$17.00 from an increase of 8 Pips.

In a recent trade, I lost \$12.17 by loosing 6.12 Pips trading a volume of 80000 units.

What volume do I need to purchase to earn exactly \$15.00 from a Pip gain of 8 Pips?
168

Uhm ? If I am not mistaken,

\$15.00 / 8Pips = \$1.875 per Pip

\$1.875 per Pip / 1 Lot (\$10.00) = 0.1875 Lot

Because:

1 Lot = \$10.00; 0.1 Lot = \$1.00; 0.01 Lot = \$0.10

0.1875 Lot = \$1.875 (x 1 Lot = \$10.00)

\$1.875 * 8Pips = \$15.00

But this is clearly not the way you want to deal the market.

16080

 deklin: What volume do I need to purchase to earn exactly \$15.00 from a Pip gain of 8 Pips? You place the stop where it needs to be - where the reason for the trade is no longer valid. E.g. trading a support bounce the stop goes below the support. Account Balance * percent = RISK = (OrderOpenPrice - OrderStopLoss)*DIR * OrderLots * DeltaPerlot (Note OOP-OSL includes the SPREAD) Do NOT use TickValue by itself - DeltaPerlot You must normalize lots properly and check against min and max. You must also check FreeMargin to avoid stop out