I would like to get the following code 
 
Buy = Ref( EMA( Close, 3 ), -1 ) > Ref( MA( Close, 9 ), -1 )
AND Cross( EMA( Close, 9 ), EMA( Close, 3 ) ) 
AND LinRegSlope(C,30)<0 AND Ref(Open,0) > Ref (Close,-1);
 
to exit the next day or at 2% profit. How do I amend
it achieve this goal.
 
 
Kind Regards.