Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how to sendmail() with current symbol and close price

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

    how to sendmail() with current symbol and close price

    how to sendmail() with current symbol and closing price when the condition is met?

    #2
    Try this post. Josh was very helpful

    NinjaTrader Customer Service



    Join Date: May 2007
    Location: Denver, CO
    Posts: 4,087



    Code:
    SendMail("[email protected]", "[email protected]", "Trade Alert", "Long strategy triggered on " + Instrument.MasterInstrument.Name + " in " + Bars.Period.Value + "-" + Bars.Period.Id + " time frame.");
    The body of your email would end up as something like this:
    "Long strategy triggered on ER2 in 1-Minute time frame."
    __________________

    Comment


      #3
      thanks...

      I also like to add current time and price when email was sent...how can i do that?

      Comment


        #4
        Hi tbtrades,

        Add Time[0] and Close[0] to your message string.

        Code:
        SendMail("[email protected]", "[email protected]", "Trade Alert", "Long strategy triggered on " + Instrument.MasterInstrument.Name + " in " + Bars.Period.Value + "-" + Bars.Period.Id + " time frame." + " Time: " + Time[0] + " Price: " + Close[0]);
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by cmtjoancolmenero, Yesterday, 05:05 PM
        5 responses
        37 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by trilliantrader, Today, 07:50 AM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by Taddypole, Yesterday, 02:25 PM
        3 responses
        19 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Started by NM_eFe, 04-30-2024, 06:14 AM
        6 responses
        37 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by cmtjoancolmenero, 04-29-2024, 03:40 PM
        27 responses
        92 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Working...
        X