NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 01-27-2009, 10:26 AM   #1
roonius
Certified NinjaScript Consultant
 
Join Date: Oct 2008
Location: Chicago, IL
Posts: 523
Thanks: 0
Thanked 8 times in 7 posts
Send a message via Skype™ to roonius
Default Renko Bars

There is an open source for Renko Bars for NinjaTrader.
Attached Images
File Type: jpg RenkoBars.jpg (48.9 KB, 646 views)
File Type: jpg RenkoConf.jpg (55.1 KB, 529 views)
Attached Files
File Type: zip RenkoBarsType.zip (1.6 KB, 670 views)
roonius is offline  
Reply With Quote
Old 01-27-2009, 10:42 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 24,537
Thanks: 386
Thanked 1,395 times in 1,364 posts
Default

Thank you very much roonius, great job!
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 01-27-2009, 10:55 AM   #3
RJay
Senior Member
 
Join Date: May 2008
Location: Hartford, CT. USA
Posts: 632
Thanks: 20
Thanked 31 times in 24 posts
Default

roonius,

Thanks for posting this file.

I downloaded the free Renko Bars inside a dll off the 3rd party website over the weekend.

It was OK, but I like to see the code.

I also have an ongoing project to build a couple of customized bar charts.

I like to study existing files to build new ones.

This will be a big help.

Thanks again,

RJay
RJay is offline  
Reply With Quote
Old 01-28-2009, 08:55 AM   #4
Ninja B
Member
 
Join Date: Apr 2008
Posts: 99
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks for posting this
Ninja B is offline  
Reply With Quote
Old 01-28-2009, 12:44 PM   #5
mrlogik
Certified NinjaScript Consultant
 
mrlogik's Avatar
 
Join Date: Sep 2006
Location: New York, USA
Posts: 775
Thanks: 1
Thanked 8 times in 6 posts
Default

Hey roonius,

Thanks for this code.

I have a question about a possible addition.

Is it possible to display via a dot the most the price in the opposite direction before making the bar.

For instance, if we are currently green, and a new bar forms green, post on the chart below the new green bar the lowest the price went prior to eventually creating a green bar.

If not, is it possible to write an indicator to work with OHLC bars but apply them to a renko chart?

Thanks for your help.

Anthony
"You look closely enough, you can find everything has a ... weak spot where it can break, sooner or later"

PureLogikTrading
Last edited by mrlogik; 04-16-2009 at 05:58 AM.
mrlogik is offline  
Reply With Quote
Old 01-28-2009, 01:13 PM   #6
roonius
Certified NinjaScript Consultant
 
Join Date: Oct 2008
Location: Chicago, IL
Posts: 523
Thanks: 0
Thanked 8 times in 7 posts
Send a message via Skype™ to roonius
Default

Quote:
Originally Posted by mrlogik View Post
Hey roonius,

Thanks for this code.

I have a question about a possible addition.

Is it possible to display via a dot the most the price in the opposite direction before making the bar.

For instance, if we are currently green, and a new bar forms green, post on the chart below the new green bar the lowest the price went prior to eventually creating a green bar.

If not, is it possible to write an indicator to work with OHLC bars but apply them to a renko chart?

Thanks for your help.

Anthony
Anthony,

I just had an eye surgery and can't spend much time in front of monitor... so can't make any modifications in the next few weeks.

But to answer your question - it's "no", unless you rewrite renko "type" code using different logics and create additional chart style.

renko should display highs and lows as a shadow and chartstyle should be something like "wickless" candles...

It's just my quick thought. If you can come up with different ideas, feel free to share

roonius
roonius is offline  
Reply With Quote
Old 01-28-2009, 01:19 PM   #7
mrlogik
Certified NinjaScript Consultant
 
mrlogik's Avatar
 
Join Date: Sep 2006
Location: New York, USA
Posts: 775
Thanks: 1
Thanked 8 times in 6 posts
Default

Did you make this in visual studios; I don't see a way to edit the code for chart types within NT.

Thanks for your help.
"You look closely enough, you can find everything has a ... weak spot where it can break, sooner or later"

PureLogikTrading
Last edited by mrlogik; 04-15-2009 at 02:31 PM.
mrlogik is offline  
Reply With Quote
Old 01-28-2009, 01:28 PM   #8
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 24,537
Thanks: 386
Thanked 1,395 times in 1,364 posts
Default

Hi mrlogik, editing and creating chart types in NinjaScript is unfortunately not supported by us.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 01-28-2009, 01:48 PM   #9
RJay
Senior Member
 
Join Date: May 2008
Location: Hartford, CT. USA
Posts: 632
Thanks: 20
Thanked 31 times in 24 posts
Default

Quote:
Originally Posted by mrlogik View Post
Hey roonius,

Thanks for this code.

I have a question about a possible addition.

Is it possible to display via a dot the most the price in the opposite direction before making the bar.

For instance, if we are currently green, and a new bar forms green, post on the chart below the new green bar the lowest the price went prior to eventually creating a green bar.

