NexusFi: Find Your Edge


Home Menu

 





Renko bars not working in NT7


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one aslan with 16 posts (40 thanks)
    2. looks_two zikonc with 14 posts (1 thanks)
    3. looks_3 RJay with 11 posts (7 thanks)
    4. looks_4 Todd with 8 posts (0 thanks)
      Best Posters
    1. looks_one roonius with 3.3 thanks per post
    2. looks_two gregid with 3.1 thanks per post
    3. looks_3 aslan with 2.5 thanks per post
    4. looks_4 RJay with 0.6 thanks per post
    1. trending_up 45,492 views
    2. thumb_up 89 thanks given
    3. group 21 followers
    1. forum 109 posts
    2. attach_file 24 attachments




 
Search this Thread

Renko bars not working in NT7

  #81 (permalink)
 
TheWizard's Avatar
 TheWizard 
Houston, TX
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Optimus Futures, AMP, CQG
Trading: 6E
Posts: 1,731 since Jun 2009
Thanks Given: 517
Thanks Received: 4,224


Todd View Post
I just tested the MR that Rjay posted. I tested a 2 MR bar chart next to a 1 min chart - both chart using CMI pivots. I tested them using CL 07-10.

In NT6.5, my MR charts and my NoGapRange charts had inaccurate pivots because the last bar of the day didn't necessarily end right at the session close which created an inaccurate "prior day close" which in turn created an inaccurate pivot.

NT7 changed something which causes the prior day close on the RNG bars and the SBS bars to be accurate. I've been told that NT7 cuts off the last bar of the day at the close of the session. That has worked great in NT7 for RNG and SBS.

However, I just tested MR bars and they are not cutting off at the session close so the pivots are inaccurate.. at least on my CL 07-10 charts.
This may not matter to those who don't use pivots but unless someone can fix this issue, I won't be able to use the MB bars in NT7.

I'll keep testing them on other instruments.
I like the MR bars best but I can't have them creating inaccurate pivots on my charts.

Can someone modify these bars to truncate at the session close?

Todd

edit - I just tested the MR bars on ES 06-10 and the prior day close, prior day high and low were very close to the 1 minute ES chart. Don't know if that CL issue is because of some CL data issues or what. With CL, there was one day last week when the 1 minute chart had a totally different prior day high than the MR bar chart.

Todd,

Don't know if this will help, but I was having a different issue (can't remember what, now) & I changed my Session Template from <instrument settings> to Default 24/7. I don't seem to be having the bar problem you are. Maybe this will help ? ?

After all, it's what you learn AFTER you know it all, that counts!
Attached Thumbnails
Click image for larger version

Name:	Default 24-7.jpg
Views:	273
Size:	78.4 KB
ID:	14148  
Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
Better Renko Gaps
The Elite Circle
How to apply profiles
Traders Hideout
Exit Strategy
NinjaTrader
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
GFIs1 1 DAX trade per day journal
16 thanks
Vinny E-Mini & Algobox Review TRADE ROOM
13 thanks
My NQ Trading Journal
12 thanks
  #82 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102

You need to look at your chart, where that high comes from. The problem might be that some of the (non-supported) properties and methods of NT 7, in particular Bars.FirstBarOfSession and bars.Session.GetSessionDate() do have bugs.

So if your pivot indicator uses one of these, the problem may be elsewhere.



Todd View Post
edit - I just tested the MR bars on ES 06-10 and the prior day close, prior day high and low were very close to the 1 minute ES chart. Don't know if that CL issue is because of some CL data issues or what. With CL, there was one day last week when the 1 minute chart had a totally different prior day high than the MR bar chart.


Reply With Quote
  #83 (permalink)
 
Todd's Avatar
 Todd 
Alpharetta, GA
 
Experience: Intermediate
Platform: ninja
Broker: Mirus / Zenfire
Trading: ES
Posts: 234 since Jun 2009
Thanks Given: 28
Thanks Received: 40


Wizard,

If I wasn't using pivots, I would probably set my chart session to 24/7 but the pivots require the accurate session to create the accurate session high, low, close.

But since you don't use pivots that might be perfect for your situation.

Todd

Reply With Quote
  #84 (permalink)
 
Todd's Avatar
 Todd 
Alpharetta, GA
 
Experience: Intermediate
Platform: ninja
Broker: Mirus / Zenfire
Trading: ES
Posts: 234 since Jun 2009
Thanks Given: 28
Thanks Received: 40

Fat Tails,

Thanks for mentioning those things.

