Indicators: Trade Volume Calculation Tool

 

Trade Volume Calculation Tool:

This tool will calculate the acceptable lot size based on a stop loss distance and risk percentage

Trade Volume Calculation Tool

Author: Conor Mcnamara

 
Any Risk of Lot Size Calculator that doesn't use ACCOUNT LEVERAGE, isn't going to accurate.
 
Ken MacLennan #:
Any Risk of Lot Size Calculator that doesn't use ACCOUNT LEVERAGE, isn't going to accurate.

Leverage is not in this calculation as it has no place here. Volume calculation out of risk depends on the stop loss and and risk percentage applied. Leverage is giving you the capability to use a larger position size with less capital - nothing to do with a percentage risk to lot size calculation. This script exclusively bases the lot size on the stop loss and percentage risk of the free margin. 

This is why I mentioned my max volume script  to calculate a max lot size - which takes into account leverage, commissions, and so on all through the OrderCalcMargin function.


You will not be able to get a max lot size through indicators by making a formula with leverage - because private broker info is retrieved through OrderCalcMargin, and this function is not permitted to be used in indicators as written in the documentation (it is a trading function).

I have a formula with leverage that attemps to give an accurate max upper limit for your account, but it will only work for forex.

You have ignored the statement I put in bold:

The figure does not take into account the max tradeable lots on your account (based on your account size and leverage). You should use my max trade volume script if you want to know the upper limit for the lot size you are permitted to trade.


Do not even waste your time trying to make a correct formula with leverage, you will get something that looks accurate for forex, but it won't be accurate for commodities, indices, crypto and so on.

 

I can confidently assure you that the values calculated in this indicator are accurate for the lot size calculation.


What is possible:

1. A trade volume calculation based on risk percentage and a stop loss distance.

2. A trade volume calculation based on risk percentage and leverage (without stop loss).


It is one of the other. This indicator is the former.

 
عالی