거래 로봇을 무료로 다운로드 하는 법을 시청해보세요
당사를 Facebook에서 찾아주십시오!
당사 팬 페이지에 가입하십시오
스크립트가 흥미로우신가요?
그렇다면 링크 to it -
하셔서 다른 이들이 평가할 수 있도록 해보세요
스크립트가 마음에 드시나요? MetaTrader 5 터미널에서 시도해보십시오
지표

Risk Based Position Size Calculator - MetaTrader 5용 지표

Waseem Shahrukh
Waseem Shahrukh
  • Institutional Algo Architect | MQL4 & MQL5 Specialist 에  Proprietary Trading Systems
  • 파키스탄
  • 1066
MQL5 / MQL4 Expert Advisor Developer | Institutional Algo Architect Built for Live Trading, Not Just Demo
조회수:
65
평가:
(1)
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
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.