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 trilliantrader, Today, 03:01 PM
    0 responses
    2 views
    0 likes
    Last Post trilliantrader  
    Started by pechtri, 06-22-2023, 02:31 AM
    9 responses
    122 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by frankthearm, 04-18-2024, 09:08 AM
    16 responses
    67 views
    0 likes
    Last Post NinjaTrader_Clayton  
    Started by habeebft, Today, 01:18 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by benmarkal, Today, 12:52 PM
    2 responses
    19 views
    0 likes
    Last Post benmarkal  
    Working...
    X