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

Mixing Sessions

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

    Mixing Sessions

    I want to display two EMA's on a single chart ... one EMA is calculated based on the chart I have displayed with a session template of "RTH". The second EMA is for the same instrument and data series, but is calculated based on the session template "24/7".

    Can this be done?

    #2
    Hello pman777,

    Thanks for your post.

    Yes, this would be possible to do. You will need to add a secondary data series to your chart that uses the default 24/7 template. Then point the second added SMA to this secondary series.

    Below is a video that describes how to do this (except for changing the session template).
    http://www.youtube.com/watch?v=x_6BN...140D7&index=30
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      i tried this but I cannot add 2 data series for the same time frame (5 mins) on the same chart. I get a message "Data Series already exists on your chart. You cannot ass another one."

      What I want is an 5 min EMA with a 24/7 template to overlay with a 5 min EMA for an RTH template.

      Comment


        #4
        sorry, meant to say "Add"

        Comment


          #5
          Hi pman777,

          You are correct about this..

          There would be an issue adding the same instrument with the same interval to a chart.

          I do see how allowing for the same instrument and interval with different session templates can be useful.

          I am going to submit a feature request in your behalf to our development department to allow for this. Great suggestion!
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            THANKS. Can I accomplish this by writing an indicator? In other words, can I code an indicator to ADD 2 of the same instruments (eg., "YM") for the same time period (eg: 5 min) but for different time sessions?

            Comment


              #7
              Hi pman777,

              It is not possible to specify the session template of a secondary data series in code. A secondary series that is the same instrument as the first is going to use the session template of the primary series.
              Chelsea B.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by bmartz, 03-12-2024, 06:12 AM
              5 responses
              32 views
              0 likes
              Last Post NinjaTrader_Zachary  
              Started by Aviram Y, Today, 05:29 AM
              4 responses
              13 views
              0 likes
              Last Post Aviram Y  
              Started by algospoke, 04-17-2024, 06:40 PM
              3 responses
              28 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by gentlebenthebear, Today, 01:30 AM
              1 response
              8 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by cls71, Today, 04:45 AM
              1 response
              7 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Working...
              X