ALERTIF - Replacing C with H

How can i make "alertif " work when price crosses a specfic price (not wait for close ),i replaced C with H but it doesn't work
`Buy= Cross(C,10757.00) AND Name()=="NIFTY-I.NFO";

AlertIf( Buy,"SOUND c:\windows\media\ding.wav","Audio alert", 2 ,2);`

@Niftyalpha,

Did you have a look at "using formula-based alerts" tutorial in the "AmiBroker User's Guide"?

Please show the code that you actually tried, but didn't work.

Also, please use the following guidelines on how to submit a post - it'll be easier for other readers to understand your question/code and respond more appropriately: