urgent question please!!!

 

QUESTION: check for the syntax and how to write the code

if close_price -- open_price on bar1 >=3

if close _price -- open_price on bar2 >=3

 
if( Close[1]-Open[1] >= 3 ) ...;
if( Close[2]-Open[2] >= 3 ) ...;
Reason: