After reviewing the Heken Ashi indicator itself, I was able to determine that this particular indicator erases your data series' primary bars. If you are familiar with NinjaScript, the code that does this is (emphasis mine) :
[FONT=Courier New] BarColorSeries.Set(Math.Max(0, CurrentBar + Math.Max(0, Displacement) + (CalculateOnBarClose ? 1 : 0)), [B]Color.Transparent[/B]); CandleOutlineColorSeries.Set(Math.Max(0, CurrentBar + Math.Max(0, Displacement) + (CalculateOnBarClose ? 1 : 0)), [B]Color.Transparent[/B]);[/FONT]
- Add another visible Heken Ashi indicator to panel 1 and treat this as your primary data series
- Modify the code for Heken Ashi on your system. The way I would recommend doing this is as follows :
- Control Center -> Tools -> Edit NinjaScript -> HeikenAshi -> OK
- Right-Click in the Editor -> Save As -> HeikenAshiNoErase -> OK
- Change line 57 from
{
to
{ /* - Change line 63 from
to
*/ - I am including a C# file where I have done this all already. You can install it by copying it to your (My) Documents\NinjaTrader 7\bin\Custom\Indicator folder, loading it through Control Center -> Edit NinjaScript -> HeikenAshiNoErase -> OK, and pressing F5
- If you use this approach, you will use HeikenAshiNoErase instead of the built-in HeikenAshi indicator
- Use two charts
Please let us know if there is any other way we can help
Comment