Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

show margin before a trade starts

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

    show margin before a trade starts

    Hello,

    i have searched and google, but i could not find anything,...

    is there a way to get the needed margin (or leverage) BEFORE a trade starts?

    like instrument.GetMasterinstument.GetMargin or something like this?

    thank you very much,
    Last edited by jambus1986; 07-06-2022, 01:39 AM.

    #2
    Hello jambus1986,

    Thank you for your post.

    Not really, the only margin info we would have is the risk template applied to the account. It wouldn't be documented, but it may be possible to loop through that template and get a margin value, but the only risk templates in the platform would be for NinjaTrader Brokerage.

    You can take a look at this post from our forums for some ideas:
    Hey, I want to extract info from RIsk template (Everything, like initial margin, maintenance margin, max order, etc.) to a strategy and use that info first for backtest and optimization. How can I do that? I searched help guide, but no formulas were provided.


    That being said, I've added a vote to a current feature request for you for a way to get risk settings from a live account. This request is being tracked under the number SFT-3796.

    As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted in the Release Notes page of the Help Guide.

    Release Notes — https://ninjatrader.com/support/help...ease_notes.htm

    Please let us know if we may be of further assistance to you.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    88 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    134 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    119 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X