Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Serializing an input series for use in parameters

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

    #16
    Hi Alex,

    Did you find a solution to the serialization problem ?
    Will appreciate a solution too...

    W.

    Comment


      #17
      Originally posted by wingman View Post
      Did you find a solution to the serialization problem
      My solution was get the Open, High, Low, Close series from BarsArray as suggested above, instead of passing them in the parameter list.
      Code:
      	private DataSeries op, hi, lo, cl;
      ...
      	protected override void OnBarUpdate() {
      		op = BarsArray[BarsInProgress].GetOpen(CurrentBar),
      		hi = BarsArray[BarsInProgress].GetHigh(CurrentBar),
      		lo = BarsArray[BarsInProgress].GetLow(CurrentBar),
      		cl = BarsArray[BarsInProgress].GetClose(CurrentBar);
      	}
      Hope that helps.
      -A

      Comment


        #18
        Thank you Alex,

        Unfortunately, my problem is a little different (input of a dynamic set of indicators data series chosen by the user). So the serialization seems my only way to do that properly.

        Thank you,

        W.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        571 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        330 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        548 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        549 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X