당사 팬 페이지에 가입하십시오
- 게시자:
- Vladimir Karputov
- 조회수:
- 3355
- 평가:
- 게시됨:
- 2018.06.16 10:04
-
이 코드를 기반으로 한 로봇이나 지표가 필요하신가요? 프리랜스로 주문하세요 프리랜스로 이동
Idea by: Scriptor.
MQL5 code by: Vladimir Karputov.
The EA trades on the iMA (Moving Average, MA) indicator. At the same time, there is a parameter (defined in percents) Distance between "MA" and the price - the indicator indent from price. Before sending a trade order, it checks how much time has elapsed since opening the last position: If fewer than two periods (timeframes) have elapsed, then the position will not be opened.
Inputs
- Lots - the size of the position to be opened;
- Stop Loss (in pips) (do not use "0") - Stop Loss; setting the value of "0" is prohibited;
- Take Profit (in pips) (do not use "0") - Take Profit; setting the value of "0" is prohibited;
- MA: averaging period - indicator averaging period;
- MA: horizontal shift - indicator horizontal shift;
- MA: smoothing type - the type of indicator averaging;
- MA: type of price - the type of indicator price;
- Distance between "MA" and the price (as a percentage) - indicator distance from price, in percents;
- Trade on Friday - enable trading on Friday;
- Step: distance between positions (in pips) - step between positions;
- Increase in a step depending on quantity of positions - scale up the step with the increse in the number of positions;
- magic number - unique identifier for the EA.
A test sample for all symbols on H1 with the default parameters:
MetaQuotes Ltd에서 러시아어로 번역함.
원본 코드: https://www.mql5.com/ru/code/20554

Two Moving Average indicators: A slow one for opening positions, and a fast one for closing positions.

An Expert Advisor based on two indicators: iMAs (Moving Average, MA) and iMomentum (Momentum).

Generic Index Indicator.

The US dollar index against a basket of basic currencies.