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 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
324 views
0 likes
Last Post CaptainJack  
Started by Mindset, 04-21-2026, 06:46 AM
0 responses
250 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