#在这里快速回复# {主图精准线} 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; |