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 CarlTrading, 03-31-2026, 09:41 PM
      1 response
      82 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      43 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      64 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      68 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      56 views
      0 likes
      Last Post CarlTrading  
      Working...
      X