Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Margin error confusion

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

    Margin error confusion

    I submitted an order and after a while it got closed with the following error?
    would you please help me to understand it ?
    is there a way to programmatically get it ?


    Click image for larger version

Name:	Ninja Margin Error.png
Views:	254
Size:	13.9 KB
ID:	1149415

    #2
    Capture OrderState.Rejected in OnOrderUpdate.

    Comment


      #3
      Thanks bltdavid

      I'd like to get margin value not reason of rejection.

      Comment


        #4
        Hello bosajin,


        CRITICAL — If your inquiry involves live orders, please always reach out to your broker's Orders Desk immediately to confirm and manage your live orders and positions.

        If your trades are with NinjaTrader Brokerage, you can contact NinjaTrader Brokerage Order Desk here:
        • Email: orders (at) ninjatrader (dot) com

        This error message generally indicates that your account does not have enough margin available to execute an order, and would be caused by the brokerage/exchange directly.

        If you are uncertain what this error means or would like more information regarding it, please contact your brokerage directly. If you are with the NinjaTrader Brokerage you may reach out to them directly via email at brokeragesupport (at) ninjatrader (dot) com.

        I have also forwarded a note to our NinjaScript Team, they will follow up with you shortly regarding capturing the margin value in the script directly.

        Should you have any further questions in this regard, please let me know!
        Manfred F.NinjaTrader Customer Service

        Comment


          #5
          Hello bosajin,

          Thank you for your replies.

          Several Margin values for your account may be available to you via NinjaScript depending on your broker. Some do not provide these values through their API and if they do not these would not be accessible to you via NinjaScript. You can check which values may be available to you here:



          Monitoring for changes in these values would be done using add-on code in OnAccountItemUpdate:





          Please let us know if we may be of further assistance to you.
          Kate W.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by PaulMohn, Today, 05:00 AM
          0 responses
          5 views
          0 likes
          Last Post PaulMohn  
          Started by ZenCortexAuCost, Today, 04:24 AM
          0 responses
          5 views
          0 likes
          Last Post ZenCortexAuCost  
          Started by ZenCortexAuCost, Today, 04:22 AM
          0 responses
          2 views
          0 likes
          Last Post ZenCortexAuCost  
          Started by SantoshXX, Today, 03:09 AM
          0 responses
          15 views
          0 likes
          Last Post SantoshXX  
          Started by DanielTynera, Today, 01:14 AM
          0 responses
          3 views
          0 likes
          Last Post DanielTynera  
          Working...
          X