Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Cannot reference data far back enough
Collapse
X
-
Cannot reference data far back enough
I am working on a system which references a certain amount of bars prior to the current bar to make certain calculations. The strategy only allows me to reference up to twenty bars ago. For example, if I use Close[20], I get the value for the close of the bar that occurred 20 bars ago. However, if I use Close[21], it is not defined (it is undefined for any value past 20). Is there a limit on how many bars back a strategy can reference, and if so, is there any way to get around it?Tags: None
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
63 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
35 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
54 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
61 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
48 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment