Risk Calculator Lines
- インディケータ
- バージョン: 1.0
Risk Calculator Lines is a position size calculator for MetaTrader 5. Place the Entry line and the Stop Loss line where you plan to trade, and the panel shows the lot size for the percentage of your account you chose to risk.
The indicator does not open, modify or close trades. It only calculates and displays.
How to use
Attach the indicator to a chart. Two horizontal lines appear: Entry and Stop Loss. Drag them to your planned entry price and stop loss price, then read the lot size from the panel and use it in your order. A stop loss below the entry is treated as a BUY, a stop loss above the entry as a SELL.
Panel
The panel shows the direction, the entry and stop loss prices, the stop loss distance in points, the account value used (Balance or Equity), the money at risk in the account currency, the lot size before rounding, the lot size rounded to the volume step of the broker, and the actual risk after rounding in money and in percent.
Calculation
The calculation uses the tick value and tick size of the symbol, so it can be used on forex pairs, metals such as XAUUSD, indices and other CFDs. The lot is rounded down to the volume step, so the actual risk does not exceed the requested risk. If the calculated lot is below the minimum lot of the broker, the panel shows a warning and the risk of the minimum lot. If it is above the maximum lot, it is limited to the maximum and the panel says so.
Inputs
- Risk per trade, % of account (default 1.0)
- Calculate risk from: Balance or Equity
- Entry line color, Stop loss line color, Line width
- Panel corner, horizontal offset, vertical offset, font size
- Background color, Text color, Warning color
Notes
The calculation covers the distance between the two lines only. Spread, commission, swap and slippage are not included, so the loss at the stop can be slightly higher than shown. The indicator does not check free margin. The lines stay in place when the timeframe or the inputs are changed and are removed together with the indicator.
