Please coding of EA i have done keeps opening same position as the one closed before it instead of waiting for the next opposite signal. i want order history control that will select the last closed order that has same ordertype andsymbol with that
My history data shows the last closed position below the table while all the previous were above it. Total=OrdersHistoryTotal() " for(int i=0;i =0;i--) " Please which of this will select the last close order if the table is as above or can
my Ea keeps opening same type position when it opens one and make profit it will open another one on this same direction after takeprofit point even if trade is about to go the other way. Pls i need a simple order management code that will prevent