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 07-24-2008, 06:37 PM   #1
eDanny
Senior Member
 
eDanny's Avatar
 
Join Date: Jul 2008
Location: East Rochester, NY
Posts: 899
Thanks: 0
Thanked 19 times in 17 posts
Default Too many inputs!

Say I have an indicator that plots 10 horizontal lines and I have to enter new figures for every plot every morning. Now multiply that by three or four charts of different time frames using the same indicator. Is there an easier way to input the data without entering the same data into all three or four charts individually? Same numbers, same indicator, different charts!
eDanny is offline  
Reply With Quote
Old 07-24-2008, 07:51 PM   #2
mrlogik
Certified NinjaScript Consultant
 
mrlogik's Avatar
 
Join Date: Sep 2006
Location: New York, USA
Posts: 774
Thanks: 1
Thanked 7 times in 5 posts
Default

If the numbers are always the same you can open the ninja script and hard code the default values under the "variables" area at the top of the code.

take a look and let me know.
mrlogik is offline  
Reply With Quote
Old 07-24-2008, 08:13 PM   #3
eDanny
Senior Member
 
eDanny's Avatar
 
Join Date: Jul 2008
Location: East Rochester, NY
Posts: 899
Thanks: 0
Thanked 19 times in 17 posts
Default

The reason for the question is because the numbers would change on a daily basis, but are the same for every chart. Makes my fingers hurt!
eDanny is offline  
Reply With Quote
Old 07-24-2008, 09:16 PM   #4
tazatek
Senior Member
 
Join Date: Jul 2008
Location: Grand Junction, CO
Posts: 148
Thanks: 0
Thanked 0 times in 0 posts
Send a message via Skype™ to tazatek
Default

I think what MrLogik is saying is that instead of inputting the variables into each chart individually, if you view the NinjaScript Indicator, and change the variables at the top of the indicator code every morning and recompile it, then all the charts that use the indicator will get the new inputs.

That way you are just updating once per morning.

If you send me your indicator code, I can put comments in there of where you need to change the variables.


Matt
tazatek is offline  
Reply With Quote
Old 07-24-2008, 11:54 PM   #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

Guess I don't see a way around, since even coding something in NinjaScript would not make a difference: the values applied to the indicators instances on chart will remain active, since they are copied as you e.g. go right click->reload NinjaScript in order to activate the recompiled indicator.
NinjaTrader_Dierk is offline  
Reply With Quote
Old 07-25-2008, 07:07 AM   #6
eDanny
Senior Member
 
eDanny's Avatar
 
Join Date: Jul 2008
Location: East Rochester, NY
Posts: 899
Thanks: 0
Thanked 19 times in 17 posts
Default

Too bad the indicators could not be linked and unlinked, to share the data. Then just reactivating in each chart would make the change. Recompiling all the time would defeat the purpose of having an easy to use interface.
eDanny is offline  
Reply With Quote
Old 07-25-2008, 09:25 AM   #7
eDanny
Senior Member
 
eDanny's Avatar
 
Join Date: Jul 2008
Location: East Rochester, NY
Posts: 899
Thanks: 0
Thanked 19 times in 17 posts
Default

oops, wrong thread
eDanny 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
Suppress Indicator inputs at top of chart OnePutt Indicator Development 13 03-31-2010 11:42 AM
User Definable Color Inputs NinjaTrader_Josh Tips 0 01-14-2008 11:11 AM
Indicator Inputs not working right across machines TheCD Indicator Development 1 11-02-2007 05:53 PM
Dialogue box for inputs. goldfly Strategy Development 1 10-15-2007 09:31 AM
Market Statistics as Indicator Inputs goWms General Programming 1 01-28-2007 09:10 AM


All times are GMT -6. The time now is 11:50 AM.