NexusFi: Find Your Edge


Home Menu

 





UniRenko, Universal Renko Bar Type


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one MWinfrey with 27 posts (120 thanks)
    2. looks_two Tasker_182 with 27 posts (83 thanks)
    3. looks_3 jmcg618 with 21 posts (2 thanks)
    4. looks_4 Big Mike with 20 posts (54 thanks)
      Best Posters
    1. looks_one monpere with 33.5 thanks per post
    2. looks_two dstrader with 8 thanks per post
    3. looks_3 MWinfrey with 4.4 thanks per post
    4. looks_4 Tasker_182 with 3.1 thanks per post
    1. trending_up 633,480 views
    2. thumb_up 1,699 thanks given
    3. group 227 followers
    1. forum 695 posts
    2. attach_file 122 attachments




 
Search this Thread
  #1 (permalink)
 
monpere's Avatar
 monpere 
Bala, PA, USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus, IB
Trading: SPY, Oil, Euro
Posts: 1,854 since Jul 2010
Thanks Given: 300
Thanks Received: 3,374

In this thread, I am posting my Universal Renko bar type implementation. I have been using it exclusively in my trading for a while now, and have had many requests for it. I wanted a more flexible Renko bar that could be customized in a particular way to fit my trading style, so I decided to make a bar type that allows the user to configure it more liberally to better suit their particular needs.

Basically the UniRenko bar, allows the user to choose when the bar closes in the direction of the previous bar (Trend), and when it closes in the direction against the previous bar (Reversal). So, you may choose for a new bar to form when the price has moved 5 ticks up from the previous close, or 10 ticks down from the previous close.
This allows you to tailor the bar in ways that hopefully may enhance your particular trading style. For instance, I am a reversal trader, entering on reversal bars, and putting my stop behind the entry bar. So, I have tested and chosen trend and reversal settings that minimize the size of reversal bars, and therefore minimize my stop loss sizes, while still producing clean sharp indicator patterns my trading method is based on.

Like most of the other advanced Renko bar types, the UniRenko bar open is artificial, so I consider it aesthetic only, and I do not use it in the bar size calculation. The bar calculations are based on the previous bar close. I personally like to place the open half way up the previous bar as I like the way the bars look with that setting. The tails on the bar show real prices. The bar should be backtestable if stops/targets are placed outside of the bar.

Because all the parameters are user selectable, and no aspect of the bar is derived from an arithmetic calculation, there should be no restriction on any bar parameter having to be odd or even, etc. Internally uses NT PeriodType.Custom5

I have hesitated to post this bar type before, as it can be configured to mimic some commercially available Renko bar types. I purchased some of those commercial bars myself, but they did not fully meet my needs. The purpose of this implementation is to provide traders with more flexibility, that hopefully with some experimentation may ultimately enhance their trading like it did mine.

nexusfi.com (formerly BMT) Download link:

https://nexusfi.com/download/ninjatrader-7/indicators/1304-download.html?view

Started this thread Reply With Quote
Thanked by:
1481, 1973Hog, 2010, Abde, abourgeois, Affliction, Ahrt, aiti, ajrj, alberto, aligator, amoeba, Anatta, arbuthnot, Arno66, artmaan, astra, Azrael, Barrosco, bd92154, belekas, Beljevina, beske, biegea, Big Mike, billystl, bkool, Blash, bmfan, bmmartin, BobbyJ, bobbywu, bobc635, bongbong, Boomerang, Bosch777, boxi, bppayne, buddy858, buttermilk1939, candy, casey44, cazimi, cbratton, cejstrup, CFuture, Cloudy, Cmaker3, coolfutures, Corman, cory, culpepper, cunparis, dalebru, danielk, dbarno, deandavis, dee50, devdas, djkiwi, DJTrader, Don Laing, doug, DRock306, dstrader, dwntik5454, dwt51, eastercow, edepa, eensor, enhancer, ewstox, fasttraxs, Fat Tails, Fattyflathead, Felix trader, ffxbettor, fibtrader1618, first quant, Flyboy1966, franjah64, fraquo, freedomtrader, Future4, futuretrader, GAP180, gdstuart, gemini42, Gizmosis350k, gomi, gourinair, gregid, GSREDDY, Haim1, Hans B, harry737, Hayles76, Hermo, HighDesertTrader, holythree, jagui, janfilimon, Janne, jceg1110, JDNeeman, jethro, jlwade123, jmeyer10, jmont1, JohnKK, Jonson, Joules360, jta3, jtrade, Juanes, JustinIsHere, jwdixon, jwhtrades, Kees66, KeithL, KennyK, kingfish88, kingjelly, lax99, learning0101, lemons, lolu, lordia, luisemj69, madLyfe, mailonline38, ManWithBankOrders, MarkG, Marthika, master trader, matthoffman, maxr, mebv, meganer, Mejenk, michaelf, mikky182, Mirandus, MissyM, mongoose, MoparCar, mrfxtrade, MrTrader, MrYou, mwf2220, MWinfrey, mxphytlx, mzabarain, Nalu, NeilVee, NGtrader, nillz123, NJAMC, olobay, pacopil, panama, panjm, perryg, philipp, pip29, pipandrun, Pipnatized, plethora, Pocketful, popswatter, profits, RabC, Rachel, Rad4633, rainbowchaser, Rainmakersg, Raj1, rapid58, resist, rickr, rimartin, rmejia, ronner, rpm123, rscr, Ruffcut, sairamss, sammysam, samsin78626, sandptrader, sands, SatchFan, Scalpingtrader, SeaView, seeker, serano, Serger, sgtpark, Shanc, ShatteredX, Silvester17, skann, Skidboot, sleepy, Srq1, stealth38, stephenkelley, stephenszpak, Steve, steve2222, stoicbuddha, sudhirc, sunshnpeg, superpete, Suraj, Taggart, Tasker_182, tbird, tehuff, tellytub, TempletonPeck, texastodd, TheGaryGuy, tinear10, tonimarfil, Trade58, trade65, trader15, tradergary, TraderJ, tradersp, TradingVictor, trendisyourfriend, TropicalRecon, trs3042, trvlntrdr, twism0, twosigma, urghan2, urocktwo, uzzo, ValLiant, VictorBravo, VictorK, wahn, Warren, Wil70, WillC, williamkao, wireford, Wolfgang, WyMak, Xav1029, xtrader111, yahootex, ycomp, zeller4, zmaj, zmm20

