副图公式源码支持 手机/电脑
CHP1:=CLOSE>REF(CLOSE,1)*1.099;
小阴小阳:=HHV(ABS(C-REF(C,1))/REF(C,1)*100,BARSLAST(CHP1))<9;
时间:=COUNT(CHP1,30)=1 AND BARSLAST(CHP1)>5;
双响炮:IF(REF(小阴小阳 AND 时间,1) AND CHP1,120,100),COLORRED,LINETHICK1;
DRAWTEXT(REF(小阴小阳 AND 时间,1) AND CHP1,双响炮*0.92,'双响炮'),COLORRED;
涨幅:=(C-REF(C,1))/REF(C,1)>0.055;
均线条件:=MA(C,10)>MA(C,20);
非科创板:=NOT(CODELIKE('688'));
中小盘股:=FINANCE(40)<23520000000;
均5:=MA(C,5);
均10:=MA(C,10);
均20:=MA(C,20);
均30:=MA(C,30);
最大值:=MAX(MAX(均5,均10),MAX(均20,均30));
最小值:=MIN(MIN(均5,均10),MIN(均20,均30));
一阳四线:=O<=最小值 AND C>=最大值;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
KDJ条件:=CROSS(J,K) AND J<90;
打板:IF(涨幅=1 AND 中小盘股=1 AND (一阳四线=1 OR 均线条件=1) AND KDJ条件=1
AND 非科创板=1 AND C<50,100,80),COLORRED,LINETHICK1;
DRAWTEXT((涨幅=1 AND 中小盘股=1 AND (一阳四线=1 OR 均线条件=1) AND KDJ条件=1
AND 非科创板=1 AND C<50),打板*0.9,'打板'),COLORRED;
CHA1:=C/O>1.08,COLORRED;
主升浪:IF(CHA1,80,60),COLORMAGENTA,LINETHICK1;
DRAWTEXT(CHA1=1 ,CHA1*70,'主升浪'),COLORMAGENTA;
CHB1:=REF(CLOSE,1);
CHB2:=SMA(MAX(CLOSE-CHB1,0),3,1)/SMA(ABS(CLOSE-CHB1),3,1)*100;
止跌:IF(CROSS(CHB2,7),20,0),COLORGREEN,LINETHICK1;
DRAWTEXT(CROSS(CHB2,7),止跌*0.5,'止跌'),COLORGREEN;
选股公式源码
{选股公式一:打板}
涨幅:=(C-REF(C,1))/REF(C,1)>0.055;
均线条件:=MA(C,10)>MA(C,20);
非科创板:=NOT(CODELIKE('688'));
中小盘股:=FINANCE(40)<23520000000;
均5:=MA(C,5);
均10:=MA(C,10);
均20:=MA(C,20);
均30:=MA(C,30);
最大值:=MAX(MAX(均5,均10),MAX(均20,均30));
最小值:=MIN(MIN(均5,均10),MIN(均20,均30));
一阳四线:=O<=最小值 AND C>=最大值;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
KDJ条件:=CROSS(J,K) AND J<90;
打板:涨幅=1 AND 中小盘股=1 AND (一阳四线=1 OR 均线条件=1) AND KDJ条件=1
AND 非科创板=1 AND C<50,COLORRED,LINETHICK1;
{选股公式二:双响炮}
CHP1:=CLOSE>REF(CLOSE,1)*1.099;
小阴小阳:=HHV(ABS(C-REF(C,1))/REF(C,1)*100,BARSLAST(CHP1))<9;
时间:=COUNT(CHP1,30)=1 AND BARSLAST(CHP1)>5;
双响炮:REF(小阴小阳 AND 时间,1) AND CHP1,COLORRED,LINETHICK1;
{选股公式三:止跌}
CHB1:=REF(CLOSE,1);
CHB2:=SMA(MAX(CLOSE-CHB1,0),3,1)/SMA(ABS(CLOSE-CHB1),3,1)*100;
止跌:CROSS(CHB2,7),COLORGREEN,LINETHICK1;
{选股公式四:主升浪}
CHA1:=C/O>1.08,COLORRED;
主升浪:CHA1; |