public TradingStrategyForSave(BalanceSellStrategy strategy) { sellProfitOrderOption = strategy.profitOrderOption; sellStopLossOrderOption = strategy.stoplossOrderOption; sellDivideStopLossOrderOption = strategy.divideStoplossOrderOption; account = strategy.account; takeProfitRate = strategy.takeProfitRate; stoplossRate = strategy.stoplossRate; tradingSaveItemList.Add(new TradingItemForSave(strategy)); }
public TradingItemForSave(BalanceSellStrategy item) { itemCode = item.itemCode; buyingPrice = item.buyingPrice; curQnt = (int)item.curQnt; buyingQnt = (int)item.curQnt; sellQnt = (int)item.sellQnt; curState = TRADING_ITEM_STATE.AUTO_TRADING_STATE_BUY_COMPLETE; }