Skip to content
FAQ
Login
Register
Board Index
Pine Script Discussions
Pine Script Q&A
Unanswered topics
Active topics
FAQ
Search
Login
Register
why I have this error...
Post Reply
Print view
2 posts • Page
1
of
1
mart
Pine Script Rookie
Posts:
1
Joined:
March 12th, 2023
why I have this error...
Quote
Sun Mar 12, 2023 6:00 am
Mismatched input '|PE|' expecting ')'
//@version=5
bcolor = if (if val > 0 and val > val[1]
color.lime
else
color.green
if val < 0 and val > val[1])
color.red
else
color.maroon
Steve Burman
Moderator
Posts:
109
Joined:
January 13th, 2023
Re: why I have this error...
Quote
Mon Mar 13, 2023 10:18 pm
Mart,
You're missing the closing brackets on the line
bcolor = if (if val > 0 and val > val[1]
Display posts from previous:
All posts
1 day
7 days
2 weeks
1 month
3 months
6 months
1 year
Sort by
Author
Post time
Subject
Ascending
Descending
Post Reply
Print view
2 posts • Page
1
of
1
Return to “Pine Script Q&A”
Jump to
Welcome To The Pine Scripters Network!
News & Announcements
Introductions
Pine Script Discussions
Pine Script Q&A
Pine Script Scholars
Pine Script Masters
Show & Tell / Request
Share Your Scripts
Request Scripts
Trading Discussions
General Trading Discussions
Feedback & Support
Feedback & Suggestions
Request Support