• 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 saltminer, Today, 05:49 PM
      0 responses
      5 views
      0 likes
      Last Post saltminer  
      Started by brunoviveiros, Today, 05:32 PM
      0 responses
      4 views
      0 likes
      Last Post brunoviveiros  
      Started by shodson, Today, 05:00 PM
      0 responses
      2 views
      0 likes
      Last Post shodson
      by shodson
       
      Started by concept, Today, 03:22 PM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_Tyler  
      Started by baluga123, 04-03-2020, 08:19 AM
      6 responses
      72 views
      0 likes
      Last Post koganam
      by koganam
       
      Working...
      X