Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Buying power

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Thank you.

    After examining the GetAccountValue(BuyingPower) function it does not seems to be updated when I open a position, only after I close it. Is there another way to know the buying power considering open positions?

    Perhaps there's a function which returns the buying power which I am using at the moment with open positions? For example, If I have an open position of 4,000 EURUSD, which took 4,000 USD of my buying power, the function will return 4,000.
    Last edited by kiss987; 02-26-2016, 06:58 AM.

    Comment


      #17
      Hello Kiss987,

      BuyingPower is updated after each order and is received directly from the brokerage. You could choose to calculate the buying power yourself based on an initial account value, or you can use the value as this is returned from the brokerage.

      There is no other method or function that would return remaining buying power when an order is not completed.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      648 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      369 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      108 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      572 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      574 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X