Forum

Help with alert

Im am trying to write an alert to make a noise when price crosses SMA 100 from below and closes above it and similarly when price crosses SMA 100 from above and closes below it. I am not a programmer but i did some reading and came up with this (see below) but is doesnt work. can any one help me