PositionSelect only selects the first position it finds? I noticed that if there are 2 positions in the market this function only selects the one entered first in time.
The code I showed are for checking open positions... if you wanted to also check if there are Buy or Sell orders placed, then i will store that value in the OpenBuyOrder and OpenSellOrder variables.. the code to check that will be exactly the same except for instead of PositionsTotal() you will use OrdersTotal() and instead of pos variable use the ord variable (as we defined in the beginning pos to be CPositioninfo and ord to COrderinfo.. and store the value in OpenBuyOrder using OpenBuyOrder++ and OpenSellOrder++ (set the values to 0 in place of where we are setting the values of OpenBuy and OpenSell to 0)... Basically, the same code, but instead of checking for positions open we are checking for orders placed. Hope explains
Best Explain Ever! Thanks!
Now I understand how the order need to be looped though and how!
Glad it helped! Will be starting more videos
PositionSelect only selects the first position it finds? I noticed that if there are 2 positions in the market this function only selects the one entered first in time.
Nice Video, Helped me alot in writing code
Glad it helped! Will be starting more videos
well explained 👍
Thank you 🙂
Thanks for usefull video. Can we count Multy trade Volume and Their Avrage Price Buy Or Sell ? Pl Let us guide us By making Other vedio. Thanks
Thankyou!❤
You’re welcome brother 😊
Simplified, thanks!
You're welcome!
You created "ord" "OpenBuyOrder" "OpenSellOrder" variables, but never used them. How come?
The code I showed are for checking open positions... if you wanted to also check if there are Buy or Sell orders placed, then i will store that value in the OpenBuyOrder and OpenSellOrder variables.. the code to check that will be exactly the same except for instead of PositionsTotal() you will use OrdersTotal() and instead of pos variable use the ord variable (as we defined in the beginning pos to be CPositioninfo and ord to COrderinfo.. and store the value in OpenBuyOrder using OpenBuyOrder++ and OpenSellOrder++ (set the values to 0 in place of where we are setting the values of OpenBuy and OpenSell to 0)...
Basically, the same code, but instead of checking for positions open we are checking for orders placed.
Hope explains