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

Risk Calculator Panel with Draggable SL and TP Lines - MetaTrader 5용 지표

Shanawaz Mohammed Nabi Rasool Pinjori
Shanawaz Mohammed Nabi Rasool Pinjori
MQL5 developer and DevOps engineer with 13 years of production infrastructure experience. I build MetaTrader 5 Expert Advisors and indicators, and I run them reliably on VPS.
What I do:
조회수:
87
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Risk Calculator Panel is a position size calculator for MetaTrader 5. Instead of typing prices, you drag a Stop Loss line on the chart and the panel immediately shows the correct lot size for the risk you choose. It is an indicator, so it never opens, closes or modifies trades.

Risk Calculator Panel

Figure 1. Risk Calculator Panel on EURUSD H1: drag the red SL line and read the lot size

How to use

  • Attach the indicator to any chart. A red dashed Stop Loss line and a green dashed Take Profit line appear near the current price.
  • Drag the Stop Loss line to where you want your stop. If it is below price the panel calculates a BUY from the Ask, if it is above price it calculates a SELL from the Bid.
  • Drag the Take Profit line to see the reward and the reward:risk ratio.
  • Type a new risk percentage in the box at the top of the panel and press Enter. No need to reopen the inputs.

What the panel shows

  • Direction and entry price (Ask for buys, Bid for sells).
  • Stop loss distance in points. It turns red if the stop is closer than the broker's minimum stop level.
  • Risk - the money you want to risk (percentage of balance, equity or free margin, or a fixed amount).
  • LOT SIZE - always rounded down to the symbol's volume step, so you never risk more than you asked for.
  • Real risk - the money actually at risk with the rounded lot. If even the minimum lot is too big for your risk, it turns red and a warning is shown.
  • Reward and R:R from the Take Profit line.
  • Margin for the position when the terminal allows the calculation, otherwise your free margin.

The calculation uses the symbol's tick size and tick value, which the terminal already converts into your account currency. This makes it correct for forex majors, crosses, metals, indices and crypto without any manual settings.

Input parameters

InputDescription
InpRiskPercentrisk per trade in percent (default 1.0).
InpRiskBasecalculate the risk from Balance, Equity or Free margin.
InpFixedRiskfixed risk in account currency; a value above 0 overrides the percentage.
InpSLPoints, InpTPPointsinitial distance of the lines in points (TP 0 hides the TP line).
InpPanelX, InpPanelY, InpFontSizepanel position and size.
InpPanelColor, InpTextColor, InpSLColor, InpTPColorcolors.

The lines keep their position when you change the timeframe. Removing the indicator removes all of its objects from the chart.

Volatility-Adjusted Momentum Decay Line Volatility-Adjusted Momentum Decay Line

A momentum oscillator that relaxes back toward zero at a speed set by the current ATR relative to its own moving average, so decay speed adapts automatically to whether the market is calm or volatile.

Simple Anchored VWAP - Institutional Volume Benchmark Simple Anchored VWAP - Institutional Volume Benchmark

Clean and efficient Anchored VWAP (AVWAP) indicator for MetaTrader 5. Calculates volume-weighted average price from a user-defined anchor date with optional volatility standard deviation bands.

Fractal Dimension Trend Strength Index Fractal Dimension Trend Strength Index

A rolling, Katz-style fractal dimension of price that collapses toward 1.0 during directional moves and rises toward 2.0 during choppy, range-bound action, giving traders a single number for how "trendy" the current market is.

BotGuard - Terminal Health Heartbeat for VPS Monitoring BotGuard - Terminal Health Heartbeat for VPS Monitoring

A lightweight, non-trading Expert Advisor that writes a JSON health heartbeat (connection, AutoTrading state, equity, daily P/L) and an equity log, so a VPS watchdog can detect frozen or disconnected terminals and alert you.