NinjaTrader 8 Indicators and More - You can have Doji with your unoutlined NT 8 candles
futures io

Categories Help    

NinjaTrader 8 Indicators and More
Indicators and Files in this section are compatible with NinjaTrader 8

You can have Doji with your unoutlined NT 8 candles
Name: DrawCandleClose Version 1

This indicator was created to show the Closing price when the CandleStick Opening and Closing price were the same and a Transparent Body Outline color was specified. Standard NT 8 CandleStick Closing price is drawn with the Outline color and is Transparent when that color is Transparent.

Note that NT7 had logic to draw a Black Close line, if the Outline color was Transparent and the Background color was White. This logic has been removed in NT8, so the problem appears in NT8 regardless of Background color.

NT8 DrawCandleClose Indicator is obsolete. Use fix described below. Attached file is a dummy file to meet posting requirements. Please download the file to log your interest in this fix, but do not install downloaded file. Instead, apply the fix manually. Never blindly replace standard files because of the risk of back leveling.

If you would like to have this fix standard NT8 CandleStick behavior, then post your vote for Tracking ID # SFT-818 to thread

NT 7 Version fix available at

Top CandleStick:Chart Style = Candlestick with Black outline.

Middle CandleStick:Chart Style = CandleStick Transparent Outline After Fix

Bottom CandleStick on Black Background After Fix:Chart Style = CandleStick After Fix

NT8 Fix for Tracking ID # SFT-818 , Missing Doji when CandleStick Outline Transparent:
Description: Always draw the Doji Close line with the Wick Color instead of the Outline Color. This eliminates the inefficiency of having an Indicator check every CandleStick bar close for Open==Close and overwrite the already drawn Transparent Close line.

Applying this fix in no way changes the appearance of CandleSticks that have bodies. This can be verified with the examples provided.

NT8: Lines 63-64 \Documents\NinjaTrader 8\bin\Custom\ChartStyles\@CandleStyle.cs

TransformBrush(overriddenOutlineBrush ?? Stroke.BrushDX, new RectangleF(point0.X, point0.Y - Stroke.Width, barWidth, Stroke.Width));
RenderTarget.DrawLine(point0, point1, overriddenOutlineBrush ?? Stroke.BrushDX, Stroke.Width, Stroke.StrokeStyle);
TransformBrush(overriddenBarBrush ?? Stroke2.BrushDX, new RectangleF(point0.X, point0.Y - Stroke2.Width, barWidth, Stroke2.Width));
RenderTarget.DrawLine(point0, point1, overriddenBarBrush] ?? Stroke2.BrushDX, Stroke2.Width, Stroke2.StrokeStyle);
I recommend the following to apply the fix. It may seem complicated but will save you time in the long run. Note that it is undocumented but NT Backup never includes files that begin with the character "@".

1) Copy \Documents\NinjaTrader 8\bin\Custom\ChartStyles\@CandleStyle.cs
2) Paste the file and rename it @CandleStyle.cs Before SFT-818
3) Edit @CandleStyle.cs with Notepad
4) Make changes to lines 63 & 64 with Notepad and save changes
5) Compile any file with NT Editor and Exit NT Editor. New @CandleStyle.cs will be used in the compile.
6) From next start of NinjaTrader, CandleSticks will use Wick Color for Doji Close line.
7) Copy \Documents\NinjaTrader 8\bin\Custom\ChartStyles\@CandleStyle.cs
8) Paste the file and rename it @CandleStyle.cs After SFT-818

Any NT updates will replace @CandleStyle.cs so you will have to make the changes again. Create Before and After copies of the update, as you did above, adding the update number after 818. Never blindly replace standard files because of the risk of back leveling. You can use Winmerge to compare updated @CandleStyle.cs and @CandleStyle.cs After SFT-818 and reapply fix to updated.

1) Delete Indicator DrawCandleClose.cs, if it exists, from \Documents\NinjaTrader 8\bin\Custom\Indicators.
2) Start NT Editor > Right click on blank form and select Compile to remove DrawCandleClose Indicator.
NT will automatically remove the Indicator from any Charts that use it.

Create a CandleStick chart with Transparent outline. Verify that you see Doji.

If you installed Chart Style Doji then:
1) Change Charts that use it to use CandleStick instead.
2) Delete ChartStyleDoji, if it exists, from \Documents\NinjaTrader 8\bin\Custom\ChartStyles.
3) Start NT Editor > right click on blank form and select Compile.

Category NinjaTrader 8 Indicators and More 
Suggest other entries I might like
Details: You can have Doji with your unoutlined NT 8 candles
Category: NinjaTrader 8 Indicators and More 

December 9th, 2015
Size: 208 bytes
Downloaded: 201 times


Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada),
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.