Announcement

Collapse
No announcement yet.

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) -

    http://www.ninjatrader.com/support/h..._version_7.htm

    http://www.ninjatrader.com/support/h...t7/drawing.htm
    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..._version_7.htm

                  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 letilleulskin, Today, 11:33 PM
                    0 responses
                    1 view
                    0 likes
                    Last Post letilleulskin  
                    Started by letilleulskin, Today, 11:29 PM
                    0 responses
                    2 views
                    0 likes
                    Last Post letilleulskin  
                    Started by MatthewLesko, Today, 11:13 PM
                    0 responses
                    3 views
                    0 likes
                    Last Post MatthewLesko  
                    Started by Lance El Camino, Today, 04:14 PM
                    1 response
                    13 views
                    0 likes
                    Last Post s.kinra
                    by s.kinra
                     
                    Started by jtrading82, Today, 04:56 PM
                    1 response
                    10 views
                    0 likes
                    Last Post NinjaTrader_ShawnB  
                    Working...
                    X