Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exporting as compiled assembly problem

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

    Exporting as compiled assembly problem

    Hello

    When I export my strategy as compiled assembly I have to add all system indicators, which are used explicitly or implicitly. It's rather time-consuming process. To add insult to injury I cannot save the list to some template. Next time I want to export the strategy I start the process from the scratch. It's very inconvinient

    The questions are:
    1. Why does not NT add system indicators automatically?
    2. Can I save the export template somehow?

    #2
    Hello rfsettling,

    Thank you for your note.

    The Export NinjaScript file window does not require you to manually add all of the system indicators that are utilized in your code. Simply selecting the "Export" button after adding your script will prompt you in a separate window if you wish to include each of the system indicators utilized. You may then select "Yes" or "No" if you wish to proceed or not.

    There are no Export NinjaScript file templates as this would not be necessary.

    Please let me know if you have any further questions.

    Comment


      #3
      Hello

      Here is the simpest example, which fails on export


      Code:
       public class TestStrategy: Strategy
          {
              protected MarketPosition GetEntrySignal()
              {
                  var aRsi = RSI(14, 3);
                  var aHMA = HMA(21);
                  var aBollinger = Bollinger(14, 2);
      
                  //Do something here
      
                  return MarketPosition.Flat;
              }
      
              protected override void OnBarUpdate()
              {
                  base.OnBarUpdate();
                  if (GetEntrySignal() != MarketPosition.Flat)
                  {
                      //Do something here
                  }
              }
          }
      If I want to have it successfully exported, I have to add all related system indicators manually Otherwise I have error CS0246: cannot find HMA, Bollinger etc
      Attached Files
      Last edited by rfsettling; 06-07-2017, 01:58 AM.

      Comment


        #4
        Hello rfsettling,

        Copying your posted code into a strategy I do not have an issue exporting the indicator on my end.

        Could you please send an email to platformsupport[at]ninjatrader[dot]com with Attn: Alan P in the Subject line. Also within the email please include a link to this thread, and attach the log and trace files for the day in subject which you can find in My Documents>NinjaTrader8>Log and My Documents>NinjaTrader8/Trace folders.

        I look forward to your email.
        Alan P.NinjaTrader Customer Service

        Comment


          #5
          Hi Alan
          I sent the e-mail

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by giulyko00, Today, 11:49 AM
          2 responses
          11 views
          0 likes
          Last Post giulyko00  
          Started by Aviram Y, Today, 06:03 AM
          2 responses
          10 views
          0 likes
          Last Post Aviram Y  
          Started by FishTrade, Today, 03:42 PM
          0 responses
          1 view
          0 likes
          Last Post FishTrade  
          Started by Richozzy38, Today, 01:06 PM
          3 responses
          14 views
          0 likes
          Last Post Richozzy38  
          Started by ttrader23, Today, 09:04 AM
          2 responses
          12 views
          0 likes
          Last Post ttrader23  
          Working...
          X