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


UniRenko, Universal Renko Bar Type
Updated: Views / Replies:196,825 / 568
Created: by monpere Attachments:101

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 101  
 
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,879 since Jul 2009
Thanks: 1,449 given, 3,304 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,879 since Jul 2009
Thanks: 1,449 given, 3,304 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, 193 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


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, 193 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: 425 given, 1,125 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, 56 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
The following user says Thank You to Raj1 for this post:

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)
 

Introducing daytradr by Jigsaw, new stand-alone platform

Oct 19
 

RandBots: AutoTrading Bots to diversify your trading

Oct 24
 

TopstepTrader: Profiting Without Risking Your Own Money

Oct 26

Building Open Source Indicators for NT8 w/Fat Tails @ Lizard Indicators

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 04:30 AM
Bar Counter For Line Break Bar Type Eagle01 NinjaTrader Programming 8 April 1st, 2012 11:29 PM
Wicked Renko custom bar type for NT7 aslan NinjaTrader Programming 25 March 10th, 2012 10:13 AM
End of bar strategies with advanced bar types (Renko, Range, Kagi, etc) RM99 Elite EasyLanguage Automated Trading 2 September 9th, 2011 08:38 AM
how to load Median renko and LineBreakwicked type bar kieuthu59 NinjaTrader 8 April 11th, 2011 02:56 PM


All times are GMT -4. The time now is 12:31 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-10-19 in 0.07 seconds with 19 queries on phoenix via your IP 23.20.120.3