The "bgcolor" function does not have an argument with the name "transp" fix this error…
- User
The "bgcolor" function does not have an argument with the name "transp"
fix this error in left script
Assistant
You're absolutely right — in Pine Script v6, the
bgcolor()function no longer accepts thetranspargument directly. Instead, transparency is now handled via thecolorobject, where you define the color with transparency usingcolor.new().
✅ Fix: Replace this line:
pinescriptbgcolor(bg_color)✅ With this updated version:
pinescriptbgcolor(color=bg_color)
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.