ZF:=(EMA(SUM(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)),3),49) * 10)+EMA(C,20);
飞扬古:(EMA(MA(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)),3),13) * 10000),LINETHICK0,colorFFFFFF;
【康熙帝】:EMA(ZF,34),LINETHICK2,color00FFFF;
ZFF:=(EMA(SUM(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)),3),49) * 10000);;
康熙帝:EMA(ZFF,34),LINETHICK0,color00FFFF;
大1:=MA(ZFF,3);
旗1:=MA(大1,3);
展1:=MA(旗1,3);
大:MA(ZF,3),color66DDFF;
旗:MA(大,3),color66CCFF;
展:MA(旗,3),color66AAFF;
热:MA(展,3),color9900FF;
血:MA(热,3),color7700FF;
染:MA(血,3),color0000FF;
PARTLINE(大,(大 < REF(大,1))),colorCCCCCC;
PARTLINE(旗,(旗 < REF(旗,1))),colorBBBBBB;
PARTLINE(展,(展 < REF(展,1))),color999999;
PARTLINE(热,(热 < REF(热,1))),color888888;
PARTLINE(血,(血 < REF(血,1))),color777777;
PARTLINE(染,(染 < REF(染,1))),color555555;
if DISPSTATUS=2 then aa:=BARPOS;
if DISPSTATUS=1 then bb:=BARPOS;
rd:=aa-bb;
k3:=llv(l,barslast(DISPSTATUS=1)+1);
k2:=hhv(h,rd);
k1:=llv(l,rd);
kk:=(k2-k1)/6;
超跌:=(飞扬古 < (0 - 200));
超跌A:=(((((((REF(超跌,1) OR REF(超跌,2)) OR REF(超跌,3)) OR REF(超跌,4)) OR REF(超跌,5)) OR REF(超跌,6)) OR REF(超跌,7)) AND (CROSS(飞扬古,(0 - 200)) OR CROSS(飞扬古,康熙帝)));
超跌B:=(((大1 < (0 - 300)) OR (旗1 < (0 - 300))) OR (展1< (0 - 300)));
DRAWICON(大1 < (0 - 300),k3,6),align1;
DRAWICON(((飞扬古 < (0 - 100)) AND CROSS(飞扬古,康熙帝)),l,7),ALIGN1;
STICKLINE(超跌A,h*1.36,h*1.3,6,0),colorFFFF00;
DRAWICON(超跌A,h*1.39,14),ALIGN1;
STICKLINE(超跌A,h*1.36,h*1.27,1,0),POINTDOT,colorFFFFFF;
STICKLINE((((超跌B OR REF(超跌B,1)) AND CROSS(飞扬古,康熙帝)) AND (飞扬古 > (0 - 200))),h*1.36,h*1.3,6,0),colorFFFFFF;
DRAWICON((((超跌B OR REF(超跌B,1)) AND CROSS(飞扬古,康熙帝)) AND (飞扬古 > (0 - 200))),h*1.38,14),ALIGN1;
STICKLINE((((超跌B OR REF(超跌B,1)) AND CROSS(飞扬古,康熙帝)) AND (飞扬古 > (0 - 200))),h*1.36,h*1.27,1,0),POINTDOT,colorFFFFFF;
ARA:=(100 * WINNER(CLOSE));
VARA:=(0.85 * CLOSE);
VARB:=(100 * WINNER(VARA));
高控:=((ARA > 70) OR (VARB > 30));
M1:=((((飞扬古 > 0) AND (飞扬古 > 大)) AND (康熙帝 > REF(康熙帝,1))) AND (康熙帝 < 0));
M2:=(((((飞扬古 > 0) AND (飞扬古 > 康熙帝)) AND (康熙帝 > REF(康熙帝,1))) AND (康熙帝 > 0)) AND 高控);
M3:=(高控 AND (飞扬古 > 0));
A:=BARSTATUS=2;
DRAWICON((A AND (M3 or 大>REF(大,1) and 旗>REF(旗,1) and 展>REF(展,1))),k2,9),ALIGN1;
DRAWTEXT((A AND (M3 or 大>REF(大,1) and 旗>REF(旗,1) and 展>REF(展,1))),k2*0.99,'██ '),ALIGN2,color00FFFF;
DRAWTEXT((A AND (M3 or 大>REF(大,1) and 旗>REF(旗,1) and 展>REF(展,1))),k2*0.99,'$ '),ALIGN2,color0000FF;
DRAWTEXT((A AND (M3 or 大>REF(大,1) and 旗>REF(旗,1) and 展>REF(展,1))),k2-kk,'◥ '),ALIGN2,color0000FF;
DRAWTEXT((A AND M3),k2-2*kk,'◥ '),ALIGN2,colorFFFFFF;
DRAWTEXT((A AND M3),k2-3*kk,'◥ '),ALIGN2,colorFF0000;
DRAWTEXT((A AND M3 ),k2*0.99,'大旗不倒 赚钱不跑 '),ALIGN2,color00FFFF;
FD:=(h-l)/3;{分段}
OPEN1:=o>FD*2+l;
OPEN3:=o<FD+l;
OPEN2:=not(OPEN1 OR OPEN3);
CLOSE1:=c>FD*2+l;
CLOSE3:=c<FD+l;
CLOSE2:=not(CLOSE1 OR CLOSE3);
DFZD:=CLOSE1 OR (OPEN3 AND CLOSE2);
WQS1:=OPEN2 AND CLOSE2;
KFZD:=not(DFZD OR WQS1);
ZD:=(h+l)/2;
QSXS:=ZD>REF(h,1);
QSXX:=ZD<REF(l,1);
WQS2:=not(QSXS OR QSXX);
S1:=DFZD AND QSXS ;
S2:=KFZD AND QSXX ;
S3:=DFZD AND QSXX;
S4:=KFZD AND QSXS;
S5:=DFZD AND WQS2;
S6:=KFZD AND WQS2;
S7:=WQS1 AND (QSXS OR QSXX OR WQS2);
STICKLINE(1,l,h,0.5,0 ),COLOR00FFFF;
STICKLINE(S2 ,c ,o,7,0 ),COLORFF2020;
STICKLINE(S1,c,o,7 ,0 ),COLOR2020FF;
STICKLINE(S3,c,o,7,0),COLORYELLOW;
STICKLINE(S4,c,o,7,0),COLORCYAN;
STICKLINE(S5,c,o,7,0),COLORMAGENTA;
STICKLINE(S6,c,o,7,0),COLORGREEN;
STICKLINE(S7,c,o,7,0),COLORGRAY;
STICKLINE(1,c,o,2,0),COLORWHITE;
选股:10*CROSS(C,【康熙帝】),LINETHICK0;
|