Skip to content

Instantly share code, notes, and snippets.

View faiyaz7283's full-sized avatar

Faiyaz Haider faiyaz7283

  • New York
View GitHub Profile
@faiyaz7283
faiyaz7283 / watchlist_heatmap.pinescript
Last active June 26, 2025 21:07
Watchlist heatmap for Trading View
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © faiyaz7283
//@version=5
indicator(title="Watchlist Heatmap", shorttitle="WL Heatmap", overlay=true)
// ::Imports:: {
import faiyaz7283/tools/9 as tools
import faiyaz7283/printer/6 as prnt

Solution explained

Running-Solution

Given

  • Date_of_month = data collection day happens at the end of each month.
  • Column weeks['times'] contains 36 monthly dates from 3 previous years from date_of_month.
  • Column weeks['volumes'] contain amounts for each of those 36 months.
  • The column period represents some months.
  • Each search and date_of_month row has one of these three periods: 1, 3, 6