|
HKU_API std::ostream & | operator<< (std::ostream &os, const Block &blk) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const BaseInfoDriver &driver) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const BaseInfoDriverPtr &driver) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const BlockInfoDriver &driver) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const BlockInfoDriverPtr &driver) |
|
map< string, BaseInfoDriverPtr > | default_baseinfo_driver () |
|
map< string, BlockInfoDriverPtr > | default_block_driver () |
|
map< string, KDataDriverPtr > | default_kdata_driver () |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const KDataDriver &driver) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const KDataDriverPtr &driver) |
|
HKU_API std::ostream & | operator<< (std::ostream &out, const Datetime &d) |
|
DatetimeList HKU_API | getDateRange (const Datetime &start, const Datetime &end) |
| 获取指定范围的日历日期列表[start, end),仅仅是日,不含时分秒 更多...
|
|
bool | operator== (const Datetime &, const Datetime &) |
|
bool | operator!= (const Datetime &, const Datetime &) |
|
bool | operator> (const Datetime &, const Datetime &) |
|
bool | operator< (const Datetime &, const Datetime &) |
|
bool | operator>= (const Datetime &, const Datetime &) |
|
bool | operator<= (const Datetime &, const Datetime &) |
|
void | hikyuu_init (const string &config_file_name) |
| Hikyuu核心初始化,客户端必须在程序入口处调用 更多...
|
|
Stock | getStock (const string &querystr) |
| 获取Stock,目的是封装StockManager,客户端不直接使用StockManager对象 更多...
|
|
string | getVersion () |
| 获取Hikyuu当前版本号 更多...
|
|
Indicator HKU_API | AMA (int n=10, int fast_n=2, int slow_n=30) |
| 佩里.J 考夫曼(Perry J.Kaufman)自适应移动平均,参见《精明交易者》(2006年 广东经济出版社) 更多...
|
|
Indicator HKU_API | AMA (const Indicator &indicator, int n=10, int fast_n=2, int slow_n=30) |
| 佩里.J 考夫曼(Perry J.Kaufman)自适应移动平均,参见《精明交易者》(2006年 广东经济出版社) 更多...
|
|
Indicator HKU_API | ATR (int n=14) |
| 平均真实波幅(Average True Range) 更多...
|
|
Indicator HKU_API | ATR (const Indicator &data, int n=14) |
| 平均真实波幅(Average True Range) 更多...
|
|
Indicator HKU_API | CVAL (double value=0.0, size_t len=0, size_t discard=0) |
| 创建一个指定长度的常数指标 更多...
|
|
Indicator HKU_API | CVAL (const Indicator &ind, double value=0.0) |
| 创建一个常数指标,其长度和输入的ind相同,其值固定为指定value 更多...
|
|
Indicator HKU_API | DIFF () |
| 差分指标,即data[i] - data[i-1] 更多...
|
|
Indicator HKU_API | DIFF (const Indicator &data) |
| 差分指标,即data[i] - data[i-1] 更多...
|
|
Indicator HKU_API | EMA (int n=22) |
| 指数移动平均线(Exponential Moving Average) 更多...
|
|
Indicator HKU_API | EMA (const Indicator &data, int n=22) |
| 指数移动平均线(Exponential Moving Average) 更多...
|
|
Indicator HKU_API | HHV (int n=20) |
| N日内最高价 更多...
|
|
Indicator HKU_API | HHV (const Indicator &ind, int n=20) |
| N日内最高价 更多...
|
|
HKU_API Indicator | IND_AND (const Indicator &, const Indicator &) |
| 对两个Indicator执行与操作 更多...
|
|
HKU_API Indicator | IND_AND (const Indicator &ind, price_t val) |
|
HKU_API Indicator | IND_AND (price_t val, const Indicator &ind) |
|
HKU_API Indicator | IND_OR (const Indicator &, const Indicator &) |
| 对两个Indicator执行或操作 更多...
|
|
HKU_API Indicator | IND_OR (const Indicator &ind, price_t val) |
|
HKU_API Indicator | IND_OR (price_t val, const Indicator &ind) |
|
Indicator HKU_API | KDATA () |
| 包装KData成Indicator,用于其他指标计算 更多...
|
|
Indicator HKU_API | KDATA (const KData &) |
|
Indicator HKU_API | KDATA (const Indicator &) |
|
Indicator HKU_API | OPEN () |
| 包装KData的开盘价成Indicator,用于其他指标计算 更多...
|
|
Indicator HKU_API | OPEN (const KData &) |
|
Indicator HKU_API | OPEN (const Indicator &) |
|
Indicator HKU_API | HIGH () |
| 包装KData的最高价成Indicator,用于其他指标计算 更多...
|
|
Indicator HKU_API | HIGH (const KData &) |
|
Indicator HKU_API | HIGH (const Indicator &) |
|
Indicator HKU_API | LOW () |
| 包装KData的最低价成Indicator,用于其他指标计算 更多...
|
|
Indicator HKU_API | LOW (const KData &) |
|
Indicator HKU_API | LOW (const Indicator &) |
|
Indicator HKU_API | CLOSE () |
| 包装KData的收盘价成Indicator,用于其他指标计算 更多...
|
|
Indicator HKU_API | CLOSE (const KData &) |
|
Indicator HKU_API | CLOSE (const Indicator &) |
|
Indicator HKU_API | AMO () |
| 包装KData的成交金额成Indicator,用于其他指标计算 更多...
|
|
Indicator HKU_API | AMO (const KData &) |
|
Indicator HKU_API | AMO (const Indicator &) |
|
Indicator HKU_API | VOL () |
| 包装KData的成交量成Indicator,用于其他指标计算 更多...
|
|
Indicator HKU_API | VOL (const KData &) |
|
Indicator HKU_API | VOL (const Indicator &) |
|
Indicator HKU_API | KDATA_PART (const string &kpart) |
| 根据字符串选择返回KDATA/OPEN/HIGH/LOW/CLOSE/AMO/VOL 更多...
|
|
Indicator HKU_API | KDATA_PART (const KData &kdata, const string &kpart) |
|
Indicator HKU_API | KDATA_PART (const Indicator &kdata, const string &kpart) |
|
Indicator HKU_API | LLV (int n=20) |
| N日内最低价 更多...
|
|
Indicator HKU_API | LLV (const Indicator &ind, int n=20) |
| N日内最低价 更多...
|
|
Indicator HKU_API | MA (const Indicator &data, int n=22, const string &type="SMA") |
| 移动平均 更多...
|
|
Indicator HKU_API | MA (int n, const string &type) |
|
Indicator HKU_API | MACD (int n1=12, int n2=26, int n3=9) |
| MACD平滑异同移动平均线 更多...
|
|
Indicator HKU_API | MACD (const Indicator &data, int n1=12, int n2=26, int n3=9) |
| MACD平滑异同移动平均线 更多...
|
|
Indicator HKU_API | POS (const Block &block, KQuery query, SignalPtr sg) |
|
Indicator HKU_API | PRICELIST (const PriceList &, int discard=0) |
| 包装PriceList成Indicator 更多...
|
|
Indicator HKU_API | PRICELIST (const Indicator &ind, int result_index=0) |
| 将某指标转化为PRICELIST 更多...
|
|
Indicator HKU_API | PRICELIST (int result_index=0) |
| 将某指标转化为PRICELIST 更多...
|
|
Indicator HKU_API | PRICELIST (price_t *data, size_t total) |
| 包装 price_t 数组成Indicator,用于计算其他指标 更多...
|
|
Indicator HKU_API | REF (int n) |
| REF 向前引用 (即右移) 引用若干周期前的数据。 用法: REF(X,A) 引用A周期前的X值。 更多...
|
|
Indicator HKU_API | REF (const Indicator &ind, int n) |
| REF 向前引用 (即右移) 引用若干周期前的数据。 用法: REF(X,A) 引用A周期前的X值。 更多...
|
|
Indicator HKU_API | SAFTYLOSS (const Indicator &data, int n1=10, int n2=3, double p=2.0) |
| 亚历山大 艾尔德安全地带止损 更多...
|
|
Indicator HKU_API | SAFTYLOSS (int n1=10, int n2=3, double p=2.0) |
| 亚历山大 艾尔德安全地带止损 更多...
|
|
Indicator HKU_API | SMA (const Indicator &data, int n=22) |
| 简单移动平均 更多...
|
|
Indicator HKU_API | SMA (int n=22) |
|
Indicator HKU_API | STDEV (int n=10) |
| 计算N周期内样本标准差 更多...
|
|
Indicator HKU_API | STDEV (const Indicator &data, int n=10) |
| 计算N周期内样本标准差 更多...
|
|
Indicator HKU_API | VIGOR (const KData &kdata, int n=2) |
| 亚历山大 艾尔德力度指数 更多...
|
|
Indicator HKU_API | VIGOR (const Indicator &ind, int n=2) |
|
Indicator HKU_API | VIGOR (int n=2) |
|
Indicator HKU_API | WEAVE (const Indicator &ind) |
| 将ind的结果组合在一起放在一个Indicator中。如ind = WEAVE(ind1); ind=ind(ind2)。 则此时ind包含两个结果,result1为ind1的数据,result2为ind2的数据 更多...
|
|
Indicator HKU_API | WEAVE () |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const Indicator &indicator) |
|
HKU_API Indicator | operator+ (const Indicator &, const Indicator &) |
| Indicator实例相加,两者的size必须相等,否在返回空 更多...
|
|
HKU_API Indicator | operator+ (const Indicator &ind, price_t val) |
|
HKU_API Indicator | operator+ (price_t val, const Indicator &ind) |
|
HKU_API Indicator | operator- (const Indicator &, const Indicator &) |
| Indicator实例相减,两者的size必须相等,否在返回空 更多...
|
|
HKU_API Indicator | operator- (const Indicator &ind, price_t val) |
|
HKU_API Indicator | operator- (price_t val, const Indicator &ind) |
|
HKU_API Indicator | operator* (const Indicator &, const Indicator &) |
| Indicator实例相乘,两者的size必须相等,否在返回空 更多...
|
|
HKU_API Indicator | operator* (const Indicator &ind, price_t val) |
|
HKU_API Indicator | operator* (price_t val, const Indicator &ind) |
|
HKU_API Indicator | operator/ (const Indicator &, const Indicator &) |
| Indicator实例相除,两者的size必须相等,否在返回空 更多...
|
|
HKU_API Indicator | operator/ (const Indicator &ind, price_t val) |
|
HKU_API Indicator | operator/ (price_t val, const Indicator &ind) |
|
HKU_API Indicator | operator== (const Indicator &, const Indicator &) |
| Indicator实例相等,两者的size必须相等,否在返回空 更多...
|
|
HKU_API Indicator | operator== (const Indicator &ind, price_t val) |
|
HKU_API Indicator | operator== (price_t val, const Indicator &ind) |
|
HKU_API Indicator | operator!= (const Indicator &, const Indicator &) |
| Indicator实例不相等,两者的size必须相等,否在返回空 更多...
|
|
HKU_API Indicator | operator!= (const Indicator &ind, price_t val) |
|
HKU_API Indicator | operator!= (price_t val, const Indicator &ind) |
|
HKU_API Indicator | operator> (const Indicator &, const Indicator &) |
| Indicator实例大于操作,两者的size必须相等,否在返回空 更多...
|
|
HKU_API Indicator | operator> (const Indicator &ind, price_t val) |
|
HKU_API Indicator | operator> (price_t val, const Indicator &ind) |
|
HKU_API Indicator | operator< (const Indicator &, const Indicator &) |
| Indicator实例小于操作,两者的size必须相等,否在返回空 更多...
|
|
HKU_API Indicator | operator< (const Indicator &ind, price_t val) |
|
HKU_API Indicator | operator< (price_t val, const Indicator &ind) |
|
HKU_API Indicator | operator>= (const Indicator &, const Indicator &) |
| Indicator实例大于操作,两者的size必须相等,否在返回空 更多...
|
|
HKU_API Indicator | operator>= (const Indicator &ind, price_t val) |
|
HKU_API Indicator | operator>= (price_t val, const Indicator &ind) |
|
HKU_API Indicator | operator<= (const Indicator &, const Indicator &) |
| Indicator实例小于操作,两者的size必须相等,否在返回空 更多...
|
|
HKU_API Indicator | operator<= (const Indicator &ind, price_t val) |
|
HKU_API Indicator | operator<= (price_t val, const Indicator &ind) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const IndicatorImp &imp) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const IndicatorImpPtr &imp) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const Operand &op) |
|
HKU_API Operand | operator+ (const Operand &op, price_t val) |
|
HKU_API Operand | operator+ (price_t val, const Operand &op) |
|
HKU_API Operand | operator- (const Operand &op, price_t val) |
|
HKU_API Operand | operator- (price_t val, const Operand &op) |
|
HKU_API Operand | operator* (const Operand &op, price_t val) |
|
HKU_API Operand | operator* (price_t val, const Operand &op) |
|
HKU_API Operand | operator/ (const Operand &op, price_t val) |
|
HKU_API Operand | operator/ (price_t val, const Operand &op) |
|
HKU_API Operand | operator> (const Operand &op, price_t val) |
|
HKU_API Operand | operator> (price_t val, const Operand &op) |
|
HKU_API Operand | operator< (const Operand &op, price_t val) |
|
HKU_API Operand | operator< (price_t val, const Operand &op) |
|
HKU_API Operand | operator>= (const Operand &op, price_t val) |
|
HKU_API Operand | operator>= (price_t val, const Operand &op) |
|
HKU_API Operand | operator<= (const Operand &op, price_t val) |
|
HKU_API Operand | operator<= (price_t val, const Operand &op) |
|
HKU_API Operand | operator== (const Operand &op, price_t val) |
|
HKU_API Operand | operator== (price_t val, const Operand &op) |
|
HKU_API Operand | operator!= (const Operand &op, price_t val) |
|
HKU_API Operand | operator!= (price_t val, const Operand &op) |
|
HKU_API Operand | OP_AND (const Operand &op1, const Operand &op2) |
|
HKU_API Operand | OP_AND (const Operand &op, price_t val) |
|
HKU_API Operand | OP_AND (price_t val, const Operand &op) |
|
HKU_API Operand | OP_OR (const Operand &op1, const Operand &op2) |
|
HKU_API Operand | OP_OR (const Operand &op, price_t val) |
|
HKU_API Operand | OP_OR (price_t val, const Operand &op) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const KData &kdata) |
| 输出KData信息 更多...
|
|
KQuery | KQueryByIndex (hku_int64 start=0, hku_int64 end=Null< hku_int64 >(), KQuery::KType dataType=KQuery::DAY, KQuery::RecoverType recoverType=KQuery::NO_RECOVER) |
| 构造按索引方式K线查询,范围[start, end) 更多...
|
|
KQuery | KQueryByDate (const Datetime &start=Datetime::min(), const Datetime &end=Null< Datetime >(), KQuery::KType dataType=KQuery::DAY, KQuery::RecoverType recoverType=KQuery::NO_RECOVER) |
| 构造按日期方式K线查询,范围[startDatetime, endDatetime) 更多...
|
|
HKU_API std::ostream & | operator<< (std::ostream &os, const KQuery &query) |
| 输出KQuery信息,如:KQuery(start, end, queryType, kType, recoverType) 更多...
|
|
bool | operator== (const KQuery &, const KQuery &) |
|
bool | operator!= (const KQuery &, const KQuery &) |
|
HKU_API std::ostream & | operator<< (std::ostream &, const KRecord &) |
| 输出KRecord信息,如:KRecord(datetime, open, high, low, close, transAmount, count) 更多...
|
|
bool HKU_API | operator== (const KRecord &d1, const KRecord &d2) |
| 比较两个KRecord是否相等,一般仅测试时使用 更多...
|
|
LOG_LEVEL | get_log_level () |
| 获取当前日志级别 更多...
|
|
void | set_log_level (LOG_LEVEL) |
| 设置日志级别 更多...
|
|
void | init_logger (const std::string &configue_name) |
| 初始化 LOGGER 更多...
|
|
HKU_API std::ostream & | operator<< (std::ostream &, const MarketInfo &) |
| 输出市场信息,如: MarketInfo(SH, 上海证劵交易所, 上海市场, 000001, 2011-Dec-06 00:00:00) 更多...
|
|
bool | operator== (const MarketInfo &m1, const MarketInfo &m2) |
| 相等比较 更多...
|
|
bool | operator!= (const MarketInfo &m1, const MarketInfo &m2) |
| 不等比较 更多...
|
|
HKU_API std::ostream & | operator<< (std::ostream &os, const Stock &stock) |
| 输出Stock信息,如:Stock(market, code, name, type, valid, startDatetime, lastDatetime) 更多...
|
|
bool | operator< (const Stock &s1, const Stock &s2) |
|
Parameter | default_preload_param () |
|
Parameter | default_other_param () |
|
HKU_API std::ostream & | operator<< (std::ostream &, const StockTypeInfo &) |
| 输出证券类型信息,如:StockTypeInfo(type, description, tick, precision, minTradeNumber, maxTradeNumber) 更多...
|
|
bool | operator== (const StockTypeInfo &m1, const StockTypeInfo &m2) |
| 相等比较 更多...
|
|
bool | operator!= (const StockTypeInfo &m1, const StockTypeInfo &m2) |
| 不等比较 更多...
|
|
HKU_API std::ostream & | operator<< (std::ostream &, const StockWeight &) |
| 输出权息信息,如:Weight(datetime, countAsGift, countForSell, priceForSell, bonus, increasement, totalCount, freeCount) 更多...
|
|
bool | operator== (const StockWeight &, const StockWeight &) |
|
bool | operator!= (const StockWeight &, const StockWeight &) |
|
bool | operator> (const StockWeight &, const StockWeight &) |
|
bool | operator< (const StockWeight &, const StockWeight &) |
|
bool | operator>= (const StockWeight &, const StockWeight &) |
|
bool | operator<= (const StockWeight &, const StockWeight &) |
|
HKU_API std::ostream & | operator<< (std::ostream &, const TimeLineRecord &) |
| 输出TimeLineRecord信息,如:TimeSharingRecord(datetime, price, vol) 更多...
|
|
HKU_API std::ostream & | operator<< (std::ostream &os, const TimeLineList &) |
| 输出TimeLine信息 更多...
|
|
bool HKU_API | operator== (const TimeLineRecord &d1, const TimeLineRecord &d2) |
| 比较两个TimeLineRecord是否相等,一般仅测试时使用 更多...
|
|
Indicator HKU_API | AmaSpecial (const Block &block, KQuery query, Indicator ama) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const BorrowRecord &bor) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const CostRecord &) |
| 输出成本信息 更多...
|
|
bool HKU_API | operator== (const CostRecord &d1, const CostRecord &d2) |
|
TradeManagerPtr HKU_API | crtTM (const Datetime &datetime=Datetime(199001010000LL), price_t initcash=100000.0, const TradeCostPtr &costfunc=TC_Zero(), const string &name="SYS") |
| 创建交易管理模块,管理帐户的交易记录及资金使用情况 更多...
|
|
TradeCostPtr HKU_API | TC_FixedA (price_t commission=0.0018, price_t lowestCommission=5.0, price_t stamptax=0.001, price_t transferfee=0.001, price_t lowestTransferfee=1.0) |
| 沪深A股交易成本算法,计算每次买入或卖出的成本 更多...
|
|
TradeCostPtr HKU_API | TC_FixedA2015 (price_t commission=0.0018, price_t lowestCommission=5.0, price_t stamptax=0.001, price_t transferfee=0.00002) |
| 2015年8月1日后沪深A股交易成本算法,计算每次买入或卖出的成本 更多...
|
|
TradeCostPtr HKU_API | TC_FixedA2017 (price_t commission=0.0018, price_t lowestCommission=5.0, price_t stamptax=0.001, price_t transferfee=0.00002) |
| 2015年8月1日后沪深A股交易成本算法,计算每次买入或卖出的成本 2017年1月1日后深市也开始收取过户费 更多...
|
|
HKU_API TradeCostPtr | TC_TestStub () |
|
TradeCostPtr HKU_API | TC_Zero () |
| 创建零成本算法实例 更多...
|
|
HKU_API std::ostream & | operator<< (std::ostream &, const FundsRecord &) |
| 输出TradeRecord信息 更多...
|
|
bool HKU_API | operator== (const FundsRecord &d1, const FundsRecord &d2) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const LoanRecord &record) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const OrderBrokerBase &) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const OrderBrokerPtr &) |
|
HKU_API std::ostream & | operator<< (std::ostream &, const PositionRecord &) |
| 输出持仓记录信息 更多...
|
|
bool HKU_API | operator== (const PositionRecord &d1, const PositionRecord &d2) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const TradeCostBase &tc) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const TradeCostPtr &tc) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const TradeManager &tm) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const TradeManagerPtr &ptm) |
|
string HKU_API | getBusinessName (BUSINESS) |
| 获取业务名称,用于打印输出 更多...
|
|
BUSINESS HKU_API | getBusinessEnum (const string &) |
| 根据字符串获取相应的BUSINESS枚举值 更多...
|
|
HKU_API std::ostream & | operator<< (std::ostream &, const TradeRecord &) |
| 输出TradeRecord信息 更多...
|
|
bool HKU_API | operator== (const TradeRecord &d1, const TradeRecord &d2) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const AllocateFundsBase &af) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const AFPtr &af) |
|
AFPtr HKU_API | AF_EqualWeight () |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const SystemWeight &sw) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const ConditionBase &cn) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const ConditionPtr &cn) |
|
CNPtr HKU_API | CN_OPLine (const Operand &op) |
| 固定使用股票最小交易量进行交易,计算权益曲线的op值,当权益曲线高于op时,系统有效,否则无效。 更多...
|
|
EVPtr HKU_API | EV_TwoLine (const Operand &fast, const Operand &slow, const string &market) |
| 快慢线判断策略,市场指数的快线大于慢线时,市场有效,否则无效。 更多...
|
|
HKU_API std::ostream & | operator<< (std::ostream &os, const EnvironmentBase &en) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const EnvironmentPtr &) |
| 输出Environment信息,如:Environment(name, params[...]) 更多...
|
|
MoneyManagerPtr HKU_API | MM_FixedCapital (double capital=10000.00) |
|
MoneyManagerPtr HKU_API | MM_FixedCount (int n=100) |
| 固定交易数量资金管理策略 更多...
|
|
MoneyManagerPtr HKU_API | MM_FixedPercent (double p) |
| 百分比风险模型 更多...
|
|
MoneyManagerPtr HKU_API | MM_FixedRisk (double risk=1000.00) |
|
MoneyManagerPtr HKU_API | MM_FixedUnits (int n=33) |
|
MoneyManagerPtr HKU_API | MM_Nothing () |
| 不做资金管理,有多少钱买多少 更多...
|
|
MoneyManagerPtr HKU_API | MM_WilliamsFixedRisk (double p=0.1, price_t max_loss=1000.0) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const MoneyManagerBase &mm) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const MoneyManagerPtr &mm) |
|
PortfolioPtr HKU_API | PF_Simple (const TMPtr &tm=TradeManagerPtr(), const SEPtr &st=SE_Fixed(), const AFPtr &af=AF_EqualWeight()) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const Portfolio &pf) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const PortfolioPtr &pf) |
|
ProfitGoalPtr HKU_API | PG_FixedHoldDays (int days=5) |
| 固定持仓天数盈利目标策略 更多...
|
|
ProfitGoalPtr HKU_API | PG_FixedPercent (double p=0.2) |
| 固定百分比盈利目标,目标价格 = 买入价格 * (1 + p) 更多...
|
|
ProfitGoalPtr HKU_API | PG_NoGoal () |
| 无盈利目标策略,通常为了进行测试或对比 更多...
|
|
HKU_API std::ostream & | operator<< (std::ostream &os, const ProfitGoalBase &pg) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const ProfitGoalPtr &pg) |
|
SelectorPtr HKU_API | SE_Fixed () |
|
SelectorPtr HKU_API | SE_Fixed (const StockList &stock_list, const SystemPtr &sys) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const SelectorBase &st) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const SelectorPtr &st) |
|
SignalPtr HKU_API | SG_Bool (const Operand &buy, const Operand &sell, const string &kpart="CLOSE") |
| 布尔信号指示器 更多...
|
|
SignalPtr HKU_API | SG_Cross (const Operand &fast, const Operand &slow, const string &kpart="CLOSE") |
| 双线交叉指示器,当快线从下向上穿越慢线时,买入;当快线从上向下穿越慢线时,卖出。 更多...
|
|
SignalPtr HKU_API | SG_CrossGold (const Operand &fast, const Operand &slow, const string &kpart="CLOSE") |
| 金叉指示器,当快线从下向上穿越慢线且快线和慢线的方向都是向上时为金叉,买入; 当快线从上向下穿越慢线且快线和慢线的方向都是向下时死叉,卖出。 更多...
|
|
SignalPtr HKU_API | SG_Flex (const Operand &op, int slow_n, const string &kpart="CLOSE") |
| 自交叉单线拐点指示器。 使用自身的EMA(slow_n)作为慢线,自身作为快线,快线向上穿越慢线买入,快线向下穿越慢线卖出。 更多...
|
|
SignalPtr HKU_API | SG_Single (const Operand &ind, int filter_n=20, double filter_p=0.1, const string &kpart="CLOSE") |
| 单线拐点信号指示器 更多...
|
|
SignalPtr HKU_API | SG_Single2 (const Operand &ind, int filter_n=20, double filter_p=0.1, const string &kpart="CLOSE") |
| 单线拐点信号指示器2 更多...
|
|
HKU_API std::ostream & | operator<< (std::ostream &os, const SignalBase &sg) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const SignalPtr &sg) |
|
SlippagePtr HKU_API | SP_FixedPercent (double p=0.001) |
| 固定百分比移滑价差算法 更多...
|
|
SlippagePtr HKU_API | SP_FixedValue (double value=0.01) |
| 固定价格移滑价差算法 更多...
|
|
HKU_API std::ostream & | operator<< (std::ostream &os, const SlippageBase &sp) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const SlippagePtr &sp) |
|
StoplossPtr HKU_API | ST_FixedPercent (double p=0.03) |
| 固定百分比止损策略,即当价格低于买入价格的某一百分比时止损 更多...
|
|
StoplossPtr HKU_API | ST_Indicator (const Operand &op, const string &kpart="CLOSE") |
|
StoplossPtr HKU_API | ST_Saftyloss (int n1=10, int n2=3, double p=2.0) |
| 亚历山大 艾尔德安全地带止损 更多...
|
|
HKU_API std::ostream & | operator<< (std::ostream &os, const StoplossBase &sl) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const StoplossPtr &sl) |
|
SystemPtr HKU_API | SYS_Simple (const TradeManagerPtr &tm=TradeManagerPtr(), const MoneyManagerPtr &mm=MoneyManagerPtr(), const EnvironmentPtr &ev=EnvironmentPtr(), const ConditionPtr &cn=ConditionPtr(), const SignalPtr &sg=SignalPtr(), const StoplossPtr &sl=StoplossPtr(), const StoplossPtr &tp=StoplossPtr(), const ProfitGoalPtr &pg=ProfitGoalPtr(), const SlippagePtr &sp=SlippagePtr()) |
| 生成简单系统实例 更多...
|
|
HKU_API std::ostream & | operator<< (std::ostream &os, const System &sys) |
|
HKU_API std::ostream & | operator<< (std::ostream &os, const SystemPtr &sys) |
|
string HKU_API | getSystemPartName (int part) |
| 获取SystemPart枚举值的字符串名称 更多...
|
|
SystemPart HKU_API | getSystemPartEnum (const string &name) |
| 通过字符串名称获取SystemPart枚举值 更多...
|
|
HKU_API std::ostream & | operator<< (std::ostream &, const TransRecord &) |
| 输出 TransRecord 信息,如:TimeSharingRecord(datetime, price, vol) 更多...
|
|
HKU_API std::ostream & | operator<< (std::ostream &os, const TransList &) |
| 输出 TransList 信息 更多...
|
|
bool HKU_API | operator== (const TransRecord &d1, const TransRecord &d2) |
| 比较两个 TransRecord 是否相等,一般仅测试时使用 更多...
|
|
HKU_API std::ostream & | operator<< (std::ostream &os, const Parameter ¶m) |
|
HKU_API bool | operator== (const Parameter &p1, const Parameter &p2) |
|
HKU_API bool | operator!= (const Parameter &p1, const Parameter &p2) |
|
HKU_API bool | operator< (const Parameter &p1, const Parameter &p2) |
|
|
double HKU_API | roundEx (double number, int ndigits=0) |
| 四舍五入,和python中的round行为一样 更多...
|
|
double HKU_API | roundUp (double number, int ndigits=0) |
| 向上截取,如10.1截取后为11 更多...
|
|
double HKU_API | roundDown (double number, int ndigits=0) |
| 向下截取,如10.1截取后为10 更多...
|
|
string HKU_API | utf8_to_gb (const string &szinput) |
|
string HKU_API | gb_to_utf8 (const string &szinput) |
|