Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

aligning candles at arbitrary times v7

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

    aligning candles at arbitrary times v7

    I would like to have 3hour candles but align the start time of the candle's open.
    For example, I would like 3 hour candles that all start 12 minutes after the hour.
    So the first candle on the chart for 3 hour bars might have its open be at say 1:12 am the next at 4:12 am the next at 7:12 am and so on.
    If this is too fine granularity, then at least I would like 1/2 hour or hour alignment.

    Is this possible?

    Thanks

    #2
    Hi roland_nt,

    Thank you for your post.

    This is possible, but you'll need to create a custom session template to use with these times in place. For more information about creating custom session templates: http://www.ninjatrader.com/support/h...on_manager.htm
    KyleNinjaTrader Customer Service

    Comment


      #3
      aligning candles at arbitrary times v7

      Thanks for your reply. This is an ingenious solution, I would not have though of.

      Can such a custom designed a session type be then selected from within a NinjaScript auto trading strategy? I wish to incrementally shift the time frame alignment as part of the optimization task.

      In this regard, It would be ok to have a series of predefined sessions, each with a different alignment that I could cycle through as part of the optimization.

      Comment


        #4
        Hi roland_nt,

        Yes, the custom session templates can be applied to NinjaScript strategies which should allow you to accomplish what you've described here.
        KyleNinjaTrader Customer Service

        Comment


          #5
          apply session templete in a strartegy

          How is this done? can you give me a help reference?

          Comment


            #6
            Hi roland_nt,

            This is assigned while applying the strategy. Please see the attached image for an example.
            Attached Files
            KyleNinjaTrader Customer Service

            Comment


              #7
              apply session templete in a strartegy

              Is there any way of selecting this from within the strategy code, foe example say in initialize()?

              Comment


                #8
                Hi roland_nt,

                Unfortunately, no this is not possible. Only the template defined on the chart or set in strategy's run time options will apply.
                KyleNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Waxavi, Today, 02:10 AM
                0 responses
                3 views
                0 likes
                Last Post Waxavi
                by Waxavi
                 
                Started by TradeForge, Today, 02:09 AM
                0 responses
                7 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
                4 views
                0 likes
                Last Post gentlebenthebear  
                Working...
                X