Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Determine the timeframe of the dataseries

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

    Determine the timeframe of the dataseries

    I have developed a custom indicator to send the Alert to the Alert windows. However, this indicator is used on 2min, 5min and 15min data/chart.

    How can I find out what timeframe (2min or 5min or 15min) of data that this indicator is working on? I want to pass this value as a string to the Alert function so that at the Alert window I know which chart is this Alert comes from?

    #2
    Hi kalim,

    You could add something like this to the alert message:
    Code:
    Alert("AlertID", Priority.High, [COLOR="Red"]Bars.Period.Value[/COLOR] + " " + [COLOR="red"]Bars.Period.Id[/COLOR] + " Raised this alert ", "Alert1.wav", 0, Color.White, Color.Black);
    This link has more information on these properties:
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks. It is exactly what I needs.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      625 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      359 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      562 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      567 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X