Hi guys im new to mql5, i was searching without success how to calculate dynamic the crypto lot sizes for different pairs, but cant find any info.
can someone point me the right direction or any docs about this?
Thanks
Great question! You can use fixed fractional position size (to limit risk as fixed percentage of acct balance).
For example, you have $10,000 account and you want to risk 2% per trade. The formula:
Lot Size = (Account Balance Risk Percentage) / (Price Stop Loss Distance)
Where:
- Account Balance = $10,000
- Risk Percentage = 0.02 (2%)
- Price = Current market price of the crypto pair
- Stop Loss Distance = The distance in pips from the current price to your stop loss level
SAMPLE:
If the price is $50,000 and SL=500 pips, the calculation would be:
Lot Size = ($10,000 0.02) / ($50,000 0.00005)
Lot Size = $200 / $2.50
Lot Size = 0.08 lots
With current BTCUSD price ~$65,000 and a stop loss distance of 500 pips - fixed lot size would be 0.0615 lots (2% risk per trade).
For a truly dynamic lot size calculation - additionally need to take into account the volatility of the market (lot-size would be much smaller).
Great question! You can use fixed fractional position size (to limit risk as fixed percentage of acct balance).
For example, you have $10,000 account and you want to risk 2% per trade. The formula:
Lot Size = (Account Balance Risk Percentage) / (Price Stop Loss Distance)
Where:
- Account Balance = $10,000
- Risk Percentage = 0.02 (2%)
- Price = Current market price of the crypto pair
- Stop Loss Distance = The distance in pips from the current price to your stop loss level
SAMPLE:
If the price is $50,000 and SL=500 pips, the calculation would be:
Lot Size = ($10,000 0.02) / ($50,000 0.00005)
Lot Size = $200 / $2.50
Lot Size = 0.08 lots
With current BTCUSD price ~$65,000 and a stop loss distance of 500 pips - fixed lot size would be 0.0615 lots (2% risk per trade).
For a truly dynamic lot size calculation - additionally need to take into account the volatility of the market (lot-size would be much smaller).
Hello,
I am also wondering how to just have a lotsize calculator function wich can give you lotsize from just the symbol and entry, sl, risk perc.
i work with mql4 it must be possible with ticksize and tickvalue and contractsize etc for the symbol.
it has to work for crypto, forex, metals, indixes, ..
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi guys im new to mql5, i was searching without success how to calculate dynamic the crypto lot sizes for different pairs, but cant find any info.
can someone point me the right direction or any docs about this?
Thanks