UID345381
积分60
学分
推广 个
预报后涨停 支
阅读权限20
在线时间 小时
注册时间2016-5-15
最后登录1970-1-1
|
{主图精准线}
BN:=20;
C2:XMA(C,2),COLORWHITE;
MA10:MA(C2,10),COLORYELLOW;
MA20:MA(C2,BN),COLORGREEN;
MA60:MA(C2,60),COLORBLUE;
{布林线信号}
BOLL:=MA20;
UPPER:BOLL+1.618*STD(C2,BN),COLORGREEN;
LOWER:BOLL-1.618*STD(C2,BN),COLORGREEN;
DRAWICON(CROSS(C2,LOWER),L*0.97,7);{买信号B}
DRAWICON(CROSS(UPPER,C2),H*1.03,8);{卖信号S};
{精准线}
N:=3;
L0:=0.00;{点位差参数}
{底精准线}
L1:=ABS(L-REF(L,1))<=L0;
L2:=ABS(L-REF(L,2))<=L0;
L3:=ABS(L-REF(L,3))<=L0;
L4:=ABS(L-REF(L,4))<=L0;
L5:=ABS(L-REF(L,5))<=L0;
精准线首次:=L1 OR L2 OR L3 OR L4 OR L5;
精准左:=FILTER(精准线首次,N) ;
天数:=BARSLAST(精准左);
LTS:=REF(L,天数);
精准右:=ABS(L-LTS)<=L0;
STICKLINE(精准左,L,L,50,-1),COLORMAGENTA;
DRAWLINE(精准左,L,精准右,LTS,1),COLORMAGENTA;
{顶精准线}
G1:=ABS(H-REF(H,1))<=L0;
G2:=ABS(H-REF(H,2))<=L0;
G3:=ABS(H-REF(H,3))<=L0;
G4:=ABS(H-REF(H,4))<=L0;
G5:=ABS(H-REF(H,5))<=L0;
精准线首次1:=G1 OR G2 OR G3 OR G4 OR G5;
精准左1:=FILTER(精准线首次1,N) ;
天数1:=BARSLAST(精准左1);
HTS:=REF(H,天数1);
精准右1:=ABS(H-HTS)<=L0;
STICKLINE(精准左1,H,H,50,-1),COLORGREEN; |
|