작업 종료됨
실행 시간 2 시간
고객의 피드백
Great developer, i will hire him again...
명시
I Need to convert MQL4 code to MQL5. Make it is working as same as MT4 do. It is small Code I need this today. Code is Below -
datetime start_date = TimeCurrent()-1000; double lots1,prices,prices_c,swap,pricesBuy,lotsbuy,pricesSell,lotssell; for (int i=OrdersHistoryTotal()-1; i>=0; i--) { if (OrderSelect(i, SELECT_BY_POS, MODE_HISTORY)) { if (OrderSymbol() == _Symbol && (OrderType() == OP_SELL || OrderType() == OP_BUY) && doMagic() && OrderCloseTime()!=0) { if ( OrderCloseTime() >= start_date) { lots1 = lots1 + OrderLots(); prices = prices + (OrderOpenPrice() * OrderLots()); prices_c = prices_c + (OrderOpenPrice() * OrderLots()); swap = swap + OrderSwap(); if(OrderType()==OP_BUY){ pricesBuy = pricesBuy + (OrderOpenPrice() * OrderLots()); lotsbuy = lotsbuy + OrderLots(); } else if(OrderType()==OP_SELL){ pricesSell = pricesSell + (OrderOpenPrice() * OrderLots()); lotssell = lotssell + OrderOpenPrice(); } } if ( OrderCloseTime() < start_date) break; } } }
응답함
1
등급
프로젝트
258
61%
중재
4
50%
/
25%
기한 초과
10
4%
무료
2
등급
프로젝트
789
71%
중재
9
33%
/
33%
기한 초과
22
3%
무료
게재됨: 8 코드
3
등급
프로젝트
1295
67%
중재
84
26%
/
49%
기한 초과
338
26%
무료
4
등급
프로젝트
23
39%
중재
26
8%
/
38%
기한 초과
0
무료
프로젝트 정보
예산
30+ USD
기한
에서 1 로 2 일