NexusFi: Find Your Edge


Home Menu

 





Prevent Parameters from showing in Indicator Call Parameters


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one NJAMC with 5 posts (0 thanks)
    2. looks_two Fat Tails with 5 posts (6 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 ABCTG with 1 posts (1 thanks)
    1. trending_up 5,404 views
    2. thumb_up 7 thanks given
    3. group 4 followers
    1. forum 11 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,951 since Dec 2010
Thanks Given: 3,042
Thanks Received: 2,397

Does anyone know of a way to hide "Parameter Box" options from showing in an indicators call parameters?

I am writing an indicator and want to prevent new parameters (2nd generation) and certain tuning parameters from being added to the CALL to that indicator in a strategy?

I have tried changing the GridCatagory, but that didn't seem to work.
[GridCategory("Parameters2")]



Thanks


Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: [wiki=NT-Local-Order-Manager-LOM-Guide][/wiki]
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
April CPI Preview: +3.7% YoY Expected at 8:30 AM ET -- C …
Traders Hideout
Warsh Confirmed 54-45 on PPI Day -- 97% Say He Holds in …
Prediction Markets & Event Contracts
Coinbase Launches Regulated Crypto Futures Across 26 Eur …
Cryptocurrency
May 26 Deadline Dies at 7.5% as US Strikes Iran During C …
Prediction Markets & Event Contracts
More Than Capable: Hegseths War Warning Validates $114M …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
22 thanks
2026 Jlab journal
10 thanks
Trying to learn Volume and price action correlation
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Hello Im new here
5 thanks
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,114



NJAMC View Post
Does anyone know of a way to hide "Parameter Box" options from showing in an indicators call parameters?

I am writing an indicator and want to prevent new parameters (2nd generation) and certain tuning parameters from being added to the CALL to that indicator in a strategy?

I have tried changing the GridCatagory, but that didn't seem to work.
[GridCategory("Parameters2")]



Thanks

Just replace "GridCategory" with "Category".


Reply With Quote
Thanked by:
  #4 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,951 since Dec 2010
Thanks Given: 3,042
Thanks Received: 2,397


Fat Tails View Post
Just replace "GridCategory" with "Category".

Hi @Fat Tails,

I have tried the following:
 
Code
        [Description("Bar History for comparison")]
        [Category("Parameters")]
        public int HistorySize
        {
            get { return historySize; }
            set { historySize = Math.Max(1, value); }
        }
For some reason "int historySize" still shows in the parameters when I call this indicator from a strategy. I tried deleting the NT created functions at the end of the indictor to try and reset the compiler, but it just kept putting in back. The parameters still show in the Parameter Dialog box so that is still okay.

Thanks


Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: [wiki=NT-Local-Order-Manager-LOM-Guide][/wiki]
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #5 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,447 since Apr 2013
Thanks Given: 493
Thanks Received: 1,639

NJAMC,

changing [Category("Parameters")] to [Category("Visual")] should do what you have in mind in case I understand you correctly. Although there are probably better solutions to the problem.

Regards,
ABCTG


NJAMC View Post
Hi @Fat Tails,

I have tried the following:
 
Code
        [Description("Bar History for comparison")]
        [Category("Parameters")]
        public int HistorySize
        {
            get { return historySize; }
            set { historySize = Math.Max(1, value); }
        }
For some reason "int historySize" still shows in the parameters when I call this indicator from a strategy. I tried deleting the NT created functions at the end of the indictor to try and reset the compiler, but it just kept putting in back. The parameters still show in the Parameter Dialog box so that is still okay.

Thanks


Follow me on X Reply With Quote
Thanked by:
  #6 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,114


NJAMC View Post
Hi @Fat Tails,

I have tried the following:
 
Code
        [Description("Bar History for comparison")]
        [Category("Parameters")]
        public int HistorySize
        {
            get { return historySize; }
            set { historySize = Math.Max(1, value); }
        }
For some reason "int historySize" still shows in the parameters when I call this indicator from a strategy. I tried deleting the NT created functions at the end of the indictor to try and reset the compiler, but it just kept putting in back. The parameters still show in the Parameter Dialog box so that is still okay.

Thanks

Maybe you need to select a different name then "Parameters".

Usually replacing "GridCategory" with "Category" works.


Reply With Quote
Thanked by:
  #7 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,951 since Dec 2010
Thanks Given: 3,042
Thanks Received: 2,397


Fat Tails View Post
Maybe you need to select a different name then "Parameters".

Usually replacing "GridCategory" with "Category" works.

@ABCTG and @Fat Tails,

It seems like this works sometimes... It might be certain data types as my "STRING" that is in section "Version" I can turn on and off, but the bools and ints not so lucky....

Do you know if we can write our own class initializer so NT make the big one with the millions of command line options, but I hand write one with a few or no parameters?


Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: [wiki=NT-Local-Order-Manager-LOM-Guide][/wiki]
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #8 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,114


NJAMC View Post
@ABCTG and @Fat Tails,

It seems like this works sometimes... It might be certain data types as my "STRING" that is in section "Version" I can turn on and off, but the bools and ints not so lucky....

Do you know if we can write our own class initializer so NT make the big one with the millions of command line options, but I hand write one with a few or no parameters?


I have coded hundreds of indicators. All bools and ints labeled with "Category" will not show in the parameter list of an indicator. Where is the problem?


Reply With Quote
Thanked by:
  #9 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,951 since Dec 2010
Thanks Given: 3,042
Thanks Received: 2,397


Fat Tails View Post
I have coded hundreds of indicators. All bools and ints labeled with "Category" will not show in the parameter list of an indicator. Where is the problem?

@Fat Tails,

I am willing to bet it is more than hundreds of indicators you have coded. For some reason, most of the BOOLs and INTs still stay in the parameter list (a few dropped when I renamed all to Category). Do you know of one of your Indicators off hand I can play with to see if I can figure out why this is not reliable in my indicator?


Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: [wiki=NT-Local-Order-Manager-LOM-Guide][/wiki]
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #10 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader
Broker: Interactive Brokers
Trading: Futures & Stocks
Posts: 9,887 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,114



NJAMC View Post
@Fat Tails,

I am willing to bet it is more than hundreds of indicators you have coded. For some reason, most of the BOOLs and INTs still stay in the parameter list (a few dropped when I renamed all to Category). Do you know of one of your Indicators off hand I can play with to see if I can figure out why this is not reliable in my indicator?

Sorry, on my side nothing stays in the parameter list. Please rename both "GridCategory" to "Category" and "Parameters" to something else. Could you attach an example that causes problems please?


Reply With Quote




Last Updated on November 12, 2014


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts