• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

sending email using SmtpClient from OnBarUpdate() function

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

    sending email using SmtpClient from OnBarUpdate() function

    Can one craft and send an email from OnBarUpdate() function using something similar to the below?


    https://stackoverflow.com/questions/...localhost-smtp


    Thanks

    #2
    Most likely, yes, of course, if you have the programming skills to do so ... it's just C#.

    'NinjaScript' is just a marketing name for the class library made available by the .NET program called NinjaTrader.exe built and marketed by the company NinjaTrader, LLC.

    Technically, you could write your .NET programs and assemblies (for ex, NinjaScript 'plugins', such as Indicators, Strategies, and Addons) in any .NET language, such as VB or C# or F# -- it's all just .NET byte-code in the end -- but C# is the only officially supported language by NinjaTrader.

    Comment


      #3
      You can use the sendmail function in Ninjatrader. You would have to set up your email account in the Options -> General -> Share services tab.


      Example code:
      Code:
      SendMail("[email protected]", "Trade Alert", "Buy");

      Comment


        #4
        Hello andrei.reiand,

        Thank you for the post.

        Here is the help guide page to SendMail.

        https://ninjatrader.com/support/help.../?sendmail.htm

        I will be available to answer any additional questions.
        Chris L.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by uiwislth, Yesterday, 11:25 PM
        0 responses
        4 views
        0 likes
        Last Post uiwislth  
        Started by Steve L, Yesterday, 10:04 PM
        0 responses
        3 views
        0 likes
        Last Post Steve L
        by Steve L
         
        Started by marianfed, Yesterday, 09:47 PM
        0 responses
        4 views
        0 likes
        Last Post marianfed  
        Started by hir04068, Yesterday, 09:29 PM
        0 responses
        2 views
        0 likes
        Last Post hir04068  
        Started by iq200, 03-11-2018, 07:49 PM
        24 responses
        1,018 views
        0 likes
        Last Post mrlucky1x  
        Working...
        X