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.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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!