最新更新 - 网站地图 -
您的当前位置:首页 > 股票公式 > 公式技巧 > 把指标中的B和S和星小心,分别写出三个选股公式

把指标中的B和S和星小心,分别写出三个选股公式

来源:网络 点击: 时间:2023-01-11 04:26:18

编写要求:

大智慧主图指标 DRAWTEXTREL(15,10,''+STKLABEL+' '+STKNAME),LINETHICK6,Colorgray; DRAWGBKLAST(v>1,STRIP(RGB(50,50,50),RGB(10,10,10),0)); 持股线:hhv(ma(C,5),2),color00d500; 分离线:if(ma(C,5)<持股线,(ma(C,5)-(持股线-ma(C,5))),持股线),color80ffff,linethick2; MA18:ma(C,5),linethick2,colorFFFF55; 生命线:EMA(MA18,3),colorff8080; DRAWTEXT(CROSS(分离线,MA18) and CROSS(分离线,持股线),L-0.1,'上穿'); PARTLINE(MA18,MA18<=分离线,RGB(255,0,0)),linethick2; H1:=HHV(h,10)*0.95; DRAWTEXTABS(5,35,'10日最高='+NUMTOSTRN(HHV(h,10),2)+'元'),Color3300FF,LINETHICK1; DRAWTEXTABS(125,35,'10日最低='+NUMTOSTRN(LLV(L,10),2)+'元'),Color3300FF,LINETHICK1; DRAWTEXTABS(245,35,'止盈点='+NUMTOSTRN(H1,2)+'元'),Colorwhite,LINETHICK1; DRAWTEXTREL(325,25,'成交金额:'+DYNAINFO(10)/10000+'万'),LINETHICK4,colorred; 当日成交总量:=DYNAINFO(8); 成交总金额:=DYNAINFO(10)/10000; 主动卖盘:=DYNAINFO(22); 主动买盘:=DYNAINFO(23); DRAWTEXTABS(5,55,'日成交总量:'+NUMTOSTRN(当日成交总量,0)+'手'),colorFF00FF; DRAWTEXTABS(5,75,'日主动买入量:'+NUMTOSTRN(主动买盘,0)+'手'),colorFF00FF; DRAWTEXTABS(5,95,'日主动卖出量:'+NUMTOSTRN(主动卖盘,0)+'手'),colorFF00FF; DRAWTEXTABS(5,115,'日净:'+NUMTOSTRN(主动买盘-主动卖盘,0)+'手'),ColorFFFF00; VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21)))); VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21)))); VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34)); STICKLINE((VAR2 < MA(VAR3,6)),CLOSE,OPEN,7,1),colorFFFF33; STICKLINE((VAR2 < MA(VAR3,6)),LOW,(MIN(OPEN,CLOSE) * 1.001),0.6,0),colorFFFF33; STICKLINE((VAR2 < MA(VAR3,6)),MAX(OPEN,CLOSE),HIGH,0.6,0),colorFFFF33; STICKLINE((VAR2 > MA(VAR3,6)),OPEN,CLOSE,7,1),color4440FF; STICKLINE((VAR2 > MA(VAR3,6)),HIGH,MAX(CLOSE,OPEN),0.6,0),color4440FF; STICKLINE((VAR2 > MA(VAR3,6)),LOW,(MIN(CLOSE,OPEN) * 1.001),0.8,0),color4440FF; STICKLINE(((OPEN > CLOSE) AND (VAR2 > MA(VAR3,6))),(OPEN * 0.998), (CLOSE * 1.0025),4.5,0),colorFFFF33; STICKLINE(((OPEN < CLOSE) AND (VAR2 < MA(VAR3,6))),(CLOSE * 0.998), (OPEN * 1.0025),4.5,0),color4440FF; STICKLINE(((OPEN > CLOSE) AND (VAR2 < MA(VAR3,6))), CLOSE,OPEN,7,0),colorFFFF33; DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.990),'B '),color4440FF,linethick2; DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.025),'S '),colorFFFF34,linethick2; A1:=MA(C,5)MA(V,10) AND MA(C,5)>REF(MA(C,5),1); A2:=MA(C,10)>REF(MA(C,10),1) AND MA(C,5)>MA(C,10) AND V>MA(V,5) AND CROSS(C,MA(C,5)); STICKLINE((A1>0 OR A2>0),open,close,8,0),COLORFF66FF; STICKLINE((A1>0 OR A2>0),low,HIGH,0.5 ,0 ),COLORFF66FF; LC:=REF(CLOSE,1); JH:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; DRAWTEXT(CROSS(84,JH),HIGH*1.02,'☆小心'),colorFFFF34; N1:=5;N2:=10;N3:=18; MTM:=C-REF(C,1); DX:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1); ZX:=100*EMA(EMA(MTM,N2),N2)/EMA(EMA(ABS(MTM),N2),N2); 短买:=ZX<-40 AND CROSS(DX,ZX); DRAWTEXT(短买,(LOW* 0.98),'短买'),colorff8080; N:=8; Var10:=MA(CLOSE,80)-MA(CLOSE,10)/3; 抄底:=IF(CLOSEMA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08 AND CLOSE

解答:

?VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));?

VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));?

    Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号

    免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!

    Top