通达信波段操作[偷不到就抢]
KK:=INDEXO;HH:=INDEXH;DD:=INDEXL;CC:=INDEXC;
DP:=EMA(INDEXC,500)/EMA(C,500);
STICKLINE(CC>REF(CC,1),(HH+H)/DP,(DD+L)/DP,0,1),COLORRED,LINETHICK2;
STICKLINE(CC>REF(CC,1),(KK+O)/DP,(CC+C)/DP,3,1),COLORRED,LINETHICK2;
STICKLINE(CC<REF(CC,1),(HH+H)/DP,(DD+L)/DP,0,0),COLOR00FF00,LINETHICK2;
STICKLINE(CC<REF(CC,1),(KK+O)/DP,(CC+C)/DP,3,0),COLOR00FF00,LINETHICK2;
MA10:MA(C,10),COLORYELLOW;
最高价:=H,COLORRED;
DRAWTEXT(ISLASTBAR,最高价,' -----最高价'),COLORRED;
最低价:=L,COLORGREEN;
DRAWTEXT(ISLASTBAR,最低价,' -----最低价'),COLORGREEN,LINETHICK2;
中间价:=(最高价+最低价)/2,COLORWHITE;
DRAWTEXT(ISLASTBAR,中间价,' -----中间价'),COLORWHITE,LINETHICK2;
STICKLINE(C>MA10,O,C,2,0)COLORRED;
STICKLINE(C>MA10 AND C<REF(C,1),O,C,2,0)COLORBLUE;
633277833.PNG
633366179.PNG
633444257.PNG
|