This commit is contained in:
lunaticbum 2026-06-02 17:57:00 +09:00
parent 21242d5ca4
commit 91b616e127

View File

@ -242,7 +242,7 @@ object AutoTradingManager {
if (hasCode && oldTarget != null) {
var avgPrive = oldTarget.avgPrice.toDouble()
var qty = oldTarget.quantity.toDouble()
basePrice = ((avgPrive * qty) + decision.currentPrice).div(qty!!.toInt() + 1)
basePrice = ((avgPrive * qty) + (decision.currentPrice * orderQty.toInt())).div(qty!!.toInt() + (orderQty.toInt()))
println("물타기 ${avgPrive}, ${qty} ${basePrice}")
}