通达信战略家龙骨线主图指标 源码 贴图 EMA(C,250)*2; DRAWGBK(C>0, RGB(220,130,130),RGB(0,100,100),0,'',0); VAR1:=HHV(HHV(LOW,10),250); VAR2:=EMA(EMA(H,20),10)/1.15; VAR3:=EMA(EMA(L,20),10)*1.15; DRAWBAND(VAR2,RGB(0,0,0),VAR3,RGB(0,0,0)); DRAWKLINE(HIGH,OPEN,LOW,CLOSE); {涨停K线标记} 涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0); STICKLINE(涨停,OPEN,CLOSE,3.1,0),COLORYELLOW; STICKLINE(涨停,H,L,0,0),COLORYELLOW; {强弱K线标记} 强:=CROSS(C,VAR3); DRAWICON(强,VAR3,23); {倍量} DRAWNUMBER(V>=REF(V,1)*2,H*1.02,INTPART(V/REF(V,1))),COLORWHITE; LT:=LLVBARS(L,10); {LTT:=BARSLAST(CURRBARSCOUNT=CONST(LT)+1);} HT:=FINDHIGHBARS(H,LT+1,50,1); DRAWLINE(CURRBARSCOUNT=CONST(HT)+1,H,ISLASTBAR,REF(H,HT),0),COLOR00FFFF,LINETHICK1; LT2:=LLVBARS(L,20); {LTT:=BARSLAST(CURRBARSCOUNT=CONST(LT)+1);} HT2:=FINDHIGHBARS(H,LT2+1,100,1); DRAWLINE(CURRBARSCOUNT=CONST(HT2)+1,H,ISLASTBAR,REF(H,HT2),0),COLOR00CCCC,LINETHICK1; LT3:=LLVBARS(L,50); {LTT:=BARSLAST(CURRBARSCOUNT=CONST(LT)+1);} HT3:=FINDHIGHBARS(H,LT3+1,200,1); DRAWLINE(CURRBARSCOUNT=CONST(HT3)+1,H,ISLASTBAR,REF(H,HT3),0),COLOR00AAAA,LINETHICK1; 龙骨线:EMA(EMA(VAR1,10)+2*STD(VAR1,10),10),COLOREE00EE,LINETHICK2; HDF:=(H-REF(C,1))/REF(C,1)*100; 炸:=HDF>9.8 AND C
|