UniRenko, Universal Renko Bar Type - NinjaTrader | futures.io
futures.io futures trading


UniRenko, Universal Renko Bar Type
Started: by monpere Views / Replies:169,378 / 551
Last Reply: Attachments:100

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.


You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Reply
 100  
 
Thread Tools Search this Thread
 

UniRenko, Universal Renko Bar Type

  #141 (permalink)
Elite Member
Lubbock TX
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Stage 5 Trading
Favorite Futures: CL
 
MWinfrey's Avatar
 
Posts: 1,878 since Jul 2009
Thanks: 1,448 given, 3,296 received


profits View Post
Hi, MWinfrey, here is my Initialize() method

protected override void Initialize()
{
CalculateOnBarClose = false;
Add(PeriodType.Minute, 1); //(BarsArray[1]
Add(PeriodType.Minute, 5); //(BarsArray[2]
Add(PeriodType.Minute, 10); //(BarsArray[3]
// Add(PeriodType.Custom5, 004008002); // compiles OK but give run-time error
// AddRenko(PeriodType.Custom5, 004008002); // compile error: No overload for method 'AddRenko' takes '2' arguments
}

I copy and pasted your Add(PeriodType.Custom5, 004008002); into one of my strategies and it compiled without error. So, there must be something outside of the initialize method causing this error. So, without having your code I can't really go any further. I think your error said something about slope. do you calculate slope somewhere in your code?

Reply With Quote
The following user says Thank You to MWinfrey for this post:
 
  #142 (permalink)
Elite Member
Toronto
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: financial futures
 
profits's Avatar
 
Posts: 26 since Mar 2013
Thanks: 63 given, 31 received

Add(PeriodType.Custom5, 004008002); // compiles OK but gives run-time error

As I said the Add() statement COMPILES OK but gives run time error:

**NT** Failed to call method 'Initialize' for strategy 'RangeChartSlopes/6b7d4915312c43ab884f55c1706c5d1a': Please use the alternate method 'AddRenko()' instead of Add()

Reply With Quote
The following user says Thank You to profits for this post:
 
  #143 (permalink)
Elite Member
Lubbock TX
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Stage 5 Trading
Favorite Futures: CL
 
MWinfrey's Avatar
 
Posts: 1,878 since Jul 2009
Thanks: 1,448 given, 3,296 received



profits View Post
As I said the Add() statement COMPILES OK but gives run time error:

**NT** Failed to call method 'Initialize' for strategy 'RangeChartSlopes/6b7d4915312c43ab884f55c1706c5d1a': Please use the alternate method 'AddRenko()' instead of Add()

DuH! It would help if I would remember and comprehend what I read...

I'll try to run it in a few minutes and let you know. Trying to get things in order before the market opens.

Reply With Quote
The following user says Thank You to MWinfrey for this post:
 
  #144 (permalink)
Elite Member
NC, USA
 
Futures Experience: None
Platform: None Yet
Favorite Futures: Guitar
 
MrYou's Avatar
 
Posts: 403 since Jun 2011
Thanks: 618 given, 192 received

As MWinfrey mentioned this is incorrect:

 
Code
AddRenko(PeriodType.Custom5, 004008002);
This is correct:

 
Code
Add(PeriodType.Custom5, 004008002);

Reply With Quote
 
  #145 (permalink)
Elite Member
Toronto
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: financial futures
 
profits's Avatar
 
Posts: 26 since Mar 2013
Thanks: 63 given, 31 received

Futures Edge on FIO

MrYou View Post
As MWinfrey mentioned this is incorrect:

 
Code
AddRenko(PeriodType.Custom5, 004008002);
This is correct:

 
Code
Add(PeriodType.Custom5, 004008002);


this statement:

Add(PeriodType.Custom5, 004008002);

gives a run-time error:

**NT** Failed to call method 'Initialize' for strategy 'RangeChartSlopes/6b7d4915312c43ab884f55c1706c5d1a': Please use the alternate method 'AddRenko()' instead of Add()

“Everything is hard before it is easy”
~ Johann Wolfgang von Goethe
Reply With Quote
 
  #146 (permalink)
Elite Member
NC, USA
 
Futures Experience: None
Platform: None Yet
Favorite Futures: Guitar
 
MrYou's Avatar
 
Posts: 403 since Jun 2011
Thanks: 618 given, 192 received


profits View Post
this statement:

Add(PeriodType.Custom5, 004008002);

gives a run-time error:

**NT** Failed to call method 'Initialize' for strategy 'RangeChartSlopes/6b7d4915312c43ab884f55c1706c5d1a': Please use the alternate method 'AddRenko()' instead of Add()

Are you sure that error isn't referencing a different strategy vs the one you are editing?

I also add, make sure you don't have other (imported) bar types that may be using Custom5. Check your imported bar types source code.

