Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Invalid arguments in DrawRegion

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

    Invalid arguments in DrawRegion

    I think the problem is that I'm using two horizontal lines instead of data series. If that is the problem, how do I correct it. If that isn't the problem, any suggestions would be appreciated:

    DrawRegion("region" + j.ToString(), 20, CurrentBar, doublesList[i],doublesList[i+1],Color.Empty,Color.Lime,2);

    The above line is the predicate of an "if" statement. j is an integer that increments on each repetition.
    Last edited by sgordet; 06-16-2011, 09:35 PM.

    #2
    sgordet, you're correct - you could not use 2 doubles, one has to be a series :

    Comment


      #3
      I have a list of doubles where each item of the list represents a horizontal line. Can you point me to where I can how to convert that list into a list of data series?
      Or is there a better way to do this than using DrawRegion: I want to shade the regions bounded by horizontal lines that are less than a certain distance apart.

      Comment


        #4
        I think a region would be the right approach, you need to store the doubles in a custom series with the .Set method the DataSeries objects would offer.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        164 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        318 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