Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
10595
Rating:
(37)
Published:
2015.04.10 15:46
Updated:
2017.03.15 11:44
riskmanager.mq5 (20.6 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The risk manager controls and limits the overall loss for the account, and the loss for every deal.

It includes Trailing Stop for the account. When exceeding the preset values (in %) the open positions are closed by market orders. All pending orders are removed.

A balance check is performed once a day when the date changes. It uses the trade server time, i. e. the time of the last quote.

The EA has been tested on a real account for FORTS derivatives market and on a demo account MetaQuotes-Demo for FOREX.

Expert Advisor parameters:

  • Day Risk % - maximum percentage of loss for a day.
  • Deal Risk % - maximum percentage of loss for every deal. Zero value disables this function.
  • Trailing Stop % - trailing stop percentage for a day profit.

A risk manager for MetaTrader 5

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/12641

Class СBmpButtonTransparent Class СBmpButtonTransparent

A class for a transparent button.

A class for working with free form buttons A class for working with free form buttons

This class is designed for creating interactive buttons with various states on a price chart.

ForexProfitBoost_2nb_HTF_Signal ForexProfitBoost_2nb_HTF_Signal

The indicator shows the trend direction or the signal based on the ForexProfitBoost_2nbSign indicator.

TrendlessAG_HTF TrendlessAG_HTF

The TrendlessAG indicator with the timeframe selection option available in the input parameters.