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!
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
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 ETFVoyageur, 04-30-2024, 02:04 PM
|
7 responses
42 views
0 likes
|
Last Post
by eDanny
Today, 11:45 AM
|
||
Started by f.saeidi, Today, 07:07 AM
|
5 responses
14 views
0 likes
|
Last Post Today, 11:40 AM | ||
Started by Creamers, 04-27-2024, 05:32 AM
|
9 responses
60 views
0 likes
|
Last Post
by Creamers
Today, 11:33 AM
|
||
Decrease the size of the RegionHIghLightY on each tick when the price touches it
by cmtjoancolmenero
Started by cmtjoancolmenero, 04-29-2024, 03:40 PM
|
19 responses
59 views
0 likes
|
Last Post Today, 11:31 AM | ||
Started by samish18, 04-17-2024, 08:57 AM
|
26 responses
116 views
0 likes
|
Last Post
by samish18
Today, 11:30 AM
|
Comment