Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 judysamnt7, 03-13-2023, 09:11 AM
          4 responses
          59 views
          0 likes
          Last Post DynamicTest  
          Started by ScottWalsh, Today, 06:52 PM
          4 responses
          36 views
          0 likes
          Last Post ScottWalsh  
          Started by olisav57, Today, 07:39 PM
          0 responses
          7 views
          0 likes
          Last Post olisav57  
          Started by trilliantrader, Today, 03:01 PM
          2 responses
          21 views
          0 likes
          Last Post helpwanted  
          Started by cre8able, Today, 07:24 PM
          0 responses
          10 views
          0 likes
          Last Post cre8able  
          Working...
          X