Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

HeikenAshiBarsType

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

    HeikenAshiBarsType

    I’m trying to understand the Heiken-Ashi bar type that comes with NT8.

    I configured a chart with Heiken-Ashi bars based on 4 minute bars.
    In order to help understand how it differs from the 4 minute bars on which it’s based, I added a 4 minute chart in the same chart panel.

    The 4 minute chart has transparent bodies with SlateBlue wicks and body outlines. The HeikenAshiBarsType bars have white wicks and body outlines.

    The 1st attached screenshot shows this. It’s built from historical bars ( backfill ) as opposed to realtime.
    I understand the open price levels but I don’t understand the close price levels ( for the Heiken-Ashi )

    The logic in the @HeikenAshiBarsType.cs shows that HAClose is calculated as a typical price of the incoming datapoint open,high,low close:

    From line# 201:
    Code:
    haClose		= bars.Instrument.MasterInstrument.RoundToTickSize((open + high + low + close) / 4.0);
    The incoming open, high, low, close of a datapoint is what exactly? It doesn’t look like an average of the OHLC as the code is written.

    SCREEN SHOT#2
    I found another discrepancy between the charts that come from the Strategy Analyzer and those made through the Control Center window.

    The second screen shot contains two charts. The upper one is created manually and the lower one is from the Strategy Analyzer. They are both base bars type 4 minute. I highlighted ( see vertical global crosshair ) the bar at 16:08 as an example. The HeikenAshi from the Strategy Analyzer closes at 2260.00 while the manually created chart closes at 2259.75.

    The minute bars on which it's based have differences. There are differences like this all over the charts.

    I've played with the HeikenAshi indicator available from the NinjaTrader website but I'm more interested in the @HeikenAshiBarsType.
    Attached Files
    Last edited by Brillo; 08-14-2017, 12:11 PM.

    #2
    Hello Brillo,

    Thank you for your post.

    The incoming open, high, low, and close is that of the raw bar (in this case it is the 4 minute bar).

    On the second question, if you right click in the Chart and select 'Reload All Historical Data' does the chart then reflect the Strategy Analyzer chart?

    I look forward to your response.

    Comment


      #3
      It's looking a lot better. See attached.

      I reloaded data while Market Replay connection was connected and constructed a new chart with MR connected.

      Can you explain why this happened?
      I have my NT running 24x7 and consequently I rarely have to reload historical data. It's only when I know I have a data gap that I do it. It's not that I was missing data though, the bars where just wrong.

      Do I have to reload all historical data on some periodic basis regardless of whether or not NT is always running?

      I have Market Replay connected and have been constructing charts with that as a data provider ( I'm testing strategies ). Are the charts formed from MR using only the data in db\replay? Or do they also use the data in db\minute ( for minute bars ) ?

      My concern of course is that I want to know that when I run in real time, if I re-run in MR I should get the same charts.
      Attached Files

      Comment


        #4
        Hello Brillo,

        Thank you for your response.

        I want to make sure you are confirming that real-time and/or playback data does not match historical data when you reload, is this correct?

        We are currently investigating that very item and want to add your report to our internal tracking.

        I look forward to your response.

        Comment


          #5
          Hi Patrick. Yes that's correct. In my case I'm examining playback data vs historical. After I reloaded they matched. The historical chart did not change but the playback one did, resulting in a match.
          Seems like it's a bug in the recording of playback from live data? Is that the current working theory?

          My concern is what is the accuracy of the real time data. I haven't compared that yet to the historical and playback. Hopefully I'll get to that later this week. I'll let you know if there are any issues there.

          Comment


            #6
            Hello Brillo,

            Thank you for your patience.

            The behavior of the Heiken Ashi Bars Type not loading correctly on historical data versus real-time data has been reported and looked into. Currently, this behavior is not seen in our internal build and we hope to see this resolved with the next release of NinjaTrader 8.

            Please let me know if you have any questions.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by terofs, Today, 04:18 PM
            0 responses
            5 views
            0 likes
            Last Post terofs
            by terofs
             
            Started by nandhumca, Today, 03:41 PM
            0 responses
            4 views
            0 likes
            Last Post nandhumca  
            Started by The_Sec, Today, 03:37 PM
            0 responses
            3 views
            0 likes
            Last Post The_Sec
            by The_Sec
             
            Started by GwFutures1988, Today, 02:48 PM
            1 response
            9 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Started by ScottWalsh, 04-16-2024, 04:29 PM
            6 responses
            33 views
            0 likes
            Last Post ScottWalsh  
            Working...
            X