Watch how to download trading robots for free
Find us on Facebook!
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
Scripts

Risk Percent Lot Size Calculator - script for MetaTrader 5

Maximilian Lukas Limbrunner
Maximilian Lukas Limbrunner
  • MQL5 & Python Developer for Traders at  Self-employed (Germany)
  • Germany
  • 116
MQL5 Developer | Expert Advisors, Indicators & Trading Tools for MetaTrader 5
Views:
44
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Calculates how many lots you can trade so that your stop loss equals a chosen risk.

Features:

  • Risk in % of balance or equity
  • Stop loss as distance in points or as an exact price
  • Uses OrderCalcProfit for accurate values on forex, metals, indices and crypto (tick value as fallback)
  • Rounds down to the symbol's volume step, so the target risk is never exceeded
  • Shows entry, stop loss, lot size and the actual risk in money and percent
  • Does not open, modify or close any position

Useful for prop firm accounts with strict daily loss and drawdown limits.

This is a free tool. It does not give trading signals or financial advice.


Session Range Boxes with Asia Breakout Alert Session Range Boxes with Asia Breakout Alert

Draws Asia, London and New York session boxes with high/low range and an optional Asia breakout alert.

Daily Loss Meter for Prop Firm Rules Daily Loss Meter for Prop Firm Rules

Shows on the chart how much of today's prop-firm daily loss limit is used. Counts closed P/L (with commission and swap) and floating P/L since the daily reset, and shows the loss so far, the money left and the equity floor. The base can be balance, equity, or the higher of the two at the reset. Colour warnings at 50% and 80%, with alerts. Display only: never trades.

Warm-Up Meter: Measuring Seed Convergence of Recursive Indicators Warm-Up Meter: Measuring Seed Convergence of Recursive Indicators

Part 2 of the indicator regression-testing series. Measures how many bars of history a recursive indicator (EMA, Wilder smoothing, or a cascade of up to three stages) needs before the error left by its starting value falls below a tolerance and recommends a safe warm-up length.

MACD Signals MACD Signals

Indicator edition for new platform.