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

Plot into the future

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

    Plot into the future

    Forgive my ignorance:

    I would like to know if it is possible to plot data points on future bars with ninjascript.

    Example: current bar is 55, I would like to plot 13 bars out, on bar 68. Is this possible?

    Thank you

    #2
    Hi mlapping, welcome to our forums here - unfortunately this is not possible with a Plot, however with our NinjaTrader 7 release you could draw programmatically into the future via NinjaScript (supply a future DateTime value) -



    BertrandNinjaTrader Customer Service

    Comment


      #3
      Originally posted by mlapping View Post
      Forgive my ignorance:

      I would like to know if it is possible to plot data points on future bars with ninjascript.

      Example: current bar is 55, I would like to plot 13 bars out, on bar 68. Is this possible?

      Thank you
      You can try to take advantage of Displacement.

      Comment


        #4
        Originally posted by roonius View Post
        You can try to take advantage of Displacement.
        How could I do that?

        Thanks,

        -Mike

        Comment


          #5
          Hello Mike,

          Displacement is available when you apply an indicator to your chart. Attached screenshot shows an SMA displaced 22 bars.
          Attached Files
          Ryan M.NinjaTrader Customer Service

          Comment


            #6
            Exactly what I needed

            That was exactly what I needed, thanks all for your help!

            -Mike

            Comment


              #7
              Hello,

              I found this post searching for how to plot indicator lines in the future. The screenshot is exactly what I would like to do, but I could not reproduce it. Even for SMA as used in the exaple the displacement only shifts the plot for the specified period untill the dataseries ends. But i would like to see the line continue for the bars not yet available (just like in the screenshot).

              Any idea what I could be doing wrong?

              Marco

              Comment


                #8
                Originally posted by marcoheimann View Post
                Hello,

                I found this post searching for how to plot indicator lines in the future. The screenshot is exactly what I would like to do, but I could not reproduce it. Even for SMA as used in the exaple the displacement only shifts the plot for the specified period untill the dataseries ends. But i would like to see the line continue for the bars not yet available (just like in the screenshot).

                Any idea what I could be doing wrong?

                Marco
                It looks like you need to extend the line into the future using the time feature of the DrawLine command, as mentioned in the first response.


                DrawLine(string tag, bool autoScale, DateTime startTime, double startY, DateTime endTime, double endY, Color color, DashStyle dashStyle, int width)

                NinjaTrader_Bertrand Hi mlapping, welcome to our forums here - unfortunately this is not possible with a Plot, however with our NinjaTrader 7 release you could draw programmatically into the future via NinjaScript (supply a future DateTime value) -

                Comment


                  #9
                  Originally posted by NinjaTrader_Bertrand View Post
                  Hi mlapping, welcome to our forums here - unfortunately this is not possible with a Plot, however with our NinjaTrader 7 release you could draw programmatically into the future via NinjaScript (supply a future DateTime value) -



                  http://www.ninjatrader.com/support/h...t7/drawing.htm
                  Bertrand,

                  I assume you mean with custom plot it's possible to draw into the future?

                  Comment


                    #10
                    Originally posted by Lama Forecasting View Post
                    Bertrand,

                    I assume you mean with custom plot it's possible to draw into the future?
                    I think sledge has the answer in the post before yours.

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by RookieTrader, Today, 09:37 AM
                    3 responses
                    15 views
                    0 likes
                    Last Post NinjaTrader_ChelseaB  
                    Started by kulwinder73, Today, 10:31 AM
                    0 responses
                    5 views
                    0 likes
                    Last Post kulwinder73  
                    Started by terofs, Yesterday, 04:18 PM
                    1 response
                    24 views
                    0 likes
                    Last Post terofs
                    by terofs
                     
                    Started by CommonWhale, Today, 09:55 AM
                    1 response
                    4 views
                    0 likes
                    Last Post NinjaTrader_Erick  
                    Started by Gerik, Today, 09:40 AM
                    2 responses
                    7 views
                    0 likes
                    Last Post Gerik
                    by Gerik
                     
                    Working...
                    X