While I understand the basics of thinkscript and have converted some other simple scripts from pinescript to thinkscript this one is beyond me. Would love some help converting i