All I know is that RangeNoGap and SBS Renko show the correct prior day close but MedianRenko does not, in many cases that I've looked at tonight.

If someone could solve that issue or make a bar type that looks like the median renko but works better with NT7, that would be great. If that doesn't happen, I'll just have to be happy with SBS Renko and RangeNoGap bars.

Todd

Reply With Quote
  #85 (permalink)
 Zoethecus 
United States of America
 
Experience: Advanced
Platform: NT
Posts: 1,145 since Aug 2009

Is there anyone trading either SBS or Wicked in a strategy? Are the backtest results anywhere near realtime?

Reply With Quote
  #86 (permalink)
 zikonc 
san ramon
 
Experience: Beginner
Platform: ninja
Broker: zen
Trading: es, 6e
Posts: 136 since Oct 2009
Thanks Given: 98
Thanks Received: 76


roonius View Post
Attached you will find my own conversion of SbSRenko to NT7. (I will not bother with MedianRenko anymore)
There is a numeric value which can be set at (1==reset at session break) (any other value = not to reset).

NT7 introduced cashing of bars for performance improvements, so keep in mind that "not reseting" at session break can cause unexpected results. Feel free to post any issues.

P.S. Fix in post #35 is very sensitive and I personally would not recommend using it on other bar types. It might have other underlying issues. As always - use at your own risk

Hi Roonius,

I was wondering if you would be able to help .... I am trying to reference SbSRenko bars in a multi-time frame strategy ..... I use Add(PeriodType.Custom6, 6) and I've noticed that I am referencing a chart with "1==reset at session break" where as I would like to use "any other value = not to reset" option ...... do you have suggestions on how to go about this? .... I tried adding Vaule2 = 2 in SbSRenkoBarsType.cs per attached image hoping I would force a strategy to use chart's default setting but this does not seem to work ...... any help is greatly appreciated .........

Attached Thumbnails
Click image for larger version

Name:	2.png
Views:	231
Size:	3.7 KB
ID:	16779  
Reply With Quote
  #87 (permalink)
 
COTtrader's Avatar
 COTtrader 
JACKSON, MICHIGAN
Legendary Market Wizard
 
Experience: Intermediate
Platform: TS and Trading View
Broker: TS
Trading: ES Awesome!
Posts: 955 since Jul 2009
Thanks Given: 406
Thanks Received: 648


aslan View Post
In NT7, the Ninja guys decided that change the bar formation code to reset bars at a session boundary in addition to whenever a bar actually closes. Some people like this, some don't. Of course in their infinite wisdom they decided to not give you an option of choosing how to do the reset (many have asked for it).

The WickedRenko does reset on a session boundary, mainly because I don't want my bars to depend on the start date that is loaded.

If you want to change this behavior, there is a line of code near the begining of the bar type code like the following:

 
Code
if ((bars.Count == 0) || (bars.IsNewSession(time))
Change that to this:

 
Code
if (bars.Count == 0)
Save, recompile, restart, and you should be good to go.


Is it possible to use Aslan's variable lines above to reset at session break for the SbSRenko NT 6.5???

Dunke (donut).


COTtrader

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #88 (permalink)
 Zoethecus 
United States of America
 
Experience: Advanced
Platform: NT
Posts: 1,145 since Aug 2009


Zoethecus View Post
Is there anyone trading either SBS or Wicked in a strategy? Are the backtest results anywhere near realtime?

This is another post that received no response.

I get the feeling that those of us who favor ATS over other methods are in the minority here.

Reply With Quote
  #89 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,440 since Jun 2009
Thanks Given: 33,212
Thanks Received: 101,599


Zoethecus View Post
This is another post that received no response.

I get the feeling that those of us who favor ATS over other methods are in the minority here.

Well, a great number of people here are sharing their methodology when it comes to discretionary or mechanical trading.

If you want to encourage more ATS discussion, you could do what I and a few others have done, and create a new thread and post the complete source code to some of your ATS's that you have worked on and want to try out, then solicit feedback and improvements from the community. I think that is the best way to encourage more participation.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #90 (permalink)
 
aslan's Avatar
 aslan 
Madison, WI
 
Experience: Advanced
Platform: ALT
Trading: ES
Posts: 625 since Jan 2010
Thanks Given: 356
Thanks Received: 1,127



COTtrader View Post
Is it possible to use Aslan's variable lines above to reset at session break for the SbSRenko NT 6.5???

The bars.IsNewSession was added in NT7. If you want to do it in NT65, you have to figure out how to determine if a new session started, which in NT65 is not so easy (at least for me).

Reply With Quote




Last Updated on January 23, 2012


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