NinjaTrader Support Forum  

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 11-16-2007, 06:40 AM   #1
samiam30
Member
 
Join Date: Sep 2007
Posts: 27
Thanks: 0
Thanked 0 times in 0 posts
Default BuySellVolume modification [request]

Would it be posible to modifiy this indicator so it would plot sell volume (red part of the bar) on top of buy volume (green part of the bar) on bars where there is more sell volume than buy volume.
Attached Images
File Type: jpg Snap1.jpg (51.2 KB, 131 views)
Last edited by samiam30; 11-16-2007 at 09:15 AM.
samiam30 is offline  
Reply With Quote
Old 11-16-2007, 07:26 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Yes this is possible, just copy this indicator, open the source code and take a look and reverse the relevant areas.
NinjaTrader_Ray is offline  
Reply With Quote
Old 11-16-2007, 10:41 AM   #3
samiam30
Member
 
Join Date: Sep 2007
Posts: 27
Thanks: 0
Thanked 0 times in 0 posts
Default

I don't really know how to code this (my programing skills are nonexistent):

if sell volume > buy volume - plot sell volume on top of the bar (red on top)
if buy volume > sell volume - plot buy volume on top of the bar (green on top)

Someone familiar with NinjaScript could probably do this in a heartbeat (hint ).
samiam30 is offline  
Reply With Quote
Old 11-16-2007, 10:58 AM   #4
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Yes, you would need to be able to some programming. Christmas is not too far off, maybe someone will help
NinjaTrader_Ray is offline  
Reply With Quote
Old 11-16-2007, 11:11 AM   #5
samiam30
Member
 
Join Date: Sep 2007
Posts: 27
Thanks: 0
Thanked 0 times in 0 posts
Default

This is how the Tradestation version of this indicator looks like:
Attached Images
File Type: jpg Snap1.jpg (24.5 KB, 126 views)
samiam30 is offline  
Reply With Quote
Old 11-16-2007, 02:11 PM   #6
ClayB1
Senior Member
 
Join Date: Nov 2004
Location: Dallas, Texas, USA
Posts: 124
Thanks: 0
Thanked 0 times in 0 posts
Default

Hi Samiam30,

I had a go at modifying the BuySellVolume indicator code to plot the way you want, but no luck. I had a friend of mine take a quick look at it too. He's been an assembler programmer for 25 years, but knows a lot of other languages as well. He couldn't follow the logic either, so I don't feel so bad

So sorry, but no Christmas present from me this year. Perhaps someone else will accept the challenge.
ClayB1 is offline  
Reply With Quote
Old 11-17-2007, 02:32 AM   #7
samiam30
Member
 
Join Date: Sep 2007
Posts: 27
Thanks: 0
Thanked 0 times in 0 posts
Thumbs up

Thanks for giving it a try.
Last edited by samiam30; 11-17-2007 at 02:47 AM.
samiam30 is offline  
Reply With Quote
Old 11-17-2007, 04:49 AM   #8
samiam30
Member
 
Join Date: Sep 2007
Posts: 27
Thanks: 0
Thanked 0 times in 0 posts
Default

A video on how to use this indicator.

(source: www.TradersLaboratory.com)
samiam30 is offline  
Reply With Quote
Old 11-17-2007, 09:14 AM   #9
sbgtrading
Certified NinjaScript Consultant
 
Join Date: Oct 2007
Location: Northern Illinois
Posts: 256
Thanks: 0
Thanked 3 times in 3 posts
Default

Hello Samiam,

Attached below, you'll find a BETTER shot at this modification.

I modified the BuySellVolume indicator to display a positive histo and a negative histo, thereby eliminating the overlap/obscuring problem. I know this isn't quite what you were looking for, but until I can figure out how to change the color of individual histo bars on the fly, this will have to suffice.

Enjoy!

Ben
Attached Files
File Type: zip BuySellVolume2.zip (2.4 KB, 79 views)
Last edited by sbgtrading; 11-23-2007 at 09:31 AM. Reason: Performed a work-around
sbgtrading is offline  
Reply With Quote
Old 11-17-2007, 09:36 AM   #10
samiam30
Member
 
Join Date: Sep 2007
Posts: 27
Thanks: 0
Thanked 0 times in 0 posts
Thumbs up

Thanks for taking a shot at this. I'll try it out and report back.
samiam30 is offline  
Reply With Quote
Old 11-17-2007, 01:48 PM   #11
sbgtrading
Certified NinjaScript Consultant
 
Join Date: Oct 2007
Location: Northern Illinois
Posts: 256
Thanks: 0
Thanked 3 times in 3 posts
Default

...and thank you for the post to www.traderslaboratory.com, the free videos on tape reading, TICK and TRIN are informative. I know of one outfit that teaches you tape reading (but charges $6,000 for it).

Also, I'll work on an indicator that duplicates what your video link shows (a red dot on up-bars with greater sell than buy volume, and a green dot on down-bars with greater buy than sell volume).

Ben
sbgtrading is offline  
Reply With Quote
Old 11-19-2007, 01:48 AM   #12
samiam30
Member
 
Join Date: Sep 2007
Posts: 27
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by sbgtrading View Post
My primary concern is that the GREEN bar will overpaint and totally obscure the RED bar (or vice versa). Keep an eye on this possibility and report back to me if possible.
After testing the indicator this does indeed appear to be a problem (when sell volume > buy vollume the sell volume bar paints over the buy volume bar).
Last edited by samiam30; 11-19-2007 at 01:51 AM.
samiam30 is offline  
Reply With Quote
Old 11-23-2007, 09:33 AM   #13
sbgtrading
Certified NinjaScript Consultant
 
Join Date: Oct 2007
Location: Northern Illinois
Posts: 256
Thanks: 0
Thanked 3 times in 3 posts
Default

Take a look at Post #9 in this thread...I updated the attachment.

Let me know what you think about the indicator.

Ben
sbgtrading is offline  
Reply With Quote
Old 11-23-2007, 12:44 PM   #14
samiam30
Member
 
Join Date: Sep 2007
Posts: 27
Thanks: 0
Thanked 0 times in 0 posts
Default

This is good stuff. Thanks a million.

I know I'm pushing my luck but could you do a version of this indicator that plots the buy/sell volume delta (delta = buy volume - sell volume) as line chart.

Something like this:
Attached Images
File Type: jpg Snap1.jpg (82.7 KB, 162 views)
samiam30 is offline  
Reply With Quote
Old 11-26-2007, 06:09 AM   #15
sbgtrading
Certified NinjaScript Consultant
 
Join Date: Oct 2007
Location: Northern Illinois
Posts: 256
Thanks: 0
Thanked 3 times in 3 posts
Default

I've posted the indicator you requested on this thread:

http://www.ninjatrader-support.com/v...0970#post20970

Let me know what you think!

Ben
sbgtrading 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
BuySellVolume indicator grd974 Indicator Development 10 02-01-2008 03:51 PM
BuySellVolume returni grd974 Indicator Development 2 10-10-2007 12:15 PM
Modification of indicator used by strategy ct Strategy Development 4 05-12-2007 10:47 AM
Limit order modification pgabriel ATM Strategies (Discretionary Trading) 9 02-15-2007 06:19 AM
modification fees geu Miscellaneous Support 7 02-11-2005 06:01 PM


All times are GMT -6. The time now is 05:52 AM.