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 SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      52 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      24 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      16 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      23 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      24 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X