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

Comment