You are not logged in.

#1 08-11-2012 09:51:32

johnedward
Admin & Trader
From: Paris - France
Registered: 21-12-2009
Posts: 3870
Website

Calculating position size in MetaTrader

Calculating position size in MetaTrader



This MetaTrader 4 and 5 indicator calculates position size using the price entry level, the stop-loss level, risk tolerance level and current market data, such as account size and the current price of the quote currency. The result is displayed as a text label on the chart.

Input parameters:

- EntryLevel (default = 0) - position entry price.
- StopLossLevel (default = 0) - stop-loss price level.
- risk (default = 1) - risk tolerance as a percentage of the account balance/equity.
- MoneyRisk (default = 0) - risk tolerance in terms of the account's currency.
- UseMoneyInsteadOfPercentage (default = false) - If the parameter is set to "true", then the position size will be calculated based on the risk tolerance in terms of money and not a percentage.
- UseEquityInsteadOfBalance (default = false) - If "true", then account equity is used instead of the balance in the calculations.
- font_color (default = LightBlue / clrLightBlue) - font color of indicator data displayed.
- ps_font_color (default = Red / clrRed) - font color of the result of the position size.
- font_size (default = 12) - the font size of the text displayed.
- font_face (default = "Courier") - font of the indicator.
- corner (default = 0/CORNER_LEFT_UPPER) - location of the indicator's text. On MT4: 0 - for the upper left corner, 1 - top right, 2 - bottom left, 3 - bottom right. In MT5 it is pretty obvious.
- distance_x (default = 10) - horizontal distance from the corner to the indicator's text.
- distance_y (default = 130) - the vertical distance from the corner of the indicator's text.
- entry_line_color (default = Blue / clrBlue) - color of the input line.
- stop_loss_line_color (default = Lime / clrLime) - color of the stop-loss line.

http://www.forex-central.net/img/Position-Size-Calculator.jpg

Downloads:


Arrow Position size calculator for MetaTrader 4
Arrow Position size calculator for MetaTrader 5


"Anything worth having is worth going for - all the way." - J.R. Ewing

Offline

 

Board footer