Thanks.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Know the time frame in realtime
Collapse
X
-
Know the time frame in realtime
How can I know the time frame of my chart in real time? I want to print it, for example, in the output window. So if my Automatic Strategie is working in Fut. S&P in a chart of 5 minutes, I would like to have a variable with "5 minutes".
Thanks.Tags: None
-
Originally posted by soyjesus View PostHow can I know the time frame of my chart in real time? I want to print it, for example, in the output window. So if my Automatic Strategie is working in Fut. S&P in a chart of 5 minutes, I would like to have a variable with "5 minutes".
Thanks.
Print("This is a tick chart of over 100 ticks per bar");
Other possibilities are PeriodType.Range, PeriodType.Minute, etc. the BarsPeriod.Value is length.
Mike
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by rajendrasubedi2023, Today, 09:50 AM
|
2 responses
12 views
0 likes
|
Last Post Today, 10:48 AM | ||
Started by geddyisodin, Today, 05:20 AM
|
4 responses
28 views
0 likes
|
Last Post
by geddyisodin
Today, 10:45 AM
|
||
Started by geotrades1, Today, 10:02 AM
|
2 responses
7 views
0 likes
|
Last Post
by geotrades1
Today, 10:43 AM
|
||
Started by ender_wiggum, Today, 09:50 AM
|
1 response
5 views
0 likes
|
Last Post Today, 10:10 AM | ||
Started by bmartz, Today, 09:30 AM
|
1 response
10 views
0 likes
|
Last Post Today, 09:48 AM |
Comment