• LIMITED TIME OFFER: use coupon code PRIMEDAY (case sensitive) at checkout to save $50 off VIP membership (down to $149 / year). Valid through Tuesday 6/22. Biggest discount this year!

Thinkscript variables


New member
I'm trying to port a TradingView script to ThinkScript and really struggling. In Thinkscript you can't update a variable once you set the value. This can be quite a challenge to deal with for complex scripts. Or maybe I'm just missing something. Does anyone have any tips or tricks or patterns to workaround this?