|
AA:=MA(C,15);
BB:=REF(AA,1);
CC:=(AA-BB)/BB;//变化斜率
角度:=ATAN(CC*100)*180/3.14;//弧度值转化成角度值
然后你用这个角度值去判断
AA:=MA(C,15);
BB:=REF(AA,1);
CC:=(AA-BB)/BB;//变化斜率
角度:=ATAN(CC*100)*180/3.14;//弧度值转化成角度值
enterlongcond:=角度>15;
exitlongcond:=角度<15;
if enterlongcond then begin(这样能行吗?每个高位和低位都出现了数字价格)
AA:=MA(C,15);
BB:=REF(AA,1);
CC:=(AA-BB)/BB;//变化斜率
角度:=ATAN(CC*100)*180/3.14;//弧度值转化成角度值
enterlongcond:=角度>15;
exitlongcond:=角度<15;
达不到角度的效果
麻烦再给指导一下.