Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

multiple extrategy execution of strategy doesn't work

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

    multiple extrategy execution of strategy doesn't work

    Hi,

    I Just open a New Chart and load a Strategy on it and goes well. Y print a statement each OnBarUpdate into Output window and prints well to.
    But I open anotner chart with another asset and I loaded the same strategy. In strategyes tab in control panel says that both are loader and working (his name it's on green) but none print in Ouput window. So I think both strategies stop working.
    What can I do?

    #2
    Hello ervin,

    Are the strategies added to charts?

    Are there new bars appearing on the charts?

    Is the print within an if condition or are you printing the time at the top of OnBarUpdate()?

    Print(Time[0]);
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Are the strategies added to charts? YES

      Are there new bars appearing on the charts? YES

      Is the print within an if condition or are you printing the time at the top of OnBarUpdate()?, I'm printing after control numbars required, so always print when a new candle loads, but when I open the second chart and add the strategy neither of them print anything.

      Comment


        #4
        Hello ervin,

        Put a print at the top of OnBarUpdate() outside of any conditions.

        Do you see the print appearing each time a new bar appears?
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hi,
          I have changed de time frame of the second chart one miute more than first. It's seems to work. Now both of them print.
          But when one of them open a position the other sopt printing I don't know if it's not working or not printing.
          It's so rare

          Comment


            #6
            Hello ervin,

            If you are able to reproduce the print at the top of OnBarUpdate() not appearing as new bars are appearing on the chart when two instances of the strategy are enabled, please send an email to platformsupport [at] ninjatrader [dot] com so that we may schedule a call where I may observe the behavior. In the email please include a link to this forum thread.
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Today, 05:17 AM
            0 responses
            41 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            124 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            64 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            41 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            46 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X