Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Variable plot within chart?

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

    Variable plot within chart?

    Greetings,

    I have an indicator that is plotting a certain variable within the "bottom area" below the price chart. I'd like to have it plot instead within the price chart itself (just that particular variable) just above/below the price candlestick bars -- how is this accomplished? Thanks in advance.

    #2
    Hi Burga1:

    Thank you for your post.

    You will need to customize these indicators using NinjaScript in order to overlay them on the price bars.

    The link to the following post can point you towards some indicators that others have already created to be overlayed on the price bars:


    More information on developing customized indicators can be found here:


    Best regards,
    RyanNinjaTrader Customer Service

    Comment


      #3
      Thank you. I'll have to take a look at that another time. Is there a way to quickly and easily simply remove that variable from being charted at all?

      Comment


        #4
        You can set plot colors to Transparent that may work.
        RayNinjaTrader Customer Service

        Comment


          #5
          Thanks but I need to remove it, when it plots it interferes with the display of the entire indicator...

          Comment


            #6
            You can change the code of it to just be stored in a DataSeries instead of an actual plot. This way there will be nothing plotted for the variable.

            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Thanks. So you mean I should setup a dataseries for that variable and then remove the "Add(new Plot...etc...)" stuff for that variable?

              Comment


                #8
                Doing so will remove the plot but maintain the variable for calculation purposes. If that is what you want then yes.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  I added the dataseries elements in "Variables" and "Initialize" and commented out the code in "Add(new plot...)" and "Properties", I got nothing but errors. Is there something I might have missed or must I redo the indicator without specifying those plots in the wizard?...

                  Comment


                    #10
                    Too many possibilities. Please post some code.
                    You most likely have a bunch of errors referencing the missing Plot you just removed. You need to go through the code wherever you have Plot0.Set() or Plot0[0] (considering your plot was named Plot0) and replace it with your DataSeries name (myDataSeries.Set() or myDataSeries[0]).
                    Josh P.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Shansen, 08-30-2019, 10:18 PM
                    24 responses
                    938 views
                    0 likes
                    Last Post spwizard  
                    Started by Max238, Today, 01:28 AM
                    0 responses
                    3 views
                    0 likes
                    Last Post Max238
                    by Max238
                     
                    Started by rocketman7, Today, 01:00 AM
                    0 responses
                    2 views
                    0 likes
                    Last Post rocketman7  
                    Started by wzgy0920, 04-20-2024, 06:09 PM
                    2 responses
                    27 views
                    0 likes
                    Last Post wzgy0920  
                    Started by wzgy0920, 02-22-2024, 01:11 AM
                    5 responses
                    32 views
                    0 likes
                    Last Post wzgy0920  
                    Working...
                    X