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 burtoninlondon, Today, 12:38 AM
          0 responses
          5 views
          0 likes
          Last Post burtoninlondon  
          Started by AaronKoRn, Yesterday, 09:49 PM
          0 responses
          12 views
          0 likes
          Last Post AaronKoRn  
          Started by carnitron, Yesterday, 08:42 PM
          0 responses
          11 views
          0 likes
          Last Post carnitron  
          Started by strategist007, Yesterday, 07:51 PM
          0 responses
          13 views
          0 likes
          Last Post strategist007  
          Started by StockTrader88, 03-06-2021, 08:58 AM
          44 responses
          3,982 views
          3 likes
          Last Post jhudas88  
          Working...
          X