• 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

send email with details

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

    send email with details

    Hi all,

    I am woundering if it is possible, when a strategy runs, to send automatic email with informations such as "Price traded", the high and the low of the bar....

    Apparently we can send only static information (SendMail function)

    Thanks!

    F

    #2
    Hello,

    Yes, you can pass this information to the message of the SendMail() function.

    SendMail(fromEmailAddress, toEmailAddress, "NinjaTrader Trade Confirmation", "High " + High[0].ToString());
    MatthewNinjaTrader Product Management

    Comment


      #3
      Many thanks for your help

      Last question: if I sayl MUM = (High[0]+Low[0])/2
      then may I include this number like that: MUM.ToString()?

      Comment


        #4
        You can pass any variable to that string you need.
        MatthewNinjaTrader Product Management

        Comment


          #5
          good!
          many thanks for your help

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Lisa Marshall, 01-25-2020, 04:17 PM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_ChrisSch  
          Started by HiddenPhilosopher, Yesterday, 11:24 PM
          0 responses
          2 views
          0 likes
          Last Post HiddenPhilosopher  
          Started by akuntysh, 01-25-2020, 08:42 AM
          2 responses
          12 views
          0 likes
          Last Post akuntysh  
          Started by nailz420, Yesterday, 09:15 PM
          0 responses
          1 view
          0 likes
          Last Post nailz420  
          Started by ATMtrader0001, Yesterday, 01:27 PM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X