大家好:
在XQ的系統中有看到AR、BR指標,但是好像沒看到CR指標呢?
小弟在這邊試著撰寫了一下CR指標,分享給大家做參考:
CR指標的公式為
程式碼如下:
input:Length(26,"N日累積"); variable:Upsum(0),Downsum(0),CR(0); Upsum = summation(high - WeightedClose[1],Length); Downsum = summation(WeightedClose[1] - low,Length); if Downsum <> 0 then CR = Upsum / Downsum *100 else CR = CR[1]; plot1(CR,"CR(%)");
以上僅提供大家參考