Mariner Backtesting - Basic Timer in service object
service.add_time_trigger()
Overview:In this lesson, you will learn to set up a basic timer. A basic timer will allow you to tell your script to be called at a time you specify.
Basic use case:If you need your script to be called at a specific time, use the add_time_trigger(). The add_time_trigger() function schedules the system to call the on_timer() method. add_time_trigger() is part of the service object.
Interface: add_time_trigger( timestamp, repeat_interval, timer_id)
Call on_timer() at 9:30
service.add_time_trigger( service.time(9,30))