switch (BasePeriodType) { case "Tick": Add(PeriodType.Tick, BarsPeriod.Value * this.HigherTimeframeMultiple); break; case "Minute": Add(PeriodType.Minute, BarsPeriod.Value * this.HigherTimeframeMultiple); break; }
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
BasePeriodType
Collapse
X
-
BasePeriodType
Under which class is "BasePeriodType" located? I'm trying to implement the following code:
Code:Tags: None
-
To the Support Staff
Actually, I do have a couple questions for you guys:
According to the help file, the "BarsPeriod" is only relevant for "Kagi, Line Break, P&F, and Renko Bars."
It also states that the property should not be accessed within the initialize() method.
The question is, what happens when it's accessed within initialize(), and why is this sort of thing only relevant for those 4 types of bars?
Thanks,
CG
Comment
-
Hi cgeorgan,
The BarsPeriod array is created in real time, so attempting to access it before bars are built cannot be done.
With NT7, the BasePeriodType is only available and supported for those listed at - http://www.ninjatrader.com/support/h...barsperiod.htm
Other bar types and custom bar types are are not relevant here because of the way they are calculated ad built.TimNinjaTrader Customer Service
Comment
-
Originally posted by NinjaTrader_Tim View PostHi cgeorgan,
The BarsPeriod array is created in real time, so attempting to access it before bars are built cannot be done.
With NT7, the BasePeriodType is only available and supported for those listed at - http://www.ninjatrader.com/support/h...barsperiod.htm
Other bar types and custom bar types are are not relevant here because of the way they are calculated ad built.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by johntraderuser2, Today, 02:34 AM
|
0 responses
6 views
0 likes
|
Last Post Today, 02:34 AM | ||
Started by IanS00, 03-27-2024, 11:24 AM
|
2 responses
12 views
0 likes
|
Last Post Today, 02:00 AM | ||
Started by Mariawilcoxi, Today, 01:32 AM
|
0 responses
4 views
0 likes
|
Last Post
by Mariawilcoxi
Today, 01:32 AM
|
||
Started by gleichnerany, Today, 01:17 AM
|
0 responses
5 views
0 likes
|
Last Post
by gleichnerany
Today, 01:17 AM
|
||
Started by WHICKED, 03-27-2024, 12:33 PM
|
4 responses
47 views
0 likes
|
Last Post Today, 12:28 AM |
Comment