NDY:=3;
NV:=2;
NB:=2;
N:=5;
M:=13;
T0:=(REF(CLOSE,1)+REF(CLOSE,2)+OPEN)/3;
DRAWTEXT(ISLASTBAR AND C>T0,H*1.05,'不买'),COLORGREEN;
DRAWTEXT(ISLASTBAR AND T0>C,H*1.05,'买'),COLORYELLOW;
买参考:IF(ISLASTBAR AND T0>C,(0-(C-T0)/T0)*1000,DRAWNULL),NODRAW,COLORRED;
卖参考:IF(ISLASTBAR AND C>T0,(C-T0)/T0*1000,DRAWNULL),NODRAW,COLORGREEN;
最新价:C,NODRAW,COLORLIRED;
市盈率:=IF(FINANCE(33)>0,DYNAINFO(39),0)*0.35;
每股收益:=IF(FINANCE(33)>0.01,FINANCE(33)*0.65,0);
合理价:每股收益*市盈率*4,NODRAW,COLORCYAN;
振幅:(H-L)/L*100,NODRAW,COLORYELLOW;
获利筹码:WINNER(CLOSE)*100,NODRAW,COLORCC66FF;
换手:VOL*100/FINANCE(7)*100,NODRAW,COLORGREEN;
V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
V21:=(1-7/100)*(DMA(CLOSE,V1));
V3:=(1+7/100)*(DMA(CLOSE,V1));
V5:=MA((LOW+HIGH+CLOSE)/3,5);
支撑:REFDATE(V21,DATE),POINTDOT,LINETHICK3,COLORLIRED;
阻力:REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLORGREEN;
MA1:=MEMA(CLOSE,5);
MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;
MA3:=IF(MA2>0,MA2,MA2);
MA5:=MA(CLOSE,N),COLOR888899;
MA13:=MA(CLOSE,M),COLORFF9900,LINETHICK2;
七日线:MA(CLOSE,7),COLORWHITE;
十四线:EMA(C,14),COLORYELLOW,LINETHICK1;
二十五线:EMA(C,25),COLORGREEN,LINETHICK1;
九十九线:MA(CLOSE,99),COLORRED;
生命线:EMA(C,453),COLORMAGENTA,LINETHICK1;
BN:=20;
C2:MA(C,2),LINETHICK0;
MA10:MA(C2,10),LINETHICK0;
MA20:MA(C2,BN),LINETHICK0;
MA60:MA(C2,60),LINETHICK0;
{布林线信号}
BOLL:=MA20;
UPPER:BOLL+1.618*STD(C2,BN),COLORGREEN,LINETHICK0;
LOWER:BOLL-1.618*STD(C2,BN),COLORGREEN,LINETHICK0;
DRAWICON(CROSS(C2,LOWER),L*0.92,1);{买信号B}
DRAWICON(CROSS(UPPER,C2),H*1.06,2);{卖信号S};
DIFF:=( EMA(CLOSE,12) - EMA(CLOSE,26));
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
TJ:=(DIFF>=DEA);
TD:=(DIFF<DEA);
TJ6:=MACD>0 AND REF(MACD,1)<0 AND CROSS(DIFF,DEA);
DRAWTEXT(TJ6,L*0.93,'启动'),COLORRED;
倍量:=VOL/REF(VOL,1)>2 ;
十三地量:=LLV(VOL,13)=VOL;
五十五地量:=LLV(VOL,55)=VOL;
五十九地量:=LLV(VOL,59)=VOL;
百日地量:=LLV(VOL,100)=VOL;
STICKLINE(倍量,O,C,2,0),COLORYELLOW;
STICKLINE(十三地量,O,C,3,0),COLORMAGENTA;
STICKLINE(五十五地量,O,C,3,0),COLORMAGENTA;
STICKLINE(五十九地量,O,C,3,0),COLORMAGENTA;
STICKLINE(百日地量,O,C,3,0),COLORMAGENTA;
V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1);
STICKLINE(V2>=1,O,C,1,0),COLORYELLOW;
VAR21:=LLV(LOW,10);
VAR31:=HHV(HIGH,25);
阶段卖出:=3.2,COLORC6C600;
动力线:=EMA((CLOSE-VAR21)/(VAR31-VAR21)*4,4),COLORYELLOW,LINETHICK2;
清仓卖出:=3.5,COLORFF75FF;
底部:=0.2,COLOR70DB93;
关注:=0.5,COLORYELLOW;
DRAWTEXT( FILTER(CROSS(动力线,关注),20),L*0.92,'抄底');
DRAWTEXT( FILTER(CROSS(清仓卖出,动力线),20),H*1.07,'逃顶');
DRAWTEXT( FILTER(CROSS(动力线,底部),20),L*0.92,'抄底');
DRAWTEXT( FILTER(CROSS(阶段卖出,动力线),20),H*1.07,'逃顶');
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
QJ1:=QJ0*(MIN(OPEN,CLOSE)-LOW);
QJ2:=QJ0*(JJ-MIN(CLOSE,OPEN));
QJ3:=QJ0*(HIGH-MAX(OPEN,CLOSE));
QJ4:=QJ0*(MAX(CLOSE,OPEN)-JJ);
DDX:=IF(HIGH=LOW,4*QJ0,((QJ1+QJ2)-(QJ3+QJ4)))/SUM(VOL,10)*100;
DDY:=((QJ2+QJ4)-(QJ1+QJ3))/SUM(VOL,10)*100;
DDZ:=((QJ1+QJ2)-(QJ3+QJ4))/((QJ1+QJ2)+(QJ3+QJ4))*100*17;
资金入场:DDX>2 AND DDZ>100 AND DDY>3 AND VOL/CAPITAL*100>4,NODRAW;
DRAWICON(资金入场,L*0.92,9);
DRAWICON(资金入场 AND 振幅>7 AND 获利筹码>40,L*0.92,15);
|