Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Create my own snippets in NinjaScript editor?

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

    Create my own snippets in NinjaScript editor?

    Hi. I was doing some complex indicator work; requiring inner classes,
    so I said to myself "hey, this snippet stuff is nice; I can just use that
    mechanism to create my own inner class insertions".

    BUT, I couldn't find how to "create a new snippet" or "save selected
    text as snippet".

    Can't this be done? I guess I missed it. If it can't be done directly from
    the editor; maybe I can put it wherever "snippets" live in the filesystem,
    or maybe in the relational SDF database... just guessing here.

    THANKS FOR YOUR HELP!
    hyperscalper

    #2
    Hello Hyper,

    Thank you for your reply.

    It wouldn't be documented or supported, but they're located in C:\Program Files (x86)\NinjaTrader 8\bin\Custom\Snippet (assuming your Program Files are stored on your C: drive).

    It looks like you may be able to utilize Visual Studio with an add on to help you to create custom snippets. I located this publicly available designer and this video showing how to use it.

    https://visualstudiogallery.msdn.mic...B-FAEE50F68392

    http://channel9.msdn.com/Shows/Visua...-Code-Snippets

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Hi. Wow! Thank you so much for such helpful information.

      That's why I love all that you Guyz do, even though sometimes
      I may complain !!!

      hyperscalper

      Comment


        #4
        Hi. I installed NinjaTrader 8 under c:\ninja and you are absolutely right,
        that the bin\Custom\Snippet folder is under the root of the NinjaTrader installation
        folder; and your example uses the default location as the root or home folder.

        They are XML files, instead of plain text as I naively expected them to be...

        Thanks !!

        hyper
        Last edited by Hyper; 12-17-2020, 11:44 PM.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by jaybedreamin, Today, 05:56 PM
        0 responses
        3 views
        0 likes
        Last Post jaybedreamin  
        Started by DJ888, 04-16-2024, 06:09 PM
        6 responses
        18 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by Jon17, Today, 04:33 PM
        0 responses
        1 view
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        6 views
        0 likes
        Last Post Javierw.ok  
        Started by timmbbo, Today, 08:59 AM
        2 responses
        10 views
        0 likes
        Last Post bltdavid  
        Working...
        X