|
double histt,histcb,histcs; for(int i=OrdersHistoryTotal()-1;i>0;i--){ OrderSelect(i, SELECT_BY_POS, MODE_HISTORY); if(OrderSymbol()==Symbol()){ histt=OrderCloseTime(); if(OrderType()==OP_BUY && OrderOpenPrice()>OrderClosePrice()){histcb=OrderClosePrice();}else if(OrderType()==OP_BUY && OrderOpenPrice() |
EA发布区