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 argusthome, Yesterday, 10:06 AM
|
0 responses
22 views
0 likes
|
Last Post
by argusthome
Yesterday, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
19 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
14 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
10 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
41 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment