Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Optimizing Multi-time frame

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

    Optimizing Multi-time frame

    When I tried to optimize my automated trading strategy, which uses 2 diff. Renko time frames to give a signal, I got an error. Is there a workaround to optimize a multi-timeframe? can you give me a tip?

    #2
    Hello futuros,

    Thanks for you post.

    Can you provide some specific information such as:

    1) What was the full error message?
    2) Does the strategy back test without errors/isssue?
    3) Does the strategy work when applied to live or market replay data?
    4) What version of NinjaTrader8 are you using? (look under help>about)
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_PaulH View Post
      Hello futuros,

      Thanks for you post.

      Can you provide some specific information such as:

      1) What was the full error message?
      2) Does the strategy back test without errors/isssue?
      3) Does the strategy work when applied to live or market replay data?
      4) What version of NinjaTrader8 are you using? (look under help>about)
      1) High Order Fill resolution is only available for single-series strategies. For multi-series strategies, please program directly into your strategy the more granular resolution you would like to simulate order fills with.
      2) yes
      3) yes
      4) 8.0.17.2

      Comment


        #4
        Hello futuros,

        Thanks for your reply.

        Correct, when adding any data series to your strategy then high order fill is no longer available, this is expected behavior. As the message states you would need to add "the more granular resolution you would like to simulate order fills with."

        In addition to adding the more granular series, you would need to code your strategy to not run when that added data series calls OnbarUpdate(), so if the more granular series is the 2nd added dataseries you would add in OnBarUpdate() if (BarsInProgress == 2) return;

        Also you would have to code your entry/exits to be placed on that last added data series in order to get the expected fills based on the added data series.

        ============

        The current version of NinjaTrader8 is 8.0.21.1, when convenient for you please feel free to update as follows:
        • First, copy your license key from NinjaTrader under Help> License Key then exit NinjaTrader
        • Click on the link: http://ninjatrader.com/PlatformDirect
        • Enter your license key and press Submit
        • Select 'NinjaTrader 8'
        • Select 'Download'
        • Critical: Before running the installer, ensure NinjaTrader is closed.
        If interested you can see what has changed version by version in the release notes here: https://ninjatrader.com/support/help...ease_notes.htm
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_PaulH View Post
          Hello futuros,

          Thanks for your reply.

          Correct, when adding any data series to your strategy then high order fill is no longer available, this is expected behavior. As the message states you would need to add "the more granular resolution you would like to simulate order fills with."

          In addition to adding the more granular series, you would need to code your strategy to not run when that added data series calls OnbarUpdate(), so if the more granular series is the 2nd added dataseries you would add in OnBarUpdate() if (BarsInProgress == 2) return;

          Also you would have to code your entry/exits to be placed on that last added data series in order to get the expected fills based on the added data series.

          ============

          The current version of NinjaTrader8 is 8.0.21.1, when convenient for you please feel free to update as follows:
          • First, copy your license key from NinjaTrader under Help> License Key then exit NinjaTrader
          • Click on the link: http://ninjatrader.com/PlatformDirect
          • Enter your license key and press Submit
          • Select 'NinjaTrader 8'
          • Select 'Download'
          • Critical: Before running the installer, ensure NinjaTrader is closed.
          If interested you can see what has changed version by version in the release notes here: https://ninjatrader.com/support/help...ease_notes.htm
          Thanks Paul, could you please elaborate a little bit more what do you mean by this: "the more granular resolution you would like to simulate order fills with."

          what is "more granular resolution"?

          Comment


            #6
            Hello futuros,

            Thanks for your reply.

            When you select the High Fill option In the strategy analyzer you are specifying a more granular resolution, whatever you want to use is what you would need to add. For example if using High Fill with 1 tick (on non MTF strategies) then for your MTF strategy you would need to add a 1 tick series.

            Paul H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by judysamnt7, 03-13-2023, 09:11 AM
            4 responses
            57 views
            0 likes
            Last Post DynamicTest  
            Started by ScottWalsh, Today, 06:52 PM
            4 responses
            35 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
            19 views
            0 likes
            Last Post helpwanted  
            Started by cre8able, Today, 07:24 PM
            0 responses
            9 views
            0 likes
            Last Post cre8able  
            Working...
            X