Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi color zigzag.

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

    Multi color zigzag.

    I want to modify the ZigZag. Each of the segments will have its own color (based on certain logic). How can I do this correctly?

    This is how I tried to do it (but the color doesn't change):
    Click image for larger version

Name:	Screenshot_3.jpg
Views:	330
Size:	48.7 KB
ID:	1113219

    This is completely standard ZigZag code, all I added is "PlotBrushes[0][1] = Brushes.ХХХ".

    Am I missing something?


    #2
    Hello webus,

    Thanks for your post.

    The NinjaTrader zigZag indicator uses OnRender() to actually draw the line, you would need to modify that section using sharpDX coding to effect the change you seek.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, Yesterday, 10:06 AM
    0 responses
    14 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    11 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    9 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    4 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    31 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X