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 Hwop38, 05-04-2026, 07:02 PM
        0 responses
        168 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        322 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        246 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        350 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        179 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X