Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

multilpe instrument issue

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

    multilpe instrument issue

    Hi,

    My strategy is running on different time series and I also added one more instrument in initialize method.I set DaysToLoad = 10 . My strategy is not working . I do not know why it is not running . I have 19 days data of the instrument on which strategy is running but I have no data of previous days for second instrument which I am added in initialize method.Is issue is because of second instrument data? because when I have previous days data for second instrument it s working properly.

    Thanks,
    Irfan

    #2
    Hi Rana.irfan,

    Thank you for your post.

    What are the other data series and time frames you are adding to the script?

    How are you setting the days to load? Script or the parameters when applying the script to a chart?

    If you go to the Log Tab, do you receive any errors when try to add the script to a chart?
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      no error in logs.strategy is running on any instrument not working and second instrument which I am added is $EURUSD

      Comment


        #4
        Rana.irfan,

        What are the time frames for all the data series you have added in the script and the primary one from the chart?
        Cal H.NinjaTrader Customer Service

        Comment


          #5
          I am using primary time frame 10 mints and others are 1 mint, 5 mint ,10 mint and 60 mint and second instrument is using 1 mint time frame. Some times strategy is not enabled due to second instrument. issue is only in adding second instrument because when i am not added second instrument strategy works fine.

          Comment


            #6
            Rana.irfan,

            When you have the second instrument added to the script and try to run it, do you have any errors in the log tab?

            Who are you connected to? This is displayed in the lower left hand corner.
            Cal H.NinjaTrader Customer Service

            Comment


              #7
              there is not errors in logs when added second instrument . I am using simulated data feed to test my strategy. Primary instrument is HSBALON and second instrument is EURUSD. Please tell me why it is behaving that I am stuck on this form few days.

              Comment


                #8
                please help me out this issue only arise on historical data.when I have 10 days data for both instrument there is no issue in the strategy. but when I have only primary instrument 10 days data and not have 10 days data for second instrument . there is issue in the strategy at that time. I set DaysToLoad = 5 or 10 but its behavior is same. I only perform my calculation on primary instrument when running on historical data. Second instrument only use when live.
                Previous days data for second instrument is necessary for this? because when i commit the line which add second instrument then there is no issue in the strategy and when I uncommit then same issue .

                Comment


                  #9
                  Rana.irfan,

                  Are you checking to ensure that you have enough bars for all the data series?
                  Enough Bars in the Data Sreies

                  Also, you can use BarsInProgess to ignore the second data series in the historical script.
                  BarsInProgress
                  Cal H.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  666 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  376 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  110 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  575 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  580 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X