编写要求:
解答:
?网友求助:
Li1主图公式,请老师做个出现(短买)的选股公式.
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10);
MA20:MA(CLOSE,20),linethick3;
MA40:MA(CLOSE,40),linethick2,COLORRED;
MA60:MA(CLOSE,60);
MA2:=EMA(C,2);
MA55:=EMA(C,55);
YCX:=MA5>=REF(MA5,1);
H1:=MAX(MAX(MA5,MA10),MA40);
L1:=MIN(MIN(MA5,MA10),MA40);
一阳穿三线:= H1
STICKLINE(一阳穿三线,O,C,2,0),COLORYELLOW;
DRAWTEXT(一阳穿三线,L-0.1, '金蜘蛛'),COLORGREEN;
DRAWTEXTABS(5,50,'■所属板块:'+BKNAME),ColorYELLOW,linethick2;
drawtext(h
drawtext(LOW>REF(HIGH,1),l,'上跳'+'+'+NUMTOSTRN(ref(h,1),2)+'-'+NUMTOSTRN(l,2)),linethick1,color00aaff;
stickline(h
stickline(LOW>REF(HIGH,1),l,ref(h,1),10,500),COLORRED;
VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));
VAR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VARD:=(CLOSE
VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1);
短买:=VAR19;
CO:=(C-O);
STICKLINE(短买,O,O+CO/1.5,5,0),colormagenta;
DRAWTEXT(短买,LLV(L,1),'↖短买'),COLORRED;
短:="新vol.买点";
STICKLINE(短,O,O+CO/1.1,5,0),Colorred;
STICKLINE(短 and (短买 or ref(短买,1)),O,O+CO/1.5,3,0),COLOR00FF00;
ZLLR:="tdb.tdb"*1.2+"ddb.ddb";
ZLLC:="tds.tds"*1.2+"dds.dds";
zh:="zdb.zdb"-"zds.zds";
主占:=ZLLR+ZLLC+zh;
占Z:=主占-ref(主占,1);
STICKLINE(短 and (短买 or ref(短买,1) and 占Z>0),O,O+CO/2.5,2,0),colormagenta;
流值亿:=DYNAINFO(57)/100000000;
DRAWTEXTREL(275,25,'流值亿'+NUMTOSTRN(流值亿,1)),LINETHICK4,Colorred;
市收益:=FINANCE2(3);
市盈率:=DYNAINFO(39);
委比:=DYNAINFO(15)*100;
DRAWTEXTREL(455,5,'市收益'+NUMTOSTRN(市收益,3)+'元'),LINETHICK4,Colorred;
DRAWTEXTREL(455,55,'市盈率'+NUMTOSTRN(市盈率,3)),LINETHICK4,Colorred;
DRAWTEXTREL(555,5,'委比'+NUMTOSTRN(委比,2)+'%'),LINETHICK7,COLOR00FF00;
净利增:=FINANCE2(10);
DRAWTEXTREL(355,25,'净利增'+NUMTOSTRN(净利增,2)+'%'),LINETHICK4,COLOR00FF00;
DRAWTEXTREL(0,10,'★千股千评:'+SELFSTRING('千股千评')),LINETHICK3,COLOR1E90FF,LAYER5;
成交量:=VOL;
预估今日成交量:=IF((DYNAINFO(7)=CLOSE), DYNAINFO(38)*DYNAINFO(17),成交量);
换手率:=vol/capital*100;
换手10:=sum(换手率,10);
预测换手:=ref(换手率,1)*预估今日成交量/ref(成交量,1);
DRAWTEXTREL(690,25,'换手预测 '+NUMTOSTRN(预测换手,1)+'%'),LINETHICK7,Colorred;
DRAWTEXTREL(791,846,'10日换手'+NUMTOSTRN(换手10,1)),LINETHICK7,COLOR00FF00;
DRAWTEXTREL(690,145,'10日换手'+NUMTOSTRN(换手10,1)),LINETHICK7,Colorred;
{一品资料说明}
WW:=BARSLAST(DISPSTATUS=1);
低涨:(C/LLV(LOW,WW)-1)*100,precis1,LINETHICK0;
天:=BARSLAST(L=LLV(LOW,WW));
DRAWTEXTABS(700,350,'■低点至今上涨:'+NUMTOSTRN(低涨,2)+'% '+NUMTOSTRN(天,0)+'天'),COLOR0000FF,linethick6;
{可视范围内最高价减今日收盘绝对幅度}
Ao:=hhvall(o);
AC:=hhvall(c);
ah:=if(ao>=ac,ao,ac);
NN:= DISPSTATUS=2;
高30:=HHV(H,30);
MM:=c-高30*0.98>0;
差30:=(c-ref(高30,1))/ref(高30,1)*100;
DRAWTEXTREL(590,145,'高30差'+NUMTOSTRN(差30,1)),LINETHICK7,ColorYELLOW;
DRAWTEXT(mm,高30,'← ← ← ←'),COLORRED;
DRAWTEXT(mm,高30,' ← ← ← ← '),ColorYELLOW;
A00:=SUM(IF((CLOSE> REF(CLOSE,1.000)),VOL,IF((CLOSE
A01:=SUMBARS(VOL,CAPITAL);
A02:=IF((CLOSE>LLV(CLOSE,A01)),1.000,(0-1.000))*IF((A00 >LLV(A00,A01)),1.000,(0-1.000));
A03:=(COUNT((IF((A02=(0-1.000)),1.000,0)=1.000),8.000)>2.000);
A04:=((CLOSE-DMA((((3.000 * HIGH + LOW)+OPEN)+2.000 * CLOSE)/7.000,VOL/SUM(AMOUNT,13.000)/
AMOUNT/VOL/100.000/100.000))/DMA((((3.000*HIGH+LOW)+OPEN)+2.000*CLOSE)/7.000,VOL/SUM(AMOUNT,13.000)/
AMOUNT/VOL/100.000/100.000)*100.000<(0-18.000));
A05:=((CLOSE-MIN(REF(CLOSE,5.000)*0.865,REF(CLOSE,21.000)*0.772))/CLOSE<0.009);
A06:=((A03 AND A04) AND A05);
A07:=(((((OPEN < EMA(CLOSE,5.000)) AND (CLOSE=HIGH)) AND (CLOSE/OPEN>=1.05)) AND (VOL/
CAPITAL>=0.019)) AND (VOL/CAPITAL<=0.200));
A08:=(A07 AND (COUNT(A07,5.000)=1.000));
A09:=((((((((((((MA(CLOSE, 3.000)>REF(MA(CLOSE,3.000),1.000)) AND (MA(CLOSE, 5.000)>
REF(MA(CLOSE,5.000),1.000))) AND (MA(CLOSE,10.000)>REF(MA(CLOSE,10.000),1.000))) AND
(VOL/240.000>REF(VOL,30.000)*1.200/240.000*1.500)) AND (CLOSE>LOW*1.059)) AND (CLOSE>
REF(MA(CLOSE,3.000),1.000))) AND REF(CLOSE,1.000)) AND (MA(CLOSE,5.000)>REF(MA(CLOSE,
5.000),1.000))) AND (MA(CLOSE,10.000)>REF(MA(CLOSE,10.000),1.000))) AND (MA(CLOSE,20.000)>
REF(MA(CLOSE,20.000),1.000))) AND (MA(VOL,5.000)>REF(MA(VOL,5.000),1.000))) AND ((MA(CLOSE,5.000)-MA
(CLOSE,10.000))<= 0.579));
A0A:=FILTER(A09,5.000);
牛股:=((A06 OR A07) AND A0A);
STICKLINE(牛股,O,O+CO,6,0),COLOR00FF00;
DRAWTEXT(牛股,LLV(L,1),'$超级黑马'),COLORYELLOW,linethick5;
XG1:=牛股*2;
STICKLINE(XG1>=0.2,C,O,6,0),COLOR006666;
STICKLINE(XG1>=0.2,C,O,5,0),COLOR007777;
STICKLINE(XG1>=0.2,C,O,4,0),COLOR009999;
STICKLINE(XG1>=0.2,C,O,3,0),COLOR00bbbb;
STICKLINE(XG1>=0.2,C,O,2,0),COLOR00dddd;
STICKLINE(XG1>=0.2,C,O,1,0),COLOR00ffff;
STICKLINE(XG1>=0.1,C,O,1,0),COLOR00ffff;
突破:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-突破)/突破*100;
基准:=IF(A1X>=0,REF(EMA(C,10),BARSLAST(CROSS(A1X,0))+1),REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1));
STICKLINE(A1X>=0,基准,突破*0.98,1,0),ColorDDEED8;
AA:=CROSS(A1X,0);
DRAWTEXT(AA,C*0.98,'上楼'),COLORRED,linethick5;
BB:=CROSS(0,A1X);
DRAWTEXT(BB,C*1.01,'下楼'),COLOR00FF00;
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!