CS3121
error A request cannot sit inside another request’s expression.
#What it means
A request expression cannot contain another request. In this version, a request runs one level deep.
#Typical cause
request.tf(..., request.tf(...)), or a function with a request called inside another request.
#How to fix it
Make each request separately at the top level and combine the results there.
#Example
//@chartscript 1
indicator("Weekly close", { overlay: true })
plot(request.tf("1D", request.tf("1W", close)))Fixed
//@chartscript 1
indicator("Weekly close", { overlay: true })
plot(request.tf("1W", close))