• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

public vs private in Variables

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

    public vs private in Variables

    Hi NT,
    this might sound like a stupid question, and more to do with programming than software.
    what's the difference between public and private in the Variable region?

    I have an indicator that has a private variable, but because it was not working in a strategy i changed it to public, but now I am unable to save the chart with indicator in my work-space, as it says the indicator could not be serialized. but if i change the variable(s) to private it does the trick. whats the difference between using public or private?

    Thanks, John

    #2
    Originally posted by sburtt View Post
    Hi NT,
    this might sound like a stupid question, and more to do with programming than software.
    what's the difference between public and private in the Variable region?

    I have an indicator that has a private variable, but because it was not working in a strategy i changed it to public, but now I am unable to save the chart with indicator in my work-space, as it says the indicator could not be serialized. but if i change the variable(s) to private it does the trick. whats the difference between using public or private?

    Thanks, John
    By exercising a little of my rather poor Google-Fu: http://msdn.microsoft.com/en-us/library/ms173121.aspx

    Comment


      #3
      In addition to that general link, this thread here on our forums would be helpful regarding serialization - http://www.ninjatrader.com/support/f...ad.php?t=32981
      BertrandNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by bomanpbm, Today, 09:27 PM
      0 responses
      1 view
      0 likes
      Last Post bomanpbm  
      Started by tgn55, Today, 08:47 AM
      0 responses
      8 views
      0 likes
      Last Post tgn55
      by tgn55
       
      Started by ballboy11, 05-04-2019, 10:26 AM
      6 responses
      58 views
      0 likes
      Last Post Kermit
      by Kermit
       
      Started by mrlucky1x, Yesterday, 10:01 PM
      0 responses
      15 views
      0 likes
      Last Post mrlucky1x  
      Started by roger556, Yesterday, 09:22 PM
      0 responses
      8 views
      0 likes
      Last Post roger556  
      Working...
      X