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:
haClose = bars.Instrument.MasterInstrument.RoundToTickSize((open + high + low + close) / 4.0);
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.
Comment