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

Session Template for indictor

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

    Session Template for indictor

    Is there a way to apply a different session template to an indicator on a chart other than to use the chart session template?

    The only way i could think of is to have a chart template that has a wider time range and filter only the time range I want in the indicator. I thought I would ask to see if there is an easier way I didn't know about.

    I could add a second data series but then need to communicate between the two sessions indicators which looked messy at first glance. I don't think I can specify the session template on an "ADD " additional time frame.

    If I have to manually filter the data feed which is what I think I will need to do can "Read" a session template in an indicator to get the time parameters?
    Last edited by ct; 08-17-2013, 02:39 PM.

    #2
    You can create a session template with several subsessions. Then let the indicator detect the subsessions and retrieve the required data.

    I have used this concept to calculate RTH pivots and RTH VWAP on an ETH chart. For that purpose, I have subdivided the ETH template into the night session, the regular session and the evening session.

    What do you try to achieve exactly?

    Comment


      #3
      Hello CT,

      Thank you for your post.

      There is no method to set the Session Template for the secondary and additional data series added to the code.

      Thanks to Harry for providing a possible solution for this item.

      Comment


        #4
        Harry

        Thanks for the reply. I was trying to do some comparison analysis using ETH vs RTH on my own version of a VWAP. Was trying to do something similar to you. Interesting.

        I understand what you have done. How do you detect the break or start of a sub-session? Do you get multiple first bar of session signals?

        Comment


          #5
          Originally posted by Harry View Post
          You can create a session template with several subsessions. Then let the indicator detect the subsessions and retrieve the required data.

          I have used this concept to calculate RTH pivots and RTH VWAP on an ETH chart. For that purpose, I have subdivided the ETH template into the night session, the regular session and the evening session.

          What do you try to achieve exactly?
          Very neat, creative solution. Thanks.

          Comment


            #6
            Originally posted by ct View Post
            Harry

            Thanks for the reply. I was trying to do some comparison analysis using ETH vs RTH on my own version of a VWAP. Was trying to do something similar to you. Interesting.

            I understand what you have done. How do you detect the break or start of a sub-session? Do you get multiple first bar of session signals?
            The VWAPs and TWAPs that I have coded are available here:

            The best futures trading community on the planet: futures trading, market news, trading charts, trading platforms, trading strategies

            The best futures trading community on the planet: futures trading, market news, trading charts, trading platforms, trading strategies

            The best futures trading community on the planet: futures trading, market news, trading charts, trading platforms, trading strategies

            The best futures trading community on the planet: futures trading, market news, trading charts, trading platforms, trading strategies

            The best futures trading community on the planet: futures trading, market news, trading charts, trading platforms, trading strategies

            The best futures trading community on the planet: futures trading, market news, trading charts, trading platforms, trading strategies


            Free downloads are available for elite members. Otherwise you can also send me a private message with your e-mail, and I will send them directly to you.

            The indicators use recursive algorithms for low CPU load. The VWAPs and TWAPs can be displayed as ETH , RTH or starting with an anchor point that can be individually selected vai an offset (offset = difference between anchor time and start of the trading day).

            The first chart shows the free version of the indicator, the second chart shows a commercial version of the VWAP with a lot of options added.
            Attached Files

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by elderan, Today, 08:03 PM
            0 responses
            2 views
            0 likes
            Last Post elderan
            by elderan
             
            Started by algospoke, Today, 06:40 PM
            0 responses
            10 views
            0 likes
            Last Post algospoke  
            Started by maybeimnotrader, Today, 05:46 PM
            0 responses
            9 views
            0 likes
            Last Post maybeimnotrader  
            Started by quantismo, Today, 05:13 PM
            0 responses
            7 views
            0 likes
            Last Post quantismo  
            Started by AttiM, 02-14-2024, 05:20 PM
            8 responses
            169 views
            0 likes
            Last Post jeronymite  
            Working...
            X