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 Hwop38, 05-04-2026, 07:02 PM
        0 responses
        152 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        305 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        244 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        345 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        176 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X