/TV-key_levels

Draw horizonat lines at pre-defined key levels for the day.

Primary LanguageLua

Instructions to use the script

  1. Must be in full chart mode on the desired symbol (QQQ or SPX)
  2. Open PineScript editor Screenshot 2024-06-30 at 16 38 01
  3. Create new script by opening template new indicator
  4. Copy the contents of the script for the desired date into the window
Screenshot 2024-06-30 at 16 44 19 - The script does not update automatically and must be manually copied every day.

In order to process the post lines I use two tools:

  1. https://capitalizemytitle.com/tools/column-to-comma-separated-list/ With the following settings
Screenshot 2024-07-16 at 15 12 31

That generates a string array example:

'5695-5700 - key level. Strong. It is becoming more magnetic, we see as open interest here increases. can see it achieved soon.;5675;5667 - quants max. I think there is risk of this breaking today, so size smaller, but let’s see. ;5650;5640;5625;5615 - stronger supp;5609;5596-5600 - quants min;5590 ;5581;5570-5575'
  1. I process the array using a custom Python script in a online Jupyter notebook (on (https://colab.research.google.com): Tear_Levels.ipynb