Can this script be converted to TOS?
https://www.tradingview.com/script/dFtIKFxg-VWAP-ATRstop/
TOS doesn't let you re-use variables, or assign more than once, and my attempts to convert this always hit one error or another.
The other issue seems to also be using "stop" on line 23, when it is set again on line 25. I think Pine Script has the := to set immediately, but I think TOS works differently...
Anyone care to tackle this one, or have ideas how to work around this code construct in TOS?
https://www.tradingview.com/script/dFtIKFxg-VWAP-ATRstop/
TOS doesn't let you re-use variables, or assign more than once, and my attempts to convert this always hit one error or another.
The other issue seems to also be using "stop" on line 23, when it is set again on line 25. I think Pine Script has the := to set immediately, but I think TOS works differently...
Anyone care to tackle this one, or have ideas how to work around this code construct in TOS?