Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Long variables?
Collapse
X
-
Hello,
Thank you for the question.
Based on the number this could not be a int, an int can only be a whole number with no decimal place and inbetween the range of -2,147,483,648 and 2,147,483,647.
For that number you could use a double precision number or just double
Generally you will only use int or double in a NinjaScript file, I have rarely seen long needed to be used.
You can find all of their minimum and maximum values by searching google would be the fastest way. The MSDN documentation is generally the first result for what you are looking for regarding c#.
For the int min / max you could search C# int minimum and it results in this MSDN article: https://msdn.microsoft.com/en-us/lib...vs.110%29.aspx
This is also a excellent resource starting at section 5 and beyond, this covers most of the core C# concepts and syntax so I always recommend this as well: http://www.techotopia.com/index.php/C_Sharp_Essentials
I look forward to being of further assistance.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
27 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
117 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
69 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
226 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
418 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|

Comment