Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Custom strategy not appearing in list for a chart

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

    Custom strategy not appearing in list for a chart

    When I create a new chart and try to add my custom strategy to it, it does not appear in the list of strategies.

    The strategy does however appear in the NinjaScript Editor list, it also compiles without errors, and the Log tab on the control center (as well as the files in Documents/NinjaTrader 8/Log) do not show any issues that I can see.

    What I have already tried after reading several other threads here:

    - restarting the app/computer

    - reinstalling the app

    - deleting NinjaScript.Custom.dll (while NT is closed) and then re-compiling the strategy

    - creating a new workspace

    - creating a new empty strategy and then copy/pasting the code, changing the class name to the new name

    What other steps can I take to solve this?

    Thanks

    #2
    Hello cp202822,

    Do you see errors in the log specifically after opening the strategies menu? If not that is likely a naming issue, you may want to try and use the NinjaScript editor to rename the file which should correct any naming issues. If its manually coded check that the Name = "" string in OnStateChange reflects the correct name you want it to be in the menu.

    Comment


      #3
      Hi Jesse,

      Thanks, the Name string was the issue, it was set to an old strategy name by mistake and I missed it. I had no idea the file/class name was irrelevant.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      44 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      124 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      65 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      42 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X