三剑客通达信代码
示意图
公式代码
VAR1:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1) ;
VAR4:=SMA(VAR3,3,1);
VAR5:=FILTER(CROSS(VAR3,VAR4) AND VAR3<20,25)=1;
VAR6:=0.812*MA(FORCAST(CLOSE,2),34)*1.05;
VAR7:=(LOW<VAR6 OR LOW=VAR6);
VAR8:=(CLOSE<VAR6 OR CLOSE=VAR6);
最佳买点:=CROSS(CLOSE,VAR6);
千年:=VAR7&&VAR5 OR VAR8&&VAR5 OR 最佳买点&&VAR5;
金剑:IF(千年,6,0),LINETHICK2,COLORYELLOW;
VAR2N:=LLV(LOW,3)<=LLV(LOW,60);
VAR3N:= C>O AND (C/O>1.03 OR C>1.03*REF(C,1));
绝地反击:=IF(VAR2N AND VAR3N,90,0);
银剑:IF(绝地反击,4,0),LINETHICK2,COLORWHITE;
DIFA:=EMA(CLOSE,6)-EMA(CLOSE,13);
DEA:=EMA(DIFA,5);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
MK日金叉:=CROSS(DIFA,DEA) AND CROSS(K,D);
铜剑:IF(MK日金叉,2,0),LINETHICK2,COLORLIRED;