An Expert Advisor for 2 MA cross

MQL4 번역

작업 종료됨

실행 시간 1 일
피고용인의 피드백
Very thanks for order! Please let me know if you need programmer!
고객의 피드백
Job done in a timely manner

명시

Just an EA I can attach to a chart so once Slow EMA crosses the Fast EMA (slow EMA is above the fast EMA) I want the EA to enter a short position and once the Fast EMA crosses the slow EMA (the fast EMA is above the slow) I want the EA to buy and enter long. I want the EMA to close orders at the intersection of the EMAs and enter a position either by buying or selling.

MA's time frame as per the launched pair.

MA's values must be fully configurable: Period, Method (exponential, simple,...), Apply to (open, close,...) 

No need to close multiple EA's as I will run just one EA per pair/account so it can work by using the same magic number as the running EA.

Specifications:

1.       1.  An EA that trades at the intersection of 2 MAs based on the closing of the previous bar.

2.       2.  EA Signal is based on the previous candle.

3.       3.  A trailing stop loss.

4.      4.   Trend is determined based on the Exponential Moving Average with the specified period (InpMATrendPeriod). If the fast EMA value is greater than the previous one, the trend is seen as growing (ema_fast > ema_slow). Alternatively, if fast EMA is below the previous one, the trend is considered to be falling (ema_fast< ema_slow).

5.     5.  Trading Signals:

  • Buy signal: the fast MA line crosses the slow MA line upwards (ema_fast > ema_slow)
  • Sell signal: the main fast MA line crosses the slow MA line downwards (ema_fast< ema_slow). The below figure shows Buy and Sell cases.

6. Positions are closed at opposite signals: Buy positions are closed at Sell signals, and Sell positions are closed at Buy signals.

7. Positions are opened at the market price, when a new bar emerges. The Expert Advisor is to be tested using Open prices (for buying and selling signal) and Close prices (for the MA intersection signal and closing open orders).

 


Parameters:

Fast EMA period: 20

Slow EMA period: 7

shift for both fast and slow : 0

Slippage:0

TakeProfit: 0

StopLoss:0

The takeprofit is Zero as it will takeprofit / loss at the intersection by closing the orders



Any question, please, just ask.


Thank you.

응답함

1
개발자 1
등급
(1110)
프로젝트
1470
45%
중재
49
73% / 12%
기한 초과
37
3%
무료
2
개발자 2
등급
(379)
프로젝트
404
31%
중재
64
19% / 69%
기한 초과
51
13%
로드됨
3
개발자 3
등급
(879)
프로젝트
1394
67%
중재
117
32% / 42%
기한 초과
215
15%
무료
4
개발자 4
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
5
개발자 5
등급
(328)
프로젝트
480
41%
중재
78
12% / 63%
기한 초과
77
16%
작업중
6
개발자 6
등급
(590)
프로젝트
789
71%
중재
9
33% / 33%
기한 초과
22
3%
무료
7
개발자 7
등급
(114)
프로젝트
154
47%
중재
2
0% / 50%
기한 초과
4
3%
무료
8
개발자 8
등급
(358)
프로젝트
565
33%
중재
25
64% / 8%
기한 초과
16
3%
로드됨
9
개발자 9
등급
(88)
프로젝트
143
39%
중재
21
19% / 48%
기한 초과
30
21%
무료
10
개발자 10
등급
(570)
프로젝트
784
47%
중재
23
39% / 13%
기한 초과
63
8%
로드됨
11
개발자 11
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
12
개발자 12
등급
(1135)
프로젝트
1438
62%
중재
21
57% / 10%
기한 초과
43
3%
무료
13
개발자 13
등급
(564)
프로젝트
933
47%
중재
303
59% / 25%
기한 초과
125
13%
로드됨
14
개발자 14
등급
(36)
프로젝트
50
28%
중재
2
0% / 100%
기한 초과
6
12%
무료
15
개발자 15
등급
(135)
프로젝트
163
40%
중재
11
27% / 73%
기한 초과
25
15%
무료
16
개발자 16
등급
(490)
프로젝트
561
33%
중재
27
44% / 44%
기한 초과
9
2%
바쁜
17
개발자 17
등급
(1)
프로젝트
1
100%
중재
0
기한 초과
0
무료
18
개발자 18
등급
(251)
프로젝트
400
54%
중재
9
67% / 22%
기한 초과
36
9%
무료
19
개발자 19
등급
(56)
프로젝트
75
44%
중재
21
14% / 67%
기한 초과
8
11%
무료
20
개발자 20
등급
(96)
프로젝트
143
76%
중재
0
기한 초과
2
1%
무료
21
개발자 21
등급
(67)
프로젝트
144
34%
중재
10
10% / 60%
기한 초과
26
18%
무료

프로젝트 정보

예산
10 - 65 USD
개발자에게
9 - 58.5 USD
기한
 7 일