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 zstheorist, Today, 07:52 PM
          0 responses
          5 views
          0 likes
          Last Post zstheorist  
          Started by pmachiraju, 11-01-2023, 04:46 AM
          8 responses
          150 views
          0 likes
          Last Post rehmans
          by rehmans
           
          Started by mattbsea, Today, 05:44 PM
          0 responses
          6 views
          0 likes
          Last Post mattbsea  
          Started by RideMe, 04-07-2024, 04:54 PM
          6 responses
          33 views
          0 likes
          Last Post RideMe
          by RideMe
           
          Started by tkaboris, Today, 05:13 PM
          0 responses
          6 views
          0 likes
          Last Post tkaboris  
          Working...
          X