九毛八公式指标
源码: VAR1:=(2*CLOSE+HIGH+LOW)/4; 风险区: 80, POINTDOT; 底部区: 20, POINTDOT; VAR2:=LLV(LOW,5); VAR3:=HHV(HIGH,4); 红线上穿买: EMA((VAR1-VAR2)/(VAR3-VAR2)*100,4),LINETHICK2,COLORRED; 红线下穿卖: EMA(0.667*REF(红线上穿买,1)+0.333*红线上穿买,2),LINETHICK1,COLOR00FF00; VAR4:=(HHV(HIGH,4)-VAR1)/(HHV(HIGH,4)-LLV(LOW,4))*100-72; VAR5:=(VAR1-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100; VAR6:=SMA(VAR5,2,1); 进出快线:100*(C-LLV(L,9))/(HHV(C,9)-LLV(L,9)),COLORFFFF00; 关注: IF(CROSS(红线上穿买,红线下穿卖),15,0); 买:IF(CROSS(进出快线,红线上穿买),30,0); 要求:根据此源码首次出现紫红色买入信号后,间隔大于3天小于14天内再出现一次紫色买入信号,而此时的股价低于首次出现信号时候的股价,先谢谢了。
公式模块:
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=LLV(LOW,5); VAR3:=HHV(HIGH,4); 红线上穿买:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,4); 红线下穿卖:=EMA(0.667*REF(红线上穿买,1)+0.333*红线上穿买,2); B1:=crOSS(红线上穿买,红线下穿卖) AND COUNT(红线上穿买>40,BArslAST(CROSS(40,红线上穿买)))=0 AND COUNT(CROSS(红线上穿买,红线下穿卖),BARSLAST(CROSS(40,红线上穿买)))=2; B2:=REF((2*C+H+L)/4,REF(BARSLAST(CROSS(红线上穿买,红线下穿卖)),1)+1)>=(2*C+H+L)/4; OK:B1 AND B2;