OPEN-SOURCE SCRIPT
Aktualisiert

Simple Moving Averages

43
In Pine Script v6, the standard method for plotting indicators is still the plot function, and it should be recognized. However, if you are getting an "Undeclared identifier 'plot'" error, double-check these points:​

Make sure your script is still using indicator() (not study()) at the top.

The script must not use indentation or syntax errors that break context.

Confirm Pine Script version is set correctly with //version=6.

Here is a fully corrected Pine Script v6 template for your moving averages scenario using
Versionshinweise
Make sure your script is still using indicator() (not study()) at the top.

The script must not use indentation or syntax errors that break context.

Confirm Pine Script version is set correctly with //version=6.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.