Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
From my understanding of the code, the UniRenko bars are closed using either the greatest of the close and high or lowest of the close and low.
thisClose = maxExceeded ? Math.Min(close, barMax) : minExceeded ? Math.Max(close, barMin) : close;// thisClose is the minimum of BarMax and close (maxExceeded)
//### Close Current Bar
UpdateBar(bars, bar.Open, (maxExceeded ? thisClose : bar.High), (minExceeded ? thisClose : bar.Low), thisClose, time, volume, isRealtime);
I would greatly appreciate if someone could tell me how to remove UniRenko and BetterRenko bar types from NinjaTrader. I see them listed on the Bar Type menu under "Data Series," but nowhere else, anywhere, folders , etc...
1) Shutdown NinjaTrader
2) go to documents>NinjaTrader7>BIN>Custom>Type
3) Delete or move out of the folder, UniRenkoBarsType.cs and BetterRenkoBarsType.cs
When you start Ninja, they should be gone.
Be yourself; everyone else is already taken. Oscar Wilde
Thanks for your quick response. Neither of these files appear in my Type folder. Yet, these bar types are "stuck" in the "Custom 5" and "Custom 4" Period Type positions, respectively, and are "working" fine with no trace of them in any folder within NinjaTrader.
There is a cache folder. I can't remember specifically which one, but check that, and always make a backup of the files first if you aren't 100% sure of what you are doing. Make sure NT is closed when you modify the file system, then reopen it after.
The caching doesn't work like that, if I recall you would need to delete the entire subfolder. Again, make sure you have a backup, or don't take my advice at all...
Just to close the loop on this, I went to NinjaTrader Support for help on this. I had, in the distant past, done essentially what Tasker had recommended. But, NinjaTrader didn't complete the process. It turns out that the UniRenko and BetterRenko chart types were still "stuck" in the NinjaTrader.Custom files. What they did was delete these files (NinjaTrader.Custom (XML) and NinjaTrader.Custom.dll (App Extension) located in the NinjaTrader>bin>Custom folder) by renaming them _.old for safety sake.
Once NinjaTrader was restarted, these files were recreated and the UniRenko and BetterRenko chart types were gone.
UnirenkoBarCloses.zip allows to view the posible close levels for the current unirenkobar.
I´m using two charts of same instrument; the first chart (see attached image) is a T4R20O11; the second is a T2R40O2.
The first chart is using the UnirenkoBarCloses indicator.
Could It be posible to have an indicator on the other chart that automatically / Programatically creates a rectangle each time a new bar is created in the left more chart (T4R20O11). The boundaries of the rectangle should be:
Upper line = UnirenkoBarCloses high
lower line = UnirenkoBarCloses low
left line = at the same position of the bar in T2R40O2 that touched the previous UnirenkoBarCloses high
right line = 20 or 30 bars to the right from left line.
I know that this could be done in a blink of an aye for the great programmers of this fórum, so I apreciate in advance the help you can provide.