精準(zhǔn)線主圖指標(biāo)公式(無源碼的請下載附件導(dǎo)入)
頂?shù)?/a>開關(guān):=0;
點位差:=0;
指定點:=0;
V2V:=V/REF(V,1)>=1.9 AND C>REF(C,1);
STICKLINE(V2V,H,L,0,0),COLORYELLOW;
STICKLINE(V2V,O,C,3.1,0),COLOR0033FF;
STICKLINE(V2V,O,C,2.1,0),COLOR0077FF;
STICKLINE(V2V,O,C,1.1,0),COLOR00BBFF;
STICKLINE(V2V,O,C,0.1,0),COLOR00FFFF;
ZT:=C/REF(C,1)>1.097;
ZT數(shù):COUNT(ZT,BARSSINCE(ZT)),NODRAW;
均價:=AMO/VOL/100;
假陰真陽:=C<O AND C>=REF(MIN(C,O),1) AND 均價>REF(均價,1);
DT:=假陰真陽;
STICKLINE(DT,H,L,0,0),COLORFFAA00;
STICKLINE(DT,O,C,3,0),COLORFF3300;
STICKLINE(DT,O,C,2,0),COLORFF7700;
STICKLINE(DT,O,C,1,0),COLORFFAA00;
STICKLINE(DT,O,C,0.1,0),COLORFFFF00;
YX:=REF(O,BARSLAST(假陰真陽));
假陰實頂:YX,COLORFF7700,NODRAW;
STICKLINE(V,YX,YX,1,0),COLORFF7700;
L0:=點位差/100;
前極點精準(zhǔn)線:IF(頂?shù)组_關(guān)=0,CONST(REF(L,指定點)),CONST(REF(H,指定點))),COLOR178448;
DRAWICON(ABS(L-前極點精準(zhǔn)線)<=L0,前極點精準(zhǔn)線*0.99,38);
DRAWICON(ABS(H-前極點精準(zhǔn)線)<=L0,前極點精準(zhǔn)線*1.01,39);
{H極點精準(zhǔn)線:CONST(REF(H,指定點)),COLOR7777FF;
DRAWICON(ABS(H極點精準(zhǔn)線-H)<=L0,H極點精準(zhǔn)線*1.01,35);
DRAWICON(ABS(H極點精準(zhǔn)線-L)<=L0,H極點精準(zhǔn)線*0.99,34);}
{極點精準(zhǔn)線:CONST(L),COLOR0077FF;
DRAWICON(ABS(L-極點精準(zhǔn)線)<=L0,極點精準(zhǔn)線*0.99,1);
DRAWICON(ABS(H-極點精準(zhǔn)線)<=L0,極點精準(zhǔn)線*1.01,2);
同向極點精準(zhǔn)數(shù):COUNT(ABS(L-極點精準(zhǔn)線)<=L0,60)-1,COLOR0077FF,NODRAW;
異向極點精準(zhǔn)數(shù):COUNT(ABS(H-極點精準(zhǔn)線)<=L0,60),COLOR0077FF,NODRAW;
XG:=同向極點精準(zhǔn)數(shù)>0 AND 異向極點精準(zhǔn)數(shù)>0;}
{DIFF:=10*(EMA(CLOSE,12)-EMA(CLOSE,26));
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
量縮價漲:=C<REF(O,1) AND V<REF(V,1) AND MACD>REF(MACD,1) AND C>REF(C,1) AND REF(C<O,1) AND C>O;
陰KDAY:=BARSLAST(量縮價漲)+1;
STICKLINE(V,REF(O,陰KDAY),REF(O,陰KDAY),3.5,0),COLORMAGENTA;
DRAWICON(CROSS(C,REF(O,陰KDAY)),L,1);}
DRAWTEXT_FIX(ISLASTBAR,0.5,0.05,0,CODE),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.55,0.05,0,STKNAME)COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.6,0.05,0,HYBLOCK),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.6,0,0,DYBLOCK),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.55,0.85,0,GNBLOCK),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.55,0.90,0,FGBLOCK),COLORMAGENTA;
DRAWTEXT_FIX(ISLASTBAR,0.55,0.95,0,ZSBLOCK);
N:=150;判斷高低:=3;
高:=REF(HHV(H,N),判斷高低);
近期頂:REFDATE(高,DATE),COLORGREEN,LINETHICK3;
低:=REF(LLV(L,N),判斷高低);
近期底:REFDATE(低,DATE),COLORRED,LINETHICK3;
漲跌:=REF(C,1);
漲停:=IF((C-漲跌)*100/漲跌>=(10-0.01*100/漲跌),1,0);
DRAWICON(漲停,H*0.97,23);
LAST3K:=CURRBARSCOUNT>4;
|