Ninja Trader

chilltrader

Experienced member
Messages
1,296
Likes
115
Hi,

I'm trying to find out how I can generate signals using Ninja Trader.
Say for eg: generate a purple coloured bar if the price crossed 50 SMA?

Any help appreciated.

Thank You.
 
I'm a newbie to Ninja, trying to decide if I should invest time in learning the details. Been using MT4 to develop and trade bots, but want to connect to an ECN like MBT for lower spreads, and no dealing desks. I have an EA I want to convert.
1. Are there any forums for Ninja like the MT4 forums (which are many and supply much info)?
2. Can someone point me at examples of automated systems in the Ninja script?
3. Is it possible to handle hedge trades (positions in both sides of a trade) using Ninja?
4. Does anyone have an idea how hard it is to convert an EA?
If this is the wrong thread, please point me at the right one.
Thanks
 
Although I don't know, if I will get an answer in this thread, I'll post my question: Can anybody tell me, how to program a Stop Loss, which is on the high on the previous day of the opening-position-day? So, if I went long on Tuesday, the stop should be on the high of Monday.
Can anybody help me?

Thanks in advance

Sepp
 
Some.

Ninja, Right Edge Systems (which, though, does not deal well with discretionary trading, focusing on automatisms totally). Then some more. Google is your friend.
 
Thanks NetTecture, RightEge looks interesting. Its uses a common language like C# rather than it's own created language like Tradestation and easylanguage. Will investigate more.

Google can't give me their experiences, Trade2win is my friend.
 
Yeah, but google could help with a list of softare. THere is another tradestation "clone" around (MUlticharts?). I personally like the appraoch of Ninja and RightEdge - mostly because I work C# full time. But sadly on all of them, the development support stinks. Debugger, version control, integration / ability to use Visual Studio - no. Unit testing etc. - no ;)

Ninja is pretty nice in the non-automatism features. I like the "semi-automated" trades (you call the trade, a predertermined strategy does stop loss and exits - basically fire and forget).

None uses WPF for charting, which I think is a shame, but mostly due to the time they were made, so acceptable.
 
That is how I use Ninja at the moment, I place the trade and let the ATM manage the trade. I would like to automate the entry side at some point.

I see Ninja and Rightedge use C#, is the best language for that? Are the other packages that use C++, Java or any other language? I am about to sign up to a 10wk C# evening class.

What benefits would WPF bring to charting?
 
There hardly is a "best language" for something like that. Personally I like C# because it is reasonably fast (except when you try writing drivers it is good enough), versatile and has all the support infrastructure one needs (tools etc.). Java - is similar in many points, but it lacks the infrastructure I like. I did a lot of java work before getting involved into C# before the world even knew it existed. As I do all the other work in C# and I know it inside out - for me it is optimal ;)

A 10 wk C# class is not enough or total overkill. Depends on you. I learned C# (the langauge) in a day coming from Java, but it took me the better part of a year to grap the framework. That said, you won't touch 99% of the framework on a trading system. It depends whether you are a programmer or not. If not, a 10 wk class is not going to get you running.

WPF for charting? Serious?
* Blazing fast vector presentation, very nice when one actually resizes graphs.
* Ability to easily print the document in high resolution
* Ability to save the generated chart not as a bitmap

Plus all the retained work mode advantages when one does something like charting - as the objects in the graph are represented in the WPF object graph. I personally just think it would be very nice and see no reason not to use it when I start something new ;)
 
How easy is for people with basic programming skills like me to code a trivial system in Ninja? For example, how difficult is to program something like:

condition: false
condition: close of this bar > high of previous bar
If condition then buy at the open of next bar
limit order at entry price + 10 pips OCO stoploss order at entry price - 10 pips

In Tradestation this is very easy to program. I think that NInja and Metatrader are for professional programmers, not for traders like me.
 
Seriously NInja is not for pros. I am one (make my living in databases, architecture, development) and I find Ninja disgusting from a development point of view. Once you get complex (like trying to identify tunnels) I really miss my Visual Studio debugger ;)

Otherwise - give it a try. SHould be easy. THat said, I tried Ninja with:
* Breakout of last 5 barsHigh/low for trade, stop on other end (i.e. long stop is 5 ar low)
And i had to give up on getting this running. THis is PART of a trade system I got, and I thought I should get that going, as starter (that one condition), but funny things happened.

