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, 05-11-2026, 05:56 AM
            0 responses
            27 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 05-10-2026, 08:12 PM
            0 responses
            20 views
            0 likes
            Last Post CarlTrading  
            Started by Hwop38, 05-04-2026, 07:02 PM
            0 responses
            183 views
            0 likes
            Last Post Hwop38
            by Hwop38
             
            Started by CaptainJack, 04-24-2026, 11:07 PM
            0 responses
            335 views
            0 likes
            Last Post CaptainJack  
            Started by Mindset, 04-21-2026, 06:46 AM
            0 responses
            260 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X