If not, is it possible to write an indicator to work with OHLC bars but apply them to a renko chart?

Thanks for your help.

Anthony
Anthony,

On the top bar of your Renko bar chart, open the last icon on the right.

Click on the chart styles line and try using a different style to find what may work for you. I was using this last weekend with the dll Renko bars.

RJay
RJay is offline  
Reply With Quote
Old 01-29-2009, 04:15 AM   #10
mrlogik
Certified NinjaScript Consultant
 
mrlogik's Avatar
 
Join Date: Sep 2006
Location: New York, USA
Posts: 775
Thanks: 1
Thanked 8 times in 6 posts
Default

hey RJay,

thanks for the suggestion.
"You look closely enough, you can find everything has a ... weak spot where it can break, sooner or later"

PureLogikTrading
Last edited by mrlogik; 04-15-2009 at 02:32 PM.
mrlogik is offline  
Reply With Quote
Old 01-29-2009, 09:23 AM   #11
RJay
Senior Member
 
Join Date: May 2008
Location: Hartford, CT. USA
Posts: 632
Thanks: 20
Thanked 31 times in 24 posts
Default

Anthony,

Sounds like your trying for a Renko/Range or Renko/"Time" bar hybrid.

I am also determined to learn how to program my own charts.

I have some ideas for charts that need to be constructed and tested.

If I were a programmer, it would be so much easier.

FYI, I believe the programming file for the default chart types is in the "Type" directory where the Renko File loaded.

I am examining this file for more programming ideas.

Good Luck,

RJay
RJay is offline  
Reply With Quote
Old 01-29-2009, 09:27 AM   #12
mrlogik
Certified NinjaScript Consultant
 
mrlogik's Avatar
 
Join Date: Sep 2006
Location: New York, USA
Posts: 775
Thanks: 1
Thanked 8 times in 6 posts
Default

Rjay,

I am an engineer, so if / when I figure this out if you would like to discuss your ideas just PM me.

Thanks
Anthony
"You look closely enough, you can find everything has a ... weak spot where it can break, sooner or later"

PureLogikTrading
mrlogik is offline  
Reply With Quote
Old 01-29-2009, 09:49 AM   #13
RJay
Senior Member
 
Join Date: May 2008
Location: Hartford, CT. USA
Posts: 632
Thanks: 20
Thanked 31 times in 24 posts
Default

Quote:
Originally Posted by mrlogik View Post
Rjay,

I am an engineer, so if / when I figure this out if you would like to discuss your ideas just PM me.

Thanks
Anthony
Thanks, I'm going to give myself a couple weeks to learn what I can.

RJay
RJay is offline  
Reply With Quote
Old 01-29-2009, 03:39 PM   #14
mrlogik
Certified NinjaScript Consultant
 
mrlogik's Avatar
 
Join Date: Sep 2006
Location: New York, USA
Posts: 775
Thanks: 1
Thanked 8 times in 6 posts
Default

A general question about Renko Bars.

At the time a bar closes, is the close price of the Renko bar suppose to be where the actual price is?

I know that seconds after the close it may be different, but at the exact time the bar closes shouldn't the actual price be very close to it?

The reason I ask is because the price doesn't seem to match up with the close of the Renkos.

Thanks for the help.
"You look closely enough, you can find everything has a ... weak spot where it can break, sooner or later"

PureLogikTrading
mrlogik is offline  
Reply With Quote
Old 01-29-2009, 03:59 PM   #15
roonius
Certified NinjaScript Consultant
 
Join Date: Oct 2008
Location: Chicago, IL
Posts: 523
Thanks: 0
Thanked 8 times in 7 posts
Send a message via Skype™ to roonius
Default

Quote:
Originally Posted by mrlogik View Post
A general question about Renko Bars.

At the time a bar closes, is the close price of the Renko bar suppose to be where the actual price is?

I know that seconds after the close it may be different, but at the exact time the bar closes shouldn't the actual price be very close to it?

The reason I ask is because the price doesn't seem to match up with the close of the Renkos.

Thanks for the help.
Let's take Renko 4 ticks on s&p e minis

let's say currrent real price is 850 and we have a closed renko green bar with open 849 and close 850.

The next green renko bar will be painted when and only when the price will reach 851 (4 tikcs above high)
Or the next red renko bar will be painted when and only when the price will drop to 848 (4 ticks below low)
roonius is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Renko Charts? Brunoben Charting 67 07-04-2009 04:06 PM
Enter on bars, exit on ticks and min bars requirment coolraz Strategy Development 3 12-15-2008 10:59 AM
Bars.GetSessionBar TAJTrades Indicator Development 3 06-01-2008 05:14 PM
Bars are wrong on strategy performance (negative bars) woodside Historical NinjaTrader 6.5 Beta Threads 2 01-13-2008 11:22 PM
Momentum bars or Price Range Bars Akros Indicator Development 7 06-10-2007 04:55 AM


All times are GMT -6. The time now is 01:32 AM.