Looking for assistance creating an indicator

Anyone here proficient with programming indicators for NT8? Ive got a fairly complex indicator that I’ve been trying to get done through Chatgpt but every time it compiles it comes up with errors. ChatGPT tried about 25 times.

ChatGPT often missing out using references or simply just makes things up but some of the errors can be simply fixed.. I found that if you know the basics of NinjaScript you can work with it. But for more complex things it’s not so good OnRender, WPF etc..

I am coding illiterate! lol. Not to imply im stupid. Where would one start?

Just ask ChatGPT to explain the basics to you, it’s good at that.

1 Like

If you are coding illiterate (as you stated yourself), AI isn’t going to be extremely helpful. AI does a decent enough job creating code snippets for very small specific tasks. You would still need to massage it to do all the things you want and build the top level. AI isn’t going to give you the complete code for what you want if it’s complex.

For example, let’s say you built an indicator that runs some calculations and you want to write the results to a file and don’t know how. AI can give you the code snippet to write a multi-line string to an output file and it does a pretty decent job with that. I use Grok regularly for such small tasks. But I end up spending a fair amount of time modifying AI provided code to get it to do exactly what I want.

To help you with your current project, maybe you can break down your indicator to small pieces and ask specific questions about how to accomplish a specific task. Then maybe people here can guide you through or offer code snippets. Otherwise, it’s hard to know what you’re trying to do and offer any meaningful help.

My 2 cents.

What is complex? You need to at least know some basics. ChatGPT gets things wrong all the time. If you don’t at least understand the basics of what it is doing then you’ll possibly be using incorrect code.

Thank you! for the valuable info. Im doing exaclly that and running tests at each point. Perhaps with repetition ill even learn to code. :man_shrugging:

ChatGPT is good to discuss technical aspects, data structures.
Claude Sonnet and Gemini 2.5 Pro are good with coding.

If the indicator is complex, get the AI to code simplified indicator first than add features after fully discussing all the aspects before hand. Sometimes it helps to start with fresh context.

If you are getting compile errors - feed them to AI. If AI makes incompatible code - provide it with docs.

For runtime errors - you can describe the problem, ask it to add debug to console (which you can feed it to AI) or have AI analyze the screenshot.