NexusFi: Find Your Edge


Home Menu

 



Categories Help    






Search Results
Submitted by JimWalker
Found 4 matching entries

Sort by

Entries
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 https://forum.ninjatrader.com/showthread.php?t=79416

NT 8 version fix available at https://nexusfi.com/local_links.php?catid=27&linkid=1668

Examples:
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
Replace:

 
Code
graphics.DrawLine(Pen, x - barWidth / 2, close, x + barWidth / 2, close);
With:
 
Code
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.

Cleanup:
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.

Test:
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
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
https://forum.ninjatrader.com/showthread.php?t=79416


NT 7 Version fix available at https://nexusfi.com/local_links.php?catid=27&linkid=1667

Examples
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
Replace:

 
Code
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);
With:
 
Code
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.

Cleanup:
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.

Test:
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: 222 times
Give NT 8 preference over other applications that are running. 5 *
Name: SetNinjaTradersPriorityHigh Version 1.1

Exported with: NT 8.0.0.9 64-bit (Multi-Broker) - BETA
To Import Indicator Into NT 8:
1. Download the attached file by clicking on the blue downward arrow or the NT Chart image. Save the file. Do not open it.
2. From the Control Center window select the menu Tools > Import > NinjaScript...
3. Type into the first field the folder that contains the .zip file downloaded by your browser. When first displayed the field has C:\Users\ ... .
4. Press Enter.
5. Select the downloaded .zip file then click the Import button.

ReExported with: NT 8.0.0.9 64-bit (Multi-Broker) - BETA to fix Import error.
Updated: Oct 21, 2015 5:55AM - New Priority value of BelowNormal. New parm Show NT Priority. Priority now also checked/set in State.Terminated.

Author: James R. Walker

NT 7 Version available https://nexusfi.com/download/ninjatrader-7/indicators/1666-download.html?view

All the applications running on your computer equally share your computer's resources. The NinjaTrader application runs at Normal Priority with all the other applications. Especially during fast markets, when other applications are running on your computer, NT is not processing incoming data as quickly as your computer would allow and possibly losing trade data from your market data service. By default, this Indicator sets NinjaTrader's Process Priority to High, giving it preference over other applications that are running.

This Indicator allows you to set NT's Process Priority to one of four values: High, Above Normal, Normal, or BelowNormal. You may want to use High during your trading day and Normal at other times. You could also set it to BelowNormal to do backtesting in the background while you use your computer for other tasks.

Adding this Indicator to one chart in your Workspace will set NinjaTrader's Process Priority until you exit NT. The Indicator will check before setting the Priority and do nothing if Priority is already set to the Priority specified in its parameter.

Quoting from https://www.eightforums.com/tutorials/23830-processor-priority-level-set-processes-windows-8-a.html : "Windows 8 shares the processor time between all running processes based upon their priority level. If a process has a higher priority, it gets more processor time compared to a process having a lower priority. . . . The changes you make to the priority level of the current instance of an application or process are only temporary and not set permanently. Once you close the application or restart the PC, Windows 8 will automatically set the priority back to default for the process or application."

Parameters:
Select Priority - Select High, Above Normal, Normal, or BelowNormal for NinjaTrader's Process Priority. The Default is High.

Hide Indicator Name - Prevent display of indicator's name at top of chart if true. Default is false.

Show NT Priority - Display NT's Priority at top of chart. Default is true.

To have nothing displayed at top of chart set Hide Indicator Name parameter to true and Show NT Priority to false.

Debug message to Output Window - If true then debugging Output messages printed.


Category NinjaTrader 8 Indicators and More 
 
Suggest other entries I might like
Details: Give NT 8 preference over other applications that are running.
Category: NinjaTrader 8 Indicators and More 


October 21st, 2015
Size: 2.45 KB
Downloaded: 695 times
Give NT 7 preference over other applications that are running. 5 *
Name: SetNinjaTradersPriorityHigh Version 1.1

Exported with: NT 64-bit 7.0.1000.27
To Import Indicator Into NT 7:
1. Download the attached file by clicking on the blue downward arrow or the NT Chart image. Save the file. Do not open it.
2. From the Control Center window select the menu File > Utilities > Import NinjaScript.
3. Navigate to the folder that contains the .zip file download by your browser.
4. Select the downloaded .zip file then click the Open button.

Updated: Oct 22, 2015 8:30AM File & Text- New Priority value of BelowNormal. New parm Show NT Priority. Priority changed only when required. New parameter Debug message to Output Window.


Author: James R. Walker

NT 8 Version available https://nexusfi.com/local_links.php?catid=27&linkid=1665

All the applications running on your computer equally share your computer's resources. The NinjaTrader application runs at Normal Priority with all the other applications. Especially during fast markets, when other applications are running on your computer, NT is not processing incoming data as quickly as your computer would allow and possibly losing trade data from your market data service. By default, this Indicator sets NinjaTrader's Process Priority to High, giving it preference over other applications that are running.

This Indicator allows you to set NT's Process Priority to one of four values: High, Above Normal, Normal, or BelowNormal. You may want to use High during your trading day and Normal at other times. You could also set it to BelowNormal to do backtesting in the background while you use your computer for other tasks.

Adding this Indicator to one chart in your Workspace will set NinjaTrader's Process Priority until you exit NT. The Indicator will check before setting the Priority and do nothing if Priority is already set to the Priority specified in its parameter.

Quoting from https://www.eightforums.com/tutorials/23830-processor-priority-level-set-processes-windows-8-a.html : "Windows 8 shares the processor time between all running processes based upon their priority level. If a process has a higher priority, it gets more processor time compared to a process having a lower priority. . . . The changes you make to the priority level of the current instance of an application or process are only temporary and not set permanently. Once you close the application or restart the PC, Windows 8 will automatically set the priority back to default for the process or application."

Parameters:
Priority - Select High, Above Normal, Normal, or BelowNormal for NinjaTrader's Process Priority. The Default is High.

HideIndicatorName - Prevent display of indicator's name at top of chart if true. Default is false.

ShowNTPriority - Display NT's Priority at top of chart. Default is true.

To have nothing displayed at top of chart set HideIndicatorName parameter to true and ShowNTPriority to false.


Category NinjaTrader 7 Indicators 
 
Suggest other entries I might like
Details: Give NT 7 preference over other applications that are running.
Category: NinjaTrader 7 Indicators 


October 20th, 2015
Size: 2.77 KB
Downloaded: 410 times
 


 
Category
 




© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, 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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top