Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
How to Add Better Renko bars to Renko Strategy
Collapse
X
-
bdelorm : If you want renko with wicks you can look into unirenko : https://ninjatraderecosystem.com/use...nko-bartype-8/
-
Hello bdelorm,
Thank you for your reply.
Tick Replay is not compatible with all bar types. Bar types that use RemoveLastBar, such as Renko based bars, are not supported for Tick replay, so you would not be able to use the Buy Sell Pressure indicator historically on a chart using that particular bar type.
Please let us know if we may be of further assistance to you.Kate W.NinjaTrader Customer Service
Comment
-
Hi everyone,
Regarding BetterRenko in a Strategy file, is there a way to add BetterRenko bar type via AddDataSeries to a strategy? I want to reference multiple BetterRenko bar types within a single strategy file and I don't see a way to do this.
Thank you,
Tim
Comment
-
Hello ozziyhtmot,
The BarsPeriodType index from the custom BarsType will need to be used with your AddDataSeries call. The BarsPeriodType index will then need to be casted as BarsPeriodType.
Tips from AddDataSeries Documentation:
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)14, 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() { BarsPeri odType = (BarsPeriodType)14, Value = 10, Value2 = 20 });
The source code for the BetterRenko BarsType can be referenced to get the BarsPeriodType index for that custom BarsType.
Code:BarsPeriod = new BarsPeriod { BarsPeriodType = (BarsPeriodType) 17, BarsPeriodTypeName = "BetterRenko(17)", Value = 1 };
We look forward to assisting.JimNinjaTrader Customer Service
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by inanazsocial, Today, 01:15 AM
|
1 response
5 views
0 likes
|
Last Post Today, 02:18 AM | ||
Started by rocketman7, Today, 02:12 AM
|
0 responses
6 views
0 likes
|
Last Post
by rocketman7
Today, 02:12 AM
|
||
Started by dustydbayer, Today, 01:59 AM
|
0 responses
1 view
0 likes
|
Last Post
by dustydbayer
Today, 01:59 AM
|
||
Started by trilliantrader, 04-18-2024, 08:16 AM
|
5 responses
22 views
0 likes
|
Last Post Today, 12:32 AM | ||
Started by Davidtowleii, Today, 12:15 AM
|
0 responses
3 views
0 likes
|
Last Post
by Davidtowleii
Today, 12:15 AM
|
Comment