4

I'm super new to TradingView Pine Script and I didn't find a proper reference for understanding the difference between the := and = operators.

Does anyone have a reference or description?

Thanks in advance

Reza Heidari
  • 1,192
  • 2
  • 18
  • 23

1 Answers1

10

= is used to declare and initialize variables := is used to assign values to variables after initialization, transforming them into mutable variables(any immutable variable).

follow this to know more in details about :=

abhinavsinghvirsen
  • 1,853
  • 16
  • 25