Attachments forums

List of attachments posted on this forum.


All files on forums: 135902

Re: Something interesting please post here (Metatrader)

bilbao, Wed Apr 26, 2017 5:03 pm

Indicator Position Size Calculator calculates the size of the position in lots using the specified levels of entry / stop loss , risk tolerance, and current market data, such as the size and currency of the account, and the price of the quote currency pair traded in relation to the account currency. The result is displayed as text in the main graph window. A trader can change many parameters, both for calculation and for display.

Position Size Calculator
Input parameters:
entryLevel (default = 0) - planned position opening price.
StopLossLevel (default = 0) is the planned price of the stop loss for the position.
TakeProfitLevel (default = 0) is the planned take-profit price. An optional parameter that is used only to calculate the profit-to-risk ratio.
Risk (default = 1) is the allowable risk in percentage points from the account balance / funds.
MoneyRisk (default = 0) is the acceptable risk in the account currency.
UseMoneyInsteadOfPercentage (default = false) - if true, then the position size will be calculated using the risk specified in the account currency, and not in percentage.
UseEquityInsteadOfBalance (default = false) - if true, then the account means will be used in the calculation, and not the account balance.
UseAskBidForEntry (default = false) - if true, then the open price of the position will be taken from the current Ask or Bid price.
DeleteLines (default = false) - if true, the entry and stop lines will be deleted when deinitialized. Otherwise, they will remain on the chart to enable the level recovery when the indicator is reloaded.
If the input parameters EntryLevel and StopLossLevel are set to zero, this indicator will try to assign them some meaningful values. You can drag the entry lines and stop-loss lines up and down directly on the chart. The value of the position size will be recalculated every tick and every time the line moves. A trader can also specify an input parameter TakeProfitLevel, to see the estimated ratio of profit to sales at risk in addition to the size of the position.
All files in topic