以下是通达信【卖出参考】(附图)(无源码的请下载附件导入)
均价线:=AMOUNT/V/100;
C2:=REF(C,1);
AA1:MA(C,4),COLORRED;
卖出:IF(AA1<=REF(AA1,1),AA1,DRAWNULL)COLORGREEN,LINETHICK2;
涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
STICKLINE(涨停,OPEN,CLOSE,4.6,0),COLORRED;
STICKLINE(涨停,OPEN,CLOSE,3.5,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),COLORYELLOW;
B1:='┄┄┄┄';
DRAWTEXT(均价线 AND 涨停,均价线,B1),COLORGREEN;
B3:='┄┄┄┄';
DRAWTEXT((O+C)/2 AND 涨停,(O+C)/2 ,B3),COLORMAGENTA;
B2:='┄┄┄┄';
DRAWTEXT(涨停,L,B2),COLORGRAY;
DRAWTEXT(涨停,H*0.988,' ---涨停'),COLORYELLOW;
HH:=COUNT(涨停,15)>=1 AND H/C<1.025 AND C>REF(C,1);
VC:=((CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100+(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100+(CLOSE-MA (CLOSE,30))/MA(CLOSE,30)*100)/3;
S2:IF(VC>20 AND FILTER(VC< REF(VC,1),5),H*1.001-0.012,DRAWNULL),CIRCLEDOT,LINETHICK5,COLORGREEN;
63299579.png
|