NexusFi: Find Your Edge


Home Menu

 





UniRenko, Universal Renko Bar Type


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one MWinfrey with 27 posts (120 thanks)
    2. looks_two Tasker_182 with 27 posts (83 thanks)
    3. looks_3 jmcg618 with 21 posts (2 thanks)
    4. looks_4 profits with 20 posts (20 thanks)
      Best Posters
    1. looks_one monpere with 33.4 thanks per post
    2. looks_two dstrader with 8 thanks per post
    3. looks_3 MWinfrey with 4.4 thanks per post
    4. looks_4 Tasker_182 with 3.1 thanks per post
    1. trending_up 430,856 views
    2. thumb_up 1,698 thanks given
    3. group 227 followers
    1. forum 695 posts
    2. attach_file 122 attachments




 
Search this Thread

UniRenko, Universal Renko Bar Type

  #131 (permalink)
 
profits's Avatar
 profits 
Toronto
 
Experience: Intermediate
Platform: NinjaTrader
Trading: financial futures
Posts: 29 since Mar 2013
Thanks Given: 79
Thanks Received: 40

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

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Better Renko Gaps
The Elite Circle
Exit Strategy
NinjaTrader
MC PL editor upgrade
MultiCharts
Trade idea based off three indicators.
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
22 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #132 (permalink)
 
MWinfrey's Avatar
 MWinfrey 
Lubbock TX
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Stage 5 Trading
Trading: CL
Posts: 1,878 since Jul 2009
Thanks Given: 1,450
Thanks Received: 3,335


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
Thanked by:
  #133 (permalink)
 
profits's Avatar
 profits 
Toronto
 
Experience: Intermediate
Platform: NinjaTrader
Trading: financial futures
Posts: 29 since Mar 2013
Thanks Given: 79
Thanks Received: 40



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
Thanked by:
  #134 (permalink)
 
MWinfrey's Avatar
 MWinfrey 
Lubbock TX
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Stage 5 Trading
Trading: CL
Posts: 1,878 since Jul 2009
Thanks Given: 1,450
Thanks Received: 3,335


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)
 
Tasker_182's Avatar
 Tasker_182 
Cedar Rapids, iowa
Legendary Market Wizard
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Ninjatrader - Continuum
Posts: 716 since Aug 2009
Thanks Given: 476
Thanks Received: 1,401


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
Thanked by:
  #136 (permalink)
 
MWinfrey's Avatar
 MWinfrey 
Lubbock TX
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Stage 5 Trading
Trading: CL
Posts: 1,878 since Jul 2009
Thanks Given: 1,450
Thanks Received: 3,335


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
Thanked by:
  #137 (permalink)
 
MrYou's Avatar
 MrYou 
NC, USA
 
Experience: None
Platform: None Yet
Trading: Guitar
Posts: 403 since Jun 2011
Thanks Given: 618
Thanks Received: 196

@monpere

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

Reply With Quote
  #138 (permalink)
 
profits's Avatar
 profits 
Toronto
 
Experience: Intermediate
Platform: NinjaTrader
Trading: financial futures
Posts: 29 since Mar 2013
Thanks Given: 79
Thanks Received: 40

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

In the download link



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)
 
MWinfrey's Avatar
 MWinfrey 
Lubbock TX
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Stage 5 Trading
Trading: CL
Posts: 1,878 since Jul 2009
Thanks Given: 1,450
Thanks Received: 3,335


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

In the download link



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
Thanked by:
  #140 (permalink)
 
profits's Avatar
 profits 
Toronto
 
Experience: Intermediate
Platform: NinjaTrader
Trading: financial futures
Posts: 29 since Mar 2013
Thanks Given: 79
Thanks Received: 40


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




Last Updated on April 3, 2023


© 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