• 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

Indicator could not be serialized

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

    Indicator could not be serialized

    Hello, dear support

    I am writing now one indicator and when I try to save it into template I get the next message:
    "Indicator "Ninjatrader.Indicator...." could not be serialized. Please refer help for more information on serializing indicators.

    I am using followed properties:

    Code:
    		[Description("Bar span to consider for breakouts")]
    		[GridCategory("Parameters")]
    		public int Span {
    			get { return span; }
    			set { span = Math.Max(1, value); }
    		}
    
    		[Description("What to display (0=none, 1=dots, 2=lines, 3=both)")]
    		[GridCategory("Parameters")]
    		[Gui.Design.DisplayNameAttribute("Display Type")]
    		public int DisplayType {
    			get { return displayType; }
    			set { displayType = Math.Max(0, value); }
    		}
    				
    		[Description("Display/Hide switch points")]
    		[GridCategory("Parameters")]
    		public bool DisplayDiamonds {
    			get { return displayDiamonds; }
    			set { displayDiamonds = value; }
    		}
    And Misc to access some data from other indicators/strategies

    Code:
    		public  AkPoint FirstPoint
    		{
    			get { return patterns.P1; }
    		}		
    	
    		public  AkPoint SecondPoint
    		{
    			get { return patterns.P2; }
    		}		
    		
    		public  AkPoint CurrentPoint
    		{
    			get
    			{
    				Update();
    				return patterns.Current;
    			}
    		}		
    		
    		public  AkDirrection Dirrection
    		{
    			get
    			{
    				Update();
    				return patterns.Dirrection;
    			}
    		}	
    		
    		public  BoolSeries Switcher
    		{
    			get
    			{
    				return this.switcher;
    			}
    		}		
    
    		public AkPoint LastHighPoint
    		{
    			get
    			{
    				Update();
    				return lastHigh;
    			}
    		}
    		
    		public AkPoint LastLowPoint
    		{
    			get
    			{
    				Update();
    				return lastLow;
    			}
    		}
    
    		public ArrayList Points
    		{
    			get { return this.points; }
    		}
    
    		public ArrayList LowPoints
    		{
    			get { return this.lowPoints; }
    		}
    
    		public ArrayList HighPoints
    		{
    			get { return this.highPoints; }
    		}
    Could you help me , please with that issue?

    #2
    Hello akushyn,

    Thank you for your note.

    Without the full code I'm unable to test on my end.

    The message you're getting suggests some of your indicators are not coded properly for serialization. Serialization is most commonly needed for user definable color inputs and allows these inputs to be saved in workspaces and chart templates. If these are your own custom coded indicators, a guide to serializing color inputs is available here:
    http://ninjatrader.com/support/forum...ead.php?t=4977

    If you are unable to resolve the issue, please upload a copy of the full code so we can take a look on our end.

    To export a NinjaScript from NinjaTrader 7 do the following:
    From the Control Center window select File -> Utilities-> Export NinjaScript...
    Select the file in the left column then click “>”, then press export and name the file.
    Then attach that file you saved; under My Docs>NT8>Bin>Custom>Select the downloaded .zip file.


    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Its a private indicator. I could send you on email.
      Tell me your email, please.

      Comment


        #4
        Hello akushyn,

        Please send an email to platformsupport[at]ninjatrader[dot]com with Attn: Alan P in the Subject line. Also within the email please include a link to this thread as well as the files.

        I look forward to receiving your email.
        Alan P.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_AlanP View Post
          Hello akushyn,

          Please send an email to platformsupport[at]ninjatrader[dot]com with Attn: Alan P in the Subject line. Also within the email please include a link to this thread as well as the files.

          I look forward to receiving your email.
          Check your inbox,plz

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by ttodua, 12-06-2019, 11:40 PM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by HiddenPhilosopher, Today, 06:45 AM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by PG7940, Today, 04:26 AM
          1 response
          13 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by Sh00tHerMcGavin, Yesterday, 07:39 PM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by dltharpe, Today, 09:17 AM
          0 responses
          7 views
          0 likes
          Last Post dltharpe  
          Working...
          X