大智慧主图公式源码 大智慧智慧主图公式源码
2015-1-26 11:18:54 股票入门 http://rumen.southmoney.com
南方财富网带来大智慧主图公式源码 大智慧智慧主图公式源码:
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(C,10) AND CROSS(C,MA(C,10)) AND V》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(CLOSE《Var10 AND VOL/240》MA(VOL,5)/240 AND CLOSE》REF(CLOSE,1)*1.08 AND CLOSE《MA(CLOSE,13)*1.3,1,0);
DRAWTEXT(抄底,(LOW* 0.96),‘抄底’),Color9DFFFF;
STICKLINE(短买,CLOSE,OPEN,8,0),colorff8080;
STICKLINE(抄底,CLOSE,OPEN,8,0),colorred;
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。