Appreciate the hep
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
BarsPeriod namespace error
Collapse
X
-
Hello ark321,
Thank you for your post.
Likely you are missing some using statements in the script.
I recommend creating a new script and copying over your code from OnStateChange() and OnBarUpdate() into the new script.
From the NinjaScript Editor > click on the '+' at the bottom > New Indicator to create a new indicator script. Creating a new script from the NinjaScript Wizard will generate all the necessary code in order to access BarsPeriod.
Please let us know if you have any further questions.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
55 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
73 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
38 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
99 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
60 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment