Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Enums, and plotting candles, in Ninjatrader 8

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

    Enums, and plotting candles, in Ninjatrader 8

    How does the syntax for Enums change from NT7 to NT8?
    Reference sample would be great.

    Likewise a reference sample would be great for Render code to draw candles from four dataseries that represent the High, Low, Open and Close of some series other than the price of an instrument.

    Thanks.

    #2
    Hi Ricam,

    The syntax for enums is the same.

    An example can be found in the references.
    http://ninjatrader.com/support/forum...ead.php?t=3420

    With rendering, this is done with x and y coordinates on the chart. You can get x and y coordinates from a bar index or from a price (as a double) which can be returned by any data series element.

    Can you clarify what you want to see in the example? Would you like a line that draws from the high to the low of the bar?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Clarifying request for sample Render code to draw candles.

      Thanks for rapid response about Enums.

      Re reference sample for drawing candle-like objects, for each bar of the master instrument, draw, and fill with color, a rectangle between the values of the open and close dataseries, and line segments between the values of the open and close, and the values of the high and the low dataseries..

      These would look exactly the same as price candles. However, the four dataseries open, close, high and low would be indicator output, not price data. An example of this would be cumulative delta.

      Know how to do it in Plot method of NT7 (attached) but now the syntax is completely different for OnRender.
      Attached Files
      Last edited by Ricam; 09-22-2015, 02:42 PM.

      Comment


        #4
        Hi Ricam,

        Attached is the sample you have requested.

        Also, I used the VolumeZones indicator for most of the code here. This would be a great indicator to examine.
        Attached Files
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          thanks so much

          This is a big help, appreciate it.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          596 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          343 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          103 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          556 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          554 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X