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 frankthearm, Today, 09:08 AM
        6 responses
        24 views
        0 likes
        Last Post frankthearm  
        Started by maybeimnotrader, Yesterday, 05:46 PM
        3 responses
        23 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by adeelshahzad, Today, 03:54 AM
        5 responses
        32 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by stafe, 04-15-2024, 08:34 PM
        7 responses
        32 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by merzo, 06-25-2023, 02:19 AM
        10 responses
        823 views
        1 like
        Last Post NinjaTrader_ChristopherJ  
        Working...
        X