Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal


Lot calculator - risk management tool - indicator for MetaTrader 5

Alessio Leoncini | English Русский 中文 Español Deutsch 日本語 Português

votes: 18
2018.01.30 12:04

Most of professional traders state that their success is based on strict risk management.

This simple tool is designed to show the correct lot size to trade with respect to the following basic risk management rules:

  1. Risk only a fixed percentage of the total money on the account (e.g. 1-2%).
  2. Risk is measured by distance in pips between order opening to and emergency stop loss.

So, for example you have €2000 in your account, and you want to put an order on EURUSD with an emergency stop loss 191 pips from the order open value, what can be the correct lot size to trade?

The formula is:

F * R / (p * pv)

, where:

  • T - total account free margin.
  • R - risk.
  • p - pips between open order and stop loss.
  • pv - pip value (in the same currency as the account main currency).

The result, as you can see in following figure, is 0.02 lots.

When €2000 available, risk is 191 pips, to risk the 2% you have to trade no more than 0.02 lots

With €2000 available, risk is 165 pips, to risk the 2% you have to trade USDJPY no more than 0.03 lots.

With €2000 available, risk is 165 pips, to risk the 2% you have to trade USDJPY no more than 0.03 lots

The indicator shows quantities already switched to the current account currency.

In order to change the indicator parameters, simply access indicator properties:

indicator properties


  • Stop loss distance from open order: pips number to risk.
  • Free margin fraction to risk: a good value range is 0.01-0.02.
  • Check to read the actual free margin of your balance, uncheck to specify a simulated balance: flag used to consider the true free margin or the simulated balance.
  • Simulated balance: free margin value to simulate.
RAVI iFish RAVI iFish

Range Action Verification Index (RAVI) with inverse Fisher transform.

Chandes Quick Stick (Qstick) Chandes Quick Stick (Qstick)

Chandes Quick Stick (Qstick)

Chandelier exit Chandelier exit

Chandelier exit indicator is designed to keep traders in a trend and prevent an early exit as long as the trend extends. Typically, the Chandelier Exit will be above prices during a downtrend and below prices during an uptrend.

Reduce_risks Reduce_risks

This is an MQL5 version of the Expert Advisor described in the article "How to reduce trader's risks" (