https://medium.com/@betashorts1998/no-more-drawing-how-to-detect-triangle-reversals-with-pine-script-logic-c43daf97e3a7