判斷周期和當(dāng)日周期k線做對(duì)比
nn:=min(n,todaybar);
n就是你tr的計(jì)算周期, 然后和todaybar做比較,取最小值,這樣就取不到昨天的數(shù)據(jù)了