把趋势线上穿0.00时写个选股公式
2019/12/4 18:12:07
公式编写说明:
公式名称: 庄影难逃VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100; VAR4:=EMA(IF(CLOSE*1.2,VAR3*10,VAR3/10),3); VAR5:=LLV(LOW,38); VAR6:=HHV(VAR4,38); VAR7:=IF(LLV(LOW,90),1,0); VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7; 有庄的影子: STICKLINE(VAR8,0,VAR8*0.5,6,1) , COLORFFAAFF;趋势线: (CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100 , COLORAABBDD;AA:=((REF(趋势线,1)<REF(趋势线,2) AND 趋势线<-30) AND 趋势线>=REF(趋势线,1)) OR (REF(CROSS(-30,趋势线),1) AND CROSS(趋势线,-30)) OR 趋势线=-30;DRAWTEXT(AA,100,'砸锅卖田买'),COLORYELLOW;砸锅卖田买:IF(AA,100,-30),COLORYELLOW;BB:=((REF(趋势线,1)<REF(趋势线,2) AND 趋势线<-20 AND 趋势线>-25) AND 趋势线>=REF(趋势线,1)) OR (REF(CROSS(-20,趋势线),1) AND CROSS(趋势线,-20));DRAWTEXT(BB,80,'见底信号'),COLORRED;见底信号:IF(BB,80,-20),COLORRED;CC:=((REF(趋势线,1)<REF(趋势线,2) AND 趋势线<-25 AND 趋势线>-30) AND 趋势线>=REF(趋势线,1)) OR (REF(CROSS(-25,趋势线),1) AND CROSS(趋势线,-25));DRAWTEXT(CC,60,'莫错失机会'),COLOR00FF00;莫错失机会:IF(CC,60,-25),COLOR00FF00;底部快显:IF(CROSS(-20,趋势线),40,-20),LINETHICK2,COLORF0F000;DRAWTEXT(CROSS(-20,趋势线),50,'★'),COLORF0F000;机会来临:IF(CROSS(-25,趋势线),60,-25),LINETHICK2,COLORF00FF0;DRAWTEXT(CROSS(-25,趋势线),70,'★'),COLORF00FF0;砸锅卖田等:IF(CROSS(-30,趋势线),100,-30),LINETHICK2,COLORWHITE;DRAWTEXT(CROSS(-30,趋势线),120,'★'),COLORWHITE;{见底信号:}-20,COLORRED,POINTDOT;{莫要错失机会:}-25,COLORBROWN,POINTDOT;
公式源码示例:
cross((c-ma(c,40))/ma(c,40)*100,0);
看股吧 公式 www.kangub a.com
其它股票公式列表