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
Add UniRenko Bars to Renko Strategy
Collapse
X
-
Add UniRenko Bars to Renko Strategy
Hello! I saw a similar post where someone wanted to replace the Renko Strategy bars type to Better Renko Bars. It worked well, but I want to use UniRenko bars instead of Better Renko. I'm no C# expert, but I tried changing the code to utilize UniRenko bars but it doesn't seem to work. I've attached both the strategy and the bar type I want to utilize. Any assistance would be appreciated!Tags: None
-
Hello natadanquah,
As the scripts you have provided say NT8 on them, I am assuming this is for NinjaTrader 8 and not NinjaTrader 7.
I've moved your thread from the NinjaTrader 7 > Strategy Development section of the forums to the NinjaTrader Desktop > Strategy Development section of the forums.
On line 84 change:
Code:if(BarsPeriod.BarsPeriodType != BarsPeriodType.Renko)
Code:if(BarsPeriod.BarsPeriodType != BarsPeriodType.Renko && BarsPeriod.BarsPeriodType != (BarsPeriodType) 2018)
Chelsea B.NinjaTrader Customer Service
-
Thanks so much, Chelsea for the code and moving the the post.
I attempted the change as you mentioned but I'm still running into the same issue and the strategy is not accepting the bars. Seems that it won't accept regular renko bars with it either - very strange. Would you happen to have any other suggestions?
​
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by fx.practic, 10-15-2013, 12:53 AM
|
5 responses
5,406 views
0 likes
|
Last Post
by Bidder
Today, 12:22 AM
|
||
Started by Shai Samuel, 07-02-2022, 02:46 PM
|
4 responses
98 views
0 likes
|
Last Post
by Bidder
Today, 12:11 AM
|
||
Started by DJ888, Yesterday, 10:57 PM
|
0 responses
8 views
0 likes
|
Last Post
by DJ888
Yesterday, 10:57 PM
|
||
Started by MacDad, 02-25-2024, 11:48 PM
|
7 responses
160 views
0 likes
|
Last Post Yesterday, 10:23 PM | ||
Started by Belfortbucks, Yesterday, 09:29 PM
|
0 responses
9 views
0 likes
|
Last Post
by Belfortbucks
Yesterday, 09:29 PM
|
Comment