Can you help answer these questions
from other members on NexusFi?
Cycle Through Ninjatrader Open Windows
NinjaTrader
Seeking Insights on Day Trading Options on Futures
Options
DOM in QTrader vs Bookmap
Platforms and Indicators
TOS inspired trading simulator
ThinkOrSwim
Has anyone taken The Mentor Program from The Trading Gam …
Trading Reviews and Vendors
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Vinny E-Mini & Algobox Review TRADE ROOM
8 thanks
Just another trading journal: PA, Wyckoff & Trends
6 thanks
Futures spread trading grains education sources?
6 thanks
Wheres the videos?
3 thanks
Blue wave trading review
2 thanks
  #2 (permalink)
 
trendisyourfriend's Avatar
 trendisyourfriend 
Quebec Canada
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: AMP/CQG
Trading: ES, NQ, YM
Frequency: Daily
Duration: Minutes
Posts: 4,536 since Oct 2009
Thanks Given: 4,197
Thanks Received: 6,046

Hi @monpere

Thanks for sharing this bar type. I have a question regarding the NT PeriodType.Custom5 property. Is there an easy way to check if there is a potential of conflict before installing this bar type? Do we need to open every file in this folder: "...NinjaTrader 7\bin\Custom\Type"

Reply With Quote
Thanked by:
  #3 (permalink)
 
monpere's Avatar
 monpere 
Bala, PA, USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus, IB
Trading: SPY, Oil, Euro
Posts: 1,854 since Jul 2010
Thanks Given: 300
Thanks Received: 3,374



trendisyourfriend View Post
Hi @monpere

Thanks for sharing this bar type. I have a question regarding the NT PeriodType.Custom5 property. Is there an easy way to check if there is a potential of conflict before installing this bar type? Do we need to open every file in this folder: "...NinjaTrader 7\bin\Custom\Type"

I don't know of any other way. You can go to that folder and use the following command to find all the files that contain the string 'custom5': find /I "custom5" *

Started this thread Reply With Quote
  #4 (permalink)
 
MWinfrey's Avatar
 MWinfrey 
Lubbock TX
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Stage 5 Trading
Trading: CL
Posts: 1,878 since Jul 2009
Thanks Given: 1,450
Thanks Received: 3,336

@monpere, I just noticed something that seems to differ from the definition of a renko brick. take a look at the blue circles in the picture. The wicks and sticks on those 3 examples are 2 ticks which by my understanding of a renko brick that a new brick should have been there instead of the wick or stick. Don't know if this is intended behavior or not but thought I'd mention it.



Thanks for sharing this with us all.

Mike

Reply With Quote
Thanked by:
  #5 (permalink)
 
monpere's Avatar
 monpere 
Bala, PA, USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus, IB
Trading: SPY, Oil, Euro
Posts: 1,854 since Jul 2010
Thanks Given: 300
Thanks Received: 3,374


MWinfrey View Post
@monpere, I just noticed something that seems to differ from the definition of a renko brick. take a look at the blue circles in the picture. The wicks and sticks on those 3 examples are 2 ticks which by my understanding of a renko brick that a new brick should have been there instead of the wick or stick. Don't know if this is intended behavior or not but thought I'd mention it.

...

Thanks for sharing this with us all.

Mike

I can't really count the ticks in the picture, but it looks like price moved 2 ticks from the previous close on these bars, failed to move one more tick to create a new bar, then turned around and breached the 4 ticks from the previous close in the opposite direction creating a new bar in the opposite direction, which is what is suppose to happen.

