Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Trade Management Script

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

    Trade Management Script

    I would like to code a script to manage trades. The position could be opened by other script, may be a market order or a stop or limit order, and my script must detect that a new order is open, get the number of lots opened, get the id of the position and then manipulate the sl, tp and close the order according to management logic in that account.

    Is there anyone that did that? Could you help me with some example?

    BR,
    Federico
    Last edited by federicoo; 11-24-2016, 08:24 AM.

    #2
    Hello federicoo,

    Thank you for your post.

    NinjaScript strategies are designed for automated position and order management specific to their position and not the orders or positions of the account.

    I am not aware of any unsupported examples of doing what you have asked.

    Comment


      #3
      Txs. It is the same with NT 8? or may be I could do this with NT 8?

      Comment


        #4
        Hello,

        Thank you for the question.

        There are greater controls in NT8 for addons which may be a better suited type for this type of logic. Strategies specifically are still intended for being an automated trader that sits in place of yourself, Addons give greater capability to make your own custom tools that behave how you want. This could likely be possible by not using a strategy and making use of the addon framework. because we are in the NT7 forums, I will post the following example as a starting point. For further questions related to NT8 I would suggest to create another thread in the NT8 forums.



        I look forward to being of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        80 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        40 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        63 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        54 views
        0 likes
        Last Post CarlTrading  
        Working...
        X