Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

stopping and starting strategies with positions on

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

    #61
    I thought I'd posted the link to the logs & traces - here it is:

    Comment


      #62
      Originally posted by NinjaTrader_Josh View Post
      As your scenario is extremely complicated with a ton of strategies all trying to do their own thing you will need to provide exact strategy IDs and timestamps along each step of the way so we can take a look at the logs. Thank you.
      Where do I find this strategy id? I see mentioned in different places, but I can't figure out which instance in the strategies tab each one is.

      Comment


        #63
        Adam, Josh referred to just the strategy name / instrument / timeframe combination that gave you the issue, it would also help if you for example tested on a limited amount of strategy instances first to help simplify the setup and minimize potential interactions. As mentioned in my email the bug concerning the historical OCO id's that could have been non unique per strategy was found in B22 and fixed for B23.

        I'm checking with IB API support into the 'Unable to cancel order...' error currently and will let you know what insight is hopefully contained.

        Comment


          #64
          OK, sounds positive but it would still be good to know how I find out what that long strategy id is, so I can cross check the log statements.

          Comment


            #65
            When you start a strategy the first line in the logs will be something like this:

            10/6/2010 3:00:54 PM Strategy Enabling NinjaScript strategy 'SampleMACrossOver/6ece59dfc4974fe49270b0865dced30b' : On starting a real-time strategy - StrategySync=SubmitImmediately SyncAccountPosition=False EntryHandling=AllEntries EntriesPerDirection=1 StopTargetHandling=PerEntryExecution ErrorHandling=StopStrategyCancelOrdersClosePositio ns ExitOnClose=True/ triggering 30 before close Set order quantity by=Strategy ConnectionLossHandling=KeepRunning DisconnectDelaySeconds=10 CancelEntryOrdersOnDisable=True CancelExitOrdersOnDisable=True MaxRestarts=4 in 5 minutes

            The highlighted bold/red thing is the strategy ID.
            Josh P.NinjaTrader Customer Service

            Comment


              #66
              Hi Josh,

              thanks for the info.

              That means I can note down the strategy id at the time when I enable the strategy, or afterwards if the strategy immediately submits orders, I'll see which instrument it's running on. It would be ideal though if the logging could contain those details about the strategy - instrument, time frame at least.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              606 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              351 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              105 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              560 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              561 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X