修正注释。
This commit is contained in:
@@ -287,7 +287,7 @@ function checkSpecialTargets(data, lastPrice, currentPrice) {
|
||||
|
||||
// 如果没有上一笔价格,则退化为接近检测,避免首次运行完全不触发
|
||||
if (lastPrice === undefined || lastPrice === null) {
|
||||
const tol = 0.2; // 首次检测仍保留一个很小的容差
|
||||
const tol = 0.2; // 首次检测仍保留一个很小的容差,建议范围:0.1-0.5
|
||||
for (const t of targets) {
|
||||
if (Math.abs(currentPrice - t) <= tol) return t;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user