以下是通达信XS跟庄主图指标源码(无源码的请下载附件导入)
N:=144;
均价:=(2*C+(C+H+L+O)/4+O)/4;
R:=(2*L+3*均价)/5;R1:=(2*H+3*均价)/5;
天:REF(HHV(R1,N),1),COLORGREEN;
地:REF(LLV(R,N),1),COLORAAAA00;
人:REF(HHV(R1,N*0.66),1),COLORYELLOW,COLOR7F00FF;
和:(人+地)*0.5,COLORFFCCAA,LINETHICK2;
IF((R+R1)/2>和,和,DRAWNULL),COLORRED,LINETHICK2;
CC:=ABS(均价-MA((R+R1)/2,20))/MA((R+R1)/2,20);
XS:DMA(均价,CC),COLORYELLOW,LINETHICK1;
XH:(1+7/100)*XS,COLORMAGENTA;
XL:(1-7/100)*XS,COLORCYAN;
838433711.jpg
|