MQL-Sync Synthetic Calculator

Professional lot sizing and MQL5 risk generation for Deriv Indices.

Trade Parameters

Account Bal ($)
Risk (%)
Stop Loss (Pts)
Take Profit (Pts)

Trade Execution Size

0.000 Lots
MAX LOSS $0.00
1:2 R:R
TARGET PROFIT $0.00
Dynamic MQL5 Snippet

For Manual Traders

If you trade manually on the MetaTrader mobile app or desktop terminal, ignore the code box below.

  1. 1. Enter your Account Balance, how much you want to risk, and your Stop Loss in the left panel.
  2. 2. Look at the massive Trade Execution Size in the card above.
  3. 3. Open your MetaTrader app, select New Order, type that exact Lot Size into the volume box, and place your trade.

For Algo Developers

Use the generated MQL5 snippet to add perfect risk management to your Expert Advisors.

  1. 1. Open MetaEditor (F4) and paste the copied function at the absolute bottom of your EA file.
  2. 2.
    Inside your OnTick(), replace your fixed lot size with this dynamic call:
    double exactLot = CalculateSafeLotSize();
    trade.Buy(exactLot, _Symbol);

// Code will generate here