Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to produce custom OHLC bars?

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

    How to produce custom OHLC bars?

    Let's say I have four data series that I *somehow* compute:


    Code:
    DataSeries opens = new DataSeries(this, MaximumBarsLookBack.Infinite);
    DataSeries highs= new DataSeries(this, MaximumBarsLookBack.Infinite);
    DataSeries lows= new DataSeries(this, MaximumBarsLookBack.Infinite);
    DataSeries closes= new DataSeries(this, MaximumBarsLookBack.Infinite);
    Now, how do I merge those into an OHLC bar and plot it as a custom indicator in a separate panel?

    Thanks!

    #2
    molecool, you can take a look at the value charts implementations shared here for ideas how to realize this - http://www.ninjatrader.com/support/f...ead.php?t=7605

    Comment


      #3
      Please try again ;-)

      ValueCharts indicator does not seem to work in the NT7:

      "Unable to create instance of 'NinjaTrader.Indicator.ValueCharts'. Most likely there is no default constructor defined, or the default constructor does not work correctly: Exception has been thrown by the target of an invocation."

      Comment


        #4
        molecool, that might be the case as it would use unsupported methods - here's another one that should chart fine - http://www.ninjatrader.com/support/f...uechart&desc=1

        The regular HeikenAshi implementation might help you as well by providing a starting point.

        Comment


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          molecool, that might be the case as it would use unsupported methods - here's another one that should chart fine - http://www.ninjatrader.com/support/f...uechart&desc=1

          The regular HeikenAshi implementation might help you as well by providing a starting point.
          @NinjaTrader_Bertrand: This indicator you mention does not update anymore as soon as I have chart properties set to "Equidistant Bar Spacing = False". Any idea how to fix this ?

          Comment


            #6
            That could be the case Ronny, unfortunately I would not be familiar with the custom code used.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            134 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            75 views
            1 like
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            119 views
            2 likes
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            114 views
            1 like
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            92 views
            0 likes
            Last Post CarlTrading  
            Working...
            X