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 Waxavi, Today, 02:10 AM
            0 responses
            4 views
            0 likes
            Last Post Waxavi
            by Waxavi
             
            Started by TradeForge, Today, 02:09 AM
            0 responses
            11 views
            0 likes
            Last Post TradeForge  
            Started by Waxavi, Today, 02:00 AM
            0 responses
            2 views
            0 likes
            Last Post Waxavi
            by Waxavi
             
            Started by elirion, Today, 01:36 AM
            0 responses
            4 views
            0 likes
            Last Post elirion
            by elirion
             
            Started by gentlebenthebear, Today, 01:30 AM
            0 responses
            5 views
            0 likes
            Last Post gentlebenthebear  
            Working...
            X