Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Modify trades and total account equity

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

    Modify trades and total account equity

    Hi all,
    I am new to Ninja Trader, and nowI am trying to convert an EA from MQL to Ninja, and I have encountered some problems in writting the money management,
    I would like to ask
    (1) How can I modify opened trades?
    (2) How can I get the total account equity in order to set the size of the trades?
    I would really appreciate if someone can help,
    Thank you!

    #2
    1. You can modify orders just by submitting in modification orders. It will find your original and just amend it if necessary.

    2. You can use AccountSize and when you run your strategy change "Order quantity" parameter to "By account size". It will automatically calculate the needed shares to utilize your account.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Thank you very much for your prompt reply and clear explanation!

      But I still have one question, is it possible to send modifying orders by coding in the strategy? and how exactly is the coding of this order?

      Comment


        #4
        Let's say you placed an order for EnterLongLimit(). You decide you want to change the limit price so in your code just call EnterLongLimit() again with the new limit price and then it will amend the original automatically.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          I got it, thank you again for your reply!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by charlesugo_1, 05-26-2026, 05:03 PM
          0 responses
          60 views
          0 likes
          Last Post charlesugo_1  
          Started by DannyP96, 05-18-2026, 02:38 PM
          1 response
          145 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 05-11-2026, 05:56 AM
          0 responses
          161 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 05-10-2026, 08:12 PM
          0 responses
          97 views
          0 likes
          Last Post CarlTrading  
          Started by Hwop38, 05-04-2026, 07:02 PM
          0 responses
          283 views
          0 likes
          Last Post Hwop38
          by Hwop38
           
          Working...
          X