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 judysamnt7, 03-13-2023, 09:11 AM
            4 responses
            59 views
            0 likes
            Last Post DynamicTest  
            Started by ScottWalsh, Today, 06:52 PM
            4 responses
            36 views
            0 likes
            Last Post ScottWalsh  
            Started by olisav57, Today, 07:39 PM
            0 responses
            7 views
            0 likes
            Last Post olisav57  
            Started by trilliantrader, Today, 03:01 PM
            2 responses
            21 views
            0 likes
            Last Post helpwanted  
            Started by cre8able, Today, 07:24 PM
            0 responses
            10 views
            0 likes
            Last Post cre8able  
            Working...
            X