要求:
当日S趋势线在GETDOWN线下方 上穿GETDOWN线时或者上穿TAKE_UP作为选股预警信号 (就是当日S趋势线数值从小于GETDOWN线的数值到大于GETDOWN线数值时 或者是从小于TAKE_UP线的数值到大于TAKE_UP线数值时 作为预警信号)
简单的说就是当日S趋势线上穿 TAKE_UP线或者GETDOWN线是都触发预警条件
TAKE_UP:EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5),COLORRED;
GETDOWN:(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5)*10,COLORGREEN;
A:=EMA(C,5);
B:=LLV(LOW,25);
VARA:=INTPART(EMA(IF(LOW =B,C/A,0),3)*100);
VARB:=IF(VARA 100,VARA*0.312,VARA);
D:=EMA(C,5);
E:=HHV(H,25);
VARD:=INTPART(EMA(IF(H =E,C/D,0),3)*100);
VARE:=IF(VARD 100,VARD*0.312,VARD);
STICKLINE(VARE 0,0,VARE,0,0),COLORLIRED;
STICKLINE(VARB 0,0,VARB,0,0),COLORLIBLUE;
S趋势:(C/MA(C,15)-1)*1000+50,COLORYELLOW;
多头:VARE,COLORLIRED,NODRAW;
空头:VARB,COLORLIBLUE,NODRAW;
50,COLORGRAY,DOTLINE;
做出这个金叉选股公式后 麻烦 加在下面这个选股公式里 合并成一个选股预警公式 麻烦了
合并:
QR:=MIN(C,O)/L 1.02 AND MAX(C,O)/MIN(C,O) 1.03 AND H/MAX(C,O)
REF(QR,1)=1 AND C REF(H,1)
AND C/REF(C,1) 1.02;
公式模块:
TAKE_UP:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5);
GETDOWN:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5)*10;
S趋势:=(C/MA(C,15)-1)*1000+50;
QR:=MIN(C,O)/L 1.02 AND MAX(C,O)/MIN(C,O) 1.03 AND H/MAX(C,O)
qq:=REF(QR,1)=1 AND C REF(H,1) AND C/REF(C,1) 1.02;
xg:(cross(S趋势,TAKE_UP) or cross(S趋势,GETDOWN)) and qq;