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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      656 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      371 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      109 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      574 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      579 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X