Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SendMail Trigger

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

    SendMail Trigger

    Gday

    I'd like to trigger sending an email whenever the strategy Stop Loss is hit, using the SendMail function.

    I am struggling to find a straight forward way of coding the trigger.

    Any suggestion?

    Thanks

    #2
    Code:
    if (CrossBelow(Close, stopPrice, 1))
         SendMail(...);
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Josh

      appreciate your help but "stopPrice" doesn't get compiled. \error CS0103\

      have tried to do it under the OnBarUpdate and also OnOrderUpdate methods but it doesnt work in neither of them.

      also tried StopPrice with the S in hi-key as it appears in the NT doc, but no success. What am I missing?

      any suggestion?

      thanks

      Comment


        #4
        For sure. You need to fill it in with what your stop price is. That is just a place holder for you to put in whatever your stop is.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Duh!

          Thank you very much and have a nice weekend.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Today, 05:17 AM
          0 responses
          24 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          120 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          63 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          41 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          45 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X