mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-04 04:48:17 +08:00
System add setNotSharedAll
This commit is contained in:
parent
2e5b180b9b
commit
985934d58e
@ -126,6 +126,18 @@ void System::initParam() {
|
||||
setParam<bool>("shared_sp", false);
|
||||
}
|
||||
|
||||
void System::setNotSharedAll() {
|
||||
setParam<bool>("shared_tm", false);
|
||||
setParam<bool>("shared_ev", false);
|
||||
setParam<bool>("shared_cn", false);
|
||||
setParam<bool>("shared_sg", false);
|
||||
setParam<bool>("shared_mm", false);
|
||||
setParam<bool>("shared_st", false);
|
||||
setParam<bool>("shared_tp", false);
|
||||
setParam<bool>("shared_pg", false);
|
||||
setParam<bool>("shared_sp", false);
|
||||
}
|
||||
|
||||
void System::baseCheckParam(const string& name) const {
|
||||
if ("max_delay_count" == name) {
|
||||
HKU_ASSERT(getParam<int>("max_delay_count") >= 0);
|
||||
|
@ -151,6 +151,9 @@ public:
|
||||
const TradeRequest& getSellShortTradeRequest() const;
|
||||
const TradeRequest& getBuyShortTradeRequest() const;
|
||||
|
||||
/** 将所有组件全部置为非共享 */
|
||||
void setNotSharedAll();
|
||||
|
||||
/**
|
||||
* 复位,但不包括已有的交易对象,以及共享的部件
|
||||
* @note 实际复位操作依赖于系统中各个部件的共享参数
|
||||
|
Loading…
Reference in New Issue
Block a user