H1:=MA(H,3);
C1:=MA(C,3);
L1:=MA(L,3);
CC:=ABS((2*C1+H1+L1)/4-MA(C1,20))/MA(C1,20);
DD:=DMA(C1,CC);
拉升线:(1+7/100)*DD,COLORRED, LINETHICK2;
底线:(1-7/100)*DD,COLORGREEN ,LINETHICK3;
吸筹建仓线:(拉升线+底线)/2,COLORGRAY, LINETHICK2;
DA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
程序化:=(20*DA+19*REF(DA,1)+18*REF(DA,2)+17*REF(DA,3)+16*REF(DA,4)
+15*REF(DA,5)+14*REF(DA,6)+13*REF(DA,7)+12*REF(DA,8)+11*REF(DA,9)+
10*REF(DA,10)+9*REF(DA,11)+8*REF(DA,12)+7*REF(DA,13)+6*REF(DA,14)+5
*REF(DA,15)+4*REF(DA,16)+3*REF(DA,17)+2*REF(DA,18)+REF(DA,20))/210,COLORF0F000;
FILLRGN(MA(C,13) MA(C,21),MA(C,13),MA(C,21),RGB(255,0,0));
FILLRGN(MA(C,13) MA(C,21),MA(C,13),MA(C,21),RGB(0,255,0));
指标:=MA(程序化,5),COLORYELLOW,LINETHICK1;
买:=CROSS(程序化,指标);
卖:=CROSS(指标,程序化);
DRAWICON(CROSS(程序化,指标),L*0.97,7);
DRAWICON(CROSS(指标,程序化),H*1.02,8);
STICKLINE1(程序化 =指标,LOW,HIGH,0,1),COLORRED;
STICKLINE(程序化 =指标,CLOSE,OPEN,3,1),COLORRED;
STICKLINE1(程序化 指标,LOW,HIGH,0,1),COLOR00FF00;
STICKLINE(程序化 指标,CLOSE,OPEN,3.2,1),COLOR00FF00;
KK:=V/REF(V,1) =2.0;
CXHZB:=SUMBARS(KK,1) ;
STICKLINE(CXHZB,REF(L,CXHZB-1)*1.002,REF(L,CXHZB-1),2,0),COLORYELLOW;