工作已完成
执行时间2 天
![](https://c.mql5.com/i/avatar/avatar_na2.png)
客户反馈
great codes great attitude
![](https://c.mql5.com/i/avatar/avatar_na2.png)
员工反馈
great customer. thank you
指定
I have created an EA with several timeframes, however, when tested, bugs are encountered, please advise.
I am using a H4 timeframe when going through a test.
input int barNumM=42; // Number of bars in mid term array double SLS=0; MqlRates mrateS[]; MqlRates mrateM[]; if(CopyRates(_Symbol,PERIOD_H4,0,barNumS,mrateS)<0) { Alert("Error copying H4 rates/history data - error:",GetLastError(),"!"); return; } if(CopyRates(_Symbol,PERIOD_D1,0,barNumM,mrateM)<0) { Alert("Error copying D1 rates/history data - error:",GetLastError(),"!"); return; } SLS=mrateM[iHighest(_Symbol,PERIOD_D1,MODE_HIGH,barNumM,0)].high-mrateM[iLowest(_Symbol,PERIOD_D1,MODE_LOW,barNumM,0)].low;
Bug: mrateM[iHighest(_Symbol,PERIOD_D1,MODE_HIGH,barNumM,0)].high-mrateM[iLowest(_Symbol,PERIOD_D1,MODE_LOW,barNumM,0)].low returns negative values sometimes.
Some of my buy logic is not working properly as well, but I think that is related to mrateM not functioning properly.
反馈
1
等级
项目
190
66%
仲裁
8
25%
/
50%
逾期
2
1%
空闲
2
等级
项目
121
43%
仲裁
12
33%
/
50%
逾期
17
14%
空闲
3
等级
项目
0
0%
仲裁
0
逾期
0
空闲
4
等级
项目
16
19%
仲裁
2
0%
/
50%
逾期
1
6%
空闲
项目信息
预算
30+ USD
开发人员
27
USD
截止日期
到 1 天