副图公式 源码支持手机/电脑
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;
LC1:=REF(CLOSE,1);
强弱线:SMA(MAX(CLOSE-LC1,0),6,1)/SMA(ABS(CLOSE-LC1),6,1)*100,COLORLIRED;
共振抄底:强弱线<20 AND J值<0,NODRAW,COLOR00C9FF;
STICKLINE(共振抄底,-10,10,3,0),COLOR0055AA;
STICKLINE(共振抄底,-10,10,2.8,0),COLOR0066BB;
STICKLINE(共振抄底,-10,10,2.5,0),COLOR0077CC;
STICKLINE(共振抄底,-10,10,2.2,0),COLOR0088DD;
STICKLINE(共振抄底,-10,10,1.7,0),COLOR0099EE;
STICKLINE(共振抄底,-10,10,1.2,0),COLOR00AAFF;
STICKLINE(共振抄底,-10,10,0.7,0),COLOR00CCFF;
STICKLINE(共振抄底,-10,10,0.2,0),COLOR00FFFF;
DRAWTEXT(共振抄底,12,'↙共振抄底'),COLORRED;
A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));
D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));
DRAWICON((D3>0),99,2);
DRAWTEXT((D3>0),97,' RSI顶背离'),COLORGREEN;
DRAWICON((B3>0),21,1);
DRAWTEXT((B3>0),23,' RSI底背离'),COLORYELLOW;
选股公式源码
{选股公式一:共振抄底}
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;
LC1:=REF(CLOSE,1);
强弱线:=SMA(MAX(CLOSE-LC1,0),6,1)/SMA(ABS(CLOSE-LC1),6,1)*100,COLORLIRED;
{STICKLINE(共振抄底,-10,10,3,0),COLOR0055AA;
STICKLINE(共振抄底,-10,10,2.8,0),COLOR0066BB;
STICKLINE(共振抄底,-10,10,2.5,0),COLOR0077CC;
STICKLINE(共振抄底,-10,10,2.2,0),COLOR0088DD;
STICKLINE(共振抄底,-10,10,1.7,0),COLOR0099EE;
STICKLINE(共振抄底,-10,10,1.2,0),COLOR00AAFF;
STICKLINE(共振抄底,-10,10,0.7,0),COLOR00CCFF;
STICKLINE(共振抄底,-10,10,0.2,0),COLOR00FFFF;
DRAWTEXT(共振抄底,12,'↙共振抄底'),COLORRED;}
共振抄底:强弱线<20 AND J值<0,COLOR00C9FF;
{选股公式二:RSI底背离}
A3:=BARSLAST(REF(CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));
D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));
RSI底背离:B3>0; |