Maximum Percentage of Equity Risk – library MetaTrader 5

Maximum Percentage of Equity Risk - library for MetaTrader 5
This code allows you to set a maximum percentage of equity risk. It checks if asked buy/sell lots are fitting the risk. If not, lots are automatically adjusted to fit the risk that was set. Code: bool UseMaximumPercentageRisk=true; double MaximumPercentageRisk=25; #include <Trade\SymbolInfo.mqh> //+——————————————————————+ //|  GetLotSize RPTrade                                              | //+——————————————————————+ double GetLotSize(double lotsize)   { //— Gets pair specs      … Read more

Money Fixed Risk – EA MetaTrader 5

Money Fixed Risk Inputs
An example for calculating the lot value in accordance with the risk per trade. Update: 28 Dec 2016 -> version 1.001 What’s new: added two methods for outputting (printing) the calculated lot. Method 1 — when setting StopLoss to zero.       //— variant #1: StopLoss=0.0       sl=0.0;       check_open_long_lot=m_money.CheckOpenLong(m_symbol.Ask(),sl);       Print(“sl=0.0”,             ” CheckOpenLong: “,DoubleToString(check_open_long_lot,2),             “, Balance: “,    DoubleToString(m_account.Balance(),2),             “, Equity: … Read more

Lot calculator – risk management tool – indicator MetaTrader 5

When €2000 available, risk is 191 pips, to risk the 2% you have to trade no more than 0.02 lots
Most of professional traders state that their success is based on strict risk management. This simple tool is designed to show the correct lot size to trade with respect to the following basic risk management rules: Risk only a fixed percentage of the total money on the account (e.g. 1-2%). Risk is measured by distance … Read more