|
tzutrader
A composable C++ backtesting library for trading strategies (experimental)
|
Trading signal generated by a strategy. More...
#include <defs.h>
Public Member Functions | |
| Signal (int64_t ts=0, Side s=Side::NONE, double p=0.0, double v=1.0) | |
| Construct a new Signal object. | |
Public Attributes | |
| int64_t | timestamp |
| Unix timestamp when signal was generated. | |
| Side | side |
| Trade direction (BUY/SELL/NONE). | |
| double | price |
| Price at which to execute the trade. | |
| double | volume |
| Volume or size multiplier (default: 1.0). | |
Trading signal generated by a strategy.
Represents a trading decision at a specific point in time. The timestamp represents a Unix timestamp (the scale - seconds, milliseconds, or microseconds - is determined by your data source).
|
inline |
| double tzu::Signal::price |
Price at which to execute the trade.
| int64_t tzu::Signal::timestamp |
Unix timestamp when signal was generated.
| double tzu::Signal::volume |
Volume or size multiplier (default: 1.0).