Loading…

Position Size Calculator 2

Position Size Calculator 2 — a MetaTrader 4 indicator kept in the Old Kings collection. Its source code uses ATR. It can send alerts. It has 33 settings, for example Show Line Labels (default true), Draw Text As Background (default false) and Panel On Top Of Chart (default true). Load it on a demo chart and check whether its signals repaint before trusting them. Inside: 1 indicator file with source code (.mq4) you can open and edit in MetaEditor. Old Kings are classic community tools shared as-is. Not tested by PolyMaria. Try it on a demo account first. Are you the author of this tool? Message us on Telegram (@abumarket_support) and we will credit you or take it down.

Indicator · MT4 · v1.0 · Free

About Position Size Calculator 2

Position Size Calculator 2 is an indicator for MetaTrader 4 based on ATR. It can alert you with a pop-up, sound, email or push message. It has 33 settings, such as Show line labels, Draw text as background and Panel on top of chart. MQL source code included.

Files in the download: Defines.mqh, PositionSizeCalculator.mq4, PositionSizeCalculator.mqh.

Settings

SettingDefaultWhat it does
Show line labelstrueShowLineLabels: Show pip distance for TP/SL near lines?
Draw text as backgroundfalseDrawTextAsBackground: Draw label objects as background?
Panel on top of charttruePanelOnTopOfChart: Draw chart as background?
Hide acc sizefalseHideAccSize: Hide account size?
Show pip valuefalseShowPipValue: Show pip value?
Sl label font colorclrLimeSL Label Color
Tp label font colorclrYellowTP Label Font Color
Font size13Labels Font Size
Font faceCourierLabels Font Face
Entry line colorclrBlueEntry Line Color
Stoploss line colorclrLimeStop-Loss Line Color
Takeprofit line colorclrYellowTake-Profit Line Color
Entry line styleSTYLE_SOLIDEntry Line Style
Stoploss line styleSTYLE_SOLIDStop-Loss Line Style
Takeprofit line styleSTYLE_SOLIDTake-Profit Line Style
Entry line width1Entry Line Width
Stoploss line width1Stop-Loss Line Width
Takeprofit line width1Take-Profit Line Width
Risk1Risk: Initial risk tolerance in percentage points
Entry typeInstantEntryType: Instant or Pending.
Commission0Commission: Default one-way commission size.
CommentaryCommentary: Default order comment.
Default sl0DefaultSL: Deafault stop-loss value, in broker's pips.
Default tp0DefaultTP: Deafault take-profit value, in broker's pips.
Default atr timeframePERIOD_CURRENTDefaultATRTimeframe: Deafault timeframe for ATR.
Tp multiplier1TP Multiplier for SL value, appears in Take-profit button.
Use commission to set tp distancefalseUseCommissionToSetTPDistance: For TP button.
Show spreadfalseShowSpread: If true, shows current spread in window caption.
Additional funds0AdditionalFunds: Added to account balance for risk calculation.
Use fixed sl distancefalseUseFixedSLDistance: SL distance in points instead of a level.
Use fixed tp distancefalseUseFixedTPDistance: TP distance in points instead of a level.
Show atr optionsfalseShowATROptions: If true, SL and TP can be set via ATR.
Disable tick value adjustmentfalseDisableTickValueAdjustment: If true, use unadjusted tick value.

How to install

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

Download the PDF guide

Tags: Risk & Lot Size · Alerts · ATR · MT4 Indicator · MQL4 Source Code

Old Kings — classic MT4 & MT5 collection · PolyMaria