2014年1月3日 星期五

突破下降趨勢

input:Length(20); setinputname(1,"下降趨勢計算期數");
input:Rate(150); setinputname(2,"反轉率%");
variable: Factor(0);

Factor = 100/Close[Length];

value1 = linearregslope(high*Factor,Length);
value2 = linearregslope(high*Factor,3);

if close > open and close < close[length]
 and  value1 < 0
and value2-value1 > Rate*0.01
 then ret=1;


沒有留言:

張貼留言