Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error CS0234 when exporting a strategy if included indicator is in folder

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

    Error CS0234 when exporting a strategy if included indicator is in folder

    Hi. I am facing the next issue: when I export a strategy that includes some indicators and select only the strategy, then everything works well and all used indicators add automatically.

    But if the indicator was created in some folder (inside the main indicators folder) then the export fails with error CS0234. Example output is:

    Error compiling export assembly: .......(32,33) : error CS0234: The type or namespace name 'TestIndicator' does not exist in the namespace 'NinjaTrader.NinjaScript.Indicators.TestFolder' (are you missing an assembly reference?)

    If I manually add the indicator in the exporting window then everything works well. But, first of all, it's very inconvenient (I have a strategies that include >20 indicators and it's really hard to check them all manually) and also I can't understand why it doesn't work as with the indicators that are placed in the main indicators directory.

    I attached an example. If you install it, you will have a strategy "tmp" and an indicator "TestIndicator" in the "TestFolder" folder. Just try to export it selecting only the strategy and you wil get the error.

    Hope for a solution.
    Attached Files

    #2
    Hello alvik48,

    Thank you for your reply.

    I have added a vote for you to a current feature request to support adding referenced scripts when exporting if they are in a subfolder automatically . This request is being tracked under the number SFT-2589.

    As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted in the Release Notes page of the Help Guide.

    Release Notes — https://ninjatrader.com/support/help...ease_notes.htm

    Please let us know if we may be of further assistance to you.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    54 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    72 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X