|
|
@@ -259,8 +259,8 @@ async function main() {
|
|
|
let synProfit = NumKit.getSubFloat(expFakeProfit + expRealProfit, 2)
|
|
|
let avgProfit = NumKit.getSubFloat(synProfit / (realLength + fakeLength), 2)
|
|
|
let isStopLoss = false
|
|
|
- if (avgProfit < -2 || btcKlineDownRate > 2) {
|
|
|
- avgProfit = -2
|
|
|
+ if (avgProfit < -1.732 || btcKlineDownRate > 1.732) {
|
|
|
+ avgProfit = -1.732
|
|
|
isStopLoss = true
|
|
|
}
|
|
|
|