Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error exporting indicator that uses external assembly CS0246

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

    Error exporting indicator that uses external assembly CS0246

    I created a C# library assembly (.NET framework 4.8), the has a static function. This function which is called from my NT8 indicator reads from a file, does some calculations and returns the return back to the indicator.

    I copied the assembly (assemble name is myCalc, and DLL is mycalc.dll) to the NT8\bin folder (in documents). Then I added the reference to the assembly in NinjaScript editor -> References.

    In my indicator, I used the function (myFunction) from the assembly. It works perfectly fine and the indicator displays the results correctly.

    Now, when I try to export the indicator (Tools -> Export -> Ninjascript Add-Ons), I get compilation error CS0246 - type or namespace myFunction could not be found.

    The assembly (myCalc.dll) exists in the NT8\bin\Custom folder, the indicator compiles and works correctly, but I get error during exporting.

    How do I fix it ?


    Please Ignore : I FOUND THE PROBLEM.
    I added the assembly reference during export and it worked.

    Last edited by firstlanetech; 12-20-2024, 03:43 AM.

Latest Posts

Collapse

Topics Statistics Last Post
Started by SalmaTrader, 07-07-2026, 10:26 PM
0 responses
84 views
0 likes
Last Post SalmaTrader  
Started by CarlTrading, 07-05-2026, 01:16 PM
0 responses
42 views
0 likes
Last Post CarlTrading  
Started by CaptainJack, 06-17-2026, 10:32 AM
0 responses
23 views
0 likes
Last Post CaptainJack  
Started by kinfxhk, 06-17-2026, 04:15 AM
0 responses
31 views
0 likes
Last Post kinfxhk
by kinfxhk
 
Started by kinfxhk, 06-17-2026, 04:06 AM
0 responses
31 views
0 likes
Last Post kinfxhk
by kinfxhk
 
Working...
X