Lot Size/Volume Calculation Issue Using Open API
Lot Size/Volume Calculation Issue Using Open API
29 Apr 2023, 17:25
Hi,
I am using Open API and C# for trading solution development and I need to calculate this volume for Trade .
Below is what I am using to calculate the volume and it is working fine for Forex Market But Fails for other Market Like Crypto.
if I have Given 200 in Stop Loss when Creating Position using Ctrader I am Getting relativeStopLoss = 2000000 for BTCUSD and if I have given Stop Loss 200 I am Receiving 2000 For EURUSD why there is difference between both Symbols ?
StopLossDistanceInPIP = RelativeStopLoss / 10
TradeAmount = Balance * (RiskPercentageForTrade / 100)
TradeVolume= ((TradeAmount / StopLossDistanceInPIP) / SymbolPipValue);