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 sjsj2732, 03-23-2026, 04:31 AM
    0 responses
    43 views
    0 likes
    Last Post sjsj2732  
    Started by NullPointStrategies, 03-13-2026, 05:17 AM
    0 responses
    295 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    290 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    135 views
    1 like
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    98 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Working...
    X