당사 팬 페이지에 가입하십시오
- 게시자:
- Vladimir Karputov
- 조회수:
- 7246
- 평가:
- 게시됨:
- 2018.04.18 17:06
-
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
The author of the idea: Scriptor, the author of the MQL5 code: barabashkakvn.
The Expert Advisor uses the iFractals indicator signals to place pending Buy Stop and Sell Stop orders and trail the Stop Loss levels of positions. A condition to place a Buy Stop order occurs when there are two upper fractals, of which the last formed one ("Up youngest") is higher than the previous fractal ("Up middle").
Stop Loss of a Buy Stop order is set at the latest lower fractal ("Down youngest"). Then, Stop Loss of a Buy position is trailed based on that "Down youngest" fractal.
Fig. 1. Conditions for Buy Stop
Conditions are opposite for Sell orders and Sell positions.
Input Parameters
- Maximum Risk in percentage - maximum allowable risk;
- Decrease factor - lot reduction factor in case of losing trades;
- Life time of the pending order (in hours) - pending order life time in hours;
- magic number - unique identifier for the EA.
Testing results on M30 and H2:
MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/20127

The AD (Accumulation Distribution) indicator with three calculation methods.

SSS (Special Slow Stochastic) has an additional smoothed (slow) line based on the Stochastic signal line.

Example of functions MathCeil, MathRound and MathFloor.

The EA trades using pending Buy Stop and Sell Stop orders, applying the iAMA (Adaptive Moving Average, AMA) indicator based on a "round price". Position trailing.