Thinkscript variables

M

mikea59

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?
 
T

tomsk

Well-known member
VIP
The only place where ThinkScript permits a def value to be changed is within an if-then-else structure or a switch construct.
 

Similar threads

Top