Moving stop to better than break even! New comment [Deleted] 2009.09.05 19:28 for(int k=OrdersTotal()-1;k>=0;k--) { if(OrderSelect(k, SELECT_BY_POS)) { if(OrderType()==OP_BUY) { RefreshRates(); if(OrderOpenPrice()==Bid-Point*15) { OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice()+Point*5,OrderTakeProfit(),0,Blue); } } if(OrderType()==OP_SELL) { RefreshRates(); if(OrderOpenPrice()==Ask+Point*15) { OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice()-Point*5,OrderTakeProfit(),0,Blue); } } } } Could someone tell me if this code is going to work? Is there a slightly better way to incorporate this? Any help would be greatly appreciated!! Thank you all..... Daniel How to code? need some help with EA Exit Strategy: Stepping Stops vs. Trailing Stops New comment
}
Could someone tell me if this code is going to work? Is there a slightly better way to incorporate this? Any help would be greatly appreciated!! Thank you all..... Daniel