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 3,532 views
    2. thumb_up 7 thanks given
    3. group 4 followers
    1. forum 11 posts
    2. attach_file 0 attachments




 
Search this Thread

Prevent Parameters from showing in Indicator Call Parameters

  #1 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,394

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: NT-Local-Order-Manager-LOM-Guide
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?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Exit Strategy
NinjaTrader
Deepmoney LLM
Elite Quantitative GenAI/LLM
Are there any eval firms that allow you to sink to your …
Traders Hideout
Futures True Range Report
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
59 thanks
Funded Trader platforms
36 thanks
NexusFi site changelog and issues/problem reporting
25 thanks
GFIs1 1 DAX trade per day journal
19 thanks
The Program
18 thanks
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102



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
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,394


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: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Started this thread Reply With Quote
  #5 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623

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 Twitter Reply With Quote
Thanked by:
  #6 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


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
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,394


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: NT-Local-Order-Manager-LOM-Guide
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, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


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
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,394


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: NT-Local-Order-Manager-LOM-Guide
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, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102



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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts