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

Risk Lot Calculator - MetaTrader 5용 스크립트

Hayk Babayan
Hayk Babayan
Algorithmic trader. I build and test Expert Advisors for MetaTrader 5 with one rule: a strategy has to prove itself on data it has never seen before I trust it.
조회수:
52
평가:
(1)
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Sizing a trade by hand is where many accounts break their own rules. The common shortcut, points × tick value, gives a wrong lot whenever the tick size differs from the point (many gold, index and crypto symbols) or when the profit currency is not the account currency. On some symbols the lot comes out several times too large.

Risk Lot Calculator asks the terminal itself: OrderCalcProfit() returns the exact loss of one lot between your entry and your stop, in your account currency. The lot is your risk divided by that loss, rounded down to the symbol's volume step, so you never risk more than planned.

Risk Lot Calculator on an XAUUSD chart

How to use

  • Drag the script from the Navigator and drop it on the chart at the price where your stop loss will be.
  • Dropped below the price it calculates a buy, above the price a sell.
  • The panel shows the lot, the money at risk and the margin. Entry and stop lines are drawn on the chart.

What the panel shows

  • Lot size, rounded down to the volume step.
  • Planned risk and the real risk at the rounded lot.
  • Entry, stop and the distance in points.
  • Loss of 1 lot at the stop.
  • Margin needed and its share of free margin.
  • A warning if even the minimum lot risks more than planned, or if the free margin is not enough.
  • If the points × tick value shortcut would give a different lot on this symbol, it shows that number too, so you can see the difference.

Inputs

Input Meaning
Risk measured as % of balance, % of equity, or a fixed amount in account currency
Risk The percent or the amount
Stop distance, points 0 = use the price where the script is dropped
Direction Needed only when the stop is given in points
Entry price 0 = current market price; set it to size a pending order
Draw lines / show panel Entry and stop lines, and the result panel

If the terminal has just started and is not connected yet, the script waits up to 10 seconds for the connection and the symbol prices. The panel and lines stay on the chart until the next run. The script is a calculator only: it never sends an order.

Prop Firm Guard Prop Firm Guard

Closes every position before your prop-firm daily or maximum loss limit is reached and keeps the account flat afterwards. Works next to any EA or manual trading. It never opens trades.

Missing Stop Loss and Take Profit Setter Missing Stop Loss and Take Profit Setter

Utility Expert Advisor that finds open positions without a stop loss or take profit and adds them at a fixed distance in pips from the open price. It never opens or closes trades.

Market Structure Visualizer - HH HL LH LL BOS CHoCH Market Structure Visualizer - HH HL LH LL BOS CHoCH

Free non-repainting MT5 market structure indicator that identifies confirmed HH, HL, LH and LL swings, plots BOS and CHoCH structure breaks, and includes close/wick confirmation, dashboard bias and optional alerts.

Broker Clock Broker Clock

Broker server time, UTC and the local time of London, Frankfurt, New York, Tokyo and Sydney, with daylight saving time on any date, live and in the Strategy Tester.