Trading tech

Please let me the code for PSAR with buy and sell when it open 1st time.

As per above requirement 

Buy Script:

CROSSOVER(CLOSE, PSAR(0.02, 0.2)) = TRUE

Sell Script:

CROSSOVER(PSAR(0.02, 0.2),CLOSE) = TRUE

will it give alert when PSAR start trending , i mean when it show the 1st tik , because i do see 1st tick when second candel is already started .

the code is giving lots of singnals in opposit direction , trend is up based on PSAR but yet it is giving sell signals … I need code when PSAR gives 1st trend signal .