我的問題是 寫法A是哪裡有問題? 是我理解錯 if and or 的用法?
我要用寫法A 找到 寫法B+寫法C 共80檔
寫法 A找到217檔,因為沒有過濾掉成交張數少的
===========================
if high >= highest(high,10)
or high <= highest(high,10) * 0.995
and high*0.98>=close
and average(volume,10)>=800
and volume[1]*close>=145000
then ret=1;
===========================
寫法 B(9) 找到9檔,有過濾掉成交張數少的
if high >= highest(high,10)
and high*0.98>=close
and average(volume,10)>=800
and volume[1]*close>=145000
then ret=1;
===========================
寫法 C(71) 找到71檔,有過濾掉成交張數少的
if high <= highest(high,10) * 0.995
and high*0.98>=close
and average(volume,10)>=800
and volume[1]*close>=145000
then ret=1;
1 評論