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 tony_28217, Today, 07:04 PM
|
0 responses
3 views
0 likes
|
Last Post
by tony_28217
Today, 07:04 PM
|
||
Started by flybuzz, Today, 10:33 AM
|
1 response
9 views
0 likes
|
Last Post
by flybuzz
Today, 06:59 PM
|
||
Started by spencerp92, 10-10-2023, 09:56 AM
|
4 responses
303 views
0 likes
|
Last Post
by flybuzz
Today, 06:45 PM
|
||
Started by samish18, Yesterday, 10:13 AM
|
1 response
25 views
0 likes
|
Last Post Today, 06:15 PM | ||
Started by Austiner87, Today, 05:02 PM
|
0 responses
5 views
0 likes
|
Last Post
by Austiner87
Today, 05:02 PM
|
Comment