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 Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            597 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
            555 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X