Crypto backtesting
Loading...
Searching...
No Matches
ohlc.h File Reference
#include "core.h"
#include <cassert>
Include dependency graph for ohlc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  fx
 Core routines that don't depend on any other fx routines.

Functions

constexpr auto fx::to_time (std::ranges::range auto &&xs)
 Get time of a data point.
constexpr auto fx::to_open (std::ranges::range auto &&xs)
 Get open price for a data point.
constexpr auto fx::to_high (std::ranges::range auto &&xs)
 Get high price for a data point.
constexpr auto fx::to_low (std::ranges::range auto &&xs)
 Get low price for a data point.
constexpr auto fx::to_close (std::ranges::range auto &&xs)
 Get close price for a data point.

Variables

constexpr auto fx::to_volume
 Get total volume for a data point.