Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SmoothingMode in Price Panel

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

    SmoothingMode in Price Panel

    I've created a simple indicator that places a dot on the close of each bar, and I'd like the dots to look clean with smooth, round edges. So I changed the smoothing mode to the high quality ("AntiAlias") setting. The problem is that instead of improving the quality of these dots, it improves the quality of the dots in the indicator panels below the price panel. I like that it smooths out the other indicators, but I can't figure out a way to smooth out any dots in the price panel.

    I already tried changing the smoothing mode in the indicators of other panels and that didn't work unless the indicator panel was ABOVE the price panel, which none of mine are. Could someone please give me a clue of what I should do? Thanks!

    Here is my code and a screen shot:

    Code:
    public class Custom_Bars : Indicator
        {
            public override void Plot(Graphics graphics, Rectangle bounds, double min, double max)
            { 
                base.Plot(graphics, bounds, min, max);
                graphics.SmoothingMode = SmoothingMode.AntiAlias;
            }
        
            protected override void Initialize()
            {
                Add(new Plot(Color.Lime, PlotStyle.Dot, "Dots"));
                CalculateOnBarClose = false;
                DisplayInDataBox    = false;
                PaintPriceMarkers   = false;
                Overlay             = true;
            }
    
            protected override void OnBarUpdate()
            {    
                Dots.Set(Close[0]);            
            }
        
            #region Properties
            [Browsable(false)]    
            [XmlIgnore()]        
            public DataSeries Dots
            {
                get { return Values[0]; }
            }
            #endregion
        }
    Attached Files
    Last edited by Gumby; 09-27-2010, 07:24 PM. Reason: To add an icon

Latest Posts

Collapse

Topics Statistics Last Post
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
0 responses
579 views
0 likes
Last Post Geovanny Suaza  
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
0 responses
334 views
1 like
Last Post Geovanny Suaza  
Started by Mindset, 02-09-2026, 11:44 AM
0 responses
101 views
0 likes
Last Post Mindset
by Mindset
 
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
0 responses
554 views
1 like
Last Post Geovanny Suaza  
Started by RFrosty, 01-28-2026, 06:49 PM
0 responses
551 views
1 like
Last Post RFrosty
by RFrosty
 
Working...
X