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 kevinenergy, 02-17-2023, 12:42 PM
    115 responses
    2,699 views
    1 like
    Last Post kevinenergy  
    Started by prdecast, Today, 06:07 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by Christopher_R, Today, 12:29 AM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by chartchart, 05-19-2021, 04:14 PM
    3 responses
    577 views
    1 like
    Last Post NinjaTrader_Gaby  
    Started by bsbisme, Yesterday, 02:08 PM
    1 response
    15 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X