NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Sunday May 26th at 12PM 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 12-30-2008, 09:46 AM   #1
Mindset
Senior Member
 
Join Date: Mar 2008
Location: UK West Sussex
Posts: 665
Thanks: 9
Thanked 9 times in 7 posts
Default How do you remove an Input?

Hi
I posted this a while ago here .
In attempting to revise it I have come up against an issue I don't know how to resolve.
The dec variable (Decimal Input) is no longer required but if I delete it from the properties region it gives a pile of errors in the ninja generated script section which I completely fail to understand at the moment.

I have got round the issue by converting it to internal rather than public so that at least it compiles and runs and the decimal input doesn't display in the parameters box. However I am only halfway through my C# for dummies book!

Here is the revised indicator which once I have this issue resolved I will post in the share forum.

BTW is it possible to simply update the existing indicator with a new zip file or do I have to delete and repost this one?
Attached Files
File Type: zip hilonew.zip (2.2 KB, 5 views)
Mindset is offline  
Reply With Quote
Old 12-30-2008, 09:51 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

You should be able to press the Edit button and make the changes to the file attachment. To remove a user input you need to remove all calls to that input as well. Anything you added to create that input you need to remove and then it will work. If you reference this indicator in your other scripts, changing the input will influence the other scripts because they use to use that input so you need to change all of those as well.
NinjaTrader_Josh is offline  
Reply With Quote
Old 12-30-2008, 10:54 AM   #3
Mindset
Senior Member
 
Join Date: Mar 2008
Location: UK West Sussex
Posts: 665
Thanks: 9
Thanked 9 times in 7 posts
Default

Well that was easier than I thought!

ok - now posted here
Mindset 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
Color input clears mrlogik Indicator Development 2 12-10-2008 12:28 PM
Variable input? ju1234 Strategy Development 3 11-24-2008 09:15 AM
Keyboard input BradB General Programming 1 10-29-2008 03:31 PM
Color Input Parameter aslane Indicator Development 2 12-24-2007 01:49 PM
custom Dataseries as indicator input, or input to indi through underlying strategy Nathamus General Programming 3 08-30-2007 12:04 PM


All times are GMT -6. The time now is 02:39 AM.