- 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.
- AccountBalance * percent/100 = RISK = OrderLots * (|OrderOpenPrice - OrderStopLoss| * DeltaPerLot + CommissionPerLot) (Note OOP-OSL includes the spread, and DeltaPerLot is usually around $10/pip but it takes account of the exchange rates of the pair vs. your account currency.)
-
Do NOT use TickValue by itself - DeltaPerLot and
verify that MODE_TICKVALUE is returning a value in your deposit currency,
as promised by the documentation, or whether it is returning a value in the
instrument's base currency.
MODE_TICKVALUE is not reliable on non-fx instruments with many brokers. - You must normalize lots properly and check against min and max.
- You must also check FreeMargin to avoid stop out
Hi im making my own "indicator" to calculate lot quantity so i can handle fast trades witouth using calculator.
An example, i got following:
Dax30
ASK: 12000.00
Tick value: 0.1
Tick size: 0.1
Stop loss pip: 1000 (11990.00)
Risk percentage: 3%
Balance: 250€
Stop loss max risk: 7,5€
Cost per pip: 0,0075€
Leverage: 30
Can you please share me the formula how to calculate the the lot quantity. Thanks.