Trading System API  3.0
Library for Simulating and Deploying Trading and Investment Strategies
tsa::time_point_stream_daily Class Reference

Class to dynamically generate daily intervals for strategy scheduling purposes. Instances should be declared as a strategy member and passed to strategy::schedule_with() as part of strategy::on_start(). More...

#include <TSAIntraday.h>

Inheritance diagram for tsa::time_point_stream_daily:
tsa::time_point_stream tsa::object

Public Member Functions

virtual date_time next_timestamp (const date_time &currentTimestamp) override
 Returns the next timestamp when given the current_timestamp. To be overriden by a derived classes. More...
 
- Public Member Functions inherited from tsa::object
 object (void)
 Constructor.
 
virtual ~object (void)
 Destructor.
 
const char * class_name (void) const
 Returns the class name as returned by the 'Real Time Type Information' (RTTI) mechanism. More...
 
bool has_same_class_as (const object &other) const
 Returns true if self has the same type as other object. More...
 

Detailed Description

Class to dynamically generate daily intervals for strategy scheduling purposes. Instances should be declared as a strategy member and passed to strategy::schedule_with() as part of strategy::on_start().

Member Function Documentation

date_time tsa::time_point_stream_daily::next_timestamp ( const date_time current_timestamp)
overridevirtual

Returns the next timestamp when given the current_timestamp. To be overriden by a derived classes.

Parameters
current_timestampThe current timestamp.
Returns
A date_time.

Implements tsa::time_point_stream.