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 argusthome, Yesterday, 10:06 AM
    0 responses
    17 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    16 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    14 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    9 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    38 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X