N:=10;P:=3;
CHECK:=STRCMP(USERNAME,'userid')>0;
bbi:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
UPR:=BBI+P*STD(BBI,N);
DWN:=BBI-P*STD(BBI,N);
TH:=SMA(HHV(HIGH,N),15,5);
TL:=SMA(LLV(LOW,N),15,5);
T24:=(TH-TL)*0.24+TL;
T76:=(TH-TL)*0.76+TL;
DIFF1:=EMA(CLOSE,4)-EMA(CLOSE,10);
DEA1:=EMA(DIFF1,5);
DIFF:=DIFF1*4.5+EMA(CLOSE,4)*0.9;
DEA:=DEA1*4.5+EMA(CLOSE,5)*0.9;
CC:=crOSS(LOW,TL);
DRAWICON(CC,LOW,1);
EE:=CROSS(HIGH,T24);
DRAWICON(EE,LOW,10),ALIGN0;
GG:=CC+EE AND CLOSE=HIGH;
DRAWTEXT(GG,LOW,'看
涨
10%'),ALIGN0,colorFFFF;
FF:=CROSS(HIGH,T76);
DRAWICON(FF,HIGH,12),ALIGN0;
DD:=CROSS(HIGH,TH);
DRAWICON(DD,HIGH,2),ALIGN0;
DRAWTEXT(DD,HIGH+0.28,'撤
退'),ALIGN0,colorFF00;
VAR1:=HHV(HIGH,144);
建仓区域:LLV(LOW,144)*1.2,LINETHICK2,colorFF00;
逢低介入:LLV(LOW,144),LINETHICK3,colorFF00FF;
出货区域:IF(VAR1>LLV(LOW,233)*1.45 AND VAR1>LOW*1.3,VAR1*0.82,0),LINETHICK4;
逢高出局:IF(VAR1>LLV(LOW,233)*1.45 AND VAR1>LOW*1.3,VAR1,0),LINETHICK5;
EXPLAINEX(1,'【主力派发高点】=',逢高出局,2,0),colorFF;
EXPLAINEX(1,'【主力派发区域】=',出货区域,2,0),colorFFFF;
EXPLAINEX(1,'【主力底仓】=',逢低介入,2,0),colorFFFF00;
EXPLAINEX(1,'【主力建仓】=',建仓区域,2,0),colorFF00;
VAR1:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;
VAR2:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;
买入提示:=VAR1 AND VAR2;
DRAWTEXT(买入提示,LOW-0.28,'进
场'),ALIGN0,colorFFFF;
VAR3:=REF(CLOSE,1);
VAR4:=(SMA(MAX(CLOSE-VAR3,0),6,1))/(SMA(Abs(CLOSE-VAR3),6,1))*100;
卖出提示:=CROSS(80,VAR4);
DRAWICON(买入提示,LOW-0.01,1);
DRAWICON(卖出提示,HIGH+0.1,2);
DRAWTEXT(卖出提示,HIGH+1.18,'彻
底
清
仓'),ALIGN0,colorFF;
PT:=REF(HIGH,1)-REF(LOW,1);
cdp:=(REF(HIGH,1)+REF(LOW,1)+REF(CLOSE,1)*2)/4;
AH:=CDP+PT;
AL:=CDP-PT;
NH:=2*CDP-LOW;
NL:=2*CDP-HIGH;
近高值0:=IF(AH>NH,NH,AH);
近低值0:=IF(AL
最低值0:=IF(AL
EXPLAINEX(BETWEEN(OPEN,近高值0,近低值0),'【盘局卖出价参考】:',近高值0,2,0),colorFFFF00;
EXPLAINEX(BETWEEN(OPEN,最高值0,近高值0) OR OPEN>最高值0,'【盘局买入价参考】:',最高值0,2,0),colorFF00;
EXPLAINEX(BETWEEN(OPEN,最低值0,近低值0) OR OPEN<最低值0,'【盘局卖出价参考】:',最低值0,2,0),colorFF00FF;
VAR1:=(EXTDATA(4)-EXTDATA(5))/100;
庄资金5:=EMA(VAR1,5);
庄资金13:=EMA(VAR1,13);
庄资金34:=EMA(VAR1,34);
庄家obv:=(SUM(EXTDATA(4)-EXTDATA(5),0))/10000;
EXPLAINEX(1=1,'【庄家资金5】=',庄资金5,2,0),colorFF;
EXPLAINEX(1=1,'【庄家资金34】=',庄资金34,2,0),colorFF;
EXPLAINEX(1=1,'【庄家资金OBV】=',庄家OBV,2,0),colorFF;
委卖OBV:=SUM(EXTDATA(7),0)/1000000;
EXPLAINEX(1=1,'【委卖OBV】=',委卖OBV,2,0),colorFF;
委买OBV:=SUM(EXTDATA(6),0)/1000000;
EXPLAINEX(1=1,'【委买OBV】=',委买OBV,2,0),colorFF;
每日委卖量:=SUM(ASKvol(1)+ASKVOL(2)+ASKVOL(3)+ASKVOL(4)+ASKVOL(5)+ASKVOL(6)+ASKVOL(7)+ASKVOL(8)+ASKVOL(9),0);
EXPLAINEX(1=1,'【每日委卖量】=',每日委卖量,2,0),colorFF;
每日委买量:=SUM(BIDVOL(1)+BIDVOL(2)+BIDVOL(3)+BIDVOL(4)+BIDVOL(5)+BIDVOL(6)+BIDVOL(7)+BIDVOL(8)+BIDVOL(9),0);
EXPLAINEX(1=1,'【每日委买量】=',每日委买量,2,0),colorFF;
VAR1:=(EXTDATA(2)-EXTDATA(3))/100;
资金5:=EMA(VAR1,5);
资金13:=EMA(VAR1,13);
资金34:=EMA(VAR1,34);
EXPLAINEX(1=1,'【资金5】=',资金5,2,0),colorFFFF00;
EXPLAINEX(1=1,'【资金13】=',资金13,2,0),colorFFFF00;
EXPLAINEX(1=1,'【资金34】=',资金34,2,0),colorFFFF00;
牛熊OBV:=(SUM(EXTDATA(2)-EXTDATA(3),0))/10000;
EXPLAINEX(1=1,'【牛熊OBV】=',牛熊OBV,2,0),colorFF;
每日卖单总和:=SUM(SELLVOL,0);
每日买单总和:=SUM(BUYVOL,0);
每日庄卖:=SUM(IF(SELLVOL>=100,VOL,0),0);
每日庄买:=SUM(IF(BUYVOL>=100,VOL,0),0);
EXPLAINEX(1=1,'【每日卖单总和】=',每日卖单总和,2,0),colorFFFF;
EXPLAINEX(1=1,'【每日买单总和】=',每日买单总和,2,0),colorFF00;
EXPLAINEX(1=1,'【每日庄卖】=',每日庄卖,2,0),colorFF;
EXPLAINEX(1=1,'【每日庄买】=',每日庄买,2,0),colorFFFF00;
A:=IF(CLOSE>126.32,AMOUNT/100000,VOL);
主力:=MA(A,4);
游资:=MA(A,8);
大户:=MA(A,16);
散户:=MA(A,32);
主力参与比例:=ROUND(主力/(主力+游资+大户+散户)*100);
游资参与比例:=ROUND(游资/(主力+游资+大户+散户)*100);
大户参与比例:=ROUND(大户/(主力+游资+大户+散户)*100);
散户参与比例:=ROUND(散户/(主力+游资+大户+散户)*100);
警戒线:=MA(A,180);
EXPLAINEX(1,'【主力】=',主力,2,0),colorFFFF;
EXPLAINEX(1,'【游资】=',游资,2,0),colorFF00;
EXPLAINEX(1,'【大户】=',大户,2,0),colorFF;
EXPLAINEX(1,'【散户】=',散户,2,0),colorFFFF00;
EXPLAINEX(1,'【主力参与比例】=',主力参与比例,2,0),colorFFFF;
EXPLAINEX(1,'【游资参与比例】=',游资参与比例,2,0),colorFF00;
EXPLAINEX(1,'【大户参与比例】=',大户参与比例,2,0),colorFF;
EXPLAINEX(1,'【散户参与比例】=',散户参与比例,2,0),colorFFFF00;
EXPLAINEX(1,'【警戒线】=',警戒线,2,0),colorFF00FF;
FL:=MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1));
FS:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);
CG:=IF(MA(CLOSE,17)
EXPLAINEX(1,'【短线卖出参考价2】=',CG,2,0),colorFFFF;
EXPLAINEX(1,'【短线卖出参考价3】=',FL,2,0),colorFF;
VAR0:=(CLOSE*2+HIGH+LOW)/4*VOL;
VAR1:=SUM(VAR0,89)/SUM(VOL,89);
{ _最新股票指标公式}
VAR2:=IF((COUNT(VAR0>0,2))>=2,MA(CLOSE,89)*(1+(MA(VAR0,89)/REF(MA(VAR0,89),1)-1)/21),MA(CLOSE,89));
VAR3:=IF((COUNT(ABS(CLOSE-VAR1)>21,8))>=1 AND (COUNT(CLOSE/REF(CLOSE,1)<0.8,8))<1 AND (COUNT(VAR0>0,2))>=2,10,0);
VAR4:=IF(CLOSE>=VAR1 AND (COUNT(VAR0>0,2))>=2,VAR1*1.001,IF(VAR0<0.1 AND (COUNT(VAR0>0,2))<1.5,MA(CLOSE,89),VAR1*0.999));
VAR5:=IF(VAR3>0,VAR2,VAR4);
VAR6:=MA(CLOSE,89);
搏杀生命线:=IF(VAR5/REF(VAR5,1)>1.1 OR VAR5/REF(VAR5,1)<0.9,VAR6,VAR5);
EXPLAINEX(1,'【多空搏杀临界点】=',搏杀生命线,2,0),colorFF00FF;
A:=(CLOSE*2+HIGH+LOW)/4*VOL;
B:=SUM(A,1)/SUM(VOL,1);
B1:=EMA(B,17);
资金:=(B-B1)*100/B;
强弱线:=0;
EXPLAINEX(1,'【每日资金流向】=',资金,2,0),colorFFFFFF;
VAR1:=VOL/((HIGH-LOW)*2-(ABS(CLOSE-OPEN)));
成交能量:=VOL;
主动买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE
EXPLAINEX(1,'【主动买盘】=',主动买盘,2,0),colorFFFF00;
EXPLAINEX(1,'【主动卖盘】=',主动卖盘,2,0),colorFFFF;
持股线:=MA(HIGH,21);
空仓线:=MA(LOW,21);
操盘趋势:=MA(CLOSE,3);
EXPLAINEX(1,'【突破压力价位】=',持股线,2,0),colorFFFF;
EXPLAINEX(1,'【短线回调价位】=',空仓线,2,0),colorFF;
EXPLAINEX(1,'【伺机出击价位】=',操盘趋势,2,0),colorFFFFFF;