Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

private double vs private int

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    private double vs private int

    Can anyone tell me the difference when you are using these in the #region Variables section?? How do you know which one to use when stating a value??

    #2
    Hello edgeliner,

    These specify the structure of the value you're looking to define.

    Double = can have decimal values and is useful for prices.
    Integer = whole numbers only and is useful for period inputs

    If you're looking for more background here, do a google search for "programming data types" and you there should be plenty of links to check out.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks Ryan!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      47 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      22 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      15 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      21 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      23 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X