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

Drawing plots to future bars . . .

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

    Drawing plots to future bars . . .

    I am trying to plot a future trendline, and I had read in other posts that this can be done using a negative value for the Plot.

    Like this:
    Values[3][iFuture] = FutureTrendLine;

    Where iFuture is a negative integer. When I load the indication I get the wonderful error "You are accessing an index with a value that is invalid since it is out-of-range"

    Clearly it works for anything up to current timeframe, but fails going into the future
    Values[3][0] = FutureTrendLine;

    The whole point is to be able to plot the future trend.
    I have tried different PlotStyles, using .Dot and .Line with the same result.

    Is there an accepted way to plot future bars (without doing the math to figure out where to plot it)?

    I have tried using Displacement but that setting affect all the plots, not just the future plot.

    Any help would be appreciated.

    #2
    Hello ATMtrader0001,

    Using a negative index is not supported nor recommended.

    You are correct, Displacement is used to move an indicator's plots forward or backward a number of bars.


    This does displace all plots for the indicator.
    You can choose to not plot values for the other plots on the recent bars and place the current bars values on the plot a few bars ago.
    You can choose to separate the plots into different indicators.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      It would be good to have displacement work for a single plot as opposed to globally.

      Thanks.

      Comment


        #4
        Hello ATMtrader0001,

        I will submit your request to our development for consideration.

        Once I have a tracking ID for this request I will post in this thread for future reference.

        I appreciate your patience while we return a tracking ID.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hello ATMtrader0001,

          Thank you for your patience.

          (corrected)
          This request to 'Apply displacement to individual plots instead of entire indicator' is being tracked with ID# SFT-4713.

          As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted in the Release Notes page of the Help Guide.

          Release Notes — https://ninjatrader.com/support/help...ease_notes.htm
          Last edited by NinjaTrader_ChelseaB; 04-22-2020, 12:26 PM.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            Please add my vote for ID# SFT-4712.

            However, it would be much more valuable to support actual future plotting using negative bar index values like other programmable trading platforms such as thinkorswim and TradeStation do, for example. Where profitable trading over many trades requires being able to correctly predict the future more often than not, why does NinjaTrader only support hindsight plotting? Of course reliable future prediction is extremely difficult, which is another way of saying that profitable trading is extremely difficult. Even so, traders license NinjaTrader with the expectation that they will be able to use it to help them trade profitably, so again, why does NinjaTrader support hindsight plotting, but not future plotting?

            There is no basis to expect sample indicators that forecast reliably any more than sample trading strategies that trade reliably, because the value of either would vastly exceed the license fee, but there is good reason to expect support for future plotting.

            Comment


              #7
              Hello caveat_lector,

              (corrected)
              I will add your vote to SFT-4713.

              Using negative indexes means having to predict the number of bar slots for all bar types.

              You can custom render any where you want if you want to work out the logic for predicting bar slots.

              However, using displacement is the general way to achieve this.
              Last edited by NinjaTrader_ChelseaB; 04-22-2020, 12:27 PM.
              Chelsea B.NinjaTrader Customer Service

              Comment


                #8
                Hello,

                please add my vote to SFT-4713 as well

                Comment


                  #9
                  Hello Johnny90,

                  I've added your vote. Thanks for your voice!
                  Chelsea B.NinjaTrader Customer Service

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by jeronymite, 04-12-2024, 04:26 PM
                  3 responses
                  40 views
                  0 likes
                  Last Post jeronymite  
                  Started by bill2023, Today, 08:51 AM
                  2 responses
                  15 views
                  0 likes
                  Last Post bill2023  
                  Started by sidlercom80, 10-28-2023, 08:49 AM
                  167 responses
                  2,260 views
                  0 likes
                  Last Post jeronymite  
                  Started by warreng86, 11-10-2020, 02:04 PM
                  7 responses
                  1,362 views
                  0 likes
                  Last Post NinjaTrader_Manfred  
                  Started by Perr0Grande, Today, 08:16 PM
                  0 responses
                  5 views
                  0 likes
                  Last Post Perr0Grande  
                  Working...
                  X