[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Initial brush with NinjaTrader



PureBytes Links

Trading Reference Links


On Jul 23, 2008, at 6:30 PM, Shawn Jones wrote:

and I believe there's a TS->Ninja translator available somewhere.

The problem with the concept of a TS to Ninjascript translator is that Easylangauge is a pure "procedural" language and Ninjascript is a pure "object oriented" language. Any code that is worth translating is most likely going to be too complex for some automated mechanism to cross this giant software divide.

It's complex but not impossible. Please see this translation of the "ekam scalper" EL strategy (bottom) to NinjaScript (top).

http://groups.google.com/group/topdog/browse_thread/thread/d5fd8feac8e68331

The real issue is that EL automatically keeps track of previous values of variables, etc. and NinjaScript doesn't. As you can see from the translation above, quite a bit of C# code goes towards implementing this EL feature in NinjaTrader.

Also, the differences in how graphics are handled between the two packages is monumental.


This is why I decided not to handle graphics at all. The job is difficult as it is and implementing EL graphics in NinjaTrader (and other products) makes it monumental!

--
wagerlabs.com