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
등급
(1305)
프로젝트
1734
49%
중재
55
67% / 16%
기한 초과
38
2%
무료
2
개발자 2
등급
(390)
프로젝트
416
30%
중재
74
19% / 72%
기한 초과
52
13%
작업중
3
개발자 3
등급
(885)
프로젝트
1410
67%
중재
123
32% / 41%
기한 초과
217
15%
무료
게재됨: 1 코드
4
개발자 4
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
5
개발자 5
등급
(332)
프로젝트
485
40%
중재
82
11% / 63%
기한 초과
77
16%
무료
게재됨: 1 코드
6
개발자 6
등급
(590)
프로젝트
789
71%
중재
9
33% / 33%
기한 초과
22
3%
무료
게재됨: 8 코드
7
개발자 7
등급
(114)
프로젝트
154
47%
중재
2
0% / 50%
기한 초과
4
3%
무료
8
개발자 8
등급
(455)
프로젝트
721
34%
중재
35
71% / 9%
기한 초과
23
3%
무료
9
개발자 9
등급
(88)
프로젝트
143
39%
중재
21
19% / 48%
기한 초과
30
21%
무료
10
개발자 10
등급
(645)
프로젝트
873
48%
중재
29
38% / 17%
기한 초과
63
7%
무료
11
개발자 11
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
12
개발자 12
등급
(1156)
프로젝트
1462
63%
중재
21
57% / 10%
기한 초과
43
3%
무료
13
개발자 13
등급
(574)
프로젝트
945
47%
중재
309
58% / 27%
기한 초과
125
13%
무료
14
개발자 14
등급
(36)
프로젝트
50
28%
중재
2
0% / 100%
기한 초과
6
12%
무료
15
개발자 15
등급
(135)
프로젝트
163
40%
중재
11
27% / 73%
기한 초과
24
15%
무료
16
개발자 16
등급
(620)
프로젝트
723
33%
중재
46
48% / 41%
기한 초과
14
2%
바쁜
17
개발자 17
등급
(1)
프로젝트
1
100%
중재
0
기한 초과
0
무료
18
개발자 18
등급
(251)
프로젝트
400
54%
중재
9
67% / 22%
기한 초과
36
9%
무료
게재됨: 2 코드
19
개발자 19
등급
(61)
프로젝트
83
45%
중재
27
11% / 70%
기한 초과
8
10%
무료
20
개발자 20
등급
(96)
프로젝트
143
76%
중재
0
기한 초과
2
1%
무료
21
개발자 21
등급
(69)
프로젝트
146
34%
중재
13
8% / 62%
기한 초과
26
18%
무료
게재됨: 6 코드

프로젝트 정보

예산
10 - 65 USD
기한
 7 일