A method called on every incoming market tick. The documentation: “OnTick() – This method is triggered on each incoming tick… you can program entry/exit conditions or other functions that need to run on the arrival of a new tick.”. Note that running heavy logic in OnTick
can be CPU-intensive; you may prefer OnBar
if per-bar timing is sufficient.