Example:
* I go long, price raises, then goes down basically for a long time.
* Trade is entered on breakout, stopped out as it should.
* The reverse trade (!) - which should happen on the next bar (position neutral, 5 day low broken) was actually entered in one case (Which had a NICE trend) 30 bars later. All that time the price went down, but the simulator simply did not execute the entry. And I had no tools to go in and debug and see how the code actually decided not to. Like I should / would with VIsual Studio. Except "ataching VS and debugging there" which incidentally works but is not supported, and editing does not work.

I found that - midly said - frustrating. Given up on Ninja.
 
Seriously NInja is not for pros. I am one (make my living in databases, architecture, development) and I find Ninja disgusting from a development point of view. Once you get complex (like trying to identify tunnels) I really miss my Visual Studio debugger ;)

Otherwise - give it a try. SHould be easy. THat said, I tried Ninja with:
* Breakout of last 5 barsHigh/low for trade, stop on other end (i.e. long stop is 5 ar low)
And i had to give up on getting this running. THis is PART of a trade system I got, and I thought I should get that going, as starter (that one condition), but funny things happened.

Example:
* I go long, price raises, then goes down basically for a long time.
* Trade is entered on breakout, stopped out as it should.
* The reverse trade (!) - which should happen on the next bar (position neutral, 5 day low broken) was actually entered in one case (Which had a NICE trend) 30 bars later. All that time the price went down, but the simulator simply did not execute the entry. And I had no tools to go in and debug and see how the code actually decided not to. Like I should / would with VIsual Studio. Except "ataching VS and debugging there" which incidentally works but is not supported, and editing does not work.

I found that - midly said - frustrating. Given up on Ninja.

Completely agree, Ninja is like Vista - bloated, pretty and pointless with bells and whistles for 9year old girls. And what more it's dangerous to the health of a professional traders account. So much potential and such a waste, after struggling through update after update, gave up on it, went with OEC DOM execution and Ensign Charting on T1 connection. Never looked back, ever. Access to my full reviews on NT is on Ninja Trader - Order Entry and Management Software Product Review under the same user name (Deucalion) for anyone interested. I love NT support's response to every single problem from data to database to hangs to shut down problems to refresh problems to memory hogging to memory leaks....."re-install and reset". Nice Support guys.:mad:
 
Last edited:
Does the Ninja Trader market screener allow you to access the results and pass them in to the main C# program? I am looking at building the results from the market scanner into my main C# program I will be building? is this possible?

eg can I build a market screener then use this data automatically in my C# program????
 
what an earth? you can use VS to debug as well!?

Completely agree, Ninja is like Vista - bloated, pretty and pointless with bells and whistles for 9year old girls. And what more it's dangerous to the health of a professional traders account. So much potential and such a waste, after struggling through update after update, gave up on it, went with OEC DOM execution and Ensign Charting on T1 connection. Never looked back, ever. Access to my full reviews on NT is on Ninja Trader - Order Entry and Management Software Product Review under the same user name (Deucalion) for anyone interested. I love NT support's response to every single problem from data to database to hangs to shut down problems to refresh problems to memory hogging to memory leaks....."re-install and reset". Nice Support guys.:mad:
 
WRT to my last post on NT problems, since then in all fairness after un-installing NT and re-installing NT6.5.10 I have had no issues with system stability on either Vista or XP. Still, I await NT7.0 - and the ZenFire rocks. eSignal better watch out....quality of this data is very promising.
 
Well, since all fairness, since swithcing to trading "full time" this week (though in simulator mode) I start becoming more and more possed on Ninja.

Some incidents:
* Yesterday during the YM trading session I decided I wanted another graph - 233 tick. Opened it, 2-3 minutes Ninja was processing data. That per se is ok - but during this time all other windows became unresponsive INCLUDING ORDER MANAGEMENT. Yeah, right. I want a chart, I dont possibly want to cancel a market position during that time.
* Try overlaying two indicators with large different ranges - it will use one Y axis. Bad bad bad ;) I have one that calculates a trend indication based on some oscillators - so far the trend indication was easily -2 to 2 (strong down to strong up). The oscillators are +-100. Overlay impossible. More wasted space.
* Whoever programmed it never used many windows. Some have nice titles (like "YM 0609 05/06/2009 (89Tick)"). Well, crap out the date... but at the end I see what is there. Some... have titles like "Sim101" (DOM order management for YM.... on the Sim101 account) and "T & S" (TIme and Sales). If one has multiple of them.... finding them by the bottom window bar is not possibly. I accidentally minimized one DOM.... and had three Lines "Sim101" down in the window list to try to reopen ;)
* OK, simulated trading. I like it. Will move real in 3-4 weeks. Anyhow.... WHEN I am real, I still would possibly want to run some more simulated accounts to forward test different ideas of strategies... all ine separate accounts (because as it happens strategies restarted forget their P&L etc.).... Here comes the catch... Account management is really made to kill one. I just realized NOW how to create another one, but I still have no idea how to put a DOM on it. That points to multipel simulated accounts not being fully supported. Which sucks ;)
* I start being really possed on all the windows. Sorry to say. I get screenshots from Puretick using Tradestation... and I can see how they really manage to organize workspaces very well with... TABS. Yeah. Ninja having one window for everything and relying on Windows window management makes that slow. Nice that I can changea symbol on a chart... what about giving me.... Onw window, multiple "items" on it (dom, chart etc.) and multiple pages to put them. So I can change between layouts AND items fast... Well... dreaming.

