EA: Candle Average Trade

MQL5 전문가

작업 종료됨

실행 시간 7 분
고객의 피드백
Sehr guter und geduldiger Programmierer. Gerne wieder!
피고용인의 피드백
Toller Kunde! Vielen Dank für die Bestellung!

명시

Hi,

I need an expert Advisor for MT5 which calculates the average of the last candle = ( High+Low)/2  (in every time frame the chart is) and then takes the following action:

If average (last candle) is above average from the candle before then if there is not already long position buy X points above high of last candle. X is to be defined. 

If average (last candle) is below average from the candle before then if there is not already short position sell X points below low of last candle.

The start and finish of the EA should also be set (time).

Trailing Stop and take profit can be predifined for current position or unset (which will results in a position that changes from long to short and the other way around).


example A: X=3  TrailingStop=10  Take Profit=8

candle 1 High: 1020 Low: 1010

candle 2 High: 1030 Low: 1005 (average higher)=> if there is no long position then BuyStop to 1033 (X=3)

candle 3 High: 1035 Low: 1015 (average higher)=> order has triggered: Buy @ 1033; Trailing Stop @ 1025; Take Profit @ 1041

candle 4 High: 1040 Low: 1031 (average higher)=> Trailing Stop @ 1030; Take Profit @ 1041

candle 5 High: 1045 Low: 1032 (average higher)=> Take Profit triggered @ 1041

candle 6 High: 1044 Low: 1031 (average lower)=> if there is no short position then SellStop to 1028 (X=3)

and so on...


example B: X=3  no Trailing Stop and no Take Profit

candle 1 High: 1020 Low: 1010

candle 2 High: 1030 Low: 1005 (average higher) => if there is no long position then BuyStop to 1033 (X=3)

candle 3 High: 1035 Low: 1015 (average higher) => order has triggered: Buy @ 1033

candle 4 High: 1040 Low: 1031 (average higher)

candle 5 High: 1045 Low: 1032 (average higher)

candle 6 High: 1044 Low: 1031 (average lower)=> if there is no short position then Stop of long position to 1028 + SellStop for new position to 1028 (X=3)

and so on...


응답함

1
개발자 1
등급
(27)
프로젝트
27
26%
중재
2
0% / 50%
기한 초과
1
4%
무료
2
개발자 2
등급
(511)
프로젝트
549
53%
중재
13
69% / 15%
기한 초과
3
1%
무료
3
개발자 3
등급
(547)
프로젝트
630
33%
중재
38
39% / 50%
기한 초과
11
2%
로드됨
4
개발자 4
등급
(103)
프로젝트
165
24%
중재
23
9% / 78%
기한 초과
16
10%
작업중
5
개발자 5
등급
(627)
프로젝트
846
48%
중재
29
34% / 14%
기한 초과
63
7%
작업중
6
개발자 6
등급
(295)
프로젝트
472
40%
중재
103
40% / 23%
기한 초과
78
17%
바쁜
게재됨: 2 코드
7
개발자 7
등급
(2302)
프로젝트
2898
63%
중재
122
44% / 25%
기한 초과
429
15%
무료
8
개발자 8
등급
(31)
프로젝트
56
21%
중재
12
67% / 8%
기한 초과
2
4%
무료

프로젝트 정보

예산
50 - 120 USD
기한
에서 1  3 일