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

Display Line Value in Price Scale

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

    Display Line Value in Price Scale

    Hello, I'd like to get the two lines I have plotted in this pic to show their value in the sprice scale just like the moving averages in the same pic.
    Is there a way to do this. I'm using DrawLine to plot them, is this compatable with displaying it's value?
    Thanks so much!
    Attached Files

    #2
    If you want it on the right hand side you will have to make plots for them instead of using draw methods.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Josh View Post
      If you want it on the right hand side you will have to make plots for them instead of using draw methods.
      Ok great, I've got them as plots now. How can I get it to display on the right now?

      Comment


        #4
        If it is a plot, just set the value you want to the plot and the price markers will automatically show up. If you have disabled the price markers please ensure they are enabled for the indicator.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Josh View Post
          If it is a plot, just set the value you want to the plot and the price markers will automatically show up. If you have disabled the price markers please ensure they are enabled for the indicator.
          Ok thanks, is there any way to do this with SetTrendLine as well?

          Comment


            #6
            Not sure what you are referring to, but anything you want to have a price marker for needs to be done as a plot.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_Josh View Post
              Not sure what you are referring to, but anything you want to have a price marker for needs to be done as a plot.
              Ok thanks, now that it's set to plot, how do I get the old plots to delete and only keep the current ones?
              Thanks.

              Comment


                #8
                jjthetrader,

                Just remove them from the Initialize() method and all other locations they are referenced in your code.
                Josh P.NinjaTrader Customer Service

                Comment


                  #9
                  Originally posted by NinjaTrader_Josh View Post
                  jjthetrader,

                  Just remove them from the Initialize() method and all other locations they are referenced in your code.
                  Hi, as seen in my pic I have all these old plot levels that stay even though we move onto a new level. I'd like to delete the old plots. Is this what you were refering to when you said remove them from the initialize() section?
                  Or do I need to add deleteplot or something?
                  Thank you
                  Attached Files

                  Comment


                    #10
                    No. Those values will stay. That is what is meant by using a plot. If you change the value it will change it from there on out, not the past. Trying to change the plot values of prior bars means you would have to cycle through the whole data set and reset the values for each one. Extremely inefficient and I do not recommend this.
                    Josh P.NinjaTrader Customer Service

                    Comment


                      #11
                      Originally posted by NinjaTrader_Josh View Post
                      No. Those values will stay. That is what is meant by using a plot. If you change the value it will change it from there on out, not the past. Trying to change the plot values of prior bars means you would have to cycle through the whole data set and reset the values for each one. Extremely inefficient and I do not recommend this.
                      Ok, thanks, back to DrawLine for me. Can I print the value in text beside a line?
                      Last edited by jjthetrader; 06-17-2009, 09:59 AM.

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by DJ888, 04-16-2024, 06:09 PM
                      4 responses
                      12 views
                      0 likes
                      Last Post DJ888
                      by DJ888
                       
                      Started by terofs, Today, 04:18 PM
                      0 responses
                      11 views
                      0 likes
                      Last Post terofs
                      by terofs
                       
                      Started by nandhumca, Today, 03:41 PM
                      0 responses
                      7 views
                      0 likes
                      Last Post nandhumca  
                      Started by The_Sec, Today, 03:37 PM
                      0 responses
                      3 views
                      0 likes
                      Last Post The_Sec
                      by The_Sec
                       
                      Started by GwFutures1988, Today, 02:48 PM
                      1 response
                      9 views
                      0 likes
                      Last Post NinjaTrader_Clayton  
                      Working...
                      X