组合主图(飞狐主图) N:=30;
DRAWGBK(CLOSE>OPEN,COLORRGB(110,0,0),COLORRGB(0,0,0),0); DRAWGBK(CLOSE<OPEN,COLORRGB(0,110,0),COLORRGB(0,0,0),0); M:=BARSCOUNT(VOL); VV:=IF(RANGE(STKTYPE,0,13),AMOUNT/100,CLOSE*VOL); 前N期:IF(M<=N,SUM(VV,M)/SUM(VOL,M),REF(SUM(VV,N)/SUM(VOL,N),IF(M<2*N,M-N,N-1))),LINETHICK0; 后N期:SUM(VV,N)/SUM(VOL,N),LINETHICK0; XS:=(SYSPARAM(4)-SYSPARAM(5))/30; STICKLINE(BARPOS=SYSPARAM(1)-5,前N期[SYSPARAM(1)],前N期[SYSPARAM(1)],120,0),LINETHICK2,colorFFFFFF; DRAWTEXT(BARPOS=SYSPARAM(1)-11,前N期[SYSPARAM(1)]-XS,'前N期成本'+NUMTOSTR(前N期[SYSPARAM(1)],2)),colorFFFFFF; IF M[SYSPARAM(1)]>N THEN STICKLINE(BARPOS=SYSPARAM(1)-5,后N期[SYSPARAM(1)],后N期[SYSPARAM(1)],120,0),LINETHICK2,colorFFFF; IF M[SYSPARAM(1)]>N THEN DRAWTEXT(BARPOS=SYSPARAM(1)-11 AND M>N,后N期[SYSPARAM(1)]-XS,'后N期成本'+NUMTOSTR(后N期[SYSPARAM(1)],2)),colorFFFF; N1:=SYSPARAM(3); 小号:=N1-SYSPARAM(2)+1; HH:=HHV(HIGH,小号); LL:=LLV(LOW,小号); 最高:=HH[N1]; 最低:=LL[N1]; 安全:最低+(最高-最低)*0.191,POINTDOT,LINETHICK3,PRECISION2,colorFF8900; 中枢:最低+(最高-最低)*0.5,LINEDOT,PRECISION2,colorFF00FF; 警惕:最低+(最高-最低)*0.809,LINEDOT,PRECISION2,colorFFFF; 临界:最低+(最高-最低)*0.609,LINEDOT,PRECISION3,colorFF00; GJ:=AMOUNT/VOL/100; 个股代码:ZQDMNUM,LINETHICK0; 多头:FFT(MA(HIGH,3)*1.03,30); 空头:FFT(MA(LOW,3)*0.97,30); A2:=多头-REF(多头,1); A3:=空头-REF(空头,1); PARTLINE(A2>0,多头),LINETHICK2,colorFF; PARTLINE(A2=0,多头),LINETHICK1,colorFFFFFF; PARTLINE(A2<0,多头),LINETHICK1,colorFFFF; PARTLINE(A3>0,空头),LINETHICK2,colorFF; PARTLINE(A3=0,空头),LINETHICK1,colorFFFFFF; PARTLINE(A3<0,空头),LINETHICK1,colorFFFF; BYX:=MA(CLOSE,8); FILLRGN(BYX>REF(BYX,3),BYX,REF(BYX,3)),LINETHICK3,colorFF; FILLRGN(BYX<REF(BYX,2),BYX,REF(BYX,2)),LINETHICK3,colorFF00; X1:=(CLOSE+LOW+HIGH)/3; X2:=EMA(X1,6); X3:=EMA(X2,5); DRAWICON(CROSS(X2,X3),LOW-0.1,1); DRAWICON(CROSS(X3,X2),HIGH+0.1,2); STICKLINE(X2>=X3,LOW,HIGH,0.1,1),colorFF; STICKLINE(X2>=X3,CLOSE,OPEN,10,1),colorFF; STICKLINE(X2>=X3,CLOSE,OPEN,9,9),colorE66878; STICKLINE(X2<X3,LOW,HIGH,0.1,1),colorFF00; STICKLINE(X2<X3,CLOSE,OPEN,10,1),colorFF00; STICKLINE(X2<X3,CLOSE,OPEN,9,1),colorFF937F; STICKLINE(CROSS(X2,X3),OPEN,CLOSE,6,0),colorFFFF; STICKLINE(CROSS(X3,X2),OPEN,CLOSE,6,0),colorFF0000; A11:=MA(WINNER(CLOSE),9)*100; B11:=CROSS(A11,1.8); D11:=B11>0; LC:=REF(CLOSE,1); RSI:=(SMA(MAX(CLOSE-LC,0),6,1))/(SMA(ABS(CLOSE-LC),6,1))*100; E1:=CROSS(83,RSI); DRAWTEXT(E1,HIGH+0.15,'见顶'),colorFFFF; VA:=CROSS(EMA(CLOSE,4),EMA(CLOSE,17)); VB:=EMA(CLOSE,6)>EMA(CLOSE,13); DRAWICON(VA AND VB,EMA(CLOSE,13),9); A:=BARSCOUNT(CLOSE); AH:=HHV(HIGH,200); AL:=LLV(LOW,200); B0:=(AH-AL)/40; B1:=HIGH+B0; B2:=LOW-B0; STICKLINE((A+0)/34=FLOOR((A+0)/34),B2,B2-3*B0,5,0),colorFFFF; DRAWTEXT((A+0)/34=FLOOR((A+0)/34),B2-2*B0,'追涨'),colorFFFF;
|
