当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:模型主图(通达信指标 主图 源码 测试图)
软件名称:[B]模型主图(通达信指标 主图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:15.0 KB
官方主页:Home Page
更新时间:2022-11-20 00:13:45
软件简介:
模型主图
源码:
跟庄看盘:=DRAWNULL,COLOR0088FF;
TJ360:=C=HHV(C,150);
TS360:=BARSLAST(TJ360);
HHC360:=REF(C,TS360);
RHHC360:=REF(HHC360,1);
TJ1360:=H>L AND C>RHHC360 ;
CS1360:=BARSLASTCOUNT(TJ1360);
CSS:=COUNT(CS1360=1,60);
MR:=CS1360=1 AND CSS=1;
HMXTS:=BARSLAST(MR);
黑马线:CONST(REF(C,HMXTS)),COLORFFFF00,LINETHICK2;
大周期:=MA(C,N),COLORWHITE,LINETHICK2;
STICKLINE((BARSLAST(MONTH!=REF(MONTH,1) OR DATETODAY(DATE)=1))+1=1,H#MONTH,L#MONTH,0,-1),COLORGREEN;
开盘:=(O-REF(C,1))/REF(C,1)*100,NODRAW,COLORLIGREEN;
现价:REFDATE(C,DATE),DOTLINE,COLORLIGRAY;
MA5角度:=ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.1416,NODRAW,COLOR5588FF;
价角:=ATAN((C/REF(C,1)-1)*100)*180/3.1416,NODRAW,COLOR5588FF;
振幅:=(H-L)/REF(C,1)*100,NODRAW,COLORCCCCFF;
获利:=WINNER(C)*100,NODRAW,COLORRED;
高:=REF(HHV(H,72),5);
龙门:REFDATE(高,DATE),COLORWHITE,LINETHICK2;
MA5:=MA(C,5),COLORWHITE;
MA10:=MA(C,10),COLORYELLOW;
MA20:=MA(C,20),COLORFF00FF;
MA60:=MA(C,60),COLORFFFF00,LINETHICK2;
MA120:=MA(CLOSE,120),COLORLIGRAY;
MA250:=MA(CLOSE,250),COLORRED,LINETHICK2;
半分:(C+O)/2,NODRAW;
昨半:=REF((O+C)/2,1);
STICKLINE(ISLASTBAR,昨半,昨半,10,2),COLORLIRED;
TM:=1200823;
涨停:IF(DATE< TM,ZTPRICE(REF(C,1),IF(CODELIKE('688'),0.2,IF(NAMEINCLUDE('S'),0.05,0.1))),ZTPRICE(REF(C,1),IF(CODELIKE('688') OR CODELIKE('300'),0.2,IF(NAMEINCLUDE('S'),0.05,0.1)))),NODRAW,COLORRED;
跌停:IF(DATE< TM,DTPRICE(REF(C,1),IF(CODELIKE('688'),0.2,IF(NAMEINCLUDE('S'),0.05,0.1))),DTPRICE(REF(C,1),IF(CODELIKE('688') OR CODELIKE('300'),0.2,IF(NAMEINCLUDE('S'),0.05,0.1)))),NODRAW,COLORGREEN;
明涨停:=IF(DATE< TM,C*IF(CODELIKE('688'),1.2,IF(NAMEINCLUDE('S'),1.05,1.1)),C*(IF(CODELIKE('688') OR CODELIKE('300'),1.2,IF(NAMEINCLUDE('S'),1.05,1.1)))),NODRAW,COLORLIMAGENTA;
明跌停:=IF(DATE< TM,C*IF(CODELIKE('688'),0.8,IF(NAMEINCLUDE('S'),0.45,0.9)),C*(IF(CODELIKE('688') OR CODELIKE('300'),0.8,IF(NAMEINCLUDE('S'),0.45,0.9)))),NODRAW,COLORFFFF00;
ZT:=C>=涨停 AND PERIOD=5 AND H=C;
ZT1:=H>=涨停 AND PERIOD=5 AND H>C;
DT:=C<=跌停 AND PERIOD=5 AND L=C;
DT1:=L<=跌停 AND PERIOD=5 AND L< C;
连阴:=COUNT((C< REF(C,1) OR L< REF(L,1)),10)>=5;
间谍柱:=REF(连阴,1) AND (DT OR DT1);
卧龙根价:=DRAWLINE(间谍柱,(C+O)/2,REF(间谍柱,1),REF((C+O)/2,1),1),COLOR55FFCC;
DRAWLINE(间谍柱,C,REF(间谍柱,1),REF(C,1),1),COLOR09FFCF;
月开:=REF(O,BARSLAST(MONTH!=REF(MONTH,1))),COLORRED,NODRAW;
月开乖离:=H/月开,COLORGREEN,NODRAW;
乖离5:H/MA5,COLORRED,NODRAW;
市值:(FINANCE(40)/100000000),NODRAW,COLORRED;
高低比:=HHV(H,20)/LLV(L,20),NODRAW;
DRAWICON(高低比>=1.6 AND 乖离5>1.35,H*0.99,2);
DRAWTEXT(FILTER(月开乖离>=1.72,5),H*1.039,'山'),COLORGREEN;
LB:=REF(EVERY(ZT,3),2) AND REF(H=HHV(H,20),1) AND H< REF(H,1);
LBQ:=BARSLAST(LB);
打折:=REF(H,LBQ+1)*0.618,NODRAW,COLORWHITE;
SLB:=EVERY(ZT,3);
KK2:=SUMBARS(REFX(SLB,1),1);
STICKLINE(KK2,REF(C,KK2-1),REF(C,KK2-1),5,0),COLORFFCC99;
龙回头天数:=SUMBARS(REFX(SLB,1),1)-2,NODRAW,COLORFF00FF;
DRAWTEXT(REFX(NOT(ZT),1) AND SLB,REF(C,1),'回头线');
STICKLINE(打折,打折,打折,5,0),COLORFFFF44;
Q3:=STRCAT(CON2STR(打折,2),'打折线');
DRAWTEXT(ISLASTBAR,打折,VARCAT(VARCAT('打折价',VAR2STR(打折,2)),'元'))COLORFFFF00;
STICKLINE(CURRBARSCOUNT=4,C,C,25,0),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=5,REF(L-0.02,1),' ◇'),COLORWHITE;
DRAWNUMBER(CURRBARSCOUNT=4,L*0.99,C),COLORWHITE;
STICKLINE(ZT,C,(O+C)/2,3,0),COLOR000099;
STICKLINE(ZT,C,(O+C)/2,2.2,0),COLOR0000CC;
STICKLINE(ZT,C,(O+C)/2,1.5,0),COLOR0000FF;
STICKLINE(ZT,C,(O+C)/2,0.5,0),COLORCC66FF;
STICKLINE(ZT,O,(O+C)/2,3,0),COLOR999999;
STICKLINE(ZT,O,(O+C)/2,2.2,0),COLORBBBBBB;
STICKLINE(ZT,O,(O+C)/2,1.5,0),COLORDDDDDD;
STICKLINE(ZT,O,(O+C)/2,0.5,0),COLORFFFFFF;
STICKLINE(DT,O,(O+C)/2,3,0),COLOR999999;
STICKLINE(DT,O,(O+C)/2,2.2,0),COLORBBBBBB;
STICKLINE(DT,O,(O+C)/2,1.5,0),COLORDDDDDD;
STICKLINE(DT,O,(O+C)/2,0.5,0),COLORFFFFFF;
STICKLINE(DT,C,(O+C)/2,3,0),COLOR009900;
STICKLINE(DT,C,(O+C)/2,2.2,0),COLOR00BB00;
STICKLINE(DT,C,(O+C)/2,1.5,0),COLOR00DD00;
STICKLINE(DT,C,(O+C)/2,0.5,0),COLOR00FF00;
STICKLINE(ZT1,C,(O+C)/2,3,0),COLORFF00FF;
STICKLINE(ZT1,C,(O+C)/2,2.2,0),COLORFF00FF;
STICKLINE(ZT1,C,(O+C)/2,1.5,0),COLOR0000FF;
STICKLINE(ZT1,O,(O+C)/2,3,0),COLOR999999;
STICKLINE(ZT1,O,(O+C)/2,2.2,0),COLORBBBBBB;
STICKLINE(ZT1,O,(O+C)/2,1.5,0),COLORDDDDDD;
STICKLINE(DT1,O,(O+C)/2,3,0),COLOR888888;
STICKLINE(DT1,O,(O+C)/2,2.2,0),COLORBBBBBB;
STICKLINE(DT1,O,(O+C)/2,1.5,0),COLORDDDDDD;
STICKLINE(DT1,C,(O+C)/2,3,0),COLOR009900;
STICKLINE(DT1,C,(O+C)/2,2.2,0),COLOR00BB00;
STICKLINE(DT1,C,(O+C)/2,1.5,0),COLOR00DD00;
STICKLINE(DT1,C,(O+C)/2,0.5,0),COLOR00FF00;
假阴:=AMOUNT/V/100>REF(C,1) AND C< O;
假阳:=AMOUNT/V/100< REF(C,1) AND C>O;
STICKLINE(假阴,O,C,0.2,0),COLORRED;
STICKLINE(假阳,O,C,0.7,0),COLORLIGREEN;
FL:=COUNT(ZT,15) AND COUNT(C>REF(C,2) AND V>REF(V,2),5)>=3;
JF:=H=HHV(H,N) AND H>REFX(H,1) AND H>REFX(H,2);
阴顶:=EXIST(FL,5) AND JF AND HHV(H,N)/LLV(L,N)>1.2,NODRAW,COLORGREEN;
左峰值:DRAWLINE(阴顶,H,BARSLAST(阴顶)>=1,REF(H,BARSLAST(阴顶)),1),COLORFFFF00,LINETHICK1;
ZY:=C>=REF(C,1)*1.06 OR C>O*1.06;
PT:=BARSLAST(阴顶);
XDT:=C>MA10 AND C>MA20 AND MA10>REF(MA10,1) AND MA20>REF(MA20,1) AND C>MA(C,60) AND (C>MA(C,250) OR C>MA(C,377));
QD:=ZY AND HHV(H,PT)<=REF(H,PT)*1.1 AND CROSS(C,MA10) AND EXIST(BETWEEN(V,REF(V,1)*2,REF(V,1)*5),10);
DQD:FILTER(QD,3),NODRAW;
QDZQ:=BARSLAST(DQD);
DRAWICON(DQD,L,7);
XDQK:=REF(阴顶,1) AND C< REF(C,1) AND O< REF(C,1);
DRAWICON(XDQK,H*1.01,2);
XDZQ:=BARSLAST(XDQK),NODRAW;
QKTP:=QDZQ<=10 AND (CROSS(C,REF(C,XDZQ)) OR (REF(C,1)< REF(C,XDZQ) AND C>REF(C,XDZQ))),NODRAW;
DRAWICON(QKTP,L,10);
DRAWICON(CROSS(C,REF(C,QDZQ)) AND C>MA10 AND QDZQ< 20,L,10);
STICKLINE(DQD,O,C,3,0),COLORFF00FF;
DRAWLINE(DQD,C,REF(DQD,1),REF(C,1),1),COLORWHITE,DOTLINE;
DRAWLINE(DQD,O,REF(DQD,1),REF(O,1),1),COLORLIGREEN,DOTLINE;
LY:=H< LLV(L,5)*1.15;
TP:=XDT AND PT>=3 AND ((O< REF(H,PT) AND O>REF(H,PT)) OR (O< 左峰值 AND C>左峰值)) AND ZY AND LY;
DRAWICON(TP,L,23);
预警值:=H/左峰值,NODRAW;
DRAWICON(预警值>=1.15 AND C< O AND V>REF(HHV(V,3),1),H,15);
VAR2:=(CLOSE-REF(CLOSE, 1))/REF(CLOSE, 1)*100;
VAR3:=(INDEXC-REF(INDEXC, 1))/REF(INDEXC, 1)*100;
VAR4:=VAR2-VAR3;
VAR5:=(OPEN-REF(CLOSE, 1))/REF(CLOSE, 1)*100;
VAR6:=(INDEXO-REF(INDEXC, 1))/REF(INDEXC, 1)*100;
VAR7:=VAR5-VAR6;
ZJ1:=SUM(RE
[url=http://www.70822.com/soft/sort013/sort05/down-165067.html]模型主图(通达信指标 主图 源码 测试图)[/url]
[url=http://www.70822.com/soft/sort013/sort05/down-165067.html]模型主图(通达信指标 主图 源码 测试图)[/url]