Rejoignez notre page de fans
- Vues:
- 3784
- Note:
- Publié:
- 2017.11.03 11:29
- Mise à jour:
- 2018.06.26 13:35
-
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance
Buy a security (open BUY positions) at a lower price, sell (open SELL positions) at a higher price.
In version 1.000, the Expert Advisor only trades one symbol (the "Symbol" parameter in input parameters).
Basic position opening principle:
- If the profit of all BUY positions is less than the profit of all SELL positions, we can conclude that the current trend is downward, and open SELL.
- If the profit of all SELL positions is less than the profit of all BUY positions, we can conclude that the current trend is upward, and open BUY.
if(profit_buys<profit_sells) // trend down m_trade.Buy(m_symbol.LotsMin(),m_symbol.Name()); else if(profit_sells<profit_buys) // trend up m_trade.Sell(m_symbol.LotsMin(),m_symbol.Name()); else if(profit_buys==0.0 && profit_sells==0.0) m_trade.Buy(m_symbol.LotsMin(),m_symbol.Name());
Testing results on EURUSD, H4:
During long-term trends, deposit load greatly increases. This problem has not been solved yet.
Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/18739
![BarTimerCLineRounded_HTF](https://c.mql5.com/i/code/indicator.png)
The BarTimer indicator implemented using the classes of libraries that were described in detail in the article "Custom indicators and infographics in CCanvas", with the possibility to set a fixed timeframe, data from which the indicator displays in input parameters.
![BarTimerCLineRounded](https://c.mql5.com/i/code/indicator.png)
The BarTimer indicator implemented using the classes of libraries that were described in detail in the article "Custom indicators and infographics in CCanvas", using current timeframe data.
![Exp_Color_QEMA_Envelopes_Digit_System](https://c.mql5.com/i/code/expert.png)
A breakout trading system based on the signals of the Color_QEMA_Envelopes_Digit_System indicator.
![Exp_Color_PEMA_Envelopes_Digit_System](https://c.mql5.com/i/code/expert.png)
A breakout trading system based on the signals of the Color_PEMA_Envelopes_Digit_System indicator.