Alım-satım robotlarını ücretsiz olarak nasıl indirebileceğinizi izleyin
Bizi Twitter üzerinde bulun!
Fan sayfamıza katılın
Kodu ilginç mi buldunuz?
Öyleyse bir link gönderin -
başkalarının da faydalanmasını sağlayın
Kodu beğendiniz mi? MetaTrader 5 terminalinde deneyin
Göstergeler

Risk Based Position Size Calculator - MetaTrader 5 için gösterge

Waseem Shahrukh
Waseem Shahrukh
  • Institutional Algo Architect | MQL4 & MQL5 Specialist at  Proprietary Trading Systems
  • Pakistan
  • 1066
MQL5 / MQL4 Expert Advisor Developer | Institutional Algo Architect Built for Live Trading, Not Just Demo
Görüntülemeler:
65
Derecelendirme:
(1)
Yayınlandı:
MQL5 Freelance Bu koda dayalı bir robota veya göstergeye mi ihtiyacınız var? Freelance üzerinden sipariş edin Freelance'e git
Risk Based Position Size Calculator is a chart indicator for planning trade volume before execution. It creates draggable Entry and Stop lines, calculates the distance between them and displays a broker-safe position size for the selected account risk.

The indicator does not open orders or manage existing positions.

Risk can be defined as:

• Percentage of account balance
• Percentage of account equity
• Fixed amount in the account currency

The calculation uses the symbol’s trade tick size and loss tick value. A configurable round-turn commission estimate can also be included.
The raw calculated volume is rounded down according to the broker’s volume step. This prevents upward rounding from exceeding the selected risk.

The chart panel displays:


• Buy or sell planning direction
• Entry, stop and calculated target prices
• Stop distance in points
• Risk amount in account currency
• Estimated risk for one lot
• Raw calculated volume
• Broker normalized volume
• Configurable reward-to-risk ratio
• Validation status

Inputs
InpRiskMode
Selects percentage of balance, percentage of equity or fixed money risk.
InpRiskValue
Defines the selected percentage or fixed account-currency amount.
InpInitialSLPoints
Defines the initial distance between the Entry and Stop lines.
InpRewardRisk
Defines the reward-to-risk ratio used for the Target line.
InpCommissionLot
Optional estimated round-turn commission per lot.

The remaining inputs control line colors, panel color, chart corner and panel position.

How to use
1. Compile RiskBasedPositionSizeCalculator.mq5 in MetaEditor.
2. Place the indicator in the MQL5\Indicators directory.
3. Attach it to the required chart.
4. Drag the Entry and Stop lines to the planned prices.
5. Read the normalized volume and validation status from the chart panel.

The calculated position size is an estimate based on the current account and broker symbol data. Actual trade risk may differ because of slippage, gaps, commissions, swaps and broker side execution.



Broker Execution Diagnostics Broker Execution Diagnostics

A read only MT5 script that reports broker symbol specifications, volume limits, price settings, execution modes, trading permissions, margin requirements and estimated profit values.

SMC Entry Using structure SMC Entry Using structure

Market Structure & Smart Trade Tracker (MT5) An advanced all-in-one Smart Money Concepts (SMC) indicator that combines automated market structure mapping, momentum heatmap candles, and institutional trade execution tracking.

Nadaraya_Watson_Envelope_NR Nadaraya_Watson_Envelope_NR

Calculates a non-repainting Nadaraya-Watson envelope using Gaussian smoothing and marks price crosses beyond the upper and lower bands with arrows.

Broker Info Panel MT5 Broker Info Panel MT5

A lightweight MT5 chart indicator that displays live broker and symbol trading specifications including spread, tick size, tick value, volume limits, stop level and freeze level.