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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      64 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      35 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      59 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      62 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      51 views
      0 likes
      Last Post CarlTrading  
      Working...
      X