NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 06-15-2008, 04:57 PM   #1
cirion
Member
 
Join Date: May 2008
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default Stochastic and MACD settings

Is it possible to configure the settings in the code instead of user interaction?

So all you have to do is add the indicator to the chart.

cheers
Cirion
cirion is offline  
Reply With Quote
Old 06-15-2008, 05:32 PM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Yes. You will need to custom code the indicator and just change the default parameter values. The section of code which these variables are set is in the "Variables" section.
NinjaTrader_Josh is offline  
Reply With Quote
Old 06-15-2008, 07:44 PM   #3
cirion
Member
 
Join Date: May 2008
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default

thanks josh will try this.
cirion is offline  
Reply With Quote
Old 06-16-2008, 04:15 AM   #4
cirion
Member
 
Join Date: May 2008
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default

found those settings, is there anyway to hide the options for the indicator when the user adds it?

so they do nothing (and not see settings) but add the indicator.

cheers
cirion is offline  
Reply With Quote
Old 06-16-2008, 05:29 AM   #5
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Sure, just remove the public property sections like
Code:
        [Description("Numbers of bars used for calculations")]
        [Category("Parameters")]
        public int Period
        {
            ...
        }
... and amend you code accordingly to make sure it still compiles.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 06-16-2008, 06:44 AM   #6
cirion
Member
 
Join Date: May 2008
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default

thanks heaps got it to work

peace
cirion is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dinapoli Stochastic delta88 NinjaScript File Sharing Discussion 34 04-11-2013 07:29 AM
Stochastic Momentum Index geoarb Indicator Development 21 03-14-2012 02:32 AM
Stochastic Razor_Trader Indicator Development 4 01-12-2011 10:26 AM
Is it possible to put Stochastic/MACD on the actual chart? vast524 Indicator Development 3 05-03-2008 01:36 AM
Stochastic Indicator PorkChop Indicator Development 4 11-07-2007 06:59 PM


All times are GMT -6. The time now is 03:25 AM.