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 maybeimnotrader, Yesterday, 05:46 PM
          2 responses
          21 views
          0 likes
          Last Post maybeimnotrader  
          Started by adeelshahzad, Today, 03:54 AM
          5 responses
          32 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Started by stafe, 04-15-2024, 08:34 PM
          7 responses
          32 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by merzo, 06-25-2023, 02:19 AM
          10 responses
          823 views
          1 like
          Last Post NinjaTrader_ChristopherJ  
          Started by frankthearm, Today, 09:08 AM
          5 responses
          22 views
          0 likes
          Last Post NinjaTrader_Clayton  
          Working...
          X