Welcome to the Traders Laboratory Forums.
Market Internals Discussion forum on market internals, pit noise/action, and price action to determine the overall strength/weakness of the markets.

Reply
Old 11-14-2008, 08:04 PM   #1

darthtrader2.0's Avatar

Join Date: Jun 2008
Location: wny
Posts: 103
Ignore this user

Thanks: 1
Thanked 32 Times in 24 Posts

Ninja Traders...lets Build a Better Mousetrap

This thread is inspired by david22's post about neoticker in another thread and building internals for non NYSE markets...
I know this is neoticker's game and this is my last ditch attempt before I just buy neoticker...
I blew away one of my machines the other day and played around with the neoticker demo today but I just don't like the program.
So the first question is, has anyone here ever messed around with multi instrument strategy plots in Ninja? I know currently it is possible to construct some form of the tick client side from the datafeed with onmarketdata() and strategyplot() but I do not know if Ninja/our machines/memory can handle creating the SPX in real time..I'm pretty sure not...
NT7 is promised to have multiple instrument indicators so I'm on hold with neoticker until I see what that can do.
How many instruments that will support in real time is the key...While I do not expect to be able to calculate the S&P cash market from the individual stocks(even though this would rule because it would gives us a real time, tick precise PREM) there should be a work around as far as pruning the list down from 500.
A simple correlation between the move of security X and the S&P cash over a good sample size should do the trick there with a cutoff point, I suspect the list is much smaller than what we probly think.
The other reason then I want to stick with ninja is its not that hard to override plot()..OHLC and candles are simply a terrible way to visualize the data of TICK...we already know the bounds of the data, a distribution at N time makes alot more sense.
darthtrader2.0 is offline  
Reply With Quote
Old 11-18-2008, 08:09 AM   #2

Join Date: Dec 2006
Location: Guernsey (UK)
Posts: 43
Ignore this user

Thanks: 3
Thanked 4 Times in 3 Posts

Re: Ninja Traders...lets Build a Better Mousetrap

Quote:
Originally Posted by darthtrader2.0 »
This thread is inspired by david22's post about neoticker in another thread and building internals for non NYSE markets...
I know this is neoticker's game and this is my last ditch attempt before I just buy neoticker...
I blew away one of my machines the other day and played around with the neoticker demo today but I just don't like the program.
So the first question is, has anyone here ever messed around with multi instrument strategy plots in Ninja? I know currently it is possible to construct some form of the tick client side from the datafeed with onmarketdata() and strategyplot() but I do not know if Ninja/our machines/memory can handle creating the SPX in real time..I'm pretty sure not...
NT7 is promised to have multiple instrument indicators so I'm on hold with neoticker until I see what that can do.
How many instruments that will support in real time is the key...While I do not expect to be able to calculate the S&P cash market from the individual stocks(even though this would rule because it would gives us a real time, tick precise PREM) there should be a work around as far as pruning the list down from 500.
A simple correlation between the move of security X and the S&P cash over a good sample size should do the trick there with a cutoff point, I suspect the list is much smaller than what we probly think.
The other reason then I want to stick with ninja is its not that hard to override plot()..OHLC and candles are simply a terrible way to visualize the data of TICK...we already know the bounds of the data, a distribution at N time makes alot more sense.
Hi darth,
Using the strategyplot to display markets internals is quite easy to do and also using it to calculate and display some indicators based on a few instruments is quite easy but if the list is too big NT won't handle it (I can't say what is the limit though...).
I think you're right by saying that we could bring down the number but it would require some quantitative analysis which would be probably better to do outside NT (you can plug NT to a statistical software).

Do you use some statistical software?
ryker is offline  
Reply With Quote
Old 11-20-2008, 08:39 PM   #3

darthtrader3.0beta's Avatar

Join Date: Nov 2008
Posts: 118
Ignore this user

Thanks: 0
Thanked 26 Times in 15 Posts

Re: Ninja Traders...lets Build a Better Mousetrap

Quote:
Originally Posted by ryker »
Hi darth,
Using the strategyplot to display markets internals is quite easy to do and also using it to calculate and display some indicators based on a few instruments is quite easy but if the list is too big NT won't handle it (I can't say what is the limit though...).
I think you're right by saying that we could bring down the number but it would require some quantitative analysis which would be probably better to do outside NT (you can plug NT to a statistical software).

Do you use some statistical software?
Hey ryker,
Can you define what is too big as far as ninja goes here as far as your experience? I've mostly been waiting to see what they do in 7 as far as the the multi instrument indicator stuff...i'm sure that won't be much different than in strategies...
If its 100 vs 500 that is cool..if its 500 vs 3...not so good...
Statistical software wise I've messed around with R but never found anything that wasn't easier to do with Excel...Excel is probly robust enough, certainly for this kind of thing..
Output to the Ninja window with commas is kind of a pain for large datasets to save/paste/import into excel but certainly impossible and easier than any other solution I've found at my level of programming....
darthtrader3.0beta is offline  
Reply With Quote
Old 11-24-2008, 07:49 AM   #4

