此指标是本人融合坛子里其它老师的指标,但还不是很完美,涨跌家数统计不完整,好像是引用的有另外一个指标里的参数,但本人没找到,希望高手再做下优化就完美了
有图有真相
融合分时主图
{分时看盘}
突破:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-突破)/突破*100;
多方:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),DRAWNULL);
空方:=IF(A1X<0,REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1),DRAWNULL);
STICKLINE(A1X>=0,多方,突破,10,0),COLOR000099;
STICKLINE(A1X<0,空方,突破,10,0),COLOR00CC66;
日牛熊线:=EMA(C,120),COLORFF0080,LINETHICK1;
最新:CLOSE,LINETHICK1,COLORWHITE;
{CLOSE,LINETHICK1,COLORWHITE;}
AA:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C));
BB:=BETWEEN(C/AA,C+H,C-H);
DRAWTEXT( ISLASTBAR AND 最新>REF(最新,1),最新,STRCAT(' 我赢涨↑',CON2STR(最新,2))),COLOR0000FF;
DRAWTEXT( ISLASTBAR AND 最新[
]上涨家数:=CONST(IF(PERIOD=0 ,'FSKY2.上涨家数#DAY',DRAWNULL)),NODRAW;
下跌家数:=CONST(IF(PERIOD=0 ,'FSKY2.下跌家数#DAY',DRAWNULL)),NODRAW;
一纯%:=CONST(IF(PERIOD=0 ,'FSKY2.一纯%#DAY',DRAWNULL)),NODRAW;
三纯%:=CONST(IF(PERIOD=0 ,'FSKY2.三纯%#DAY',DRAWNULL)),NODRAW;
五纯%:=CONST(IF(PERIOD=0 ,'FSKY2.五纯%#DAY',DRAWNULL)),NODRAW;
DRAWTEXT_FIX(1,0.200,1-0.08,0,STRCAT('上涨家数:',CON2STR(上涨家数,0))),COLOR0000FF;
DRAWTEXT_FIX(1,0.600,1-0.08,0,STRCAT('下跌家数:',CON2STR(下跌家数,0))),COLOR00FF00;
分时均价线:SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK1;
K:=IF((分时均价线-DYNAINFO(3))/DYNAINFO(3)*100>0.5,0.5,0);
DRAWTEXT_FIX(五纯%>=0,0.6,1-0.9+K,0,STRCAT('五日纯量%: ',CON2STR(五纯%,2))),COLOR0000FF;
DRAWTEXT_FIX(五纯%<0,0.6,1-0.9+K,0,STRCAT('五日纯量%: ',CON2STR(五纯%,2))),COLORFFFF00;
DRAWTEXT_FIX(三纯%>=0,0.6,1-0.8+K,0,STRCAT('三日纯量%: ',CON2STR(三纯%,2))),COLOR0000FF;
DRAWTEXT_FIX(三纯%<0,0.6,1-0.8+K,0,STRCAT('三日纯量%: ',CON2STR(三纯%,2))),COLORFFFF00;
DRAWTEXT_FIX(一纯%>=0,0.6,1-0.7+K,0,STRCAT('当日纯量%: ',CON2STR(一纯%,2))),COLOR0000FF;
DRAWTEXT_FIX(一纯%<0,0.6,1-0.7+K,0,STRCAT('当日纯量%: ',CON2STR(一纯%,2))),COLORFFFF00;
今日开盘线:DYNAINFO(4),COLORMAGENTA;
今日最高价:=DYNAINFO(5),COLORBLUE;
今日最低价:DYNAINFO(6),COLORGREEN;
今日均价线:=DYNAINFO(11),COLORYELLOW;
CC:=C;
TT:=BARSCOUNT(CC);
均价:SUM(V*C,0)/SUM(V,0),COLORGREEN;
均:=MA(CC,TT);
上均线:=均+2*STD(CC,3),COLORMAGENTA;
下均线:=均-2*STD(CC,3),COLORYELLOW;
DRAWICON(CROSS(均价,均),均价,1);
时长:=TIME>93000;
涨幅:=CC/REF(C,1)>1.02;
跌幅:=CC/REF(C,1)<0.98;
横盘:=((HHV(CC,TT)-LLV(CC,TT))/CC)<0.05;
YY:=SMA(VOL,30,1);
放量:=(YY-LLV(LLV(YY,1),30))/(HHV(HHV(YY,1),30)-LLV(LLV(YY,1),30))>0.95;
涨跌幅:=涨幅 OR 跌幅;
横涨1:=涨跌幅=0 AND 横盘 AND 放量 AND CROSS(均价,均);
DRAWTEXT(FILTER(横涨1,10),均价,'突'),COLORYELLOW;
横涨2:=涨跌幅=0 AND 横盘 AND 放量 AND CROSS(C,均价) AND CROSS(C,均);
DRAWTEXT(FILTER(横涨2,10),均价*0.99,'升'),COLORRED;