|
|
@@ -31,7 +31,7 @@ function statisticB(kLines, index) {
|
|
|
|
|
|
if (!kLines[i - 1]) break
|
|
|
|
|
|
- if (100 * (kLine.Close - kLine.Open) / kLine.Open < 3) continue
|
|
|
+ if (100 * (kLine.Close - kLine.Open) / kLine.Open < 1) continue
|
|
|
|
|
|
count += 1
|
|
|
}
|
|
|
@@ -87,7 +87,7 @@ function statisticC(kLines, btcKLines, index) {
|
|
|
function filter(btcKLines, kLines, index) {
|
|
|
// 过去N根K的累计涨幅
|
|
|
let upRateN = statisticA(kLines, index)
|
|
|
- if (upRateN <= 80 || upRateN >= 90) {
|
|
|
+ if (upRateN >= 90) {
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
@@ -97,7 +97,7 @@ function filter(btcKLines, kLines, index) {
|
|
|
}
|
|
|
|
|
|
// 过去N根k线一共有M根与btc走势一致
|
|
|
- if (statisticC(btcKLines, kLines, index) < 2) {
|
|
|
+ if (statisticC(btcKLines, kLines, index) > 4) {
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
@@ -187,8 +187,8 @@ function dragonAnalysis(btcKLines, kLinesMap, dragonMap, dayCount) {
|
|
|
let kLines = kLinesMap[symbol]
|
|
|
let index = kLines.length - (dayCount + 1)
|
|
|
|
|
|
- // let x = statisticB(kLines, index)
|
|
|
- let x = statisticC(btcKLines, kLines, index)
|
|
|
+ let x = statisticB(kLines, index)
|
|
|
+ // let x = statisticE(btcKLines, kLines, index)
|
|
|
let y = dragonMap[symbol].Profit
|
|
|
|
|
|
// 打印实际的量
|