NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript File Sharing > NinjaScript File Sharing Discussion

NinjaScript File Sharing Discussion Discussion for shared NinjaScript files.

Reply
 
Thread Tools Display Modes
Old 11-26-2007, 06:07 AM   #1
sbgtrading
Certified NinjaScript Consultant
 
Join Date: Oct 2007
Location: Northern Illinois
Posts: 256
Thanks: 0
Thanked 3 times in 3 posts
Default Delta Buy/Sell Volume, Tick volume or Tick count

Hello everyone,

Calculation Mode Changed on 3/18/09 in response to user requests

I've made a sweeping change to the cumulative delta indicator and posted it to this message. It is one indicator that lets you choose from the following 3 cumulative delta types:
1) Bid/Ask Volume
This is cumulation of the volume at the Ask - volume at the Bid
2) UpTick/DownTick Volume
This is the cumulation of the volume on upticks - volume on downticks
3) Tick Count
No volume in this calculation, just the sum of upticks - downticks

I believe this is a more efficient handling of the incoming market data and it may lead to resolving some of the "discrepancies" in the cumulative calculation. Please test it and report back to this thread.

Another enhancement in this version is you can completely turn-off the individual bar delta values (which were plotted as green and red dots in prior versions). This will prevent any undesirable scaling issues with the panel.

Finally, this indicator lets you specify a minimum volume per transaction, thereby letting you eliminate low-volume transactions from the calculation.

Let me know if you have any questions! Please test this indicator and report back.

Enjoy!
Ben
Attached Files
File Type: zip CumulativeVolumeOrTick_Limit.zip (3.4 KB, 1849 views)
Last edited by sbgtrading; 03-19-2009 at 08:04 AM.
sbgtrading is offline  
Reply With Quote
Old 11-26-2007, 08:18 AM   #2
samiam30
Member
 
Join Date: Sep 2007
Posts: 27
Thanks: 0
Thanked 0 times in 0 posts
Thumbs up

Thank you, kind sir .
samiam30 is offline  
Reply With Quote
Old 11-28-2007, 12:59 PM   #3
garciaal
Member
 
Join Date: Aug 2006
Location: Kennesaw, GA, ,
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default Import failed

I get the following error message; "Import failed. There are NinjaSript files in the imported NinjaScipt Archive file that have programming errors. these errors must be resolved before you can import the Ninja Script Archive Files."

I have imported other files with no problem. Any clue to what may be causing this.
Thanks, Al
garciaal is offline  
Reply With Quote
Old 11-28-2007, 01:16 PM   #4
samiam30
Member
 
Join Date: Sep 2007
Posts: 27
Thanks: 0
Thanked 0 times in 0 posts
Default

The indicator only works in NT v6.5.
samiam30 is offline  
Reply With Quote
Old 11-28-2007, 03:00 PM   #5
garciaal
Member
 
Join Date: Aug 2006
Location: Kennesaw, GA, ,
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default Import failed

Samiam,
Thanks for ther quick reply, I'm still using 6.0. I wonder if there are going to be other indicators from 6.0 that won't work with 6.5?

Thanks, Al
garciaal is offline  
Reply With Quote
Old 11-28-2007, 03:10 PM   #6
marketguy2
Member
 
Join Date: Jun 2007
Posts: 45
Thanks: 0
Thanked 0 times in 0 posts
Default Thanks and a request

Thanks for the indicator. It showed a beautiful Delta Divergence on the ES at 15:20. Very cool. I will definitely keep an eye on this indicator.

I have a request (or two).
1. The Delta number showing in the price panel covers the NT bar timer making the countdown timer unreadable. Could you possibly move its location?

2. This is more in terms of a wish rather than a request. The concept of Delta Divergence can be a very useful tool. As price makes a new high and the delta becomes negative, we have a divergence. Vice Versa on new lows. It would be so cool if we could get a dot or arrow reminding us when we have a Delta Divergence at a new high or low (and even cooler a dot and an audible alarm).

Anyway, thanks for the great work. it is appreciated.
marketguy2 is offline  
Reply With Quote
Old 11-28-2007, 04:57 PM   #7
sbgtrading
Certified NinjaScript Consultant
 
