以下是通达信红带飘香选股公式
红带飘香选股公式
L21:=STD(C,60)/C*10;
L22:=100*L21*((CLOSE-LLV(C,60))/(HHV(C,60)-LLV(C,60))-0.5);
L23:=SMA(L22,9,1);
L24:=SMA(L23,3,1);
L25:=MAX(L23,L24);
L26:=MIN(L23,L24);
L27:=(L23+L24)/2;
L28:=ATAN((L27/MA(L27,3)-1)*100)*180/3.1416;
DRAWBAND(L23,RGB(100,0,0),L24,RGB(0,100,0));
L11:=STD(C,20)/C*10;
L12:=100*L11*((CLOSE-LLV(C,20))/(HHV(C,20)-LLV(C,20))-0.5);
L13:=SMA(L12,9,1);
L14:=SMA(L13,3,1);
L15:=MAX(L13,L14);
L16:=MIN(L13,L14);
L17:=(L13+L14)/2;
L18:=ATAN((L17/MA(L17,3)-1)*100)*180/3.1416;
DRAWBAND(L13,RGB(255,0,0),L14,RGB(0,255,0));
先知曲线:SMA((L18-L28)/10,9,1),POINTDOT,COLORYELLOW;
长线:=3*L23-2*SMA(L24,3,1),NODRAW;
长线系数:(MA(长线,3)-MA(长线,5))*(100-长线)/100,NODRAW;
中线:=3*L13-2*SMA(L14,3,1),NODRAW;
中线系数:(MA(中线,3)-MA(中线,5))*(100-中线)/100,NODRAW;
波段系数:(1.382*长线系数+1.618*中线系数)*3,NODRAW;
评论(0)