OPEN-SOURCE SCRIPT
Updated

Baseline (BL)

3 834
My baseline study lets you compare price to the previous days close. You can select the time frame for this baseline. I have included the ability to use a custom period length or your own anchor value. Custom anchor values are great for comparing the price to your cost average. The features I have included are bar color and background color.

I liked the idea of the 'baseline" chart but I didnt like the implementation.

Enjoy
Release Notes
plot.style_stepline_diamond kind of sucks
Release Notes
turns out you dont need to specify timeframe's options. Enjoy the extra anchor periods.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.