以下是通达信循序渐进(源码副图贴图 )
N:=5;
现价:C,COLORWHITE;
顶筹: COST(19*N) ,COLORFFFF33;
卖筹: COST(15*N),COLORGREEN,DOTLINE;
买筹: COST(6*N) ,COLORRED,DOTLINE;
底筹: COST(1*N),COLORYELLOW;
DRAWTEXT(CROSS(现价,底筹) AND REF(COUNT((现价<底筹) AND (MA(C,5)<MA(C,13)),5)=5,1)
{ AND 现价>REF(现价,2)} AND C>REF(H,1),现价-0.5,’↖买底’),COLORRED;
DRAWTEXT(CROSS(现价,买筹) AND REF(COUNT({(现价>买筹) AND }(现价<买筹),8)=8,1)
{AND MA(C,3)>=REF(MA(C,3),1)},现价-0.5,’↖低买’),COLORYELLOW;
DRAWTEXT(CROSS(现价,卖筹) AND REF(COUNT({(现价>买筹) AND }(现价<卖筹),5)=5,1)
{AND MA(C,3)>=REF(MA(C,3),1)},现价-0.5,’↖高买’),COLORWHITE;
DRAWTEXT(CROSS(现价,卖筹) AND CROSS(现价,买筹){ AND REF(COUNT((现价<卖筹),5)=5,1)}
{AND MA(C,3)>=REF(MA(C,3),1)},现价-1.0,’↖双买’),COLORMAGENTA;
DRAWTEXT(WINNER(C)>0.8 AND CROSS(顶筹,现价),现价+0.5,’↖顶卖’),COLORGREEN;
评论(0)