Plots the cumulative line of gaps to see extremes in psychology.
Plenty of Gap-UP's where the Open is higher than the previous bar's close get the market excited.
Plenty of Gap-DOWN's where the Open is lower than the previous bar's close get the market scared and depressed.
Look for the Gap Line to peak prior to an important peak in the market...
This is the bare bones of what I'm trying to achieve through pine script. The purpose of the script is to:
1. On a 15m chart, calculate and plot upper & lower Bollinger bands and simple moving average of 20 periods. (DONE)
2. On a new day, when the first 15m candle of a session forms, I want to check if a) the low of the new candle is outside the upper Bollinger...