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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
47 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
23 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
33 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
51 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment