• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT7 to NT8

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

    NT7 to NT8

    Hello,

    I am trying to convert a NT7 indicator that overrides PLOTS. I am attempting to override OnRender to accomplish this. The Plots override is written like this:


    public override void Plot(Graphics graphics, Rectangle bounds, double min, double max)



    Where do I get the values for bounds, min, and max in the OnRender Event in NT8? Do I obtain the charting space (panel 1) x and y (max width and height) from bounds or min and max? I cant find documentation on this. There isn't an NT8 version of these elements in the ninjatrader code breaking documentation, at least none that I could find.

    I am trying to use the internal PIVOTS indicator as a model to convert this, but I cant seem to find a direct conversion for bounds, min, and max

    Thanks,

    #2
    Helllo MarthaClines,

    As a heads up, overriding the Plot method was never documented for NinjaTrader 7.

    For NinjaTrader 8, the chartPanel has the Y, Height, X, and Width of the panel
    https://ninjatrader.com/support/help...chartpanel.htm

    What method in SharpDX is asking for the bounds?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Helllo MarthaClines,

      As a heads up, overriding the Plot method was never documented for NinjaTrader 7.

      For NinjaTrader 8, the chartPanel has the Y, Height, X, and Width of the panel
      https://ninjatrader.com/support/help...chartpanel.htm

      What method in SharpDX is asking for the bounds?
      So, is it mapped as follows:

      FROM: Plot(Graphics
      graphics
      , Rectangle
      bounds
      , double
      min
      , double
      max
      )

      TO:
      protected override void OnRender(ChartControl chartControl, ChartScale chartScale)
      NT7 Plots min = NT8 ChartPanel.MinValue
      NT7 Plots max = NT8 ChartPanel.MaxValue
      NT7 Plots bounds.Height = NT8 ChartPanel.H
      or
      NT7 Plots bounds.Height
      = NT8 ChartPanel.Height
      or
      NT7 Plots
      bounds.Height
      = NT8 ChartPanel.ActualHeight

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by simjs, Yesterday, 08:11 PM
      0 responses
      3 views
      0 likes
      Last Post simjs
      by simjs
       
      Started by mrlucky1x, Yesterday, 06:01 PM
      0 responses
      3 views
      0 likes
      Last Post mrlucky1x  
      Started by dedouglas, Yesterday, 03:17 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by Jugado, Yesterday, 02:22 PM
      2 responses
      30 views
      0 likes
      Last Post Jugado
      by Jugado
       
      Started by login_dejavu, 04-21-2019, 04:58 AM
      2 responses
      24 views
      0 likes
      Last Post login_dejavu  
      Working...
      X