仕事が完了した
実行時間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 codes
3
評価
プロジェクト
1295
67%
仲裁
84
26%
/
49%
期限切れ
338
26%
暇
4
評価
プロジェクト
23
39%
仲裁
26
8%
/
38%
期限切れ
0
暇
プロジェクト情報
予算
30+ USD
締め切り
最低 1 最高 2 日