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 03-19-2009, 08:33 AM   #151
T2020
Senior Member
 
Join Date: Jun 2008
Posts: 644
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by sbgtrading View Post
Not a problem folks...I posted a new version that updates the cumulative line on every tick. The new indicator is attached to Post #1.

Enjoy!

Ben
Thanks for the correction . Some day a Moving average of the cumulative
line would be nice .
T2020 is offline  
Reply With Quote
Old 03-20-2009, 08:56 AM   #152
subterfuge
Senior Member
 
Join Date: Nov 2008
Posts: 117
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by T2020 View Post
Thanks for the correction . Some day a Moving average of the cumulative
line would be nice .
And candlesticks

Good work tho. You guys are very clever to be able to do all this coding stuff
subterfuge is offline  
Reply With Quote
Old 03-23-2009, 01:31 PM   #153
roonius
Certified NinjaScript Consultant
 
Join Date: Oct 2008
Location: Chicago, IL
Posts: 523
Thanks: 0
Thanked 3 times in 3 posts
Send a message via Skype™ to roonius
Default

Quote:
Originally Posted by subterfuge View Post
And candlesticks

Good work tho. You guys are very clever to be able to do all this coding stuff
One with candlesticks you can try from here
http://tradingstudies.com/products/bidaskvolume.html

It's not free, unfortunately.
roonius is offline  
Reply With Quote
Old 03-24-2009, 09:57 AM   #154
gomifromparis
Senior Member
 
Join Date: Oct 2007
Posts: 333
Thanks: 2
Thanked 12 times in 7 posts
Default

Hi,

I coded a version of Cumulative Delta, based on bid/ask volume.
  • It draws OHLC bars and candlesticks.
  • It should work with CalculateOnBarClose=true or false
  • It paints bars with Standard paint(comparison between open and close), Strong bars (compares close with previous high or low), or None.
It has a lot less options than sbgtrading's indicator, but it draws candlestick, so if you want best of both worlds I suppose you'll have to do some code merging.

Anyway, if it can be of any help, please feel free to use.
Attached Files
File Type: zip GomCD.zip (3.4 KB, 121 views)
gomifromparis is offline  
Reply With Quote
Old 03-24-2009, 10:44 AM   #155
vasuadiga
Junior Member
 
Join Date: Mar 2009
Posts: 1
Thanks: 0
Thanked 0 times in 0 posts
Default Cumulative delta line & candlestick indicators

Let me know if you notice any errors...
Attached Files
File Type: zip CumulativeDeltaCandleStick.zip (2.8 KB, 176 views)
File Type: zip CumulativeDeltaLine.zip (1.9 KB, 146 views)
vasuadiga is offline  
Reply With Quote
Old 03-24-2009, 11:38 AM   #156
subterfuge
Senior Member
 
Join Date: Nov 2008
Posts: 117
Thanks: 0
Thanked 0 times in 0 posts
Default

2 brilliant first posts, Gomifromparis and vasuadiga!
Nice work guys.
Good luck
subterfuge is offline  
Reply With Quote
Old 03-24-2009, 12:24 PM   #157
T2020
Senior Member
 
Join Date: Jun 2008
Posts: 644
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by gomifromparis View Post
Hi,

I coded a version of Cumulative Delta, based on bid/ask volume.
  • It draws OHLC bars and candlesticks.
  • It should work with CalculateOnBarClose=true or false
  • It paints bars with Standard paint(comparison between open and close), Strong bars (compares close with previous high or low), or None.
It has a lot less options than sbgtrading's indicator, but it draws candlestick, so if you want best of both worlds I suppose you'll have to do some code merging.

Anyway, if it can be of any help, please feel free to use.
I'm liking it so far . Would you consider adding a zero line ?
T2020 is offline  
Reply With Quote
Old 03-24-2009, 12:41 PM   #158
CBpasQ
Junior Member
 
Join Date: Nov 2008
Posts: 17
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by subterfuge View Post
2 brilliant first posts, Gomifromparis and vasuadiga!
Nice work guys.
Good luck
Agreed! Thanks gomi and vasua.
CBpasQ is offline  
Reply With Quote
Old 03-24-2009, 05:24 PM   #159
gomifromparis
Senior Member
 
Join Date: Oct 2007
Posts: 333
Thanks: 2
Thanked 12 times in 7 posts
Default

