Art
You can find an example of how to do it in this post. FYI I found the thread by searching the Bulletin Board for average* alert*.
In this example the alerts are set to trigger every time the averages cross even if that occurs multiple times (in the same direction only) intrabar.
If you need the alerts to trigger only at the completion of a bar then run a search as indicated above and you will find several other examples.
Also you may want to consider using the Formula Wizard to create your own script as that tool makes it a very easy task to write formulas of this kind
Alex
Comment