...
This commit is contained in:
@@ -568,11 +568,11 @@ object AutoTradingManager {
|
||||
if (KisSession.tradeConfig.autoSellOrder
|
||||
&& holding != null && holding.quantity.toInt() > 0
|
||||
&& holding.availOrderCount.toInt() > 0
|
||||
&& holding.profitRate.toDouble() <= -15.0
|
||||
&& holding.profitRate.toDouble() >= -29.0
|
||||
&& holding.profitRate.toDouble() <= KisSession.tradeConfig.autoSellOrderMin
|
||||
&& holding.profitRate.toDouble() >= KisSession.tradeConfig.autoSellOrderMax
|
||||
&& holding.avgPrice.toDouble() > holding.currentPrice.toDouble()) {
|
||||
var targetPrice = holding.avgPrice.toDouble()
|
||||
targetPrice = MarketUtil.roundToTickSize(targetPrice + MarketUtil.getTickSize(targetPrice) * 3.0)
|
||||
targetPrice = MarketUtil.roundToTickSize(targetPrice + MarketUtil.getTickSize(targetPrice) * KisSession.tradeConfig.autoSellOrderAppend)
|
||||
tradeService.postOrder(
|
||||
stockCode = holding.code,
|
||||
qty = holding.availOrderCount,
|
||||
|
||||
Reference in New Issue
Block a user