Hello, I am writing a code to plot a difference in differences, I have the following:

twoway (scatter price_index Year if Treatment == 1, msymbol(O) mcolor(blue)) ////
(scatter price_index Year if Treatment == 0, msymbol(O) mcolor(red)) ////
legend(label(1 "Treatment") label(2 "Control")) ///
ytitle("Price index") xtitle("Year") ///
vertical(2021, lpattern(dash)) ///
title("Price Index Chart by Treatment")

But when I run the code I get the error ") required". Honestly, I can't see where I'm missing the ")". I would really appreciate your help.

Regards.