软件名称:[B]趋势明朗[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:3.00 KB
官方主页:Home Page
更新时间:2015-04-06 03:12:18
软件简介:
几根线就能看的股票趋势压力和支撑
13886967378cjc
趋势明朗
参数:P1=3,P=5,N=10
源码:
OBV:=H;
OBV1:=L;
A1:=REF(OBV,P)=HHV(OBV,2*P+1);
B1:=FILTER(A1,P);
C1:=BACKSET(B1,P+1);
D1:=FILTER(C1,P);{高点}
A2:=REF(OBV1,P)=LLV(OBV1,2*P+1);
B2:=FILTER(A2,P);
C2:=BACKSET(B2,P+1);
D2:=FILTER(C2,P);{低点}
R11:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);
S11:=R11>REF(R11,1);
压:DRAWLINE(D1,OBV,S11,OBV,1),COLORYELLOW,LINETHICK2;
T11:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);
U11:=T11>REF(T11,1);
支:DRAWLINE(D2,OBV1,U11,OBV1,1),COLORWHITE,LINETHICK2;
A11:=REF(OBV,P1)=HHV(OBV,2*P1+1);
B11:=FILTER(A11,P1);
C11:=BACKSET(B11,P1+1);
D11:=FILTER(C1,P1);{高点}
A21:=REF(OBV1,P1)=LLV(OBV1,2*P1+1);
B21:=FILTER(A2,P1);
C21:=BACKSET(B21,P1+1);
D21:=FILTER(C2,P1);{低点}
R12:=BACKSET(ISLASTBAR,BARSLAST(D11)+1);
S12:=R12>REF(R12,1);
压2:DRAWLINE(S11,OBV,S12,OBV,1),COLORRED,LINETHICK2;
T12:=BACKSET(ISLASTBAR,BARSLAST(D21)+1);
U12:=T12>REF(T12,1);
支2:DRAWLINE(U11,OBV1,U12,OBV1,1),COLORLIBLUE,LINETHICK2;
{短期浪:ZIG(3,3),LINETHICK1,COLORRED;
中期浪:ZIG(3,8),LINETHICK1,COLORFFFF00;
长期浪:ZIG(3,26),LINETHICK1,COLORFFFFFF;}
【箱顶】:PEAK(CLOSE,N,1)*0.98;
【箱底】:TROUGH(CLOSE,N,1)*1.02,COLORRED;
【箱高】:=100*(【箱顶】-【箱底】)/【箱底】,NODRAW;
{DRAWICON(U12=1,(L* 0.98),24);
DRAWICON(S12=1,(H* 1.02),4);}
F1:=ZIG(3,15);
持有:F1> REF(F1,1),NODRAW;
{STICKLINE(持有=1,【箱底】,【箱底】*0.99,0.2,1),COLORGREEN;}
QS:=HHV(MA(C,3),13);
RS:=LLV(MA(C,3),13);
VAR1:=BACKSET(REF(QS,2)=HHV(QS,5),3);
VAR2:=CROSS(VAR1,0.9);
VAR3:=BACKSET(REF(RS,2)=LLV(RS,5),3);
VAR4:=CROSS(VAR3,0.9);
新压:REF(QS,BARSLAST(VAR2)),CIRCLEDOT;
新支:REF(RS,BARSLAST(VAR4)),COLORYELLOW,CIRCLEDOT;
[url=http://www.70822.com/soft/sort013/sort05/down-82966.html]趋势明朗[/url]