map - Pine Script Type
Overview
Section titled “Overview”Keyword used to explicitly declare the “map” type of a variable or a parameter. Map objects (or IDs) can be created with the map.new<type,type> function.
Remarks
Section titled “Remarks”- Map objects are always of series form.
Example
Section titled “Example”//@version=6indicator("map", overlay=true)map<int, float> a = naa := map.new<int, float>()a.put(bar_index, close)label.new(bar_index, a.get(bar_index), "Current close")