HIGHN:=10;
LOWN:=10;
AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
重心:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382,COLORYELLOW,LINETHICK1;
RSI:=SMA(MAX(重心-REF(重心,1),0),5,1)/SMA(ABS(重心-REF(重心,1)),5,1);
GAO:=HHV(C,60)-LLV(C,60);
Y1:重心+(RSI-0.5)*GAO,COLORMAGENTA;
Y2:DRAWICON(CC,Y1*1.01,5);
DDD:=BARSLAST(CC);
GDTS:=IF(CC,DATACOUNT-BARPOS+1,0);
DINGBU:=IF(DDD,REF(Y1,DDD),Y1);{顶部}
DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DINGBU1:=REF(DINGBU,DDD+1);
GDCS1:=DINGBUTS[DATACOUNT] ;
DINGBUTS1:=REF(DINGBUTS,DDD+1);
GDCS2:=DINGBUTS1[DATACOUNT];
DINGBU2:=REF(DINGBU1,DDD+1);
MM:=IF(DATACOUNT-BARPOS+1>GDCS2,0,1);
戴绿帽秃顶1:DRAWLINE(DATACOUNT-BARPOS+1=GDCS2,Y1,ISLASTBAR,REF(Y1,GDCS2-1),1),COLORGREEN;
戴绿帽秃顶2:DRAWLINE(DATACOUNT-BARPOS+1=GDCS1,Y1,ISLASTBAR,REF(Y1,GDCS1-1),1),COLORGREEN;
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
QY1:=BACKSET(AA1,LOWN+1);
CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
DRAWICON(CC1,Y1*1.003,4);
DD1:=BARSLAST(CC1);
DDTS:=IF(CC1,DATACOUNT-BARPOS+1,0);
YDB:=IF(DD1,REF(Y1,DD1),Y1);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
DDCS1:=DDTS1[DATACOUNT];
ZDB:=REF(YDB,DD1+1);
DDTS2:=REF(DDTS1,DD1+1);
DDCS2:=DDTS2[DATACOUNT];
穿红鞋掉底1:DRAWLINE(DATACOUNT-BARPOS+1=DDCS1,Y1,ISLASTBAR,REF(Y1,DDCS1-1),1),COLORRED;
穿红鞋掉底2:DRAWLINE(DATACOUNT-BARPOS+1=DDCS2,Y1,ISLASTBAR,REF(Y1,DDCS2-1),1),COLORRED;
底部揭示(短线)(副图 源码 贴图)
yjd下穿-60至-80之间,两三天内必翻红,并有一波上升行情。yjd 上穿+80风险线可回避,结合s1 s2运行方向,是一个短线操作指标。
CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
YJD: (EMA(CS,3)-50)*2;
极弱:-80;
强势:60;
风险:80;
弱势:-60;
VAR4:=(1.1)*CLOSE;
VAR5:=(0.9)*CLOSE;
VAR6:=100*(WINNER(VAR4)-WINNER(VAR5));
S1:2*EMA(100-VAR6,1),COLORYELLOW;
S2:EMA(S1,9);
S3:=MA(S2,9);
条件:=CROSS(YJD,极弱) AND S1>S2;
条件0:=CROSS(强势,YJD) AND S1<S2;
DRAWICON(条件,极弱,5);
DRAWICON(条件0,强势,6);
遁庄控盘(副图 源码 贴图)
VAR1:=(CLOSE*2+HIGH+LOW)/4;
VAR2:=EMA(VAR1,21)-EMA(VAR1,34);
VAR3:=EMA(VAR2,10);
多方控盘:2*(VAR2-VAR3)*3.81,COLORRED;
空方控盘:(-2)*(VAR2-VAR3)*3.81,COLORGREEN;
STICKLINE(多方控盘>0,0,多方控盘,1,0),COLORRED;
STICKLINE(空方控盘<0,0,空方控盘,1,0),COLORGREEN;
STICKLINE(多方控盘<0,0,多方控盘,1,0),COLORRED;
STICKLINE(空方控盘>0,0,空方控盘,1,0),COLORGREEN;
|