In NinjaTrader8, I can not seem to find a way to do this. Does anyone have any ideas?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Backtesting Look forward
Collapse
X
-
Backtesting Look forward
When backtesting a strategy, In NinjaTrader 7, you could reference the next bar by Close[-1].. 5 bars into the future with Close[-5], etc. This was very helpful when building a dataset for machine learning where I could easily output the value of all the indicators at that instant and include the "answer" of what the stock will do x bars into the future.
In NinjaTrader8, I can not seem to find a way to do this. Does anyone have any ideas?Tags: None
-
Hello frostengine,
Thank you for your patience.
You can use GetValueAt(). For example, Close.GetValueAt(CurrentBar + 4), which would pull the close four bars ahead of the current bar.
For information on GetValueAt() please visit the following link: http://ninjatrader.com/support/helpG...getvalueat.htm
Please let me know if you have any questions.
- Likes 1
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
24 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
25 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|
||
|
Started by CaptainJack, 03-25-2026, 09:53 PM
|
0 responses
30 views
0 likes
|
Last Post
by CaptainJack
03-25-2026, 09:53 PM
|
||
|
Started by CaptainJack, 03-25-2026, 09:51 PM
|
0 responses
18 views
0 likes
|
Last Post
by CaptainJack
03-25-2026, 09:51 PM
|
||
|
Started by Mindset, 03-23-2026, 11:13 AM
|
0 responses
27 views
0 likes
|
Last Post
by Mindset
03-23-2026, 11:13 AM
|

Comment