论坛金钻公式七剑主图分享
2020-10-17 08:09:10
说明:
1、游龙出鞘,适合追涨打板,往往打开上涨空间;
2、七剑归一,适合低吸埋伏,等待游龙出鞘;
3、三剑合一,适合持股骑牛,状态不被破坏,就一直拿着;
4、日月齐出,适合底部追涨,往往扭转颓势;
5、谨记:不是所有的票都适用七剑指标,重点关注活跃股、强势股;
源码:
K:=1;
T:=1;
G:=1;
VAR1:=1;
VAR2:=2;
VAR3:=IF(REF(CLOSE,1)*1.1-CLOSE<0.01,1,0);
VAR4:=IF(CLOSE-REF(CLOSE,1)*0.9<0.01,1,0);
VAR5:=10;
VAR6:=11;
VAR7:=9;
VAR8:=(3*CLOSE+LOW+OPEN+HIGH)/6;
VAR9:=IF(0,(20*VAR8+19*REF(VAR8,1)+18*REF(VAR8,2)+17*REF(VAR8,3)+16*REF(VAR8,4)+15*REF(VAR8,5)+14*REF(VAR8,6)+13*REF(VAR8,7)+12*REF(VAR8,8)+11*REF(VAR8,9)+10*REF(VAR8,10)+9*REF(VAR8,11)+8*REF(VAR8,12)+7*REF(VAR8,13)+6*REF(VAR8,14)+5*REF(VAR8,15)+4*REF(VAR8,16)+3*REF(VAR8,17)+2*REF(VAR8,18)+REF(VAR8,20))/210,DRAWNULL);
VAR10:=MA(VAR9,6);
DRAWBAND(VAR9,RGB(255,255,128),VAR10,RGB(0,0,128));
STICKLINE(VAR3,OPEN,CLOSE,3.5,0),COLOR007FFF;
STICKLINE(VAR3,OPEN,CLOSE,3,0),COLOR007FFF;
STICKLINE(VAR3,HIGH,LOW,0,0),COLOR007FFF;
斩妖:IF(K,REF(COST(99),1),DRAWNULL),COLOR58FFFF;
游龙剑:IF(T,EMA(REF(COST(95),VAR1),VAR2),DRAWNULL),COLORF0F0F0,LINETHICK2;
莫问剑:IF(T,EMA(REF(COST(90),VAR1),VAR2),DRAWNULL),COLORGRAY;
竞星剑:IF(T,EMA(REF(COST(75),VAR1),VAR2),DRAWNULL),COLORGRAY;
天瀑剑:IF(T,EMA(REF(COST(50),VAR1),VAR2),DRAWNULL),COLORMAGENTA;
日月剑:IF(T,EMA(REF(COST(25),VAR1),VAR2),DRAWNULL),COLORGRAY;
青干剑:IF(T,EMA(REF(COST(10),VAR1),VAR2),DRAWNULL),COLORGRAY;
舍神剑:IF(T,EMA(REF(COST(5),VAR1),VAR2),DRAWNULL),COLORF0F0F0,LINETHICK2;
DRAWICON(CROSS(游龙剑,斩妖) AND VAR3,游龙剑,1);
DRAWICON(CROSS(CLOSE,游龙剑) AND CROSS(CLOSE,斩妖) AND VAR3,LOW,9);
VAR11:=IF(REF(CLOSE,1)*1.1-HIGH<0.01,1,0);
STICKLINE(VAR11 AND NOT(VAR3),OPEN,CLOSE,3.5,1),COLORFF8080;
STICKLINE(VAR11 AND NOT(VAR3),MAX(OPEN,CLOSE),CLOSE,3.5,0),COLORFF8080;
STICKLINE(VAR11 AND NOT(VAR3),LOW,MIN(CLOSE,OPEN),0,0),COLORFF8080;
STICKLINE(VAR11 AND NOT(VAR3),HIGH,MAX(CLOSE,OPEN),0,0),COLORFF8080;
DRAWICON(VAR11 AND NOT(VAR3),HIGH,24);
每股公积:FINANCE(18),NODRAW,COLORGRAY;
每股未分配利润:FINANCE(32),NODRAW,COLORGRAY;
股东权益:FINANCE(36),NODRAW,COLORGRAY;
所属风格:DRAWTEXT_FIX(G,0,0,0,FGBLOCK),COLORYELLOW;
所属概念:DRAWTEXT_FIX(G,0,0.08,0,GNBLOCK),COLORYELLOW;
所属行业:DRAWTEXT_FIX(G,0,0.16,0,HYBLOCK),COLORYELLOW;
所属地区:DRAWTEXT_FIX(G,0,0.24,0,DYBLOCK),COLORYELLOW;
VAR12:=VAR3 AND CROSS(CLOSE,游龙剑) AND LLV(游龙剑,3)=REF(游龙剑,1);
VAR13:=REF(舍神剑,2)>=REF(舍神剑,1) AND REF(舍神剑,1)<舍神剑;
VAR14:=REF(青干剑,2)>=REF(青干剑,1) AND REF(青干剑,1)<青干剑;
VAR15:=REF(日月剑,2)>=REF(日月剑,1) AND REF(日月剑,1)<日月剑;
VAR16:=REF(天瀑剑,2)>REF(天瀑剑,1) AND REF(天瀑剑,1)<天瀑剑;
VAR17:=3;
VAR18:=EXIST(VAR13,VAR17) AND EXIST(VAR14,VAR17) AND EXIST(VAR15,VAR17);