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 AaronKoRn, Today, 09:49 PM
                    0 responses
                    6 views
                    0 likes
                    Last Post AaronKoRn  
                    Started by carnitron, Today, 08:42 PM
                    0 responses
                    9 views
                    0 likes
                    Last Post carnitron  
                    Started by strategist007, Today, 07:51 PM
                    0 responses
                    10 views
                    0 likes
                    Last Post strategist007  
                    Started by StockTrader88, 03-06-2021, 08:58 AM
                    44 responses
                    3,977 views
                    3 likes
                    Last Post jhudas88  
                    Started by rbeckmann05, Today, 06:48 PM
                    0 responses
                    9 views
                    0 likes
                    Last Post rbeckmann05  
                    Working...
                    X