Update EA

MQL5 专家

工作已完成

执行时间2 天
员工反馈
Good job !

指定

Make some changes to the EA's decision mode:

 - Change the EA's decision mode of entry in buy or sell:

1)  Add  ALMA moving average inclined or declined in process of decision:

Ex:
ma20 = alma(close, 45, 0.85, 6)
ma20i = ma20> ma20[1] (inclined)
ma20d = ma20<ma20[1] (Declined)

2) Add new decision mode:

buy = delta>0 and ma20i
sell = delta<0 and ma20d

"--------- delta is defined here----- (its ready in EA)

macd = ema(close, rapida) - ema(close, lenta)

sinal = ema(macd, ref)

delta = macd - sinal 

"-----------

3)
a) When the market indicates buy,  the EA must place a order  limit of "long"  at the value specified by ALMA in closed previous.

b) The value of order limit "long" must be updated at the close of the candle, due to ALMA also changing, while the market no take this order.

 c) When the market no indicates buy, it stops updating the limit order value, but it keeps active order.

d) When the market reverses the hand, and indicate sell, the EA must cancel the "long" order and place the order "short" in the correct hand and continue updating the value according ALMA at each candle closing.




反馈

1
开发者 1
等级
(332)
项目
485
40%
仲裁
82
11% / 63%
逾期
77
16%
空闲
发布者: 1 代码
2
开发者 2
等级
(186)
项目
205
26%
仲裁
12
25% / 58%
逾期
39
19%
空闲

项目信息

预算
30+ USD
截止日期
 1  4 天