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

Plot Candlesticks on Indicator window NT8

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

    Plot Candlesticks on Indicator window NT8

    Hi,

    I wish to draw candles on the indicator window, like the "Order Flow Cumulative Delta" indicator does.
    I found "AddBar" function, but that seems to be only for BarTypes.

    In short my goal is to plot candles from NYSE Up Issues and NYSE Down Issues (^ADV and ^DECL instruments plus other similar tick indexes).
    I can calculate the ratio between them, but I wish to see this data as a Candle (High, Low, Open, Close) if possible.

    Code:
    // ...
    AddDataSeries("^ADV", this.BarsPeriod);      // NYSE Up Issues
    AddDataSeries("^DECL", this.BarsPeriod);    // NYSE Down Issues
    if (BarsInProgress == 1) {
        ratio = ((Closes[1][0] / Closes[2][0]) - 1) * 100;
    }
    // ...
    Thank you in advance.

    #2
    Hello Gorkhaan thanks for your post.

    There is an example here for a Heiken Ashi bar type developed as an indicator. You can use this as a starting point for rendering bars through an indicator:

    NinjaTrader 8 natively provides Heiken Ashi as a bar type for most common bar types (minute, tick, volume, second, day, week, month, year). This Heiken Ashi indicator is provided for the Range, Renko and any custom bar types that may be added. The indicator performs in the same manner as the NinjaTrader 7 version. 4-27-18 […]


    Kind regards.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thank you for the swift reply. I give it a go and share my results.

      G.

      Comment


        #4
        I spent some time on it. I am satisfied how it looks. I share these on the User Apps too.

        Thanks again!
        Attached Files

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by maybeimnotrader, Today, 05:46 PM
        0 responses
        6 views
        0 likes
        Last Post maybeimnotrader  
        Started by quantismo, Today, 05:13 PM
        0 responses
        6 views
        0 likes
        Last Post quantismo  
        Started by AttiM, 02-14-2024, 05:20 PM
        8 responses
        166 views
        0 likes
        Last Post jeronymite  
        Started by cre8able, Today, 04:22 PM
        0 responses
        8 views
        0 likes
        Last Post cre8able  
        Started by RichStudent, Today, 04:21 PM
        0 responses
        5 views
        0 likes
        Last Post RichStudent  
        Working...
        X