Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy won't stay enabled when

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

    Strategy won't stay enabled when

    I am using a specific strategy setting for OrderFillResolution. It is set to OrderFillResolution = OrderFillResolution.Standard;

    When connected to Playback Connection the strategy immediately disables. The actual strategy settings when I am creating I have set to OrderFillResolution Standard. This is because it throws an error that explains it should be set programmatically.

    What am I doing incorrectly?

    #2
    Hello Armstro99,

    Can you post the error that you are seeing so i can get a better idea of a solution

    Comment


      #3
      Click image for larger version

Name:	image.png
Views:	174
Size:	97.9 KB
ID:	1271232​if (State == State.SetDefaults)
      {​
      OrderFillResolution = OrderFillResolution.High;
      }

      else if (State == State.Configure)
      {
      AddDataSeries(Data.BarsPeriodType.Tick, 1);
      }​​



      I am unable to enable my strategy when connected to PlayBack. Is it because of these settings? I am trying to troubleshoot still.
      Attached Files

      Comment


        #4
        When I comment out 'AddDataSeries(Data.BarsPeriodType.Tick, 1);' it keeps the strategy enabled. So multi-data series working with PlayBack connection is the issue.. What am I over-looking?

        Comment


          #5
          Hello Armstro99,

          Order resolution is only used for single series scripts, you would need to not use order resolution if you are using an extra tick series. There is a sample of adding granularity here: https://ninjatrader.com/support/help...ipt_strate.htm

          Comment


            #6
            Thank you. I will review and implement.

            Comment


              #7
              This documentation has the primary data series at a smaller time frame. The secondary data series should be smaller: https://ninjatrader.com/support/help...inprogress.htm

              Am I correct about this?

              Comment


                #8
                Hello Armstro99,

                If you are trying to replicate the fill resolution you would need to follow the guide that I had linked. The page you linked shows a different example of how to use BarsInProgress to filter logic in general.

                Comment


                  #9
                  I found a much better method to importing replay data for multiple years. NQ ##-## and an outside data source... so I am good now. Finally have adequate data for testing.

                  Comment

                  Latest Posts

                  Collapse

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