About Array Problem
| What you are currently building has count==1 but price in a random position. It can not be sorted. | random garbage | random garbage | price | random garbage | random garbage | BuyOrderNum++; BuyOrderOpenPrice[i]=PositionGetDouble(POSITION_PRICE_OPEN); |
| Instead of building, count==1, price in first position. | price | don't care | don't care | don't care | don't care | BuyOrderOpenPrice[BuyOrderNum]=PositionGetDouble(POSITION_PRICE_OPEN); BuyOrderNum++; |
William Roeder #:
| What you are currently building has count==1 but price in a random position. It can not be sorted. | random garbage | random garbage | price | random garbage | random garbage | |
| Instead of building, count==1, price in first position. | price | don't care | don't care | don't care | don't care |
It’s work now, Thank you very much.
Hello guys, does anyone know how to get current orders open price and sort in array(BuyOrderOpenPrice[]) only, but not include closed order(history)? I use above code for checking order, but BuyOrderOpenPrice[] still have closed order open price there. Please help me, Many Thanks!