第四版

This commit is contained in:
YuWuKunCheng
2026-05-26 11:03:05 +08:00
parent 7416bfc73a
commit 104ecf0268
11 changed files with 334 additions and 24 deletions
+4
View File
@@ -60,6 +60,10 @@ impl 相对方向 {
/// 分析两个K线之间的相对方向
pub fn (: f64, : f64, : f64, : f64) -> Self {
// NaN 值无法判断方向,视为"同"避免 panic
if .is_nan() || .is_nan() || .is_nan() || .is_nan() {
return Self::;
}
if == && == {
return Self::;
}