Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Print DataSeries Name to String

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

    Print DataSeries Name to String

    I want to use the same indicator on two separate charts, lets say a 5000 volume and a 200 volume. This indicator has alert features that sends me an email. The problem is, I cant tell which chart triggered the alert from my email. How can I print to string the chart name / data series to something like this: "Crossed 20 MA on the 5000 volume chart". I have spent a couple of hours searching but cannot find anything related to how to do this.
    Thanks,

    #2
    Ellis Guy,

    This is possible but would require you modifying the indicator code as well as creating custom strings in the NinjaScript code for the indicator itself.

    The function you are looking for is called SendMail(), please find information below.



    To determine which period chart the indicator is attached to, you use BarsPeriod. Please find more information below.



    Something like this would work :

    Code:
    SendMail("[email protected]", "[email protected]", "Trade Alert", "Crossed 20 MA on "+BarsPeriod.Value+" volume chart.");
    Adam P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    576 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    334 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    553 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X