Rejoignez notre page de fans
- Publié par:
- Vladimir Karputov
- Vues:
- 15901
- Note:
- Publié:
- 2017.08.10 12:56
- Mise à jour:
- 2018.02.27 13:38
-
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance
Author of the idea — John Smith, author of the MQL5 code — barabashkakvn.
Positions are only opened at the specified time (+ shift set in "Additional hour"). Bullish and bearish bars are counted on PERIOD_M1 (M1). The money management classes CMoneyFixedMargin and CMoneyFixedRisk are used.
Inputs:
- Stop Loss
- Take Profit
- Take Profit 2 — used for a program-based closing
- Trailing Stop
- Trailing Step
- Money Management — risk calculation type (percent of free margin or fixed risk value)
- Risk for a deal (in percent) — allowable risk percent value
- Count bars — the number of bars among which bullish and bearish bars will be counted
- Additional hour — shift
- Max positions — the maximum number of positions
Comparison of lot calculation based on the free margin on GBPUSD,M1:
and the fixed risk value:
The difference here is only the position load.
Traduit du russe par MetaQuotes Ltd.
Code original : https://www.mql5.com/ru/code/18710
![Trailing_Profit](https://c.mql5.com/i/code/expert.png)
Closing all open positions with the specified profit percent.
![EURUSD breakout](https://c.mql5.com/i/code/expert.png)
The EA trades during two trading sessions, starting at the specified session beginning time. Stop Loss. Take Profit.
![HistoryPositionInfo version 2](https://c.mql5.com/i/code/library.png)
Returns the profit of a position in points, as well as commission, swaps and profit in money based on the trading history.
![VWAP Custom Position](https://c.mql5.com/i/code/indicator.png)
Standard VWAP (Volume Weighted Average Price) calculation, but with configurable start position.