看图操作,量价与成本理论
农历: LUNARDATE(0),colorlired;
时间周期:=ABS(TAN(YEAR)),colorgray;
年:=ABS(MONTH)-1 ,coloryellow;
月:=ABS(MONTH)/11.1,coloryellow;
日:=ABS(DAY)-14,coloryellow;
年份:=CROSS(月,年) ,colorlired;
月份:=CROSS(年,日),colorgray;
年份显时:=IF(CROSS(月,年),2,1) ,colorlired;
月份显时:=IF(CROSS(年,日),2,1),colorgray;
DRAWTEXT(年份显时=2,CODETYPE,DATE),colorlired;
DRAWTEXT(月份显时=2,CODETYPE,MONTH) ,colorwhite;
最高价:=IF(ISNULL(HIGH),CLOSE,HIGH);
最低价:=IF(ISNULL(LOW),CLOSE,LOW);
开盘价:=IF(ISNULL(OPEN),CLOSE,OPEN);
MO:=MONEY;
VO:=VOL;
IF(VOL==0) VO:=VO[1];
VAR:=(3*最高价+最低价+开盘价+2*CLOSE)/7;
IF(MO==0)
{VARA:=VAR;MO:=VARA*VO/100;}ELSE
VARA:=MO/VO/100;
IF(ISNULL(VARA)==1 OR VARA==0) VARA:=VARA[1]; //加上这句就好了
VAR1:=SUM(MO,1)/VARA/100;
VAR2:=SUM(MO,5)/VARA/100;
VAR3:=SUM(MO,10)/VARA/100;
VAR4:=SUM(MO,20)/VARA/100;
VAR5:=SUM(MO,89)/VARA/100;
量价:DMA_(VAR,VO/VAR1),colorcyan;
LJ5:DMA_(VAR,VO/VAR2),colorwhite;
LJ10:DMA_(VAR,VO/VAR3),coloryellow;
LJ20:DMA_(VAR,VO/VAR4),colormagenta;
LJ89:DMA_(VAR,VO/VAR5),colorligray,LINETHICK2;
左侧:IF(LJ20>LJ89 AND LJ10>LJ20,LJ89,DRAWNULL),colorred,LINETHICK2;
右侧:IF(LJ10 多拉升:=CROSS(LJ20,LJ89); 拉升:IF(多拉升,LJ20,DRAWNULL),colorred; DRAWICON(多拉升,LOW*0.9861,'buy'); 多升回调:=CROSS(量价,LJ10) AND LJ89 多回调:IF(多升回调,LJ10,DRAWNULL),colorlired; DRAWICON(多回调,LOW*0.9861,'buy'); 空升回调:=CROSS(量价,LJ5) AND LJ89>LJ10; 空回调:IF(空升回调,LJ5,DRAWNULL),colorgreen; DRAWICON(空回调,LOW*0.9861,'buy'); 空清:=CROSS(LJ10,LJ5); 清:IF(空清,LJ5,DRAWNULL),colorgreen; DRAWICON(清,HIGH*1.0168,'SELL');