algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
Loading...
Searching...
No Matches
algotradelib::strategy::SessionEdge Struct Reference

Whether a bar opens or closes its session, as SessionEdges::next decided it. More...

#include <algotradelib/src/strategy/event.hpp>

Public Attributes

bool opens_ {false}
 The bar opens its session: the first bar of its market-local date that reaches into the session, ending after the open (or a single price at it) and starting before the close.
bool closes_ {false}
 The bar closes its session: the first bar of its date whose period holds the close, starting at or before it and ending at or after it.
bool point_ {false}
 The bar's period is empty: it is one price at one instant, such as a daily bar stamped at the open.

Detailed Description

Whether a bar opens or closes its session, as SessionEdges::next decided it.

Definition at line 417 of file event.hpp.

Member Data Documentation

◆ closes_

bool algotradelib::strategy::SessionEdge::closes_ {false}

The bar closes its session: the first bar of its date whose period holds the close, starting at or before it and ending at or after it.

Definition at line 427 of file event.hpp.

Referenced by algotradelib::strategy::SessionEdges::next().

◆ opens_

bool algotradelib::strategy::SessionEdge::opens_ {false}

The bar opens its session: the first bar of its market-local date that reaches into the session, ending after the open (or a single price at it) and starting before the close.

Definition at line 422 of file event.hpp.

Referenced by algotradelib::strategy::SessionEdges::next().

◆ point_

bool algotradelib::strategy::SessionEdge::point_ {false}

The bar's period is empty: it is one price at one instant, such as a daily bar stamped at the open.

Definition at line 429 of file event.hpp.

Referenced by algotradelib::strategy::SessionEdges::next().


The documentation for this struct was generated from the following file: