Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Add Reference problem

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

    Add Reference problem

    Hi,

    Last night I successfully added a C# reference of system.web.dll so I could include System.Web.Mail. After working some with my strategy and adding some functional logic I noticed my data feed stopped. I closed down NT, restarted my computer, restarted NT and reconnected to MB (datafeed). The price did not update on the chart, although it did update in the price window (top left of the Control Center).

    I went back into my strategy (which was not running) and removed the Reference to system.web.dll. The chart began to update once more.

    Is this a bug or am I doing something wrong with my added reference?

    Thanks for you help.
    Anthony
    mrlogik
    NinjaTrader Ecosystem Vendor - Purelogik Trading

    #2
    References should not be related to indicators/strategies working or not. Wrong references would result in compiler failures.

    Comment


      #3
      Agreed.

      I just don't understand how / why prior to adding a reference and using it the data feed would work fine, and then after it would stop working. Then, removing the reference it woudl begin to update the chart again, whether an indicator / strategy was on the chart or not made no difference.

      I will try again when I get home and get back to you.

      Thanks
      mrlogik
      NinjaTrader Ecosystem Vendor - Purelogik Trading

      Comment


        #4
        May be just a recompile made the difference...

        Comment


          #5
          Not sure.

          The code that I added to my strategy comilied and worked properly. It was a simple test strategy that used the Stmp.SendMail function. It sent a mail (I have problems w/ my smtp and the SendMail() NT function) properly.

          I had no coding errors, or logical warnings from NT C# compiling.
          mrlogik
          NinjaTrader Ecosystem Vendor - Purelogik Trading

          Comment


            #6
            Trouble with SMTP and/or NS SendMail() method can not be resolved by adding references. You could try changing your SMTP connection at Tools->Options->Misc

            Comment


              #7
              I was trying to use it in this manner ...

              Provides properties and methods for sending messages using the Collaboration Data Objects for Windows 2000 (CDOSYS) message component. Recommended alternative: System.Net.Mail.


              I was getting an AUTH Failure when trying a test email via my SMTP connection. I will give you more details when I get them.
              mrlogik
              NinjaTrader Ecosystem Vendor - Purelogik Trading

              Comment


                #8
                I see. However, these standard C# issues are beyond the scope of what we can provide support for...

                Comment


                  #9
                  I understand.

                  If the chart not updating problem I had last night exists when this reference is added, is that an NT problem?
                  mrlogik
                  NinjaTrader Ecosystem Vendor - Purelogik Trading

                  Comment


                    #10
                    Definitely. It would be great if you had a reproducible scenario (using supported "features") so we could research here.

                    Also: Please check out for unexpected messages.

                    Comment


                      #11
                      Great!

                      Thanks for your help. I'll get back to you if I can reproduce the problem.

                      Anthony
                      mrlogik
                      NinjaTrader Ecosystem Vendor - Purelogik Trading

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by andrewtrades, Today, 04:57 PM
                      1 response
                      8 views
                      0 likes
                      Last Post NinjaTrader_Manfred  
                      Started by chbruno, Today, 04:10 PM
                      0 responses
                      5 views
                      0 likes
                      Last Post chbruno
                      by chbruno
                       
                      Started by josh18955, 03-25-2023, 11:16 AM
                      6 responses
                      436 views
                      0 likes
                      Last Post Delerium  
                      Started by FAQtrader, Today, 03:35 PM
                      0 responses
                      7 views
                      0 likes
                      Last Post FAQtrader  
                      Started by rocketman7, Today, 09:41 AM
                      5 responses
                      19 views
                      0 likes
                      Last Post NinjaTrader_Jesse  
                      Working...
                      X