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

Indicator values from one chart to another

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

    Indicator values from one chart to another

    I know if you draw a line or Fibs on one chart you can transfer those values to another chart of the same symbol by selection that option from the properties drop down. So I'd like to know if the same can be accomplished with an indicator ? I have one that colors the background on a higher time frame and I'd like it to do the same on a smaller time frame. Can this be done ?

    Thanks

    #2
    Hello,

    Thank you for your note.

    Yes, this can be accomplished with Chart Templates

    Right click in your chart -> Templates -> Save As

    The Templates are independent of Instrument and Time Frame.

    CameronNinjaTrader Customer Service

    Comment


      #3
      Sorry, I guess I wasn't clear what I meant. What you suggest transfers the indicators to a smaller time frame but not the values of the higher time frame. If you apply this formula for example to a 4 tick range bar chart it's going to change the background color at a different time then if you applied it to a 12 tick range bar chart .

      example :

      if(Close[0] >= (Close[Displacement])+0.2)
      BackColorAll = Color.FromArgb(opacity,ColorAbove);

      Comment


        #4
        Hello,

        Thank you for the clarification.

        Within NinjaScript you can access other time frames with the Add command.



        Additionally, please take the time to review our reference guide on Multi-Time Frame scripts.
        CameronNinjaTrader Customer Service

        Comment


          #5
          OK , thank you.

          Comment


            #6
            Originally posted by NinjaTrader_Cameron View Post
            Hello,

            Thank you for the clarification.

            Within NinjaScript you can access other time frames with the Add command.



            Additionally, please take the time to review our reference guide on Multi-Time Frame scripts.
            http://www.ninjatrader.com/support/h...nstruments.htm
            Should have ask if this will work on custom bar types like " betterRenko " or Non gap range bars. ?

            Comment


              #7
              Guess not.

              Comment


                #8
                Hello,

                They will work on custom bar types, however, you need to know the underlying custom bar type slot.

                Within NinjaTrader, custom bar types use a custom number Custom0 through Custom9 to hold certain custom bar types.

                For example, if your custom bar type was using Custom2 you would use something along the lines of Add(PeriodType.Custom2, 16)


                You can ask the developer of the bar type which custom slot they are using.
                CameronNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by Felix Reichert, Today, 02:12 PM
                0 responses
                1 view
                0 likes
                Last Post Felix Reichert  
                Started by Tim-c, Today, 02:10 PM
                0 responses
                1 view
                0 likes
                Last Post Tim-c
                by Tim-c
                 
                Started by cre8able, Today, 01:16 PM
                2 responses
                9 views
                0 likes
                Last Post cre8able  
                Started by chbruno, 04-24-2024, 04:10 PM
                3 responses
                48 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Started by samish18, Today, 01:01 PM
                1 response
                7 views
                0 likes
                Last Post NinjaTrader_LuisH  
                Working...
                X