移动钓鱼线
参数:变量00 =1 p=2
DRAWTEXT(SYSPARAM(2)=BARPOS,CLOSE,'版块:'+BLKNAME),ALIGN4,colorFFFF;
DRAWTEXT(SYSPARAM(2)=BARPOS,CLOSE,'证券代码:'+STKLABEL),ALIGN5,colorFF00;
VAR1N:=10908319;
U1:=IF(DATE<=VAR1N,1,0);
TR1:=MAX(MAX(HIGH-LOW,ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
VAR0:=EMA(EMA(EMA(CLOSE,2),2),2);
ATR:=MA(TR1,13);
VAR1:=REF(CLOSE,1)-REF(ATR,1);
海岸线:HHV(VAR0,13)*0.98*U1,LINETHICK3,colorFF00;
钓鱼线:HHV(VAR0,5)*0.98*U1,LINETHICK2,colorFF00;
MA77:=MA(VAR0,77);
MA99:=MA(VAR0,99);
MA13:=MA(VAR0,13);
K1:EMA(CLOSE,3),colorFF0000;
K2:EMA(CLOSE,5),colorFF0000;
K3:EMA(CLOSE,8),colorFF0000;
K4:EMA(CLOSE,13),colorFF0000;
K5:EMA(CLOSE,15),colorFF0000;
K:EMA(CLOSE,21),LINETHICK4,colorFF0000;
QQ:(MA(K1,1)+MA(K2,3)+MA(K3,5)+MA(K4,7)+MA(K5,9))/5,LINETHICK2,colorFF00FF;
K6:EMA(CLOSE,30),colorFFFF;
K7:EMA(CLOSE,35),colorFFFF;
K8:EMA(CLOSE,40),colorFFFF;
K9:EMA(CLOSE,45),colorFFFF;
K10:EMA(CLOSE,50),LINETHICK3,colorFFFF;
K11:EMA(CLOSE,60);
K12:EMA(CLOSE,60),colorFFFF;
MA13:=MA(QQ,13);
MA77:=MA(QQ,77);
MA99:=MA(QQ,99);
暗器22:=IF(CROSS(QQ,海岸线),海岸线,0);
暗器23:=IF(CROSS(K11,海岸线),海岸线,0);
暗器24:=IF(CROSS(K6,QQ),海岸线,0);
DRAWTEXT(暗器24>0,LOW,'■神偷冒险'),colorFFFF;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
HH:=MA(CLOSE,10);
GG:=MA(CLOSE,12);
上:=FFT(MA(HIGH,3)*1.05,30);
下:=FFT(MA(LOW,3)*0.96,30);
DIFF2:=EMA(CLOSE,2)-EMA(OPEN,5);
操盘手:=DIFF2;
DRAWTEXT(CROSS(操盘手,MACD) AND LOW<=下 AND MACD<=-0.01,LOW,'5%'),colorB7D16F;
短线5%选股2:=IF(CROSS(操盘手,MACD) AND MACD<=-0.11 AND LOW<=下,1,0);
DRAWICON(暗器22>0,QQ,1);
VAR2Q:=MA(CLOSE,80)-MA(CLOSE,13)/3;
神奇线:=MA((CLOSE-VAR2Q)/VAR2Q,1);
XA:=EMA(神奇线,12)*0.7;
XB:=EMA(神奇线,3);
底部将成:=IF(LLV(XB-XA,30)>0,0,-20);
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
抄底:=IF(底部将成<0 AND CROSS(MACD,0),50,0);
DRAWTEXT(抄底>0,LOW,'■MD'),PXUP6,color4600FF;
VAR22:=LLV(LOW,3)=LLV(LOW,3) AND CLOSE>=OPEN*1.04;
VAR333:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;
VAR44:=VAR22 AND VAR333;
VAR55:=BARSLAST(VAR333);
VAR66:=BARSLAST(VAR44);
VAR77:=IF(VAR66>0,(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,0);
VAR88:=SUM(VAR77,1);
VAR93:=IF(VAR55>3,-2,0);
VAR1:=1;
MID:=MA(CLOSE,12)*VAR1;
YT:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2)*VAR1;
UPPER:=MID+P*STD(CLOSE,12)*VAR1;
LOWER:=MID-P*STD(CLOSE,12)*VAR1;
选中:=IF((UPPER-CLOSE)/CLOSE>0.3 AND (ABS(CLOSE-LOWER))/CLOSE<0.05 AND CLOSE<YT,LOWER*0.9,UPPER*1.09);
VAR2:=IF(CLOSE<=LOWER,LOWER,0);
VAR3:=IF(FILTER(VAR2=LOWER,0),-2,0);
AAA:=VAR3+LOWER;
BB:=AAA<LOWER OR 选中<UPPER;
DRAWTEXT(BB>0,LOW,'●'),PXUP6,color4600FF;
HHH:=HHV(HIGH,288);
LLL:=LLV(LOW,288);
ZH:=HHH[DATACOUNT];
ZL:=LLL[DATACOUNT];
Q:=(ZH-ZL)/5;
C90%:=(COST(95)-COST(5))/(COST(95)+COST(5))*100;
集中度:=IF(C90%<=18 AND CLOSE<ZH-4*Q,100,0);
ZCB1:=SUMBARS(VOL,CAPITAL*1);
ZCB2:=SUM(COST(10),ZCB1)/ZCB1;
ZCB3:=SUM(COST(20),ZCB1)/ZCB1;
ZCB4:=SUM(COST(30),ZCB1)/ZCB1;
ZCB5:=SUM(COST(40),ZCB1)/ZCB1;
ZCB6:=SUM(COST(50),ZCB1)/ZCB1;
庄本:(5*ZCB2+4*ZCB3+3*ZCB4+2*ZCB5+ZCB6)/15,LINETHICK3,PRECISION2,color808080;
庄本2:(5*ZCB2+4*ZCB3+3*ZCB4+2*ZCB5+ZCB6)/15*1.01,LINETHICK3,PRECISION2,color808080;
M120:EMA(VAR0,120)*U1,LINETHICK2,color404080;
|