Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Email Alerts - Can the Instrument Name be Included

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

    Email Alerts - Can the Instrument Name be Included

    I have set up email alerts on my strategy that I am running across an instrument list. Is there anyway to include the instrument name that is triggered by the strategy? For instance, if I have an instrument list running in the background with one strategy running on all the instruments. Once the strategy is triggered, it sends me an email alert. However, is there anyway to know what instrument triggered it without having to be at my computer to see? Can ninjatrader include the instrument into the email alert?

    #2
    Hello seahawk13,

    Thanks for your post.

    Yes, you can get the instrument name and more:
    References:



    Examples:

    You might try printing these to see what works for you:

    Print ("Instrument "+Instrument.MasterInstrument.Name);
    Print ("fullname: "+ Instrument.FullName);
    Print ("ID: "+ Instrument.Id);
    Print ("expiry: "+ Instrument.Expiry);
    Print ("Bar type: "+BarsPeriod.Id);
    Print ("Bar period: "+BarsPeriod.Value);

    Comment


      #3
      Hey Paul, I am kinda confused on where that information would go into. I have attached a screenshot of the area I am working out of it.

      Comment


        #4
        Hello seahawk13,

        Thanks for your reply.

        I've replied to your e-mail.

        For closure here, the issue is the use of the strategy wizard e-mail. The instrument property values I showed cannot be used because the wizard automatically will add "" to create text strings. The answer provided was to unlock the strategy wizard code and enter the variables without "".

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        142 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        81 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        125 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        120 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        98 views
        0 likes
        Last Post CarlTrading  
        Working...
        X