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

Indicator in Future or Draw on indicator

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

    Indicator in Future or Draw on indicator

    Hello,

    I've read on this forum that plotting indicators in the future is not possible but
    that it is on the wish list for NT7.

    What is the status of this?
    Will this possibility come but no date is given yet or
    does it still has to be decided if this feature will be implemented?

    I thought i had found a way around it with DrawDot. While you can
    draw in the future with this it doesn't seem possible to draw in a indicator panel.
    This is a major disappointment for me as most of my indicators plot in the future.
    Did i overlook something with DrawDot in a indicator panel?

    Even plotting the indicator in the price panel as overlay is no solution because
    the DrawDot can't be overlayed, so you are not able to position the dots as a continuation
    of the overlayed indicator on price.

    Hints, tips, ideas and Ninjatrader remarks about future plotting and drawing is very welcome.

    Ernesto

    #2
    Welcome to our forums Ernesto - you should be able to draw into the future with NT7 by passing a future DateTime value in (bars would not work as there's no future barnumber concept as the bars creation is highly individual across bars types used).
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Hello Bertrand,

      you said: "you should be able to draw into the future with NT7 by passing a future DateTime value"

      This only works with drawing like DrawDot, DrawLine etc etc i read on this board and not with an
      indicator/Plot, right?

      I'm able to use DrawDot with a future DateTime but like i wrote in my first message it seems
      that you can't draw in the indicator panel and thus in that way 'extend" the indicator to the
      future.

      Comment


        #4
        You would be able to draw on the indicator panel, too - just set DrawOnPricePanel = false in the Intitialize() of the script for this.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Yes this indeed works. I tried to extend the indicator
          with drawdot and drawline.

          But there is something strange with it.

          It looks like each drawing occupies several days. I first tried drawing:
          last day till last day +1
          last day +1 till last day +2
          etc etc

          But the lines and dots where overlapping and sometimes chaotic drawn.

          When using for example segments of +- 5 days it's better like in the enclosed picture.
          Example code line for a segment
          DrawLine("2", true, Time[0].AddDays(5), 1.50, Time[0].AddDays(10), 1.0, Color.Blue, DashStyle.Solid, 1);

          Still this isn't a workable way to extend the indicator into the future if drawing from day to day isn't working correctly. I tried several settings but couldn't find anything
          to correct this strange behavior.
          Attached Files
          Last edited by ehlaban; 06-14-2010, 03:44 PM.

          Comment


            #6
            ehlaban,

            I am not sure what you mean by "occupying several days". Can you please clarify? It is not evident to me by the screenshot.

            Also, when you draw into the future please note that the future timestamps are projection timestamps and may not necessarily reflect where they will actually end up in reality depending on the type of chart you are using.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Hello,

              I checked it again and think know what is happening.
              The current bar is June 14. I want to extend my indicator for 10 days with draw dot
              into the future. I add 4 new dots. Time[0].AddDays(1) etc. See picture NT 11

              After the 4th dot it goes wrong. see picture NT12.
              This is weekend, June 19 and 20, but i just draw dots everyday to extend my indicator.
              I have no way of knowing weekdays from weekends, and the drawing goes wrong.

              Hope this helps.

              Any insight on FutureBars in NT 7?

              Ernesto
              Attached Files

              Comment


                #8
                Correct, you would need to accomodate in your code if the DateTime falls on weekends, just add for example 2 days if the calculated future value falls on a Saturday.

                BertrandNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by zstheorist, Today, 07:52 PM
                0 responses
                1 view
                0 likes
                Last Post zstheorist  
                Started by pmachiraju, 11-01-2023, 04:46 AM
                8 responses
                149 views
                0 likes
                Last Post rehmans
                by rehmans
                 
                Started by mattbsea, Today, 05:44 PM
                0 responses
                5 views
                0 likes
                Last Post mattbsea  
                Started by RideMe, 04-07-2024, 04:54 PM
                6 responses
                33 views
                0 likes
                Last Post RideMe
                by RideMe
                 
                Started by tkaboris, Today, 05:13 PM
                0 responses
                5 views
                0 likes
                Last Post tkaboris  
                Working...
                X