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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      71 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      39 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      63 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      63 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      53 views
      0 likes
      Last Post CarlTrading  
      Working...
      X