以下是大智慧回马枪主图副图指标公式源码和截图
大智慧涨停回马枪主图副图选股指标公式源码:
{主图}
LC:=REF(CLOSE,1);
操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;
震仓线:=45;
震仓线2:=50;
逃命线:=80;
线:=20;
绝底线:=5;
PP2:=操作线 震仓线2ANDREF(操作线,1) 震仓线2;
PP:=操作线 震仓线ANDREF(操作线,1)
PP3:=操作线 抄底线ANDREF(操作线,1)
涨停:=IF(REF(C,1)*1.1-C 0.01,1,0);
HH:=COUNT(涨停,13)
STICKLINE(涨停ANDHH,0,0.8,8,0),COLORYELLOW;
DRAWTEXT(涨停ANDHH,1.3,'涨'),COLORYELLOW;
DRAWTEXT(涨停ANDHH,1,'停'),COLORYELLOW;
AA:=REF(PP,1)ANDHH;
STICKLINE(PPANDHH,0,0.8,5,0),COLORRED;
DRAWTEXT(PPANDHH,1.3,'预'),COLORRED;
DRAWTEXT(PPANDHH,1,'警'),COLORRED;
STICKLINE(REF(PP,1)ANDHH,0,3,8,0),COLORGREEN;
DRAWICON(REF(PP,1)ANDHH,3.3,1);
黄色涨停板:PP,LINETHICK0,COLORYELLOW;
红色预警:PP,LINETHICK0,COLORRED;
绿色买入:PP,LINETHICK0,COLORGREEN;
{副图}
LC:=REF(CLOSE,1);
操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;
震仓线:=45;
震仓线2:=50;
逃命线:=80;
抄底线:=20;
绝底线:=5;
PP2:=操作线 震仓线2ANDREF(操作线,1) 震仓线2;
PP:=操作线 震仓线ANDREF(操作线,1)
PP3:=操作线 抄底线ANDREF(操作线,1)
涨停:=IF(REF(C,1)*1.1-C 0.01,1,0);
HH:=COUNT(涨停,13) {13天至少1次涨停}
绿买1:=REF(PP,1)ANDHH;
绿买2:=REF(PP3,1)ANDHH;
绿买:=绿买1OR绿买2;
红警:=PPANDHH;
STICKLINE(涨停,0,0.6,8,0),COLORYELLOW;{绘制涨停黄柱}
STICKLINE(红警,0,0.8,5,0),COLORRED;{绘制预警红柱}
STICKLINE(绿买,0,1,3,0),COLORGREEN;{绘制买入绿柱}
黄色涨停板:涨停,LINETHICK0,COLORYELLOW;
红色预警:红警,LINETHICK0,COLORRED;
绿色买入:绿买,LINETHICK0,COLORGREEN;
{预警选股}
LC:=REF(CLOSE,1);
操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
趋势线:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;
震仓线:=45;
震仓线2:=50;
逃命线:=80;
抄底线:=20;
绝底线:=5;
PP2:=操作线 震仓线2ANDREF(操作线,1) 震仓线2;
PP:=操作线 震仓线ANDREF(操作线,1)
PP3:=操作线 抄底线ANDREF(操作线,1)
涨停:=IF(REF(C,1)*1.1-C 0.01,1,0);
HH:=COUNT(涨停,13)
AA:=REF(PP,1)ANDHH;
PPANDHH;
W1:=C=HHV(C,20);
W2:=BARSLAST(W1);
W3:=IF(W2 0,REF(C,W2),REF(C,W2));
W4:=CROSS(C,REF(W3,1));
W4ANDCOUNT(W4,5)=1;
VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR2:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR3:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR5:=(VAR2+2*VAR3+3*VAR4)/6;
VAR6:=MA(VAR5,3);
MACD:VAR6*5,COLORSTICK,LINETHICK2;
提醒:STICKLINE(VAR6 =-6,0,-25,5,0),COLOR88B7EA;
关注:STICKLINE(VAR6 =-8,5,25,7,0),;
出击:STICKLINE(VAR6 =-10,80,100,5,0),COLORYELLOW;
警戒雷达:IF(VAR6 -6,20,0),LINETHICK3,COLORFF0000;
引导雷达:STICKLINE(VAR6 =-10,65,35,4,0);
制导雷达:STICKLINE(VAR6 =-10,40,0,4,0),COLORRED;
发射:STICKLINE(VAR6 =-10,80,30,3,0),COLORGREEN;
导弹:STICKLINE(VAR6 =-10,80,60,3,0),COLORWHITE;
K:SMA(VAR1,3,1),COLORGREEN;
D:SMA(K,3,1),COLORYELLOW;
J:3*K-2*D,COLORWHITE;
底:20,LINETHICK2,POINTDOTCOLOR77AA1A;
入顶:80,LINETHICK2,POINTDOTCOLORCYAN;
大顶:100,LINETHICK2,POINTDOTCOLOR22A6E6;
大智慧涨停回马枪主图副图选股指标公式截图