Skip to content
Algo Trade Analytics Docs

map - Pine Script Type

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.

  • Map objects are always of series form.
//@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")