• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to hide a strategy from the list of strategies (Strategies>Available ListBox)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to hide a strategy from the list of strategies (Strategies>Available ListBox)

    I created a base partial class from which my strategies derive from. This base class then derives from Strategy Class as expected (public partial class MyStrategyBase : Strategy).
    I would like to hide this class from the Strategies>Available Listbox just like NT8 hides the class Strategy.cs. How can I accomplish this?
    Thank you!

    #2
    Hello,

    Thank you for the question.

    I am unsure of a specific way to hide the base you have made from the menus as it is a strategy as well. You could potentially use a blank name but the platform would still register it as a strategy because it is. In general, subclassing the bases like this is not directly supported as it can lead to strange occurrences in the platform.

    To make a copy of the existing partial strategy class, it would need to be identical to the existing one but with a unique name. That would mean it needs to inherit StrategyRenderBase rather than Strategy. This would allow it to compile but I really couldn't provide any guidance on what else may be required in this approach.

    If any community members currently use this type of approach and have run into this situation, please feel free to provide your notes or any details on resolutions you had.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by darkgreen, Today, 03:35 PM
    0 responses
    0 views
    0 likes
    Last Post darkgreen  
    Started by GTBrooks, Today, 02:44 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by GLFX005, Today, 12:22 PM
    4 responses
    41 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by AspenHiker, Today, 08:37 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by MartinT, Yesterday, 01:12 PM
    3 responses
    16 views
    0 likes
    Last Post MartinT
    by MartinT
     
    Working...
    X