When AI Gets Pine Script Wrong

Recently, TradingView released the new request.footprint() feature in Pine Script v6.

I asked ChatGPT to compute the POC of the current bar.

First result?
Pine v5. Fake volume distribution. Completely useless approximation.

Then I mentioned the new footprint feature.
It tried again. Closer — but still wrong. Incorrect function signature. Wouldn’t compile.

Only after I provided the official documentation did it generate the correct implementation.

Here’s the lesson:

AI is powerful — but it lags behind new features.
If you don’t understand Pine deeply, you won’t know when it’s hallucinating.

If you do understand it, AI becomes a productivity multiplier.

In my upcoming AI + Pine Script course, I’ll show you:

• How to prompt AI properly
• How to feed it documentation
• How to debug hallucinated code
• How to adapt instantly when new features drop

The edge isn’t using AI.

It’s knowing how to guide it.

Become An AI Expert In Just 5 Minutes

If you’re a decision maker at your company, you need to be on the bleeding edge of, well, everything. But before you go signing up for seminars, conferences, lunch ‘n learns, and all that jazz, just know there’s a far better (and simpler) way: Subscribing to The Deep View.

This daily newsletter condenses everything you need to know about the latest and greatest AI developments into a 5-minute read. Squeeze it into your morning coffee break and before you know it, you’ll be an expert too.

Subscribe right here. It’s totally free, wildly informative, and trusted by 600,000+ readers at Google, Meta, Microsoft, and beyond.