I may be putting something in the wrong place, but (and please disregard the buy/sell orders,i'm trying to get the profit amount from a ticket) does this make any sense?
I think i'm doing something wrong with the orderselect, but I don;t know what.
Any help greatly appreciated.
I think i'm doing something wrong with the orderselect, but I don;t know what.
Any help greatly appreciated.
Inserted Code
int intLoop; for (intLoop=1;intLoop<51;intLoop++) { if (OrderSelect(intLoop,SELECT_BY_POS)==true) { if (OrderProfit() > 0) { OrderSend(strSymb,OP_BUY,dblLots,Ask,intSlip,Bid-1*Point,Bid+2*Point); } else { OrderSend(strSymb,OP_SELL,dblLots,Bid,intSlip,Ask-1*Point,Ask+2*Point); } }