NinjaTrader 7 Indicators - You can have Doji with your unoutlined NT 7 candles
futures io

Categories Help    

NinjaTrader 7 Indicators
Indicators in this section are compatible with NinjaTrader 7

You can have Doji with your unoutlined NT 7 candles 1 *
Name: DrawCandleClose / DrawCandleCloseWhite / DrawCandleClose Black Version 1

Author: James R. Walker

These indicators were created to show the Closing price when the CandleStick Opening and Closing price were the same and a Transparent Body Outline color was specified, when the Background color was not White. Standard NT 7 CandleStick Closing price is drawn with the Outline color and is Transparent when that color is Transparent, if the Background color is not White.

These Indicators are obsolete. Instead 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 8 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, Candle Wick = White, Candle Outline = Transparent, Chart Property Background = Black and All markings that were Black = White.

NT7 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.

NT7: Line 490 \Documents\NinjaTrader 7\bin\Custom\Type\@ChartStyles.cs

graphics.DrawLine(Pen, x - barWidth / 2, close, x + barWidth / 2, close);
graphics.DrawLine(Pen2, x - barWidth / 2, close, x + barWidth / 2, close);
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 "@".

Attached file is a dummy to meet posting requirements.

1) Copy \Documents\NinjaTrader 7\bin\Custom\Type\@ChartStyles.cs
2) Paste the file and rename it @ChartStyles.cs Before SFT-818
3) Edit @ChartStyles.cs with with Notepad
4) Make change to line 490 with Notepad
5) Compile any NT file with NT Editor. New @ChartStyles.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 7\bin\Custom\Type\@ChartStyles.cs
8) Paste the file and rename it @ChartStyles.cs After SFT-818Any NT updates will replace @ChartStyles.cs so you will have to make the changes again.

You can use Winmerge to compare updated @ChartStyles.cs and @ChartStyles.cs After SFT-818 and reapply fix to updated, after NT update.

1) Delete Indicator DrawCandleClose.cs, DrawCandleCloseWhite.cs, and DrawCandleCloseBlackif, if they exist, from \Documents\NinjaTrader 7\bin\Custom\Indicator.
2) Start NT Editor > Compile any Indicator to remove deleted Indicators.
NT will automatically remove the Indicator from any chart that use it.

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

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

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


Copyright © 2022 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.