![]() |
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
|
|||||||
| General Programming General NinjaScript programming questions. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Apr 2010
Posts: 125
Thanks: 18
Thanked 3 times in 3 posts
|
Hi there
I added a bool method to Parameters in my UserDefinedMethods.cs file. private bool iShowOnly = false; [Description("")] [GridCategory("Parameters")] publicbool ShowOnly { get { return iShowOnly; } set { iShowOnly = value; } } Since UserDefinedMethods.cs is public it shows in Parameters for all indicators. I only want to use it with a couple of indicators not all of them. Is there a way to restrict to which ones? Btw - I can't put the code just in the indicators I need because the methods I use are coded and referenced in the UserDefinedMethods.cs file... Thx Irvin |
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| UserDefinedMethods | ScottB | Automated Trading | 7 | 09-28-2010 02:34 PM |
| UserDefinedMethods | ScottB | General Programming | 2 | 09-25-2010 11:53 AM |
| UserDefinedMethods.cs | zeller4 | Indicator Development | 1 | 06-07-2010 08:51 AM |
| userdefinedmethods | 8DTK8 | Strategy Development | 4 | 02-22-2009 07:49 AM |
| Question about UserDefinedMethods | clint2008 | Strategy Development | 1 | 11-07-2008 10:37 AM |