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

Position Tool - TradingView-style Long/Short position calculator - MetaTrader 5용 지표

Oleksandr Duiko
Oleksandr Duiko
  • MQL5 / Python Developer — Expert Advisors, Indicators, Trading Automation 에  Independent developer
  • 우크라이나
  • 132
MQL5 / Python developer. I port TradingView indicators and strategies to MetaTrader 5 and connect MT5 to crypto exchanges through REST and WebSocket APIs.
Published work:
• Position Tool: a TradingView-style Long/Short position calculator for MT5 (Code Base)
조회수:
130
평가:
(1)
게시됨:
MQL5 프리랜스 이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동

Position Tool brings the familiar Long/Short Position drawing from TradingView to MetaTrader 5. It draws a target zone and a stop zone on the chart and calculates the correct lot size for your risk, so you can plan a trade visually before you open it.

Drag the Entry, Stop or Target line with the mouse and every number updates instantly: lot size, money at risk, potential reward, reward-to-risk ratio, distance in points and required margin. Profit and loss per lot are taken from OrderCalcProfit(), so the result is correct for any symbol (Forex, metals, indices, crypto CFDs) and any account currency.

Position Tool on XAUUSD H4

How to use

  • Attach the indicator to a chart: the tool appears at the current price with a 1 x ATR(14) stop and a 2:1 target.
  • Drag the Entry line to move the whole tool (price and time). Drag the ends of the Entry line to change the width.
  • Drag the Stop and Target lines to set your levels. If you drag the Target to the other side of the Entry, the tool switches between Long and Short automatically.
  • Long/Short button mirrors the tool, Reset button places it at the current price again.

The lot is rounded down to the symbol's volume step, so the real risk never exceeds your setting. If even the minimum lot is larger than your risk, the tool shows a MIN LOT > RISK warning.

Inputs

  • Risk mode: % of account or a fixed amount in account currency.
  • Risk, % of account / Risk, account currency.
  • % is calculated from: Balance or Equity.
  • Start as Long, Default reward:risk on reset, Default stop on reset (x ATR(14)), Tool width in bars.
  • Colors of the target zone, stop zone, entry line and text, font size.

The tool only draws and calculates; it does not place any orders.

MA Toolkit MA Toolkit

MA Toolkit: a compact moving average indicator written from scratch. Choose SMA, EMA or LWMA for a fast and a slow line, see the fast line colored by its slope, and get optional crossover arrows, alerts and an info panel.

Round Numbers – automatic psychological thresholds Round Numbers – automatic psychological thresholds

Horizontal lines at round figures around the displayed price, with a spacing that adjusts according to the zoom level.

Previous Day High, Low and Close Levels Previous Day High, Low and Close Levels

Draws the previous day High, Low and Close as horizontal levels on the chart, with optional history for several past days, extension of today's levels to the right and price labels.

Risk Drift Audit: the Real Risk of Every Past Trade Risk Drift Audit: the Real Risk of Every Past Trade

Shows the risk every past trade really took (the loss at its stop loss as a % of the balance at entry) and how far a fixed lot drifted from the tested risk. Read-only.