Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Accessing Rectangle lists

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

    Accessing Rectangle lists

    Hi,
    I'm trying to make data availbe to my strategy that I'm writing from an indicator. However the indicator creates a lists of rectangles and I want the strategy to read this list. I'm having issues exporting that list. Here's how it looks so far
    Code:
     
    [Description("The supply zones values and bounce count according to active rectangles")]
    [Browsable(false)]
    public List<IRectangle> SupplyZones  //provides access to the supply list so that the strategy can use this list.
    		{
    			get { return supplyZones; }
    		}
    Then when I use this code I can compile just fine, however when I apply the indicator to a new chart I get a serialization error(attached). But I can double click the 'ok' box and it will apply the indicator to the chart. However the real issue is getting this list to be seen by other scripts or market analyzer.

    Any help would be great.
    Attached Files
    Last edited by APA Zones; 09-05-2011, 12:52 PM.

    #2
    doubletop, unfortunately we could not directly support the access of exposing list objects / members, can't you expose the information needed through a dataseries perhaps?

    For the serialization issue, please try adding [XmlIgnore()] tags to your public property definitions.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    598 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    343 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    103 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    556 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    555 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X