马上注册,享用更多功能,让你轻松玩转本论坛。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
{MACD}
DIFEMA(CLOSE,SHORT)-EMA(CLOSE,LONG)),LINETHICK1,COLORWHITE;
DEA:EMA(DIF,MID),COLORCYAN,LINETHICK1;
最强之音A:MA(DIF,最强之音),LINETHICK1,COLORRED;
DRAWICON(CROSS(DIF,最强之音A),最强之音A,1);
MACDDIF-DEA)*2,COLORSTICK,COLORWHITE;
最易获利IF>0 AND MACD>0,COLORWHITE,NODRAW;
持股待涨IF>0 AND MACD<0,COLORWHITE,NODRAW;
轻仓参与IF<0 AND MACD>0,COLORWHITE,NODRAW;
下跌行情IF<0 AND MACD<0,COLORWHITE,NODRAW;
DRAWTEXT(CROSS(DIF,MACD)AND MACD>REF(MACD,15)AND ATAN(DIF/MACD*100)*180/3.1416>0 AND DIF>0 AND MACD>=0
,MACD,'↙开始推高股价'),COLORMAGENTA;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1,0),COLOR000055;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLOR000099;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0.2,0),COLOR0000BB;
STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,1,0),COLOR888888;
STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLORBBBBBB;
STICKLINE(MACD<=REF(MACD,1) AND MACD>0,0,MACD,0.2,0),COLORDDDDDD;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,1,0),COLOR3377AA;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLOR3388BB;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0.2,0),COLOR4499CC;
STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,1,0),COLORFF3300;
STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,0.6,0),COLORFF5500;
STICKLINE(MACD<=REF(MACD,1) AND MACD<0,0,MACD,0.2,0),COLORFF7700;
启动点:=MACD<0 AND MACD>REF(MACD ,1) AND REF(MACD ,1)<REF(MACD ,2)AND REF(MACD ,2)<REF(MACD ,3)AND REF(MACD ,3)<REF(MACD ,4)AND REF(MACD ,4)<REF(MACD ,5);
DRAWTEXT(启动点,MACD,'启点')COLORYELLOW;
{时间}
DA:=YEAR AND MONTH AND DAY;
AA1:=STRCAT(CON2STR(YEAR,0),'年');
AA2:=STRCAT(CON2STR(MONTH,0),'月');
AA3:=STRCAT(CON2STR(DAY,0),'日');
AA4:=STRCAT('【',IF(WEEKDAY=1,'一',IF(WEEKDAY=2,'二',IF(WEEKDAY=3,'三',IF(WEEKDAY=4,'四',IF
(WEEKDAY=5,'五',IF(WEEKDAY=6,'六','日')))))));
AA:=STRCAT(STRCAT(STRCAT(AA1,AA2),STRCAT(AA3,AA4)),'】');
DRAWTEXT_FIX(DA,0.9,0.01,0,AA),COLORWHITE;
{区间换手率统计}
换手率:10000*VOL/(FINANCE(7)*1),COLORWHITE,NODRAW;
{参数设置 年:1990,3000,2011 月:1,12,1 日:1,31,1}
时间:=(年-1900)*10000+月*100+日;
DRAWTEXT(BARSLAST(DATE<=时间),DIF*1.05,'换手起点'),COLORMAGENTA;
DRAWICON(BARSLAST(DATE<=时间),DIF*1.04,23);
HS80:IF(DATE>=时间,SUM(换手率,BARSLAST(DATE<=时间))>=80,DRAWNULL),NODRAW,COLORYELLOW;
HS100:IF(DATE>=时间,SUM(换手率,BARSLAST(DATE<=时间))>=100,DRAWNULL),NODRAW,COLORYELLOW;
HS200:IF(DATE>=时间,SUM(换手率,BARSLAST(DATE<=时间))>=200,DRAWNULL),NODRAW,COLORGREEN;
HS300:IF(DATE>=时间,SUM(换手率,BARSLAST(DATE<=时间))>=300,DRAWNULL),NODRAW,COLORGREEN;
HS450:IF(DATE>=时间,SUM(换手率,BARSLAST(DATE<=时间))>=450,DRAWNULL),NODRAW,COLORGREEN;
DRAWTEXT(CROSS(HS80,0.99),DIF*1,'80%'),COLORYELLOW;
DRAWICON(CROSS(HS80,0.99),DIF*1.05,0);
DRAWTEXT(CROSS(HS100,0.99),DIF*1,'100%-持仓13.3%'),COLORYELLOW;
DRAWICON(CROSS(HS100,0.99),DIF*1.05,0);
DRAWTEXT(CROSS(HS200,0.99),DIF*1,'200%-短线介入'),COLORYELLOW;
DRAWICON(CROSS(HS200,0.99),DIF*1.05,0);
DRAWTEXT(CROSS(HS300,0.99),DIF*1,'300%-拉升或洗盘'),COLORYELLOW;
DRAWICON(CROSS(HS300,0.99),DIF*1.05,0);
DRAWTEXT(CROSS(HS450,0.99),DIF*1,'450%'),COLORYELLOW;
DRAWICON(CROSS(HS450,0.99),DIF*1.05,20);
|