Appreciate any help
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Creating Custom Bar Type
Collapse
X
-
Hello ark321,
It would be necessary to know what was coded in the script.
The bar type is likely using SetPropertyName to reused one of the available properties.
From the help guide:
"2. You can add a custom BarsType which is installed on your system by casting the registered enum value for that BarsPeriodType. For example: AddDataSeries((BarsPeriodType)103, 10);
3. You can specify optional BarsPeriod values (such as Value2) of a custom BarsType in the BarsPeriod object initializer. For example: AddDataSeries(new BarsPeriod() { BarsPeriodType = (BarsPeriodType)103, Value = 10, Value2 = 20 });"
https://ninjatrader.com/support/help...dataseries.htm
Below is a link to helpful script that lists the IDs for each bar type.
https://ninjatraderecosystem.com/use...pe-identifier/
For example the UniRenko bar type re-uses BaseBarsPeriodValue, Value, and Value2 and would be called with AddDataSeries() as:
AddDataSeries(new BarsPeriod(){BarsPeriodType = (BarsPeriodType) 2018, Value = 2, Value2 = 6, BaseBarsPeriodValue = 2});Chelsea B.NinjaTrader Customer Service
-
Hello ark321,
You would need to open the script for editing in the NinjaScript Editor.
If the script is a closed source assembly from a 3rd party, you would need to contact the vendor or author that distributed the software to you for assistance using their software.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
54 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
72 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
38 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
99 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
60 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|

Comment