Rejoignez notre page de fans
- Publié par:
- Vladimir Karputov
- Vues:
- 3231
- Note:
- Publié:
- 2017.01.26 09:24
- Mise à jour:
- 2018.06.27 15:18
-
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance
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.
Lot increase ratio is calculated by the formula:
The EA works only at newly formed bars and opening prices. There is no need to optimize it using Every tick mode.
Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/17079
![Exp_WeightOscillator](https://c.mql5.com/i/code/expert.png)
The simplest EA based on the WeightOscillator weighted oscillator.
![WeightOscillator_HTF](https://c.mql5.com/i/code/indicator.png)
The WeightOscillator indicator with the timeframe selection option available in the input parameters.
![MACD signal](https://c.mql5.com/i/code/expert.png)
The Expert Advisor uses signals from the indicators: ATR, MACD.
![Chart on Chart](https://c.mql5.com/i/code/indicator.png)
The Chart on Chart indicator displays a chart of other symbol on the current chart.