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

plots versus drawing objects

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

    plots versus drawing objects

    I was wonder the difference between a drawing object and a plot

    questions are.

    Can plots be drawn past current time?

    Drawing object can be drawn past current time

    are plots faster for loading an indicator versus a drawing object

    #2
    Hello Ballboy11,

    Thank you for your note.

    There is no supported method of plotting a plot past the current bar.

    You can however do this with drawing objects using the syntax which takes a datetime rather than bars index. For example,

    Code:
    	if(CurrentBar<10) return;
    			
    			DateTime dayForward=Time[0].AddDays(1);
    			
    			DateTime today=Time[0];
    					
    			Draw.Line(this, "line",false,Time[0], Low[5],dayForward,  Low[5], false,"");
    I will also submit a feature request to allow you to plot into the future.

    Please let us know if you need further assistance.
    Attached Files
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Thank you that is what I was wondering. Yes I was plotting ahead with drawing objects.

      I was trying to figure out how to speed up the loading process and I wasn't sure if plot was faster than drawing. But if drawing is the only way to go then adu

      Comment


        #4
        Another question on plots

        Is there a way to draw a plot at a certain time? Not future time.

        I have a series of data that I am writing and the draw objects just hammer on the loading performance. what I want to do is draw my plots then draw my objects in the future.

        How do I draw a plot a certain time?

        Comment


          #5
          If the bars are historical, don't draw. When they are not historical, draw.
          eDanny
          NinjaTrader Ecosystem Vendor - Integrity Traders

          Comment


            #6
            Hello ballboy11,

            As eDanny mentioned, you could use,

            Code:
            	if(Close[0]>0)
            			{
            				if(State!=State.Historical) 
            				Draw.ArrowDown(this, "this"+CurrentBar, true, 0, Low[0], Brushes.Red);	
            			}
            Please let us know if you need further assistance.
            Alan P.NinjaTrader Customer Service

            Comment


              #7
              Hello Ballboy11,

              The feature request which which would allow you to draw a plot past the current bar is SFT-2720.

              Thank you.
              Alan P.NinjaTrader Customer Service

              Comment


                #8
                Originally posted by eDanny View Post
                If the bars are historical, don't draw. When they are not historical, draw.
                hello, does your murray math indicator work on ninjatrader 8 too?

                Comment


                  #9
                  I assume you received my reply to your email today. The simple answers is, yes.

                  Dan
                  eDanny
                  NinjaTrader Ecosystem Vendor - Integrity Traders

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by andrewtrades, Today, 04:57 PM
                  1 response
                  5 views
                  0 likes
                  Last Post NinjaTrader_Manfred  
                  Started by chbruno, Today, 04:10 PM
                  0 responses
                  3 views
                  0 likes
                  Last Post chbruno
                  by chbruno
                   
                  Started by josh18955, 03-25-2023, 11:16 AM
                  6 responses
                  436 views
                  0 likes
                  Last Post Delerium  
                  Started by FAQtrader, Today, 03:35 PM
                  0 responses
                  7 views
                  0 likes
                  Last Post FAQtrader  
                  Started by rocketman7, Today, 09:41 AM
                  5 responses
                  19 views
                  0 likes
                  Last Post NinjaTrader_Jesse  
                  Working...
                  X