Lot-SL propotion – library MetaTrader 4

The function returns the lot size, which is calculated based on the stop loss size and the risk specified in the variable. That is, if the risk is set to 2%, and the SL is set to 40 points, the lot will be calculated in such a way, that if the price reaches the SL, then 2% of the deposit would be lost.


πŸ“ˆ ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks