CJL1:=IF(DYNAINFO(10)>99999999,STRCAT(CON2STR(DYNAINFO(10)/100000000,2)<10,''),STRCAT(CON2STR(DYNAINFO(10)/10000,0),'万'));
DRAWTEXT_FIX(01,0.01,0.01.0,0,CJL1),COLORYELLOW;
{STICKLINE((CJL1),L,L*333333333,100,0),COLOR0099FF,LINETHICK9;}
圣灵石:=SMA(C,6.5,1);
圣灵石仙:=SMA(C,13.5,1);
DRAWICON(CROSS(圣灵石,圣灵石仙) AND TIME<=0933,H*99999999,1);
AAA:=(CROSS(圣灵石,圣灵石仙),H,1);
{DRAWTEXT(CROSS(圣灵石,圣灵石仙),H*999999999,'加速度' ),COLORYELLOW;};
LC:=REF(CLOSE,1);
WRSI:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
WR10:=(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*100;
活跃:=(WRSI-WR10);
活跃度比:=IF(活跃>=0,(活跃+100)/2,100-ABS((活跃-100)/2))AND TIME<=0935;
{DRAWTEXT_FIX(1,0.48,0.35,1,STRCAT(STRCAT('活跃:',CON2STR(活跃度比,2)),'%')),COLORYELLOW;}
STICKLINE((活跃度比>95) AND TIME<=0935,L,L*1,100,2),COLORMAGENTA,LINETHICK9;
VAR1:=(C-LLV(L,13))/(HHV(H,13)-LLV(L,13))*100;
牛:=SMA(VAR1,7,1);
VAR2:=SMA(牛,5,1);
熊:=IF(CROSS(牛,VAR2) AND CROSS(MA(C,5),MA(C,13) AND 牛>50),VAR2*2,VAR2);
{DRAWBAND(牛,RGB(205,92,92),熊,RGB(28,134,238));}
N:=14;M:=6;
TRR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);
PDI:=DMP*100/TRR COLORMAGENTA;
MDI:=DMM*100/TRR COLORGREEN;
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
ADXR:=EXPMEMA(ADX,M);
STICKLINE(ADX>=ADXR,ADX,ADXR,3,0),COLOR800040;
STICKLINE(ADX<ADXR,ADX,ADXR,3,1),COLORGRAY;
关注:=STICKLINE(BARSLAST(CROSS(MDI,PDI))<5 AND MDI>PDI AND ADX<ADXR AND MDI>ADXR*0.97,ADX,ADXR,2,0) COLORRED;
10;90;
FVAR1:=REF(CLOSE,2);
会员专用:= SMA(MAX(CLOSE-FVAR1,0),7,1)/SMA(ABS(CLOSE-FVAR1),7,1)*100,COLORYELLOW;
{一、PDI>MDI且趋势向上;二、ADX;ADXR在PDI及MDI中间金叉 }
走强:DRAWTEXT(CROSS(ADX,ADXR) AND PDI>MDI AND PDI>REF(PDI,1) AND ADX>REF(ADX,1)
AND BETWEEN(ADX,MDI,PDI) AND TIME<=0935 AND ADXR>REF(ADXR,1),ADXR*9999999,'走强'),COLORYELLOW;
STICKLINE(CROSS(ADX,ADXR) AND PDI>MDI AND PDI>REF(PDI,1) AND ADX>REF(ADX,1)
AND BETWEEN(ADX,MDI,PDI) AND ADXR>REF(ADXR,1)AND (ADXR*0.98) AND
(活跃度比),L,H*99999999,2,0),COLORCYAN;
DRAWTEXT(CROSS(ADX,ADXR) AND PDI>MDI AND PDI>REF(PDI,1) AND ADX>REF(ADX,1)
AND BETWEEN(ADX,MDI,PDI) AND TIME<=0935 AND ADXR>REF(ADXR,1),ADXR*999999,'走强'),COLORGREEN;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
{IF(DIFF<0,DIFF,0),COLORRED,LINETHICK1;
IF(DIFF<0,0,DIFF),COLORYELLOW,LINETHICK1;
IF(DIFF<DEA,DIFF,DEA),COLOR00FF00,LINETHICK1;
IF(DIFF>DEA,DEA,DEA),COLORWHITE,LINETHICK1;}
低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1;
DRAWTEXT(低位金叉,999999999,' 低位金叉'),COLORYELLOW;
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金叉:=CROSS(DIFF,DEA)
AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
STICKLINE(二次金叉,0,二次金叉*999,3,0),COLORFF00FF;
DRAWICON(二次金叉,DEA*1.04,23) ;
DRAWTEXT(二次金叉,444444444,' 二次金叉'),COLORFF00FF;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);
STICKLINE(底背离,0,0.13,2,0),COLOR00FF00;
DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED,LINETHICK2;
DRAWTEXT(底背离,999999999,' 底背离'),COLOR00FF00;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离:=REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
{DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN,LINETHICK2;};
VAR326:=IF(CLOSE AND MA(VOL, 5)/240 AND CLOSE>REF(CLOSE, 1)*1.00 AND CLOSE,88,0);
{VAR38>VAR39;};
突破:=REF(EMA(C,14),1);
多方:(EMA(C,10)-突破)/突破*100;
开盘抢筹:DYNAINFO(104);
XG:多方>3 AND 开盘抢筹>110 AND DYNAINFO(14)*100>3;
DRAWICON(CROSS(多方,开盘抢筹) AND TIME<=0935 AND L,L*99999999,23);