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 FrancisMorro, Today, 03:24 AM
|
0 responses
1 view
0 likes
|
Last Post
by FrancisMorro
Today, 03:24 AM
|
||
Net Change
by Segwin
Started by Segwin, 05-07-2018, 02:15 PM
|
10 responses
1,769 views
0 likes
|
Last Post
by Leafcutter
Today, 03:01 AM
|
||
Change colour of Stop market and limit orders to red and green via indicator script
by Rapine Heihei
Started by Rapine Heihei, 04-23-2024, 07:51 PM
|
2 responses
30 views
0 likes
|
Last Post
by Max238
Today, 02:25 AM
|
||
Started by Shansen, 08-30-2019, 10:18 PM
|
24 responses
943 views
0 likes
|
Last Post
by spwizard
Today, 01:29 AM
|
||
Started by Max238, Today, 01:28 AM
|
0 responses
10 views
0 likes
|
Last Post
by Max238
Today, 01:28 AM
|
Comment