Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by helpwanted, Today, 03:06 AM
    1 response
    12 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    9 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    5 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    242 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Started by TraderG23, 12-08-2023, 07:56 AM
    9 responses
    387 views
    1 like
    Last Post Gavini
    by Gavini
     
    Working...
    X