This commit is contained in:
yanweidong
2026-01-29 03:16:11 +08:00
parent 81e6472cd0
commit fd511e1695
4 changed files with 1619 additions and 1698 deletions

View File

@@ -71,9 +71,6 @@ func (r *Rsi) Run(code string) *types.RuleResult {
// 跌破RSI下轨
if lastRsiInt > r.Args.RsiOversold {
if CheckLowest(close, lastRsiInt, 5) {
return &types.RuleResult{Key: r.Key, Name: r.Name, Score: 1, Desc: fmt.Sprintf("RSI=%d 跌破下轨,5日最低", lastRsiInt)}
}
if CheckLowest(close, lastRsiInt, 14) {
return &types.RuleResult{Key: r.Key, Name: r.Name, Score: 1, Desc: fmt.Sprintf("RSI=%d 跌破下轨,14日最低", lastRsiInt)}
}
@@ -84,7 +81,7 @@ func (r *Rsi) Run(code string) *types.RuleResult {
}
// RSI跌破下轨后呈上涨趋势
if lastRsiInt <= prveRsiInt {
if lastRsiInt < prveRsiInt {
return &types.RuleResult{Key: r.Key, Name: r.Name, Score: -1, Desc: fmt.Sprintf("Rsi=%d prveRsi=%d,跌破下轨,持续下跌", lastRsiInt, prveRsiInt)}
}
return &types.RuleResult{Key: r.Key, Name: r.Name, Score: 1, Rsi: lastRsi, Desc: fmt.Sprintf("RSI=%d prveRsi=%d,跌破下轨后呈上涨趋势", lastRsiInt, prveRsiInt)}