Reply With Quote
The following user says Thank You to MrYou for this post:
 
  #147 (permalink)
Elite Member
Toronto
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: financial futures
 
profits's Avatar
 
Posts: 26 since Mar 2013
Thanks: 63 given, 31 received

I have now made a new, very stupid-simple strategy just to try the Add() statement. It does nothing more than paint a diamond when two MA's cross. Then, I inserted the Add(PeriodType.Custom5, 004008002); It compiled and it ran! So from this I can only deduce that the problem lies with my original strategy which is more complex using 4 time frames. It is important to note that the original strategy executed just fine before I added the 'Custom5'. Now I need to painfully strip away and comment out small layers of code until I find what broke it. If there is a faster way, I don't know about it since I am not that experienced. Thank you all who made suggestions.

The bottom line is that the Add(PeriodType.Custom5, 004008002); statement is the correct one.

“Everything is hard before it is easy”
~ Johann Wolfgang von Goethe
Reply With Quote
The following user says Thank You to profits for this post:
 
  #148 (permalink)
Elite Member
Munich, Germany
 
Futures Experience: Intermediate
Platform: NinjaTrader, TWS
Broker/Data: IB, NinjaTrader Brokerage
Favorite Futures: ES,NQ,6E
 
Posts: 62 since Feb 2010
Thanks: 15 given, 22 received

Select/Add renko/custom time frame to strategy

I found following thread in NT support
Select/Add renko/custom time frame to strategy - NinjaTrader Support Forum

Reply With Quote
 
  #149 (permalink)
Elite Member
Cedar Rapids, iowa
 
Futures Experience: Intermediate
Platform: Ninjatrader
Broker/Data: Ninjatrader - Continuum
Favorite Futures: 6E, TF, 6J
 
Tasker_182's Avatar
 
Posts: 626 since Aug 2009
Thanks: 424 given, 1,120 received

Still having problems with UnirenkoBars

Hi all,

@monpere has given us a great tool to use with the Unirenko bars. It has changed my view and sometimes that is what one needs in their trading.

That said, i am still very frustrated with the occasional problems as mentioned by @HighDesertTrader, @MWinfrey and confirmed by @perryg and @superpete.

The problem for me mostly shows up in market replay when the charts just won't load. Occasionally the same occurs when connecting to the live market. I can see the processors grinding away like mad for quite some time and eventually, if I'm lucky, the charts will show up, with literally 1000's of tic marks. I've also seen where the opening session bar has been one huge bar. So I suspect the problem to be with the way the bartype is handling the first bar of session. I've looked at the code but it is beyond my current skill level. Not sure if it makes a difference but I am using CQG data and looking at TF, 6E, 6J typically. My charts are all in the 2 - 5 days of data. The Unirenko settings I'm using are: T1R19010, T1R11O5 and T1R7O3.

So as you might suspect I am sitting here waiting for the charts to load, still not loaded and i am slow typist!

I've gone through deleting workspaces and rebuilding them. I've tried deleting the database itself. I've tried deleting replay data and redownloading but have yet to find a consistent way to work around the problem. So it would be nice if the problem could be fixed to begin with. I'd be willing to participate in a test if it would help.

Reply With Quote
The following user says Thank You to Tasker_182 for this post:
 
  #150 (permalink)
Elite Member
Toronto
 
Futures Experience: Beginner
Platform: Ninja Trader
Broker/Data: AMP FUTURES/ZENFIRE
Favorite Futures: YM
 
Raj1's Avatar
 
Posts: 167 since Jul 2009
Thanks: 252 given, 55 received


@monpre:

As I am not a elite member, can you upload this indicator in the Ninja forum please.
Thanks in advance.
Raj

Reply With Quote

Reply



futures.io > > > > UniRenko, Universal Renko Bar Type

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)
 

Anthony Drager: Pulling the trigger with confidence

Elite only
 

Leo Murphy: The Art and Science of Technical Analysis

Elite only
 

FuturesTrader71: Ask Me Anything

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Better Renko Bar Size (vs. 5 min bar) TrendTraderBH Traders Hideout 5 December 9th, 2016 05:30 AM
Bar Counter For Line Break Bar Type Eagle01 NinjaTrader Programming 8 April 2nd, 2012 12:29 AM
Wicked Renko custom bar type for NT7 aslan NinjaTrader Programming 25 March 10th, 2012 11:13 AM
End of bar strategies with advanced bar types (Renko, Range, Kagi, etc) RM99 Elite EasyLanguage Automated Trading 2 September 9th, 2011 09:38 AM
how to load Median renko and LineBreakwicked type bar kieuthu59 NinjaTrader 8 April 11th, 2011 03:56 PM


All times are GMT -4. The time now is 03:13 PM.

no new posts
Page generated 2017-01-23 in 0.15 seconds with 20 queries on phoenix via your IP 54.166.75.80