당사 팬 페이지에 가입하십시오
- 게시자:
- Vladimir Karputov
- 조회수:
- 6470
- 평가:
- 게시됨:
- 2017.11.03 12:38
- 업데이트됨:
- 2018.02.28 10:51
-
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
The author of the idea: Vit, the mq5 code author: barabashkakvn.
Input Parameters
- N-seconds ago - the number of seconds to record price movement.
- Step (in pips) - step value.
- Lots - position volume.
- Stop Loss (in pips) - Stop Loss value.
- Take Profit (in pips) - Take Profit value.
- Coefficient, if the stop-loss is triggered - lot increase ratio after the stop loss.
The Expert Advisor analyzes the last 'N-seconds ago' seconds and compares with the current price.
The Expert Advisor monitors triggering of Stop Loss and Take Profit by using the excellent enumeration ENUM_DEAL_REASON:
Identifier | Description |
---|---|
*** | |
DEAL_REASON_SL | The deal was executed as a result of Stop Loss activation |
DEAL_REASON_TP | The deal was executed as a result of Take Profit activation |
*** |
If Stop Loss has triggered, the lot of the next position will be increased in accordance with the 'Coefficient, if the stop-loss is triggered' parameter.
Position Opening Rules
- BUY - bar #1 must be bullish (Close > Open) and the current price must be higher than the price 'N-seconds ago' by 'Step'.
- SELL - bar #1 must be bearish (Close < Open) and the current price must be lower than the price 'N-seconds ago' by 'Step'.
MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/19218
![e-Skoch pending orders](https://c.mql5.com/i/code/expert.png)
Works with pending stop orders (Buy Stop and Sell Stop). Monitors spread %.
![Locker](https://c.mql5.com/i/code/expert.png)
The EA lock positions.
![MACD Stochastic](https://c.mql5.com/i/code/expert.png)
The trading system is based on iMACD (Moving Average Convergence/Divergence, MACD) and iStochastic (Stochastic Oscillator)
![Resistance & Support](https://c.mql5.com/i/code/indicator.png)
The indicator of support and resistance lines calculated based on the iFractals (Fractals) indicator values.