Price cross

Hello
I have an strategy where I want to create a buy rule when price crosses a moving average. How can I perform this? I have checked and it seems there is not a function like that. Crossover etc only works with moving averages, not with prices, right?
Thanks

A crossover is a compound condition and is described by:

(SMA(10,0)>Close(0)) AND (SMA(10,1)<=Close(1))

in which the close today is higher than the average and that for yesterday is lower than or equal to the average. Decide which side you wish the equal condition.

Cheers,

Rich

Thanks!