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 codes
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 日