Join Date: Oct 2007
Location: Northern Illinois
Posts: 256
Thanks: 0
Thanked 3 times in 3 posts
Default

markeguy,

There is a parameter to this indicator that lets you choose where to place the indicator. Go ahead and view the parameters (Ctrl-I) and find the parameter called "Counter Location". Select one of the listed values.

Ben
Last edited by sbgtrading; 11-28-2007 at 05:00 PM.
sbgtrading is offline  
Reply With Quote
Old 11-28-2007, 04:58 PM   #8
garciaal
Member
 
Join Date: Aug 2006
Location: Kennesaw, GA, ,
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default Code for 6.0?

Sbgtrading,

Could you tell what part of code needs to be modified to work with 6.0?

Thanks, Al
garciaal is offline  
Reply With Quote
Old 11-28-2007, 05:03 PM   #9
sbgtrading
Certified NinjaScript Consultant
 
Join Date: Oct 2007
Location: Northern Illinois
Posts: 256
Thanks: 0
Thanked 3 times in 3 posts
Default

Quote:
Originally Posted by garciaal View Post
Samiam,
Thanks for ther quick reply, I'm still using 6.0. I wonder if there are going to be other indicators from 6.0 that won't work with 6.5?

Thanks, Al
Everything that works in 6.0 should work in 6.5...the problem is that not everything that works in 6.5 works in 6.0. They are not backward compatible.

Ben
sbgtrading is offline  
Reply With Quote
Old 11-28-2007, 05:08 PM   #10
sbgtrading
Certified NinjaScript Consultant
 
Join Date: Oct 2007
Location: Northern Illinois
Posts: 256
Thanks: 0
Thanked 3 times in 3 posts
Default

Quote:
Originally Posted by garciaal View Post
Sbgtrading,

Could you tell what part of code needs to be modified to work with 6.0?

Thanks, Al

That would be a good question for the NinjaTrader specialists here...there may not be a migration path backwards for this indicator. I haven't had enough experience to see how 6.0 capabilities provide a way to handle live market data events. Sorry!

Ben
sbgtrading is offline  
Reply With Quote
Old 11-28-2007, 05:33 PM   #11
marketguy2
Member
 
Join Date: Jun 2007
Posts: 45
Thanks: 0
Thanked 0 times in 0 posts
Default

Thanks,
I now have the counters where I can see them.
marketguy2 is offline  
Reply With Quote
Old 11-29-2007, 12:53 AM   #12
samiam30
Member
 
Join Date: Sep 2007
Posts: 27
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by marketguy2 View Post
1. The Delta number showing in the price panel covers the NT bar timer making the countdown timer unreadable. Could you possibly move its location?
You can easily change the location of the counter (Indicators->Parameters-> top option-> change the text):

BL -> Bottom Left (default setting)
BR -> Bottom Right
TL -> Top Left
TR -> Top Right
samiam30 is offline  
Reply With Quote
Old 11-29-2007, 07:41 PM   #13
garciaal
Member
 
Join Date: Aug 2006
Location: Kennesaw, GA, ,
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default Help request

To Any NinjaScript Expert,

See post #8 & 9 above, is there any way to get this to work with ver6.0

Thanks, Al
garciaal is offline  
Reply With Quote
Old 11-30-2007, 12:46 AM   #14
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

This indicator requires the new methods exposed in NT6.5. A NT6 version of this will be of little value simply because it won't work.
NinjaTrader_Josh is offline  
Reply With Quote
Old 11-30-2007, 09:21 AM   #15
garciaal
Member
 
Join Date: Aug 2006
Location: Kennesaw, GA, ,
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default

Josh,
for those of us who are less informed what is the "new method"
garciaal 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
Volume Delta Indicator Robotman Charting 21 10-19-2008 10:52 AM
Buy 4 futures once, sell at different prices webhalla Strategy Development 4 06-18-2007 08:12 AM
buy/sell at close of bar? coffee898 Charting 4 03-20-2007 03:55 AM
LMT orders ... BUY / SELL @ LAST / ASK / BID in automated trading. mkundi Automated Trading 4 04-04-2006 10:12 PM
red for sell, green for buy in dom? Folls Miscellaneous Support 1 01-12-2006 09:02 AM


All times are GMT -6. The time now is 08:57 AM.