当前位置:分析家公式网 → 股票公式 → 同花顺公式 → 一键转帖:波动副图(同花顺公式 副图 源码 测试图)
软件名称:[B]波动副图(同花顺公式 副图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:5.00 KB
官方主页:Home Page
更新时间:2020-03-18 00:04:05
软件简介:
TR1:=MAX(HIGH-LOW,HIGH-REF(CLOSE,1));
xt:=MAX(TR1,REF(CLOSE,1)-LOW);
yt:MA((EMA(xt,39)/CLOSE)*100,10),coloryellow;
yn:MA((TMA(xt,19/20,1/20)/CLOSE)*100,5),colorgreen;//与上同
DRAWICON(yt>REF(yt,1) AND REF(yt,1)<REF(yt,2),yt,1);
DRAWICON(yt<REF(yt,1) AND REF(yt,1)>REF(yt,2),yt,2);
////////////////////////////////////////////////////////
N:=21;
M:=21;
VPT:=SUM(VOL/EMA(VOL,N)*(CLOSE-REF(CLOSE,1))/REF(CLOSE,1),0);
MAVPT:=EMA(VPT,M);
A:=(VPT-MAVPT)*50,colorwhite;
AA:=(EMA(A,3))*2,coloryellow;//
BB:=EMA(AA,3),colorred;//
CC:=0,colorcyan;
//DRAWICON(CROSS(yt,0),0-0.02,1);
//DRAWICON(CROSS(0,yt),0+0.02,2);
////////////////////////////////////////////////////////
B:=ZIG(3,10),colorred;
G:=MA(B,2),coloryellow;
D:=EMA(B,34),colorgreen;
J:=EMA(B,144),colorligreen;
//DRAWICON(CROSS(B,G),B-0.1,1);
//DRAWICON(CROSS(G,B),G+0.1,2);
DRAWTEXT(CROSS(B,G),yt,"建仓"),coloryellow;
DRAWTEXT(CROSS(G,B),yt,"清仓"),colorgreen;
F:=100*(C-REF(C,1))/REF(C,1);
JD:=IF(C<REF(O,1) AND F<0,1,0);
S1:=JD;
MR:=IF(C<REF(O,2) AND F<0,1,0),LINETHICK0;
S2:=MR;
A1:=S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,3) ,REF(ZIG(3 ,3),1));
A2:=S1=0 AND REF(S1,1)=1 AND S2=0 AND REF(S2,1)=1 AND CROSS(ZIG(3,5) ,REF(ZIG(3 ,5),1));
DRAWTEXT(A1 AND A2 OR D<0,yt,'加仓'),coloryellow;
DRAWICON(A1 AND A2,yt,1);
VAR3:=PEAKBARS(3,5,1)<10;
VAR5:=IF(VAR3=1,2,0);
顶:= IF(VAR5=2,2,0);
顶A:=IF(顶>REF(顶,1),1,0),STICK,colorcyan, LINETHICK2;//
DRAWTEXT(顶A=1,yt,'减仓'),colorgreen;
DRAWICON(顶A=1,yt,2);
////////////////////////////////////////////////////////////////
DRAWTEXT(A>REF(A,1) AND REF(A,1)<REF(A,2) AND (CROSS(B,G) AND (A1 AND A2 OR D<0)) ,yt,"Buy"),coloryellow;
DRAWTEXT(CROSS(G,B) ,yt,"Sell"),colorgreen;
[url=http://www.70822.com/soft/sort013/sort036/down-146002.html]波动副图(同花顺公式 副图 源码 测试图)[/url]