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?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Determine the timeframe of the dataseries
Collapse
X
-
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?Tags: None
-
Hi kalim,
You could add something like this to the alert message:
This link has more information on these properties: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);
Ryan M.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
618 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
359 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
561 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
566 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment