How can I get access to that week number?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Weekly Chart - Get Week Number
Collapse
X
-
Hello TAJTrades,
Thank you for your post.
There wouldn't be a NinjaScript method to check this, however, you could check the week of year in code by using C# methods like the following:
https://docs.microsoft.com/en-us/dot...tframework-4.8
This thread from the forum goes into how you might apply this in your scripts:
I want to test whether adding WeekOfYear filter would be of improvement. Yet I am unable to find function WeekOfYear in manual. I tried searching "C# WeekOfYear", yet it seems that C# has that function and NinjaTrader doesn't. How can I calculate WeekOfYear?
Please let us know if we may be of further assistance to you.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
602 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
347 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
559 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
558 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|
Comment