Loading…

Calculate Balance Lots UK100

Calculate Balance Lots UK100 — MT5 script, supplied with source code and a compiled file. Source metadata: ID 1739: Calculate Balance Lots UK100 Source algorithm identifier: CALCULATE_BALANCE_LOTS. Declared inputs include: MagicFilter, SymbolOverride, SlippagePoints, MaxAttempts, MaxQuoteAgeSeconds, FixedLot, RiskPercentValue, StopLossMode, StopLossValue, TakeProfitMode, TakeProfitValue, ATRPeriod, ATRMultiplier, MarginUsePercent, EquityPerLot, BalancePerLot. Description extracted from the supplied source metadata. Compilation compatibility, runtime behavior and trading results have not been independently verified.

Script · MT5 · v1.0 · Free

About Calculate Balance Lots UK100

Calculate Balance Lots UK100 is a script for MetaTrader 5 based on ATR. It has 17 settings, such as Magic filter, Symbol override and Slippage points. MQL source code included.

Files in the download: Calculate_Balance_Lots_UK100_MT5.mq5, Calculate_Balance_Lots_UK100_MT5.ex5.

Settings

SettingDefaultWhat it does
Magic filter-1-1 means all magic numbers, still TargetSymbol only.
Symbol overrideExplicit exact broker symbol override; blank uses catalog target.
Slippage points30Maximum slippage allowed when opening a trade
Max attempts3
Max quote age seconds120
Fixed lot0.10Trade size in lots
Risk percent value1.0Risk per trade (percent of balance)
Stop loss modePipsModeStop loss distance
Stop loss value50.0Stop loss distance
Take profit modePipsModeTake profit distance
Take profit value100.0Take profit distance
Atr period14Period or timeframe used by the calculation
Atr multiplier2.0How much the lot size grows after a loss
Margin use percent10.0
Equity per lot10000.0
Balance per lot10000.0
Calculation order typeORDER_TYPE_BUY

How to install

  1. Download the ZIP from your PolyMaria library and unzip it.
  2. In MetaTrader 5 open File → Open Data Folder, then go to MQL5 → Scripts.
  3. Copy the .mq5 file(s) there. Put any .mqh files in MQL5 → Include.
  4. Open the .mq5 file in MetaEditor and press Compile (F7) if MetaTrader does not show it.
  5. Drag the script onto a chart to run it once.

Download the PDF guide

Tags: ATR · MT5 Script · MQL5 Source Code

MQL4 & MQL5 scripts · PolyMaria