Thanks guys

He're an upgrade :
  • Bar style now derived from price style : you can change style from the main menu without losing the calculated CD data. OHCL, Candle and HiLo are implemented
  • Up/Down/Neutral colors are derived from the global Up/Down/Candle Outline colors , so you can also change colors without losing the calculated data !
I didn't implement the zero because I don't really see the need for it, and I spent quite some time getting rid of the existing zero bar : the zero bar prevents you from beeing able to zoom between -55 k and -60 k, because it "wants" to be plotted.

Enjoy
Attached Files
File Type: zip GomCD1.1.zip (3.2 KB, 119 views)
Last edited by gomifromparis; 03-24-2009 at 05:30 PM.
gomifromparis is offline  
Reply With Quote
Old 03-24-2009, 05:29 PM   #160
Stone
Junior Member
 
Join Date: Dec 2008
Posts: 6
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by gomifromparis View Post
Thanks guys

He're an upgrade :

Enjoy
Awesome, great job on this! Thank you for sharing!
Stone is offline  
Reply With Quote
Old 03-25-2009, 07:02 AM   #161
jfw215
Member
 
Join Date: Jan 2009
Posts: 32
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by gomifromparis View Post
Thanks guys

He're an upgrade :
  • Bar style now derived from price style : you can change style from the main menu without losing the calculated CD data. OHCL, Candle and HiLo are implemented
  • Up/Down/Neutral colors are derived from the global Up/Down/Candle Outline colors , so you can also change colors without losing the calculated data !
I didn't implement the zero because I don't really see the need for it, and I spent quite some time getting rid of the existing zero bar : the zero bar prevents you from beeing able to zoom between -55 k and -60 k, because it "wants" to be plotted.

Enjoy

Thanks Gomi!
jfw215 is offline  
Reply With Quote
Old 03-25-2009, 04:19 PM   #162
T2020
Senior Member
 
Join Date: Jun 2008
Posts: 644
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by gomifromparis View Post
Thanks guys

I didn't implement the zero because I don't really see the need for it, and I spent quite some time getting rid of the existing zero bar : the zero bar prevents you from beeing able to zoom between -55 k and -60 k, because it "wants" to be plotted.
Enjoy
Your right , I see from watching it that it can get to + or - 60 k . Thanks
again for posting it . !
T2020 is offline  
Reply With Quote
Old 03-26-2009, 07:18 AM   #163
gomifromparis
Senior Member
 
Join Date: Oct 2007
Posts: 333
Thanks: 2
Thanked 12 times in 7 posts
Default

New Beta version : ability to record tick CD data, so you can press F5 whenever you want, add other indicators, and you can open other charts that will read the data already stored.

Data is stored in a file in "My Documents" folder which you can edit.

If you have market replay files, play them one after another and it will populate the CD file.

Performance might be an issue; the file structure is not optimized because human readable, but I'll have to see waht happens when it gets bigger.

Feel free to comment, but remember it's beta quality
Attached Files
File Type: zip GomCD2.0.zip (4.2 KB, 73 views)
gomifromparis is offline  
Reply With Quote
Old 03-26-2009, 09:20 AM   #164
T2020
Senior Member
 
Join Date: Jun 2008
Posts: 644
Thanks: 0
Thanked 0 times in 0 posts
Default

Quote:
Originally Posted by gomifromparis View Post
New Beta version : ability to record tick CD data, so you can press F5 whenever you want, add other indicators, and you can open other charts that will read the data already stored.

Feel free to comment, but remember it's beta quality
I think your solving one of the frustrating problems with real time
tick indicators . No memory . Good work !
T2020 is offline  
Reply With Quote
Old 03-26-2009, 12:38 PM   #165
gomifromparis
Senior Member
 
Join Date: Oct 2007
Posts: 333
Thanks: 2
Thanked 12 times in 7 posts
Default

Last update of the day : minor bug corrections, code comments, and file format set to UTC, so now people can use other people's files if necessary.

I sent a file containing march 24th, just unzip and copy it in My documents, then put up the indicator on an ES 06 chart, and the 24th CD should appear.

Enjoy
Attached Files
File Type: zip GomCD2.1.zip (4.8 KB, 89 views)
File Type: zip ES 06-09.zip (90.1 KB, 92 views)
gomifromparis 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 05:21 AM.