Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Basket of Trades

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

    Basket of Trades

    I have looked for and not found a solution in NT to a problem which may possibly be considered for future releases. It is possible to set maxprofit and maxLoss values within each strategy. Is there any way within NT, by using a script or by some other means of setting a maxProfit or maxLoss for the net total profit/loss for a basket of instruments that when reached would flatten all orders on currently active strategies? There are scripts available for use in MT4 trading FX and it is a very useful function.
    Thanks
    Karl

    #2
    Hello,


    Thank you for your note.


    You can check the PnL of the current running strategy and stop trading with some extra code inputted into the strategy. You can base it off of this sample:



    As far as checking your accountPnL or combined PnL between multiple running strategies you only have access to the following:



    As far as calculating this in your strategies since in NinjaTrader each strategy runs as its own black box there is no cross communication supported between strategies. It could be possible but would require unsupported programming.

    I will also send your suggestion on account wide unrealized PnL access to development.

    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      Development has added this to the list for them to review and it has ID 1415.

      Have a great rest of your day.

      -Brett
      BrettNinjaTrader Product Management

      Comment


        #4
        Thanks Guys - I shall watch for future development with interest as I believe it could be a valuable addition to the NT platform.
        Karl

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        63 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        139 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        75 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        45 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        50 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X