Tickscript help

@nathaniel i opened an issue.
can you address me to some similar code I will try to write it myself.
thanks