Hopefully a quick and easy one, I have written my own custom Bar Type in NT8 and want to add it to a strategy however I can't for the life of me figure out what to put in the BarsPeriodType for the AddDataSeries, any help would be much appreciated.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Adding custom bar series to strategy
Collapse
X
-
Adding custom bar series to strategy
Hello,
Hopefully a quick and easy one, I have written my own custom Bar Type in NT8 and want to add it to a strategy however I can't for the life of me figure out what to put in the BarsPeriodType for the AddDataSeries, any help would be much appreciated.Tags: None
-
Originally posted by ScotCyGuy View PostHello,
Hopefully a quick and easy one, I have written my own custom Bar Type in NT8 and want to add it to a strategy however I can't for the life of me figure out what to put in the BarsPeriodType for the AddDataSeries, any help would be much appreciated.
For example, I assign my ninZaRenko bar's ID to 12345. Then we can add the data series as follows:
AddDataSeries(new BarsPeriod() {
BarsPeriodType = (BarsPeriodType)12345,
Value = 8,
Value2 = 4
});
____________
And here is how I set the ID, which should be done in SetDefaults:
BarsPeriod = new BarsPeriod {
BarsPeriodType = (BarsPeriodType)12345,
BarsPeriodTypeName = "ninZaRenko",
};
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by condorhero, Today, 09:28 PM
|
0 responses
5 views
0 likes
|
Last Post
![]()
by condorhero
Today, 09:28 PM
|
||
Started by MaraAnkh, Today, 08:44 PM
|
0 responses
6 views
0 likes
|
Last Post
![]()
by MaraAnkh
Today, 08:44 PM
|
||
Started by wooofad, Today, 05:38 PM
|
0 responses
7 views
0 likes
|
Last Post
![]()
by wooofad
Today, 05:38 PM
|
||
Started by caacapital, Today, 10:10 AM
|
2 responses
18 views
0 likes
|
Last Post
![]()
by caacapital
Today, 07:25 PM
|
||
Started by DiverG20, Today, 10:23 AM
|
0 responses
23 views
0 likes
|
Last Post
![]()
by DiverG20
Today, 10:23 AM
|
Comment