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

another time frame candle for reference

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

    another time frame candle for reference

    i'm making something on a second chart. and, i'd like to have it where it only executes when the candle on a 15 minute chart is below a bollinger line. how can i add the 15 minute reference?

    #2
    Hello SteveReiza,

    You can use AddDataSeries for that purpose:

    JesseNinjaTrader Customer Service

    Comment


      #3
      thanks for the reply. i'm trying to have an exit short position occur after what happens on a 35 second chart. and, the entry method on the 100 tick timeframe. is there a strategy with an example of the additional timeframe added you could provide? that link you supplied is a little over my head.

      Comment


        #4
        Hello SteveReiza,

        For that use case you would need to add BarsInProgress conditions to isolate your logic. You can see the documentation for working with multiple timeframes if you are having trouble understanding working with multiple series.



        JesseNinjaTrader Customer Service

        Comment


          #5
          thanks for the reply. that's a little bit over my head. i'll have to get an ecosystem vendor to do it. unless, you can supply a video tutorial?

          Comment


            #6
            Hello SteveReiza,

            I am not aware of any video tutorials for AddDataSeries or working with multiple series. That is a more complex topic so if you don't feel comfortable with that concept after reading the documentation I would suggest to outsource that work.

            JesseNinjaTrader Customer Service

            Comment


              #7
              thanks for the reply. there is no way to do that through the strategy builder - right?

              Comment


                #8
                Hello SteveReiza,

                Yes you can use the Additional data tab of the strategy builder to add secondary series. You can read about that here: https://ninjatrader.com/support/help...onalDataScreen
                JesseNinjaTrader Customer Service

                Comment


                  #9
                  thanks for the reply. okay sweet. i was thinking that. i see how to add. how do i call those bars in the strategy builder for it to be a part of the entry condition?

                  Comment


                    #10
                    Hello SteveReiza,

                    When selecting a series like Price - Close you can click on the box that says "default input" which is in the bottom section where you would configure bars ago. After clicking that a window opens where you can select the series from the list of added series that are in the data series folder.
                    JesseNinjaTrader Customer Service

                    Comment


                      #11
                      thanks for the reply. okay rad. i see on is primary and one is with the instrument. primary is the one the strategy is computing off of correct? then the other one is the one i'd select with close then default input change, right?

                      Comment


                        #12
                        Hello SteveReiza,

                        Correct the primary is the instrument that you apply the strategy to and the instrument that it calculates on. That is also the series that orders will be submitted to.
                        JesseNinjaTrader Customer Service

                        Comment


                          #13
                          thanks for the reply. okay sweet. appreciate the guidance!

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by llanqui, Today, 03:53 AM
                          0 responses
                          6 views
                          0 likes
                          Last Post llanqui
                          by llanqui
                           
                          Started by burtoninlondon, Today, 12:38 AM
                          0 responses
                          10 views
                          0 likes
                          Last Post burtoninlondon  
                          Started by AaronKoRn, Yesterday, 09:49 PM
                          0 responses
                          15 views
                          0 likes
                          Last Post AaronKoRn  
                          Started by carnitron, Yesterday, 08:42 PM
                          0 responses
                          11 views
                          0 likes
                          Last Post carnitron  
                          Started by strategist007, Yesterday, 07:51 PM
                          0 responses
                          14 views
                          0 likes
                          Last Post strategist007  
                          Working...
                          X