Started this thread Reply With Quote
  #6 (permalink)
 
MWinfrey's Avatar
 MWinfrey 
Lubbock TX
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Stage 5 Trading
Trading: CL
Posts: 1,878 since Jul 2009
Thanks Given: 1,450
Thanks Received: 3,336


monpere View Post
I can't really count the ticks in the picture, but it looks like price moved 2 ticks from the previous close on these bars, failed to move one more tick to create a new bar, then turned around and breached the 4 ticks range in the opposite direction creating a new bar in the opposite direction, which is what is suppose to happen.

Yes that's exactly correct that price went 2 ticks which by the definition I've been using causes a new bar to be printed. By my understanding of Renko, if using a 2 tick renko brick, price only has to go 2 ticks to paint a new bar, not 3.

I've used the following link as the definition of renko...
Renko Chart Definition | Investopedia

The phrase providing the actual definition is "A renko chart is constructed by placing a brick in the next column once the price surpasses the top or bottom of the previous brick by a predefined amount." I've always interpreted predefined amount to be the brick size. So, in our example, every price change of 2 ticks causes a new brick to be printed. Also, I've evaluated a number of variations of the renko brick and believe all that I've seen to comply with that. However, this could be one of those situation where I wake up and find out that I've been operating all this time under a false interpretation but I don't think so.

Reply With Quote
Thanked by:
  #7 (permalink)
 
aligator's Avatar
 aligator 
Las Vegas, NV
Legendary Market Wizard
 
Experience: Advanced
Platform: Abacus, Slide Rule, HP-65
Trading: Futures, Stocks, Options
Posts: 3,692 since Aug 2010
Thanks Given: 1,081
Thanks Received: 6,077

@monpere,

Thanks a bunch for your great invention. My first trade this morning using UniR was good trade.

My question, if I may please, is whether it is possible to write a little indicator for projection of the next bar open (something similar to the one one range bars). I am not quite familiar with the construct of UniR bars.

Much appreciated for sharing.

Cheers!

Visit my NexusFi Trade Journal Reply With Quote
  #8 (permalink)
 
monpere's Avatar
 monpere 
Bala, PA, USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus, IB
Trading: SPY, Oil, Euro
Posts: 1,854 since Jul 2010
Thanks Given: 300
Thanks Received: 3,374


MWinfrey View Post
Yes that's exactly correct that price went 2 ticks which by the definition I've been using causes a new bar to be printed. By my understanding of Renko, if using a 2 tick renko brick, price only has to go 2 ticks to paint a new bar, not 3.

I've used the following link as the definition of renko...
Renko Chart Definition | Investopedia

The phrase providing the actual definition is "A renko chart is constructed by placing a brick in the next column once the price surpasses the top or bottom of the previous brick by a predefined amount." I've always interpreted predefined amount to be the brick size. So, in our example, every price change of 2 ticks causes a new brick to be printed. Also, I've evaluated a number of variations of the renko brick and believe all that I've seen to comply with that. However, this could be one of those situation where I wake up and find out that I've been operating all this time under a false interpretation but I don't think so.

Given that this is not a standard Renko bar, I am not using the strict Renko definition that you provide. The rules are different. Maybe I should have used a different name for the bar type.

Started this thread Reply With Quote
  #9 (permalink)
 
MWinfrey's Avatar
 MWinfrey 
Lubbock TX
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Stage 5 Trading
Trading: CL
Posts: 1,878 since Jul 2009
Thanks Given: 1,450
Thanks Received: 3,336


monpere View Post
Given that this is not a standard Renko bar, I am not using the strict Renko definition that you provide. The rules are different. Maybe I should have used a different name for the bar type.

Quite alright. Now that I have clarification I can adjust.

Thank you...you always do such great work.

Reply With Quote
Thanked by:
  #10 (permalink)
 
monpere's Avatar
 monpere 
Bala, PA, USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus, IB
Trading: SPY, Oil, Euro
Posts: 1,854 since Jul 2010
Thanks Given: 300
Thanks Received: 3,374



aligator View Post
@monpere,

Thanks a bunch for your great invention. My first trade this morning using UniR was good trade.

My question, if I may please, is whether it is possible to write a little indicator for projection of the next bar open (something similar to the one one range bars). I am not quite familiar with the construct of UniR bars.

Much appreciated for sharing.

Cheers!

I thought about including a function call to get these values, but I thought it was simpler to include them in the bar displayed name. If you call Bars.ToString() you can get the trend and Reversal tick amount from the 'T2R4O2' part of the string. 'T2' is Trend 2 Ticks, 'R4' is Reversal 4 Ticks, 'O2' is Open offset 2 ticks, all measured from the previous close.

Started this thread Reply With Quote




Last Updated on April 3, 2023


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Sitemap - Downloads - Top
no new posts