东家《系统买点》-精品通达信指标公式源码分享
N:=11;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
LC:=REF(C,1);
CCI背:=IF(LLV(CCI,2)>LLV(CCI,7) AND LLV(L,2)<=LLV(L,7) AND HHV(H,10)>MA(CLOSE,60),1,0),COLORWHITE;
A1:=BARSLAST(REF(CROSS("MACD.DIF"(12,26,9),"MACD.DEA"(12,26,9)),1));
B1:=REF(C,A1+1)>C && REF("MACD.DIF"(12,26,9),A1+1)<"MACD.DIF"(12,26,9) && CROSS ("MACD.DIF"(12,26,9),"MACD.DEA"(12,26,9));
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
KL:=CROSS(J,0);
WRSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RL:=CROSS(WRSI,20);
WVR := SUM((IF(CLOSE>OPEN,VOL,0)+IF(CLOSE=OPEN,VOL/2,0)),26)/SUM((IF(CLOSE<OPEN,VOL,0)+IF(CLOSE=OPEN,VOL/2,0)),26)*100;
BIAS买入:= CROSS(-6,(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100);
PSY买入:= CROSS(10,PSY(12,1));
VR买入:= CROSS(70,WVR);
MID :=MA(CLOSE,20);
LOWER:=MID-2*STD(CLOSE,20);
布林:=CROSS(CLOSE,LOWER);
WROC:=ROC(12,6);
变动速率:=CROSS(WROC,0);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
PDM:=SUM(IF(HD>0&&HD>LD,HD,0),14);
MDM:=SUM(IF(LD>0&&LD>HD,LD,0),14);
PDI:=PDM*100/TR;
MDI:=MDM*100/TR;
趋向:=CROSS(PDI,MDI);
WRSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
WK:=SMA(WRSV,3,1);
DN:=SMA(WK,3,1);
KD买:=CROSS(WK,DN)&&WK<20;
WMTM:=MTM;
MTM买:=CROSS(WMTM,0);
DRAWBAND(110,RGB(80,50,0),-10,RGB(0,150,255));
STICKLINE(CURRBARSCOUNT=1 ,110,-10,4,0),COLOR333344;
DRAWTEXT(CCI背 AND REF(CCI,1)<-150 AND C>O,100,'C'),COLORYELLOW;
DRAWTEXT(KL,100,'K'),COLORWHITE;
DRAWTEXT(KD买,90,'KD'),COLORFF00FF;
DRAWTEXT(趋向,80,' D'),COLORFF00FF;
DRAWTEXT(RL,70,'R'),COLORGREEN;
DRAWTEXT(布林,60,' BL'),COLORFF00FF;
DRAWTEXT(B1,50,'M'),COLORYELLOW;
DRAWTEXT(BIAS买入,40,' BA'),COLORRED;
DRAWTEXT(PSY买入,30,' P'),COLORYELLOW;
DRAWTEXT(MTM买,10,' MT'),COLORFF00FF;
DRAWTEXT(VR买入,20,' V'),COLORFF00FF;
DRAWTEXT(变动速率,0,' RC'),COLORFF00FF;
STICKLINE(CURRBARSCOUNT=56 ,110,-10,60,0),COLOR333344;
DRAWTEXT(CURRBARSCOUNT=59,100,'C=CCI K=KDJ'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,90,'KD 随机指标'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,80,'D=DMI 趋向指标'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,70,'R=RSI 相对强弱'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,60,'BL=BOLL 布林指标'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,50,'M=MACD 平滑异同平均'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,40,'BA=BIAS 乖离率指标 '),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,30,'P=PSY 心理线指标 '),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,20,'MT=MTM 动量线指标'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,10,'V=VR 容量比率指标'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,0,'RC=ROC 变动速率指标 '),COLORGREEN;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!