OnStart
event) and then stop. Scripts cannot handle OnTick()
events. They are typically used for one-time tasks, such as placing a preset trade or closing all orders. For example, a “Close All” script might loop through open orders and close them in one run.