Custom trading system

How can I convert a mechanical trading strategy into code on Sierra Chart?

Hi.
Hope this video I found a little while back helps.