Join Date: Dec 2006
Location: Guernsey (UK)
Posts: 43
Ignore this user

Thanks: 3
Thanked 4 Times in 3 Posts

Re: Ninja Traders...lets Build a Better Mousetrap

I've never done any testing in NT regarding what is the maximum number of instruments we can add in the strategy. But it all depends on your actual setup and also on your computer.

I'll run some tests this week by adding a few instruments in a blank strategy and then running some simple calculations on them.

As for NT7, I don't think the multi instrument indicator would be too much different thant the multi instrument strategy but NT7 will support multiple cores so if you have a powerful CPU you should be able to have a bigger list than in NT6.5.

I saw NeoBreath and it looks quite cool, I don't think that NT7 would have something similar and the multi instrument indicator won't be probably as quick as NeoBreath (although I'd like to be wrong here ).
ryker is offline  
Reply With Quote
Old 11-25-2008, 09:39 AM   #5

darthtrader3.0beta's Avatar

Join Date: Nov 2008
Posts: 118
Ignore this user

Thanks: 0
Thanked 26 Times in 15 Posts

Re: Ninja Traders...lets Build a Better Mousetrap

Oh I had not heard that that NT7 will support multiple cores..thats fantastic...
I'm going to try to build TIKI over the thanksgiving holiday. I guess the problem with that is I'm sure ninja can handle 30 custom series like that if its just doing addition and subtraction. I would think at some point memory becomes a bigger issue than actual CPU useage but I could be totally off there.
As far as neobreadth, isn't the the ease of that have to do with the fact that neoticker handles the list of single equities behind the scenes?
We could potentially do something like that pulling from a text file with a for loop in Initialize():

for (blah blah)
Add("X", PeriodType.Minute, 1);
darthtrader3.0beta is offline  
Reply With Quote
Old 12-01-2008, 09:40 AM   #6

darthtrader3.0beta's Avatar

Join Date: Nov 2008
Posts: 118
Ignore this user

Thanks: 0
Thanked 26 Times in 15 Posts

Re: Ninja Traders...lets Build a Better Mousetrap

Well I messed around with this on the weekend and just loaded it up.
Bad news is my calculations make no sense and the plot is bogus but the good news is Ninja seems to be handling 30 manually added instruments like cakewalk..
In intialize I just did:
Add("AA", PeriodType.Minute, 1);
Add("AXP", PeriodType.Minute, 1);
Add("BA", PeriodType.Minute, 1);
Add("BAC", PeriodType.Minute, 1);
ect, ect..

then in onbarupdate (set to calculate on close false)
for(x = 0;x < 29; x++)
{
if(Closes[0][x] > LastTransactedPrice)
{Direction = 1;}

ect ect
So 30 instruments work and a for loop works, this should be doable. I couldn't figure out how to do this by overriding onmarketdata() but hopefully this will be good enough. Once I get the logic right I'll see if I can crash it with the S&P100.
darthtrader3.0beta is offline  
Reply With Quote
Old 12-01-2008, 10:07 AM   #7

BlowFish's Avatar

Join Date: Mar 2007
Location: In Da House
Posts: 3,292
Ignore this user

Thanks: 129
Thanked 1,054 Times in 702 Posts

Re: Ninja Traders...lets Build a Better Mousetrap

Does ninja generate a bar update event if any data series changes or just if the first one does?
BlowFish is offline  
Reply With Quote
Old 12-01-2008, 11:04 AM   #8

darthtrader3.0beta's Avatar

Join Date: Nov 2008
Posts: 118
Ignore this user

Thanks: 0
Thanked 26 Times in 15 Posts

Re: Ninja Traders...lets Build a Better Mousetrap

Quote:
Originally Posted by BlowFish »
Does ninja generate a bar update event if any data series changes or just if the first one does?
Well I think I just got TIKI going just now and spitting out the DOW stock data to the ninja output window its updating all the data series extremely fast. I'm not sure if its on the first dataseries or on all them though, I just loaded up SPY so that even if it needs a tick from the main dataseries to update, SPY is more than fast enough.
This is certainly better than the 5 second lag I get on DTN.
Going to drink some coffee and grunt through adding the S&P 100 right now.

Bump: Lame...well it appears Ninja has a 50 instrument limit as fas as add() goes.
Above this the strategy loads but doesn't switch on.
very disappointing considering how smoothly its handling 50 instruments.
Attached Thumbnails
Ninja Traders...lets Build a Better Mousetrap-ticktiki.jpg  
darthtrader3.0beta is offline  
Reply With Quote

Reply

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Companies That Build Trading Computers? Tasuki Tools of the Trade 68 03-23-2009 03:23 PM
Free MP for Ninja darthtrader Market Profile 17 01-19-2009 04:55 PM
Using .eld Indicators in Ninja Trader coldsigh Coding Forum 3 10-09-2008 12:44 AM
Using Outside Sources to Build Track Record And/or Make Additional Money... brownsfan019 Market Analysis 24 04-30-2008 07:12 PM
Question with Ninja.... Soultrader Brokers and Data Feeds 9 01-25-2007 11:18 AM

All times are GMT -4. The time now is 05:11 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.