Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 02-09-2010, 02:28 PM   #1
DaveS
Senior Member
 
Join Date: Feb 2006
Location: London U.K.
Posts: 154
Thanks: 3
Thanked 2 times in 2 posts
Default Buy Sell Pressure Colored Bars

Apologies if this has been done before.
Its just a simple modification to NT's own BuySellPressure indicator. It colors the price bars in a graded way with White as equal Bid and Ask trades. The more trades at the Ask, the Bluer the price bars get, the more trades at the Bid, the Redder they get.
I don't have the C# expertise to include a 'Gomi' style data recorder, so its real time only.
I hope it might be of use to someone.
Attached Images
File Type: jpg 6E 06-10 06_04_2010 (220 Volume).jpg (45.5 KB, 145 views)
Attached Files
File Type: zip BuySellPressureBarCol.zip (2.1 KB, 44 views)
Last edited by DaveS; 04-06-2010 at 12:40 PM. Reason: Error found in script
DaveS is offline  
Reply With Quote
Old 02-09-2010, 04:22 PM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 25,647
Thanks: 427
Thanked 1,653 times in 1,614 posts
Default

DaveS, thanks for sharing - we would appreciate if you post it also in the sharing section -

http://www.ninjatrader-support2.com/...splay.php?f=37
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 02-10-2010, 11:10 AM   #3
DaveS
Senior Member
 
Join Date: Feb 2006
Location: London U.K.
Posts: 154
Thanks: 3
Thanked 2 times in 2 posts
Default

Didn't think it warranted a place in file sharing but I have put it there as requested.
DaveS is offline  
Reply With Quote
Old 02-10-2010, 11:13 AM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,460
Thanks: 1
Thanked 172 times in 82 posts
Default

Thanks DaveS, your efforts and generosity are much appreciated.
NinjaTrader_Josh is offline  
Reply With Quote
Old 02-12-2010, 01:53 PM   #5
kissandfly
Member
 
Join Date: Aug 2008
Posts: 32
Thanks: 0
Thanked 0 times in 0 posts
Thumbs up

Great ! Good job ! On which chart do you recommend it ? tick chart ? vol chart ? other ?
kissandfly is offline  
Reply With Quote
Old 02-13-2010, 03:55 AM   #6
DaveS
Senior Member
 
Join Date: Feb 2006
Location: London U.K.
Posts: 154
Thanks: 3
Thanked 2 times in 2 posts
Default

Quote:
Originally Posted by kissandfly View Post
Great ! Good job ! On which chart do you recommend it ? tick chart ? vol chart ? other ?
It should work on any kind of chart, so long as it is real time. Just a matter of experimenting to find what you are comfortable with.
DaveS is offline  
Reply With Quote
Old 02-15-2010, 10:28 AM   #7
kissandfly
Member
 
Join Date: Aug 2008
Posts: 32
Thanks: 0
Thanked 0 times in 0 posts
Default

Just an idea. Maybe could be interesting to add a filter on volume, for block size, to track big players ?
kissandfly is offline  
Reply With Quote
Old 02-16-2010, 01:38 PM   #8
DaveS
Senior Member
 
Join Date: Feb 2006
Location: London U.K.
Posts: 154
Thanks: 3
Thanked 2 times in 2 posts
Default

Quote:
Originally Posted by kissandfly View Post
Just an idea. Maybe could be interesting to add a filter on volume, for block size, to track big players ?
Think I would rather see that kind of info colour coded in a time and sales window rather than on a price chart, but iv'e added a filter for you.
Attached Files
File Type: zip BuySellPressureBarCol.zip (2.0 KB, 73 views)
DaveS is offline  
Reply With Quote
Old 02-16-2010, 02:03 PM   #9
kissandfly
Member
 
Join Date: Aug 2008
Posts: 32
Thanks: 0
Thanked 0 times in 0 posts
Default

Great So fast ! Thanks so much. I test it and keep you inform.
kissandfly is offline  
Reply With Quote
Old 03-02-2010, 01:57 AM   #10
Jumper
Member
 
Join Date: May 2009
Posts: 65
Thanks: 0
Thanked 1 time in 1 post
Default

Quote:
Originally Posted by DaveS View Post
I don't have the C# expertise to include a 'Gomi' style data recorder, so its real time only.
Is there anyone around here that can modify this so the past bars are colored also? Gets kind of annoying when you want to change something and all the colour bars reset and it starts all over again.

Cheers
Jumper is offline  
Reply With Quote
Old 04-06-2010, 12:46 PM   #11
DaveS
Senior Member
 
Join Date: Feb 2006
Location: London U.K.
Posts: 154
Thanks: 3
Thanked 2 times in 2 posts
Default

Apologies to everyone.
I found a serious error in this indicator script which meant that it was displaying dark colors when bid/ask was around 50/50. Colors here should be light shades of red and blue, with white at 50/50.
The script has been corrected.
DaveS is offline  
Reply With Quote
Old 04-21-2011, 03:58 PM   #12
RJBen
Junior Member
 
Join Date: Aug 2008
Posts: 18
Thanks: 3
Thanked 1 time in 1 post
Default

If this thread isn't dead is there a way to get colored price bars signifying bid ask volume for NT7?
RJBen is offline  
Reply With Quote
Old 04-22-2011, 02:26 AM   #13
DaveS
Senior Member
 
Join Date: Feb 2006
Location: London U.K.
Posts: 154
Thanks: 3
Thanked 2 times in 2 posts
Default

This version should be OK with Ninja 7. Don't forget that you need to be receiving live data.
Attached Files
File Type: zip BuySellPressureBarCol7.zip (2.2 KB, 63 views)
DaveS is offline  
Reply With Quote
Old 04-25-2011, 05:52 PM   #14
RJBen
Junior Member
 
Join Date: Aug 2008
Posts: 18
Thanks: 3
Thanked 1 time in 1 post
Default

Thank-you Dave S
RJBen 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
buy/sell pressure indicator... Gregory Arkadin Charting 3 07-28-2011 02:24 PM
Colored Bars yellowTrader Version 7 Beta General Questions & Bug Reports 1 12-03-2009 10:35 AM
Script is running wild: buy - sell - buy - sell ... BillCh Automated Trading 4 02-06-2009 02:01 PM
Market Delta (buy sell pressure) Oscillator NickA Indicator Development 4 02-01-2009 01:00 PM
Stop Buy Sell orders and new bars snaphook Strategy Development 1 11-18-2008 12:38 PM


All times are GMT -6. The time now is 12:56 PM.

FULL RISK DISCLOSURE: Futures trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones financial security or lifestyle. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results. View Full Risk Disclosure.