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


UniRenko, Universal Renko Bar Type
Updated: Views / Replies:183,366 / 564
Created: by monpere Attachments:101

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
 101  
 
Thread Tools Search this Thread
 

UniRenko, Universal Renko Bar Type

  #131 (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

UniRenko - Add statement to strategy code

I have a question regarding this UniRenko which works great on a chart. I am in the process of developing a multi time-frame strategy. I have put the Add statement in as follows:

Add(PeriodType.custom5, 004008002);

I get the following error so I know that something else is needed.

'NinjaTrader.Data.PeriodType' does not contain a definition for 'custom5'

Would anyone please let me know what other statement I have to insert into my code and where it has to go? It would be a big help. I am new at programming so please be specific. Many thanks!

Reply With Quote
 
  #132 (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,300 received


profits View Post
I have a question regarding this UniRenko which works great on a chart. I am in the process of developing a multi time-frame strategy. I have put the Add statement in as follows:

Add(PeriodType.custom5, 004008002);

I get the following error so I know that something else is needed.

'NinjaTrader.Data.PeriodType' does not contain a definition for 'custom5'

Would anyone please let me know what other statement I have to insert into my code and where it has to go? It would be a big help. I am new at programming so please be specific. Many thanks!

change custom5 to Custom5

Reply With Quote
The following 3 users say Thank You to MWinfrey for this post:
 
  #133 (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



MWinfrey View Post
change custom5 to Custom5

Thanks MWinfrey, that fixed the compile problem! Another question please...
What order are the numbers in? In other words
004 = ?
008 = ?
002 = Tick Trend????

I need to clarify that. Thanks for indulging me.

Reply With Quote
The following user says Thank You to profits for this post:
 
  #134 (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,300 received


profits View Post
Thanks MWinfrey, that fixed the compile problem! Another question please...
What order are the numbers in? In other words
004 = ?
008 = ?
002 = Tick Trend????

I need to clarify that. Thanks for indulging me.

I don't know...I think the author gives that order in an earlier post but not sure where. Can't look now because I am managing trades.

Reply With Quote
 
  #135 (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,121 received


profits View Post
Thanks MWinfrey, that fixed the compile problem! Another question please...
What order are the numbers in? In other words
004 = ?
008 = ?
002 = Tick Trend????

I need to clarify that. Thanks for indulging me.


In the example of 004008002

004 = Tick trend

008 = Tick Reversal

002 = Open offset

Reply With Quote
The following 5 users say Thank You to Tasker_182 for this post:
 
  #136 (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,300 received


Tasker_182 View Post
In the example of 004008002

004 = Tick trend

008 = Tick Reversal

002 = Open offset

I'm sorry...I misunderstood the question. Duh!!!

Reply With Quote
The following user says Thank You to MWinfrey for this post:
 
  #137 (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

@monpere

Are you still using this bar type or have you moved on? Thanks!

Reply With Quote
 
  #138 (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);

I have another question for "monpere" or anyone else who can help me.

In the download link

https://futures.io/download/ninjatrader-7/indicators/1304-download.html?view

the following line is given as an example of Add() method when using Multi Time-Frame strategies:

Add(PeriodType.Custom5, 004008002);

It compiles OK but gives the following runtime error:

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

So I then changed the ADD() method to AddRenko() as follows:

AddRenko(PeriodType.Custom5, 004008002);

This time, I get a compile error:

No overload for method 'AddRenko' takes '2' arguments

Can someone shed some light on what to do here?

Thanks ahead!

Reply With Quote
 
  #139 (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,300 received


profits View Post
I have another question for "monpere" or anyone else who can help me.

In the download link

https://futures.io/download/ninjatrader-7/indicators/1304-download.html?view

the following line is given as an example of Add() method when using Multi Time-Frame strategies:

Add(PeriodType.Custom5, 004008002);

It compiles OK but gives the following runtime error:

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

So I then changed the ADD() method to AddRenko() as follows:

AddRenko(PeriodType.Custom5, 004008002);

This time, I get a compile error:

No overload for method 'AddRenko' takes '2' arguments

Can someone shed some light on what to do here?

Thanks ahead!

Only use AddRenko with the Renko bar type chart comes with NT. Otherwise use Add() for all custom bar types. Further, why don't you post the code for the Initialize method so we can look at it.

Reply With Quote
The following user says Thank You to MWinfrey for this post:
 
  #140 (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

Initialize()


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
}

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)

FIO Journal Challenge featuring NinjaTrader ($2,000+ of prizes)

May

An overview of volumetric analytical tools w/Sergey Sokolov @ PTMC

Elite only

John Hoagland (TBA)

Elite only

FuturesTrader71 Extended Ask Me Anything (AMA)

Elite only

Pete @ Jigsaw Trading (TBA)

Elite only

John @ No BS Day Trading (TBA)

Elite only

An Afternoon with FIO member Softsoap (being rescheduled)

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 09:20 AM.

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-05-26 in 0.14 seconds with 21 queries on phoenix via your IP 54.146.5.196