红带飘香-精品通达信指标公式源码分享
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);
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);
DRAWBAND(L13,RGB(255,0,0),L14,RGB(0,255,0));
L31:=STD(C,5)/C*10;
L32:=100*L31*((CLOSE-LLV(C,5))/(HHV(C,5)-LLV(C,5))-0.5);
L33:=SMA(L32,9,1);
L34:=SMA(L33,3,1);
DRAWBAND(L33,RGB(255,200,0),L34,RGB(0,2,250));
长线:=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;
短线:=3*L33-2*SMA(L34,3,1),NODRAW;
短线系数:(MA(短线,3)-MA(短线,5))*(100-短线)/100,NODRAW;
波段系数:(长线系数+中线系数+短线系数)*3,NODRAW;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!