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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      67 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      36 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      60 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      62 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Working...
      X