Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Ninja vs TS...some minor issues

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Ninja vs TS...some minor issues

    This is from a friend of mine that has played with Ninja far more than I have:



    Hi LP, these are just my first impressions. There are some things about the interface that could be made smoother. Like, on TS I can drag indicators around with the mouse, and seem to have more control over how they are scaled, and how scales are combined.


    1) In TS, you can provide arbitrary formulas as inputs… so I can make an indicator with 2 inputs and feed it (Close*0.5) and MedianPrice. In Ninja, it appears your inputs are limited to numbers and bools. So, for some indicators I’d have to devise a “input 1 for Close, 2 for MedianPrice, 3 for …” At least they let you chose one price “Input[]” from the configuration screen. But, that’s just one, and you have to hope the indicator is written to use Input[] rather than Close[].


    2) While c# is way more modern and powerful than easylanguage, there is something to be said for a more custom language:
    In TS, their language engine can usually figure out how many bars of data you need to reference, and set you up accordingly. In Ninja, you get exceptions if you don’t manage how many bars of history are available manually.


    3) In TS, all variables you use can transparently support historical references. In ninja, you must make IDataSeries containers for past data you want to reference.


    4) TS and ninja both pollute a global namespace. I was hopeful that ninja would use C# to improve on TS this way, but they didn’t. Ninja inserts wrapper code around your indicators to force them all into the same namespace (as functions in the same base class). I think they could have used reflection to keep the names separated.

    #2
    Thanks for your comments.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    168 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    323 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    248 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    350 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    179 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Working...
    X