SAT:IF(AMOUNT/CLOSE/(HHV(AMOUNT,N)/HHV(CLOSE,N))*100>100,100,AMOUNT/CLOSE/(HHV(AMOUNT,N)/HHV(CLOSE,N))*100),LINETHICK0;
STICKLINE(CLOSE>0 AND BARSTATUS=2,20,121,40,1),colorFFFFFF;
STICKLINE(SAT<=5 AND BARSTATUS=2,21,20+SAT,35,0),colorFFFFFF;
STICKLINE(SAT>5 AND SAT<=20 AND BARSTATUS=2,21,20+SAT,35,0),colorCCFF88;
STICKLINE(SAT>20 AND SAT<=40 AND BARSTATUS=2,21,20+SAT,35,0),colorFF00FF;
STICKLINE(SAT>40 AND BARSTATUS=2,21,20+SAT,35,0),colorFF;
VAR6:=SUM(VOL,21)/CAPITAL;
VAR7:=100-100/(1+VAR6);
DRAWTEXT(ISLASTBAR=1 AND VAR7<10,65,'冷门\n不碰'),SHIFT1,colorFFFFFF;
DRAWTEXT(ISLASTBAR=1 AND VAR7>=10 AND VAR7<20,65,'觉醒\n关注'),SHIFT1,colorFFFF;
DRAWTEXT(ISLASTBAR=1 AND VAR7<40 AND VAR7>=20,65,'活跃\n持有'),SHIFT1,colorCCFF66;
DRAWTEXT(ISLASTBAR=1 AND VAR7>=40,65,'热门\n警惕'),SHIFT1,colorFF;
DRAWNUMBER(ISLASTBAR=1 AND VAR7<10,40,VAR7,2),SHIFT1,colorFFFFFF;
DRAWNUMBER(ISLASTBAR=1 AND VAR7>=10 AND VAR7<20,40,VAR7,2),SHIFT1,colorFFFF;
DRAWNUMBER(ISLASTBAR=1 AND VAR7<40 AND VAR7>=20,40,VAR7,2),SHIFT1,colorCCFF66;
DRAWNUMBER(ISLASTBAR=1 AND VAR7>=40,40,VAR7,2),SHIFT1,colorFF;
VAR1:=COST(100)-COST(0);
VAR2:=ABS((VAR1-REF(VAR1,1))/REF(VAR1,1));
VAR3:=1/(1+VAR2)*100;
LFS1:=SMA(VAR3,5,1);
价:EMA((WINNER(CLOSE)-LLV(WINNER(CLOSE),60))/(HHV(WINNER(CLOSE),60)-LLV(WINNER(CLOSE),60))*100,1),LINETHICK2,colorFF;
量:EMA((LFS1-LLV(LFS1,21))/(HHV(LFS1,21)-LLV(LFS1,21))*100,1),LINETHICK2,color9900;
进:(COUNT(CLOSE>REF(CLOSE,1),N1))/N1*100;
出:MA(进,M);
个股:(CLOSE-REF(CLOSE,2))/REF(CLOSE,2)*100,LINETHICK0,colorFFFF00;
大盘:(INDEXC-REF(INDEXC,2))/REF(INDEXC,2)*100,LINETHICK0,colorFF00FF;
GD1:=(个股-大盘)*1.618;
GD2:=(个股-大盘)*2.618;
STICKLINE(GD2>0,0,GD2,3,0),colorFF;
STICKLINE(个股>0,0,个股,7.5,1),colorFFFF00;
STICKLINE(大盘>0,0,大盘,6,0),colorFF00FF;
STICKLINE(GD1>0,0,GD1,4.5,1),colorFFFF;
特大买入:=STKINDI('','引用.特大买入',0,0);
特大卖出:=STKINDI('','引用.特大卖出',0,0);
大单买入:=STKINDI('','引用.大单买入',0,0);
大单卖出:=STKINDI('','引用.大单卖出',0,0);
中单买入:=STKINDI('','引用.中单买入',0,0);
中单卖出:=STKINDI('','引用.中单卖出',0,0);
小单买入:=STKINDI('','引用.小单买入',0,0);
小单卖出:=STKINDI('','引用.小单卖出',0,0);
隐性买单:=STKINDI('','引用.隐性买单',0,0);
隐性卖单:=STKINDI('','引用.隐性卖单',0,0);
机:=特大买入-特大卖出;
法:=隐性买单-隐性卖单;
大:=大单买入-大单卖出;
中:=中单买入-中单卖出;
散:=小单买入-小单卖出;
市值贡献:=CAPITAL/100*CLOSE/10000;
指数贡献:=(CLOSE-REF(MA(CLOSE,5),5))*FINANCE(1)/10000;
资金贡献:=EMA(AMOUNT,3)/FINANCE(7)/10000;
总成交:=DYNAINFO(8)*100;
总J:=AMOUNT;
Q:=STKINDI('','引用.Q',0,0);
Q1:=STKINDI('','引用.Q1',0,0);
股数:=STKINDI('','引用.股数',0,0);
资金:=STKINDI('','引用.资金',0,0);
每股公积金:=FINANCE(18);
净利润:=FINANCE(30);
主营业务增长率:=FINANCE(53);
净利润增长率:=FINANCE(55);
PT:=REF(HIGH,1)-REF(LOW,1);
CDP:=(HIGH+LOW+CLOSE)/3;
AH:=CDP+PT;
AL:=CDP-PT;
NH:=2*CDP-LOW;
NL:=2*CDP-HIGH;
A:=(OPEN+HIGH+LOW+CLOSE*2)/5;
S:=(HIGH-A)*0.618+A;
X:=(A-LOW)*0.382+LOW;
卖出价:=CLOSE*2.5/100+CLOSE;
买入价:=CLOSE-CLOSE*2.5/100;
机增:=EXTDATA(9);
机11:=SUM(机增,0);
机12:=ABS(机11);
法增:=EXTDATA(10);
法11:=SUM(法增,0);
法12:=ABS(法11);
大增:=EXTDATA(11);
大11:=SUM(大增,0);
大12:=ABS(大11);
千钧:=大11/2;
中增:=EXTDATA(12);
中11:=SUM(中增,0);
中12:=ABS(中11);
散增:=EXTDATA(13);
散11:=SUM(散增,0);
散12:=ABS(散11);
KS:=DATACOUNT;
P3:=机11+法11+千钧;
P4:=千钧+中11+散11;
机构线:EMA(P3,7),LINETHICK0,color39AFFF;
散户线:EMA(P4,7),LINETHICK0,colorFCFF00;
DRAWTEXT(BARPOS=DATACOUNT-128,0,'机构'),ALIGN5,colorFFFF;
DRAWTEXT(BARPOS=DATACOUNT-129,0,''+NUMTOSTR(机11/FINANCE(7),2)),ALIGN5,PXUP68,colorFFFFFF;
DRAWTEXT(BARPOS=DATACOUNT-120,0,'券基'),ALIGN5,colorFFFF;
DRAWTEXT(BARPOS=DATACOUNT-121,0,''+NUMTOSTR(法11/FINANCE(7),2)),ALIGN5,PXUP88,colorFFFFFF;
DRAWTEXT(BARPOS=DATACOUNT-112,0,'大户'),ALIGN5,colorFFFF;
DRAWTEXT(BARPOS=DATACOUNT-113,0,''+NUMTOSTR(大11/FINANCE(7),2)),ALIGN5,PXUP68,colorFFFFFF;
DRAWTEXT(BARPOS=DATACOUNT-104,0,'中户'),ALIGN5,colorFFFF;
DRAWTEXT(BARPOS=DATACOUNT-105,0,''+NUMTOSTR(中11/FINANCE(7),2)),ALIGN5,PXUP88,colorFFFFFF;
DRAWTEXT(BARPOS=DATACOUNT-97,0,'散户'),ALIGN5,colorFFFF;
DRAWTEXT(BARPOS=DATACOUNT-98,0,''+NUMTOSTR(散11/FINANCE(7),2)),ALIGN5,PXUP68,colorFFFFFF;
DRAWTEXTEX(CLOSE,1,330,200,'盘口成交:'+NUMTOSTR(股数,0)+' 股'),color9CFF7A;
DRAWTEXTEX(CLOSE,1,530,200,'该笔金額:'+NUMTOSTR(FLOOR(资金)/10000,2)+' 万元'),color9CFF7A;
DRAWTEXTEX(CLOSE,1,770,200,'均价:'+NUMTOSTR(CLOSE,2)+' 元'),color9CFF7A;
DRAWTEXTEX(CLOSE,1,470,0,' 成交股数:'+NUMTOSTR(总成交/10000,2)+'万股'),colorFFBF00;
DRAWTEXTEX(CLOSE,1,740,0,' 成交总额:'+NUMTOSTR(AMOUNT/10000,2)+'万元'),colorFFBF00;
DRAWTEXTEX(CLOSE,1,0,0,STKLABEL+' '+STKNAME+''),colorFFBF00;
DRAWTEXTEX(CLOSE,1,20,400,'目前主力仓位:'+NUMTOSTR((机11+法11+大11)/FINANCE(7),2)+' %'),colorFFBFFF;
DRAWTEXTEX(CLOSE,1,770,400,'市值贡献:'+NUMTOSTR(市值贡献,2)+' %'),colorFFBFFF;
DRAWTEXTEX(CLOSE,1,330,400,'指数贡献:'+NUMTOSTR(指数贡献,2)+' %'),colorFFBFFF;
DRAWTEXTEX(CLOSE,1,530,400,'资金贡献:'+NUMTOSTR(资金贡献,2)+' %'),colorFFBFFF;
VARIABLE:WDAY[7]='星期六';
WDAY[1]:='星期日';
WDAY[2]:='星期一';
WDAY[3]:='星期二';
WDAY[4]:='星期三';
WDAY[5]:='星期四';
WDAY[6]:='星期五';
FY:=YEAR;
FM:=MONTH;
FD:=DAY;
WD:=WEEKDAY;
P:=SYSPARAM(1);
STR1:=''+NUMTOSTR(FY[P],0)+'年'+NUMTOSTR(FM[P],0)+'月'+NUMTOSTR(FD[P],0)+'日 '+WDAY[WD[P]+1];
DRAWTEXTEX(CLOSE,1,200,0,STR1),colorFFBF00;
DRAWTEXTEX(CLOSE,1,20,200,'今日机构净买: '+NUMTOSTR(P3*100/10000,2)+' 万股'),color9CFF7A;
|