Universum 3.0 – EA MetaTrader 5

Author of the ideaΒ β€”Β Yury Reshetov,Β author of the MQL5 codeΒ β€”Β barabashkakvn.Β 

Increasing the lot after a losing trade. OnTradeTransaction. Entry signals are based on the DeMarker indicator.Β 

Expert Advisor Input Parameters

  • p β€” period for the DeMarker oscillator Optimized with the values from 3 to 100 with step of 1.
  • tp β€” take profit in pips. Optimized with the values from 10 to 100 with step of 1.
  • sl β€” stop loss in pips. Optimized with the values from 10 to 100 with step of 1.
  • lots β€” lot size of the first order and all orders opened after a losing trade. The parameter is not optimized.
  • mn β€” magic number. The parameter is not optimized.
  • losseslimit β€” limit the number of losing trades in a row. The parameter is not optimized. In case the number of losses reaches a limit, the EA stops opening new trades and sends a message e-mail.
  CandleSize - indicator MetaTrader 5

Lot increase ratio is calculated by the formula:

Β Β  double k=(ExtTakeProfit+ExtStopLoss)/(ExtTakeProfit-spread);

The EA works only at newly formed bars and opening prices. There is no need to optimize it using Every tick mode.


https://www.mql5.com/ru/code/17079

πŸ“ˆ ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks