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 CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        42 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        23 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        186 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        345 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        267 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X