MQL5 How To:Check for Open Positions

Поделиться
HTML-код
  • Опубликовано: 4 янв 2025

Комментарии • 16

  • @Stisse12
    @Stisse12 8 месяцев назад

    Best Explain Ever! Thanks!
    Now I understand how the order need to be looped though and how!

    • @No_Shenanigans
      @No_Shenanigans  5 месяцев назад

      Glad it helped! Will be starting more videos

  • @milkovivaldi
    @milkovivaldi 3 месяца назад

    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.

  • @mithileshn9077
    @mithileshn9077 9 месяцев назад

    Nice Video, Helped me alot in writing code

    • @No_Shenanigans
      @No_Shenanigans  5 месяцев назад

      Glad it helped! Will be starting more videos

  • @endva3092
    @endva3092 11 месяцев назад +1

    well explained 👍

  • @shahinsinv
    @shahinsinv Год назад

    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

  • @_.mv._.05._
    @_.mv._.05._ 27 дней назад

    Thankyou!❤

  • @tool1gt
    @tool1gt 7 месяцев назад

    Simplified, thanks!

  • @TheZooBrooksAB
    @TheZooBrooksAB Год назад

    You created "ord" "OpenBuyOrder" "OpenSellOrder" variables, but never used them. How come?

    • @No_Shenanigans
      @No_Shenanigans  Год назад +1

      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