title: How pivothigh() and pivotlow() function work on Tradingview Pinescript?
body: <p>I'm trying to rewrite a script to Python, but I can't figure out how pivothigh() and pivotlow() function work, and I can't find source code, I know how to calculate Pivot Points, but what leftbars and rightbars means in this two function? Please help.</p>