• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unit testing

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

    Unit testing

    Is there a practical way to unit test NinjaScript code (e.g. custom stratgies, indicators, add-ons)?

    Is any one using any harnesses that might work for this?

    #2
    Hello AnotherTrader,

    Thank you for the post.

    This item is likely going be best answered by the community members who have experience with this specific concept as this is not something our support would have direct information on.

    From my knowledge of unit testing, it would likely be possible to access NinjaScript objects from the test. However, in contrast to how unit testing works, it may not be directly possible to recreate accurately what the platform does with the objects you would be testing (indicator, strategy). There are many steps required in correctly instantiating a NinajScript object that happens internally so that portion of this concept would not easily be recreated in a test.

    If any other community members have further information on this topic, I am sure they will post their knowledge here as well.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Seneca, Today, 10:50 AM
    2 responses
    20 views
    0 likes
    Last Post Seneca
    by Seneca
     
    Started by antrux, Today, 09:47 AM
    2 responses
    11 views
    0 likes
    Last Post antrux
    by antrux
     
    Started by wtfalfred, Today, 06:04 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by guillembm, Today, 09:02 AM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_SergeyS  
    Started by Johnny Santiago, Today, 07:18 AM
    1 response
    18 views
    0 likes
    Last Post NinjaTrader_ChristopherD  
    Working...
    X