Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT7 indicator not showing

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

    NT7 indicator not showing

    Hi,

    I have the following codes compiled ok but the plots are not showing on the chart. Please help.

    Thanks in advance.

    T2010a

    Code:
     
    protected override void Initialize()
    {
    Add(new Plot(new Pen(Color.RoyalBlue, 2), PlotStyle.Bar, "UpVolume"));
    Add(new Plot(new Pen(Color.Red, 2), PlotStyle.Bar, "DownVolume"));
    Add(new Line(Color.DarkGray, 0, "Zero line"));
    }
    /// <summary>
    /// Called on each bar update event (incoming tick)
    /// </summary>
    protected override void OnBarUpdate()
    {
    if (Volume[0] > Volume[1])
    {
    Values[0].Set(Volume[0]);
    Values[1].Reset();
    }
    else if (Volume[0] < Volume[1])
    {
    Values[1].Set(Volume[0]);
    Values[0].Reset();
    }
    else
    {
    Values[1].Reset();
    Values[0].Reset();
    }
    }

    #2
    Trader2010a, you likely only miss this quick check at the start of your indicator's OnBarUpdate() -

    Comment


      #3
      Hi Bertrand,

      Thanks for the link. I know I miss something

      T2010a

      Comment

      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