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 quantismo, Yesterday, 05:13 PM
        2 responses
        15 views
        0 likes
        Last Post quantismo  
        Started by maybeimnotrader, Yesterday, 05:46 PM
        4 responses
        23 views
        0 likes
        Last Post maybeimnotrader  
        Started by frankthearm, Today, 09:08 AM
        6 responses
        25 views
        0 likes
        Last Post frankthearm  
        Started by adeelshahzad, Today, 03:54 AM
        5 responses
        33 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by stafe, 04-15-2024, 08:34 PM
        7 responses
        32 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X