Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

Trade Volume Calculation Tool - indicator for MetaTrader 5

Views:
270
Rating:
(3)
Published:
2024.09.28 13:30
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
This is a tool to calculate the lot size from a risk percentage and stop loss level.

Click on the chart to set a virtual stop loss, and it will calculate the lot size for the risk percentage that is applied.

Choose either buy or sell in the input section whether or not you intend to calculate the risk from the ask (for buy positions) or from the bid (for sell positions).

Obviously - a long stop loss distance on higher timeframes will be more risk because the price is scaled by a larger number points on higher timeframes. 

It should work on all types of securities.

The lot size is a direct calculation of the input risk percentage and the stop loss distance. 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.

Volume calculation tool


Dashboard Panel for displaying information on the chart Dashboard Panel for displaying information on the chart

This code shows how you can create a dashboard to display all the relevant information on the chart

Position Risk Calculation Tool Position Risk Calculation Tool

An indicator that dynamically calculates risk (in percentages and money) based on the lot size and stop loss

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

MACD Signals MACD Signals

Indicator edition for new platform.