There are two methods that can be called by robots and contain the main logic of your trading strategy. The OnBar() and theOnTick() method.

OnBar()

By placing your code-logic inside the OnBar method, your robot is getting called once, at the close of every bar.

OnTick()

By placing your code-logic inside the OnTick method, your robot is getting called once, on every incoming tick. The OnTick method is considered CPU intensive.