给大家分享一个根据凉风无梦老师源码改写的徐小明的“多空通道”大智慧公式,副图。据介绍,在大盘日线图上终于无限接近原版:
短线多:EMA(H,25),colorred;
短线空:EMA(L,25),colorgreen;
短线波动:短线多-短线空,coloryellow, LINETHICK0;
STICKLINE(C>短线多,短线多,短线空,0.1,1),colorred;
STICKLINE(C<短线空,短线多,短线空,0.1,1),colorgreen;
长线多:EMA(H,90),colormagenta;
长线空:EMA(L,90),colorblue;
长线波动:长线多-长线空,coloryellow, LINETHICK0;
STICKLINE(C>长线多,长线多,长线空,0.1,1),colormagenta;
STICKLINE(C<长线空,长线多,长线空,0.1,1),colorblue;
STICKLINE(CLOSE>OPEN or CLOSE=OPEN,LOW,HIGH,0.8,0),colorred;
STICKLINE(CLOSE>OPEN or CLOSE=OPEN,OPEN,CLOSE,8,0),colorred;
STICKLINE(CLOSE<OPEN or CLOSE=OPEN,LOW,HIGH,0.8,0),colorffff00;
STICKLINE(CLOSE<OPEN or CLOSE=OPEN,OPEN,CLOSE,8,0),colorffff00;
凉风无梦老师源码(通达信),含九转公式和仓位判断,希望高手老师能全部改为大智慧的:
短线多:EMA(H,25),colorred;
短线空:EMA(L,25),colorgreen;
短线波动:短线多-短线空,coloryellow,NODRAW;
NOTEXT短线空0:IF(C>短线空,短线空,DRAWNULL),colorred;
NOTEXT短线空1:IF(C<短线空,短线空,DRAWNULL),colorgreen;
NOTEXT短线多0:IF(C>短线多,短线多,DRAWNULL),colorred;
NOTEXT短线多1:IF(C<短线多,短线多,DRAWNULL),colorgreen;
STICKLINE(C>短线多,短线多,短线空,0.1,1),colorred;
STICKLINE(C<短线空,短线多,短线空,0.1,1),colorgreen;
长线多:EMA(H,90),colormagenta;
长线空:EMA(L,90),colorblue;
长线波动:长线多-长线空,coloryellow,NODRAW;
NOTEXT长线空0:IF(C>长线空,长线空,DRAWNULL),colormagenta;
NOTEXT长线空1:IF(C<长线空,长线空,DRAWNULL),colorblue;
NOTEXT长线多0:IF(C>长线多,长线多,DRAWNULL),colormagenta;
NOTEXT长线多1:IF(C<长线多,长线多,DRAWNULL),colorblue;
STICKLINE(C>长线多,长线多,长线空,0.1,1),colormagenta;
STICKLINE(C<长线空,长线多,长线空,0.1,1),colorblue;
空:=REF(C,1)>REF(短线空,1) AND C<短线空 AND C<REF(C,1);
多:=REF(C,1)<REF(短线多,1) AND C>短线多 AND C>REF(C,1);
空1:=TFILTER(多,空,2);
多1:=TFILTER(多,空,1);
DRAWTEXT(空1,短线多*1.04,'空'),NODRAW;
DRAWTEXT(多1,短线空*0.96,'多'),NODRAW;
DRAWICON(空1,H*1.04,2);
DRAWICON(多1,L*0.96,1);
仓位4:=(C>短线多 AND C<长线多);
仓位4B:=TFILTER(仓位4,空,1);
DRAWTEXT(仓位4B,H*1.02,'四'),coloryellow;
仓位10:=C>短线多 AND C>长线多;
仓位10B:=TFILTER(仓位10, 空,1);
DRAWTEXT(仓位10B,H*1.02,'拾'),coloryellow;
仓位44:=(REF(C,3)>REF(长线多,3)) OR (REF(C,2)>REF(长线多,2))OR (REF(C,1)>REF(长线多,1)) AND (C>短线空 AND C<长线空);
仓位44B:=TFILTER(仓位44,仓位10,1);
DRAWTEXT(仓位44B,H*1.02,'四'),coloryellow;
仓位110:=C>短线多 AND C>长线多;
仓位110B:=TFILTER(仓位110,仓位44B,1);
DRAWTEXT(仓位110B,H*1.02,'拾'),coloryellow;
DRAWTEXT(仓位44B,H*1.02,'四'),coloryellow;
仓位0:=C<短线空 AND C<长线空;
仓位0B:=TFILTER(仓位0,多,1);
DRAWTEXT(仓位0B,L*0.99,'零'),coloryellow;
仓位6:=C<短线空 AND C>长线空;
仓位6B:=TFILTER(仓位6,多,1);
DRAWTEXT(仓位6B,L*0.99,'六'),coloryellow;
A1:=C>REF(C,4);
A2:=BARSLASTCOUNT(A1);
A3:=REF(A2,1)=8 AND A2>REF(A2,1);
A4:=REF(BETWEEN(A2,5,8),1) AND A2<REF(A2,1);
A5:=ISLASTBAR AND BETWEEN(A2,6,8);
A6:=(BACKSET(A3>0,9) OR BACKSET(A4>0,A2+1)*0 OR BACKSET(A5>0,A2))*A2;
DRAWTEXT(A6>0,H+H*0.02,VAR2STR(A6,0)),COLORFF00FF;
DRAWTEXT(A2=9,H+H*0.02,'9'),COLOR00FF00;
B1:=C<REF(C,4);
B2:=BARSLASTCOUNT(B1);
B3:=REF(B2,1)=8 AND B2>REF(B2,1);
B4:=REF(BETWEEN(B2,5,8),1) AND B2<REF(B2,1);
B5:=ISLASTBAR AND BETWEEN(B2,6,8);
B6:=(BACKSET(B3>0,9) OR BACKSET(B4>0,B2+1)*0 OR BACKSET(B5>0,B2))*B2;
DRAWTEXT(B6>0,L-L*0.02, VAR2STR(B6,0)),COLOR00FF00;
DRAWTEXT(B2=9,L-L*0.02,'9'),COLORFF00FF;
H和L不用设置,T=25 TT=90