In general, the more I work with it, the less I am impressed at the moment ;) I really hope v7 gets a LOT better here ;)
 
Well, since all fairness, since swithcing to trading "full time" this week (though in simulator mode) I start becoming more and more possed on Ninja.

Some incidents:
* Yesterday during the YM trading session I decided I wanted another graph - 233 tick. Opened it, 2-3 minutes Ninja was processing data. That per se is ok - but during this time all other windows became unresponsive INCLUDING ORDER MANAGEMENT. Yeah, right. I want a chart, I dont possibly want to cancel a market position during that time.
* Try overlaying two indicators with large different ranges - it will use one Y axis. Bad bad bad ;) I have one that calculates a trend indication based on some oscillators - so far the trend indication was easily -2 to 2 (strong down to strong up). The oscillators are +-100. Overlay impossible. More wasted space.
* Whoever programmed it never used many windows. Some have nice titles (like "YM 0609 05/06/2009 (89Tick)"). Well, crap out the date... but at the end I see what is there. Some... have titles like "Sim101" (DOM order management for YM.... on the Sim101 account) and "T & S" (TIme and Sales). If one has multiple of them.... finding them by the bottom window bar is not possibly. I accidentally minimized one DOM.... and had three Lines "Sim101" down in the window list to try to reopen ;)
* OK, simulated trading. I like it. Will move real in 3-4 weeks. Anyhow.... WHEN I am real, I still would possibly want to run some more simulated accounts to forward test different ideas of strategies... all ine separate accounts (because as it happens strategies restarted forget their P&L etc.).... Here comes the catch... Account management is really made to kill one. I just realized NOW how to create another one, but I still have no idea how to put a DOM on it. That points to multipel simulated accounts not being fully supported. Which sucks ;)
* I start being really possed on all the windows. Sorry to say. I get screenshots from Puretick using Tradestation... and I can see how they really manage to organize workspaces very well with... TABS. Yeah. Ninja having one window for everything and relying on Windows window management makes that slow. Nice that I can changea symbol on a chart... what about giving me.... Onw window, multiple "items" on it (dom, chart etc.) and multiple pages to put them. So I can change between layouts AND items fast... Well... dreaming.

In general, the more I work with it, the less I am impressed at the moment ;) I really hope v7 gets a LOT better here ;)



Net - almost everything you have said is so true, I can understand why you have been pissed cos of this......at one point or another I have gone through that (not with advanced ATM and multiple strategies et al but certainly with multiple windows etc etc.

Unfortunately my solution to this involved not using Ninja charts and execution together. Keeping system stable is critical - I opted for running Ensign charts (my gawd- are they a joy to run with their ridiculously low and efficient CPU load) and use OEC DOM for execution.

Ninja charts run on a separate computer with with some of the other indicators that are programmed into NT. Not an elegant solution - but it works for now. I don't trust Ninja enough to do both charts and ATM (and certainly not Autotrading) as well as execution all at the same time.

I doubt NT7 will be leaner though....the concept of simplification is lost in today's world.:(
 
Actually one can add to that:

Ninja is too damn stupid toseparate out orders given by strategies and by the user. Or to manage multiple different trades. Damn it. I go long, a strategy goes long.... I reverse... and whow, the strategy position also gets reversed. Just the strategy does not know it. I close out.... the Strategy happily sells it's open position to short it.... and I am short one.

Thanks. USELESS CRAP ;)

NT7... PLease. I don't care whether it is leaner (heck, make it fatter, tell it to people and make it a 64 bit process an all is fine -I have 8gb memory in my trading system at the moment, use them).

But fix all those bugs. PLEASE ;)
 
Top