Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

wheres the bug ?

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

    wheres the bug ?

    I have an indicator with 2 plots that works great. I wanted to add a text showing status at the upper right corner adding this code :
    //++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++
    publicoverridevoid Plot(Graphics graphics, Rectangle bounds, double min, double max)
    {
    if (Bars == null || rowpos==0) return;
    string mostrar = TargetTF + "M ";
    if (mode==1) mostrar = mostrar + "L"; else mostrar=mostrar+"S";
    mostrar = mostrar + stage;
    if (textBrush.Color != ChartControl.AxisColor || textFont != ChartControl.Font)
    {
    textBrush.Color = ChartControl.AxisColor;
    textFont = ChartControl.Font;
    SizeF size = graphics.MeasureString((mostrar) , textFont);
    textWidth = size.Width +
    5;
    textHeight = size.Height +
    1;
    }
    graphics.DrawString( mostrar,
    ChartControl.Font,
    textBrush,
    bounds.X + bounds.Width - textWidth,
    bounds.Y + (rowpos-
    1)*textHeight ,
    stringFormat);
    }
    //++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++
    Just over #region Properties ( like in volume counter indicator).
    It shows the text perfect but now the 2 plots are gone ( only its values are shown at the Y axis ).

    Any help ?
    pmaglio
    NinjaTrader Ecosystem Vendor - The Indicator Store

    #2
    pmaglio,

    You are working in an unsupported method. Unfortunately this is outside the scope of what we can offer support for.

    As a hint though, please see the CustomPlotSample indicator. You need this line:

    base.Plot(graphics, bounds, min, max);
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Problem Solved

      Thanks Josh !
      That line solved the trouble...

      Originally posted by NinjaTrader_Josh View Post
      pmaglio,

      You are working in an unsupported method. Unfortunately this is outside the scope of what we can offer support for.

      As a hint though, please see the CustomPlotSample indicator. You need this line:

      base.Plot(graphics, bounds, min, max);
      pmaglio
      NinjaTrader Ecosystem Vendor - The Indicator Store

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      104 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      52 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      34 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      38 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      74 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X