Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ChatGPT integration into Ninjascript Code Editor?

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

    #31
    Do It Yourself : How to Add Trailing Stops to any Strategy


    Eveything a user needs to know about trading with NinjaTrader + Todo lo que un usuario necesita saber sobre NinjaTrader | 2789 members
    Last edited by PaulMohn; 12-25-2023, 08:31 PM.

    Comment


      #32
      Your suggestion of integrating a ChatGPT-like mentor into the Ninjascript Code Editor is intriguing! AI has shown its potential in various fields, and it can certainly assist non-coders and even experienced developers in problem-solving.
      Such an AI assistant for business, like the one you mentioned, can be a game-changer. These tools can provide valuable insights, advice, and solutions, making complex tasks more manageable for everyone. Embracing AI in your development journey could indeed broaden your audience and enhance your business's growth. It's an exciting prospect for the Ninjatrader community!​
      Last edited by Essencent; 02-08-2024, 06:00 AM.

      Comment


        #33
        Originally posted by catinabag View Post
        I'm not a pro coder, and I only learned C# out of necessity due to Ninjatrader.

        I have actually gained some new, recent knowledge about C# from ChatGPT, and it's been very forthcoming in providing sample code that works. Especially if it involves something off the beaten NT path and yet simple for many but perhaps not to me (a non-coder), ChatGPT is a wonderful tool.

        ChatGPT is not an expert at Ninjascript, however, though it is familiar with it. So, it gets me most of the way there but not all the way.

        You might consider integrating a customized ChatGPT-like mentor into your editor that would provide good quality advice on solving common problems. This could be particularly useful for de-mystifying strategy development.
        Maybe I need something like python tutor for this?
        It's pretty clear the NT platform was designed to accomplish some fairly sophisticated things, and some AI assistant might broaden your audience and help your business grow.
        Hey there! I've dabbled a bit with ChatGPT for coding in general. While I haven't specifically used it for Ninjascript, I found it incredibly useful for getting the gist of complex code. Maybe consider breaking down your problems into smaller, more generic C# questions. ChatGPT might not be a Ninjascript guru, but it's pretty savvy with C# logic and structures. Have you tried approaching your project that way?


        Comment


          #34
          Originally posted by Essencent View Post
          Your suggestion of integrating a ChatGPT-like mentor into the Ninjascript Code Editor is intriguing! AI has shown its potential in various fields, and it can certainly assist non-coders and even experienced developers in problem-solving.
          Such an AI assistant for business, like the one you mentioned, can be a game-changer. These tools can provide valuable insights, advice, and solutions, making complex tasks more manageable for everyone. Embracing AI in your development journey could indeed broaden your audience and enhance your business's growth. It's an exciting prospect for the Ninjatrader community!​
          Thanks chatgpt, your insight was very helpful

          Comment


            #35
            This a tool for you guys take a look at: Quantwise Trading new NinjaTrader AI Coder (youtube.com)​ AI code generator for NT : Quantwise Research - NinjaTrader AI Code generator - v.0.3 (quantwisetrading.com)​​​
            mcosta72
            NinjaTrader Ecosystem Vendor - Quant-Wise

            Comment


              #36
              Can check also MQL4 documentation for general programming concepts not provided in Ninjatrader documentation:








              Function Description and Operator 'return':

              https://book.mql4.com/operators/function

              Passing Parameters:

              https://docs.mql4.com/basis/function/parameterpass


              Mql4 Programming Lesson 8 Using Functions and "The Switch"



              Function Call

              https://book.mql4.com/operators/call




              Last edited by PaulMohn; 10-23-2024, 12:04 PM.

              Comment


                #37
                Originally posted by QuantKey_Bruce View Post
                catinabag Speaking as someone who did his masters in data analytics and spent a lot of time with large language models like this one, I believe that while it's intriguing, you are not in reality further along working with ChatGPT output than you are just using Google or looking at examples on the forum or elsewhere online.

                What tools like this will do is give you bits and pieces of other code they've found online, but without any actual "thought" so it will tend to be combinations of NT7 code and NT8 code, be missing major, important things, contain lots of things that aren't material to the question, and generally be unlikely to compile or work. It might give you some ideas, but the ideas won't be as high quality as what you would get with Google or searching the forum, and you'll be sent on a lot of wild goose chases trying to figure out why it put some reference in there that will turn out to be completely made up. You'll have lots of little things you would have to fix in its output before you could even compile much less achieve your objectives, and by the time you figure out what all of those are, you could easily have written the thing in question.

                I have a prediction to make - if this is done, the forum will be flooded by posts saying "I'm 99% of the way there - can you help me fix this code?" and it will be all complete garbage output by a large language model that doesn't even make any sense and will waste a huge amount of everyone's time.

                I do have an idea, though, to suggest, that might work.

                NinjaTrader already has a strategy builder that outputs code that does work (or at least compiles and makes sense given what you asked it to do) - what about using ChatGPT or another large language model to interpret your English language request and set up strategy builder correctly for the query you asked for? That has the advantage that it will compile, and leaves you with something you can actually work with immediately and continue to improve.
                Bruce youre soooo wrong, Chat GPT has not only refined my Ninjatrader Skills, but also my C# and C++ skills as well. I did a double major in Computational Mathematics and minor in a Minor in Data Analytics too and ChatGPT wouldve made learning 10X faster in College, Unfortunately ChatGPT didnt come out until right after i graduated.

                Now Listen: Everyone learns different ways, but ChatGPT UNDISPUTABLY helps sift through 1000s or negligible stack overflow posts and zeros in on the right one in SECONDS.

                Conclusion:
                ChatGPT- USE IT OR GET LEFT BEHIND

                I dont know about integrating it to the editor though, its not that good, its more like Google On Steroids

                Comment


                  #38
                  It's come a good way forward since that post you quoted was made, even though it wasn't that long ago. Still, my main objection stands - the reason I made that post in the first place - which is that people kept asking ChatGPT to do this or that, and when it didn't work, posting what they had so far to the forum and asking for help. Typically, when they did this, they didn't even understand how to do the thing in question so they had no ability to recognize when ChatGPT was on the wrong track - this made helping them even harder than if they started with nothing.
                  Bruce DeVault
                  QuantKey Trading Vendor Services
                  NinjaTrader Ecosystem Vendor - QuantKey

                  Comment


                    #39
                    Originally posted by QuantKey_Bruce View Post
                    It's come a good way forward since that post you quoted was made, even though it wasn't that long ago. Still, my main objection stands - the reason I made that post in the first place - which is that people kept asking ChatGPT to do this or that, and when it didn't work, posting what they had so far to the forum and asking for help. Typically, when they did this, they didn't even understand how to do the thing in question so they had no ability to recognize when ChatGPT was on the wrong track - this made helping them even harder than if they started with nothing.
                    OMG sorry i didnt read the date.
                    I agree chatGPT has come a long way since then

                    But to add to your point, dont you also think we all started not knowing how to do something but then we figured it out and chatgpt can definetly help in that process.
                    Theres nothing better then getting something working FIRST then figuring out why what you did works

                    Comment


                      #40
                      I think it's one way to learn - but not a good way to post to the forum. My objection was that my time and the time of others was being completely wasted with them posting non-working scripts and asking what was wrong or if we could fix it - yet, what they posted had things like hallucinated functions and approaches that "sound good" to someone who has never seen NinjaScript before but weren't grounded in reality. Explaining what all ChatGPT had done wrong was too burdensome, and the users would have been better off to have read the documentation than to have done what they did.
                      Bruce DeVault
                      QuantKey Trading Vendor Services
                      NinjaTrader Ecosystem Vendor - QuantKey

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                      0 responses
                      666 views
                      0 likes
                      Last Post Geovanny Suaza  
                      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                      0 responses
                      376 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by Mindset, 02-09-2026, 11:44 AM
                      0 responses
                      110 views
                      0 likes
                      Last Post Mindset
                      by Mindset
                       
                      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                      0 responses
                      575 views
                      1 like
                      Last Post Geovanny Suaza  
                      Started by RFrosty, 01-28-2026, 06:49 PM
                      0 responses
                      580 views
                      1 like
                      Last Post RFrosty
                      by RFrosty
                       
                      Working...
                      X