Jump to content

(Req) Button on/off for NT8 Indicators


bomdila

Recommended Posts

Hi friends, I have just started using NT8 so I am not aware of much resources. Can someone share EMA with button on/off on toolbar, same for pivots, previous day's levels etc. We don't require all indicators all the time while trading on charts but we should try to keep it as clean as possible. If we plot 13, 21, 50, 100, 200 EMA on a chart and we wish only 21 visible. I would appreciate any help

 

Thank you all

Link to comment
Share on other sites

Hi friends, I have just started using NT8 so I am not aware of much resources. Can someone share EMA with button on/off on toolbar, same for pivots, previous day's levels etc. We don't require all indicators all the time while trading on charts but we should try to keep it as clean as possible. If we plot 13, 21, 50, 100, 200 EMA on a chart and we wish only 21 visible. I would appreciate any help

 

Thank you all

 

Hi bomdila I did not try it but have a look and see if will work for you

 

https://ninjatraderecosystem.com/user-app-share-download/toolbar-to-toggle-on-of-drawings-indicators-trade-markers-and-wicks/

Link to comment
Share on other sites

Hi friends, I have just started using NT8 so I am not aware of much resources. Can someone share EMA with button on/off on toolbar, same for pivots, previous day's levels etc. We don't require all indicators all the time while trading on charts but we should try to keep it as clean as possible. If we plot 13, 21, 50, 100, 200 EMA on a chart and we wish only 21 visible. I would appreciate any help

 

Thank you all

You should registered with ninja forum, there are lot of great guys there who can actively help you,

Check this thread: ninjatrader(.)com/support/forum/forum/ninjatrader-8/indicator-development/1090344-toolbar-button-for-indicator-show-hide

 

You can also try to code a generic add on OR an indicator which can enable you to control all indicator directly from chart chart.. I use toggle button to control strategy at realtime without needing to restart it. if you need i can provide you sample,for adding toggle button on chart via Add-on

Capture.thumb.JPG.89d13f73ae1f840fb747960a1b9b10b0.JPG

Once you have added those toggle buttons then can use below sample code: to enable disable indicators programmatically.

private void btnIndicatorsClick(object sender, RoutedEventArgs e) {
System.Windows.Controls.Button button = sender as System.Windows.Controls.Button;
if (button != null) {
// toggle all indicators
foreach (var obj in chartWindow.ActiveChartControl.ChartObjects) {
var indi = obj as Indicator;
if (indi != null) {
if (indiSwitch) {
if (indi.Name !="SMA") { indi.IsVisible = false; } }
else if (!indiSwitch) { if (indi.Name !="SMA") { indi.IsVisible = true; } } }
}
indiSwitch = !indiSwitch;
chartWindow.ActiveChartControl.InvalidateVisual();
ForceRefresh();
}

}

 

Edited by RajanAnand
Link to comment
Share on other sites

You should registered with ninja forum, there are lot of great guys there who can actively help you,

Check this thread: ninjatrader(.)com/support/forum/forum/ninjatrader-8/indicator-development/1090344-toolbar-button-for-indicator-show-hide

 

Thanks Rajan, I am new to NT8 so I am not aware of most of the things.

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...