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 SalmaTrader, 07-07-2026, 10:26 PM
            0 responses
            29 views
            0 likes
            Last Post SalmaTrader  
            Started by CarlTrading, 07-05-2026, 01:16 PM
            0 responses
            17 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 06-17-2026, 10:32 AM
            0 responses
            9 views
            0 likes
            Last Post CaptainJack  
            Started by kinfxhk, 06-17-2026, 04:15 AM
            0 responses
            15 views
            0 likes
            Last Post kinfxhk
            by kinfxhk
             
            Started by kinfxhk, 06-17-2026, 04:06 AM
            0 responses
            18 views
            0 likes
            Last Post kinfxhk
            by kinfxhk
             
            Working...
            X