![]() |
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
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jul 2008
Location: East Rochester, NY
Posts: 899
Thanks: 0
Thanked 19 times in 17 posts
|
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!
|
|
|
|
|
|
#2 |
|
Certified NinjaScript Consultant
Join Date: Sep 2006
Location: New York, USA
Posts: 774
Thanks: 1
Thanked 7 times in 5 posts
|
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. |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jul 2008
Location: East Rochester, NY
Posts: 899
Thanks: 0
Thanked 19 times in 17 posts
|
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!
|
|
|
|
|
|
#4 |
|
Senior Member
|
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 |
|
|
|
|
|
#5 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
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.
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Jul 2008
Location: East Rochester, NY
Posts: 899
Thanks: 0
Thanked 19 times in 17 posts
|
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.
|
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Jul 2008
Location: East Rochester, NY
Posts: 899
Thanks: 0
Thanked 19 times in 17 posts
|
oops, wrong thread
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |