|
WU Trading Library 0.2.0
A backtesting and trading strategy library
|
WU_PairsTradingStrat implements a classic pairs trading strategy that trades the spread between two correlated assets (statistical arbitrage). More...
#include <strategies.h>
Data Fields | |
| struct WU_Strategy_ | base |
| WU_SMA | spread_ma |
| WU_MStDev | spread_std |
| double | threshold |
| double | ratio |
| WU_Side | last_signal |
WU_PairsTradingStrat implements a classic pairs trading strategy that trades the spread between two correlated assets (statistical arbitrage).
Strategy Logic:
Typical use cases:
Parameters:
Definition at line 79 of file strategies.h.
| struct WU_Strategy_ WU_PairsTradingStrat::base |
Definition at line 80 of file strategies.h.
| WU_Side WU_PairsTradingStrat::last_signal |
Definition at line 85 of file strategies.h.
| double WU_PairsTradingStrat::ratio |
Definition at line 84 of file strategies.h.
| WU_SMA WU_PairsTradingStrat::spread_ma |
Definition at line 81 of file strategies.h.
| WU_MStDev WU_PairsTradingStrat::spread_std |
Definition at line 82 of file strategies.h.
| double WU_PairsTradingStrat::threshold |
Definition at line 83 of file strategies.h.