• 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 ahm1992, Today, 04:56 PM
      6 responses
      28 views
      0 likes
      Last Post bltdavid  
      Started by firstlanetech, Today, 11:24 AM
      2 responses
      29 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by grayfrog, Today, 09:29 PM
      0 responses
      5 views
      0 likes
      Last Post grayfrog  
      Started by alcorr247, Today, 12:04 PM
      1 response
      13 views
      0 likes
      Last Post NinjaTrader_EricB  
      Started by HiddenPhilosopher, Today, 11:08 AM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X