Maximum lot size based on account balance

RWP
542
RWP  

Hi guys, can anyone point me to an indicator that...

1. Calculates the maximum lot size that can be traded based on one's account balance.

2. Calculates the lot size that should be traded based on percentage of risk one is willing to take.

Thanks in advance.

William Snyder
9582
William Snyder  
rayphua:
Hi guys, can anyone point me to an indicator that...

1. Calculates the maximum lot size that can be traded based on one's account balance.

2. Calculates the lot size that should be traded based on percentage of risk one is willing to take.

Thanks in advance.

Rayphua, maybe check in this thread https://www.mql5.com/en/forum/176320

RWP
542
RWP  
mrtools:
Rayphua, maybe check in this thread https://www.mql5.com/en/forum/176320

Thanks a bunch, Mr. Tools.

Darwin
55
Darwin  

I use this one (adjusts the lotsize based on volatility and desired risk!)

risk_factor can be 1-5 and determines the desired risk, as I said. Use period_d1 for every timeframe you trade.

lot = (risk_factor / 100.0 * AccountEquity()); lot /= (MarketInfo(Symbol(), MODE_LOTSIZE) * iATR(Symbol(), PERIOD_D1, 14, 0));