Trying to add cumulative volume to zigzag indicator

Hello, I am trying to code an indicator that essentially takes the ZigZag indicator and adds up the cumulative volume for those swings. There were a few indicators posted on the NT Ecosystem but they are no longer available for download.

I’ve built similar things using zigzag: swing based volume profile, anchored vwap, delta, etc.

Zigzag isn’t the easiest thing to work with, but if you’re a coder yourself, the information you need is in the following page. You can figure it out with a bit of experimentation.

https://ninjatrader.com/support/helpGuides/nt8/zigzag.htm

I’m not a coder, im actually trying to have ChatGPT help me but its not going well

Not surprised at all. I get a lot of requests from people to fix their “AI generated” code.

I believe AI is going to kill us, not by unleashing cyborgs, but by making us much dumber by making us believe we are a lot smarter than what we really are by chasing shortcuts using AI, instead of learning to do things the right way.

AI is like a Formula 1 car. It’s nice and shiny and goes really fast. But you won’t get the same results with it if your driver is an 80 year old granny as opposed to Max Verstappen.

I wish you the best of luck with your AI coding adventure. If you give up and are willing to pay to get this done, send me a private message and we can discuss.

Good luck.

1 Like

Hehe. I think obtaining cumulative volume for zigzag would be very boring for a real programmer. With that said, vibe coding is much more productive when real programmers lend a hand sometimes. I miss NT support people and appreciate your tips and tricks you post here.

@zciw maybe you can take a look at my code I posted here:
https://forum.ninjatrader.com/forum/ninjatrader-8/indicator-development/1340254-anchored-vwap-with-volume-profile. If I recall correctly, one of the options was to calculate volume between zig-zag levels. Cut and paste it to AI and ask it what it does - maybe you can use some of it as a template.