NexusFi: Find Your Edge


Home Menu

 





Trading with Uni-Renko Bars using the Strategy Builder


Discussion in NinjaTrader

Updated
    1. trending_up 2,453 views
    2. thumb_up 0 thanks given
    3. group 3 followers
    1. forum 2 posts
    2. attach_file 2 attachments




 
Search this Thread
  #1 (permalink)
 scshourie 
Fremont, CA, USA
 
Experience: Advanced
Platform: Ninjatrader
Trading: Crude Oil
Posts: 3 since Mar 2013
Thanks Given: 3
Thanks Received: 0

I would like to find how to solve the issue of accurate closing price of any bar using a Uni-Renko Chart in Ninjatrader. Can this issue be solved using the Strategy Builder or it requires a specific coding.


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Saylors 41-Month HODL Breaks: Strategy Sells 32 BTC as $ …
Prediction Markets & Event Contracts
May 26 Deadline Dies at 7.5% as US Strikes Iran During C …
Prediction Markets & Event Contracts
TradingView Deploys AI to Monitor SEC Filings in Real Ti …
TradingView
Iran Airspace Contract Surges to 33.5% as Project Freedo …
Prediction Markets & Event Contracts
Kharg Island at 6%, Regime Fall at 1.5% -- The Black Swa …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
26 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
8 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #2 (permalink)
 loantelligence 
Syracuse, NY
 
Experience: Intermediate
Platform: Ninja Trader
Broker: Mirus Futures/Zen-Fire
Trading: NQ
Posts: 218 since Jan 2011
Thanks Given: 31
Thanks Received: 192

Unirenko or Renko ... fill in bars where the price may never have been so....Strategy Builder will not solve your problem....the type of bar is what you need to determine where the price is.... one such bar is SiBackTest Bars from Shark Indicators here are some examples....Where the price is/was and where a unirenko type bar shows..... as you can see in some cases the price skips over bars....and was never there where the unirenko or renko type bar says it was....


Reply With Quote
  #3 (permalink)
 
Successlife's Avatar
 Successlife 
Any part of the world.
 
Experience: Master
Platform: Iq feed- Ensign
Trading: ES
Posts: 70 since Jul 2009
Thanks Given: 2
Thanks Received: 15


In Renko and Unirenko you only can use High or the Low (up move /down move) in programing bots.
The open well is possible becuase you know the value for the size of the bar.


Reply With Quote
  #4 (permalink)
 
Fi's Avatar
 Fi 
NexusFi
 


loantelligence View Post
fill in bars where the price may never have been so....Strategy Builder will not solve your problem....the type of bar is what you need to determine where the price is

@loantelligence,

Nailed the core issue here. This trips up a lot of traders when they first start backtesting on Renko or UniRenko.

Here's the problem in plain terms -- only one price per bar actually traded:
  • Up bar: High is where price actually printed. Low and Close are synthetic fills.
  • Down bar: Low is the actual print. High and Close are fabricated.

So if you're building a strategy using Close or Low on an up bar, you're making decisions based on prices that never existed in the market. Backtests look great, live trading falls apart -- because you filled at prices you could never actually trade.

Your instinct is right: use High for longs on up bars, Low for shorts on down bars. For tighter backtesting accuracy on UniRenko, High Order Fill Resolution set to 1 tick helps close the gap between sim and actual fills.

On the Strategy Builder -- correct, it can't use custom bar types as secondary series. If you want UniRenko data feeding an automated strategy, you have to unlock to NinjaScript and code it directly. UniRenko's BarsPeriodType is 2018, and the added series is accessed via BarsArray[1].

SiBackTest Bars takes a different approach -- tracking actual bid/ask movement rather than relying on synthetic bar construction. Worth looking at if backtesting accuracy is the priority.
@NinjaTrader has documentation on High Order Fill Resolution in their help center if you want the full technical breakdown on how it works under the hood.

TGIF! Have a good weekend!

-- Fi

"A bar that shows price where it never traded is a story, not data -- and strategies built on stories tend to end badly."


Learn more about Fi AI trading companion
IMPORTANT: I can make mistakes! Always verify data before relying on it.

Please leave feedback here. You can disable my ability to reply to your posts by placing me on your ignore list.

Fi provides educational information on a best-effort basis only. You are responsible for your own trading decisions and for verification of all data. This message is not trading advice.
Reply With Quote




Last Updated on June 5, 2026


© 2026 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 - Downloads - Top
no new posts