Hartford CT, USA
Experience: Beginner
Platform: None
Trading: ES
Posts: 126 since Jan 2015
Thanks Given: 152
Thanks Received: 125
|
I briefly looked at the online reference for 'fold'. Two possibilities:
1) In fold, a 'do' keyword is not optional...your code is missing it however.
2) You've got the variable k being defined before the fold, it may not need to be? A def in thinkscript means a variable that holds a value for each bar, like a plot but with no visualization. So, that's completely different from a loop counter. Try deleting that line if it still complains.
|