• 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 priceisking, Today, 12:51 PM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Started by chartish, Today, 10:33 AM
      3 responses
      18 views
      0 likes
      Last Post chartish  
      Started by casabella, Today, 11:51 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Started by Johnny, Today, 11:42 AM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_Jermaine  
      Started by habibalex, Today, 09:03 AM
      2 responses
      14 views
      0 likes
      Last Post sledge
      by sledge
       
      Working...
      X