- Topics: 5
- Replies: 422
- Posts: 427
The last column in the Watchlist was blank as the scripts being referenced contained a time frame override, but the script functions themselves did not. In this scenario, if you applied the same script to the chart you’d see this causes the output to show only a value on Fridays. All other days are zero.
To resolve this, you need to use a time frame override on the Script() functions as well, once that is done the expected result is returned.
V1 = SCRIPT(Week(PERIODAMOUNT=1), SCRIPTNAME=ASCIntermediateTermRS) ;
V2 = SCRIPT(Week(PERIODAMOUNT=1), SCRIPTNAME=ASCLongTermRS) ;
//Average the variables
(V1 + V2)/2
Here is how it looks on the chart (original script) vs Watchlist (updated script).