Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OnRender correct override function

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

    OnRender correct override function

    I think there might be an error in the indicator documentation to override the old Plot method in NT7. Looking at other NT8 indicators I see that the OnRender is:

    protected override void OnRender(ChartControl chartControl, ChartScale chartScale)

    but in the documentation here it says:


    public override void OnRender(ChartControl chartControl, ChartScale chartScale, ChartBars chartBars)

    is there an error?
    Edit: I was looking in the wrong section, it lists the correct function under
    Language Reference => Common => Charts => Rendering

    I was looking at
    Language Reference => Chart Style
    Last edited by habibalex; 10-18-2015, 01:42 PM.

    #2
    Hello,

    It sounds like you've got it figured out, but just for the benefit of others reading this thread: the constructor overload for OnRender() differs in different namespaces. The overload taking a ChartControl and ChartScale is accessible from an Indicator, and the overload taking a ChartControl, ChartScale, and ChartBars is accessible from a ChartStyle.
    Dave I.NinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    671 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    379 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    111 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    575 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    582 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X