Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unable to export code

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

  • koganam
    replied
    Originally posted by asafs View Post
    Dear sir,

    When trying to export code i am getting the following error:
    "Error compiling export assembly: c:\Documents and Settings\asafs.HOMEPC-6DF59C4E\My Documents\NinjaTrader 7\bin\Custom\Indicator\YoavBuildTrainedDataBase.cs (87,41) : error CS0103: The name 'YoavGetGraphData' does not exist in the current context"

    the problem is that the function 'YoavGetGraphData' is located in 'UserDefinedMethods' file which I can't add manually because the file is not shown in the list.

    any suggestions?

    Assaf
    What you want to do is to create your own partial class à la UserDefinedMethods.cs, containing your function code. That file will be available for selection when you do an export.

    Here is how you go about it.
    1. Open UserDefinedMethods.cs in the NT editor.
    2. Right-click in the window and "Save As ..." a different file name.
    3. Delete your function code from the UserDefinedMethods,cs, as that code is now in your newly created file.
    4. Export your indicator.
    Last edited by koganam; 10-25-2012, 09:40 PM. Reason: Corrected spelling and grammar.

    Leave a comment:


  • asafs
    replied
    Unable to export code

    This is what I am doing now, copy the sources to the deployed server and recompile it on the deployed server.
    The problem is that I want to secure my code and I want to use .net dll or SecureTeam's CliSecure product. Is there a way for me to do so.

    Assaf

    Leave a comment:


  • NinjaTrader_AdamP
    replied
    asafs,

    This is a current limitation. I will suggest adding it to the list to development.

    The main issue is that people tend to each have different user defined methods so overwriting this file will possibly delete their own methods. I would suggest just navigating to Documents / NinjaTrader 7 / bin / custom / indicator and copying all the files necessary to use your indicator, then making some instructions on how to install it.

    Please let me know if I may assist further.

    Leave a comment:


  • asafs
    started a topic Unable to export code

    Unable to export code

    Dear sir,

    When trying to export code i am getting the following error:
    "Error compiling export assembly: c:\Documents and Settings\asafs.HOMEPC-6DF59C4E\My Documents\NinjaTrader 7\bin\Custom\Indicator\YoavBuildTrainedDataBase.cs (87,41) : error CS0103: The name 'YoavGetGraphData' does not exist in the current context"

    the problem is that the function 'YoavGetGraphData' is located in 'UserDefinedMethods' file which I can't add manually because the file is not shown in the list.

    any suggestions?

    Assaf

Latest Posts

Collapse

Topics Statistics Last Post
Started by DannyP96, 05-18-2026, 02:38 PM
1 response
27 views
0 likes
Last Post NinjaTrader_ChelseaB  
Started by CarlTrading, 05-11-2026, 05:56 AM
0 responses
117 views
0 likes
Last Post CarlTrading  
Started by CarlTrading, 05-10-2026, 08:12 PM
0 responses
69 views
0 likes
Last Post CarlTrading  
Started by Hwop38, 05-04-2026, 07:02 PM
0 responses
226 views
0 likes
Last Post Hwop38
by Hwop38
 
Started by CaptainJack, 04-24-2026, 11:07 PM
0 responses
417 views
0 likes
Last Post CaptainJack  
Working...
X