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 CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
236 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
150 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
162 views
1 like
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
243 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
198 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment