Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I was not saying anything.... I just showed how to add a projection period in the end of the indicator.
The indicator uses the displacement feature of NinjaTrader. In order to display a plot, which extends into the future, I used the following approach
-> determine the number of bars N that you want to produce a forecast for
-> shift the plot N bars to the right by selecting a displacement equal to the forecast period - do not try to do this in Initialize(), you need to set the Displacement in OnStartUp()
-> correct the values up to CurrentBar - N to compensate for the impact of the shift
-> add the forecast values for the last N bars by using the selected algorithm
Thanks for the responses, but I didn't appear to successfully convey my thought process. I want to displace all bars back one bar, including the current bar, and then insert another current bar so that both the current bar and previous bar will both use the last price. I am not actually trying to project or forecast what I think the value of the moving average will be at the end of the next bar based upon what has happened. I just want to know if the price were to close right now, what would the value be at the open of the next bar. It's not the same value as the close of the current bar, because the last bar in the current series will drop off at the open of the next bar. Hope that makes sense. Again, thanks for any help.
@vegasfoster: Yes, this is something different. Moreover, you confused us, because the MultiCharts example that you used showed a linear projection, which is what I have done for NinjaTrader.
Here comes another indicator, which is probably the DIRTIEST and the SHORTEST piece of code that was ever written for NinjaTrader. Don't insult me, if it does not work.
To be used with CAUTION. No warranties given.
The code can be used to predict the indicator values for the coming 3 bars by using the close of the current bar as the numerical base for the forecast of the following indicator values.
This is how the indicator is to be applied: If you want the prediction feature, just apply your indicator and select ana3BarPredictor as the input series. Also set the displacement manually to 3 via indicator dialogue box.
Attached is a chart that shows the predicted values for the RSI.
That is the reason that I said that it is the dirtiest piece of code ever. I just published it, because I wanted to let you all test the master piece, as I do not know myself what will be happening.
That is the reason that I said that it is the dirtiest piece of code ever. I just published it, because I wanted to let you all test the master piece, as I do not know myself what will be happening.
I just noticed that the major problem with NT7 is that the cursor will not function (show time) on X-axis beyond the current time and into future. If they (NT) can just make this simple fix for cursor to be responsive beyond the current time, …
I just noticed that the major problem with NT7 is that the cursor will not function (show time) on X-axis beyond the current time and into future. If they (NT) can just make this simple fix for cursor to be responsive beyond the current time, …
ehlaban
I intend to make an upgrade without the plotting so you can use it as an add in, like you did,
to plot into the future with other indicators.