{灯塔太极}
TAIJI_A:=YEAR=2014 AND MONTH=11 AND DAY=24;
TAIJI_B:=YEAR=2014 AND MONTH=11 AND DAY=27;
TAIJI_C:=YEAR=2014 AND MONTH=7 AND DAY=22;
TAIJI_D:=YEAR=2014 AND MONTH=8 AND DAY=29;
DATA1:=YEAR=2014 AND MONTH=8 AND DAY=19;
DATA2:=YEAR=2014 AND MONTH=8 AND DAY=22;
DATA3:=YEAR=2014 AND MONTH=8 AND DAY=21;
DATA4:=YEAR=2014 AND MONTH=8 AND DAY=20;
O线:=DRAWLINE(DATA1,C,DATA4,REF(C,1),1),COLORMAGENTA,LINETHICK1;
A线:=DRAWLINE(DATA1,C,DATA4,H,1),COLORMAGENTA,LINETHICK1;
B线:=DRAWLINE(DATA1,C,DATA3,L,1),COLORMAGENTA,LINETHICK1;
C线:=DRAWLINE(DATA1,C,DATA2,L,1),COLORMAGENTA,LINETHICK1;
太极当值1:=DRAWLINE(TAIJI_A,C,TAIJI_B,L,3),COLORRED,LINETHICK2;
太极当值2:=DRAWLINE(TAIJI_C,O,TAIJI_D,O,3),COLORRED,LINETHICK2;
明日太极当值1:=太极当值1+(太极当值1-REF(太极当值1,1)),NODRAW,COLORWHITE;
明日太极当值2:=太极当值2+(太极当值2-REF(太极当值2,1)),NODRAW,COLORWHITE;
{---------------------------------------------------------------------------};
所属板块:=STRCAT('所属板块: ',STRCAT(STRCAT(STRCAT(' 【行业】:',HYBLOCK),STRCAT(' 【地域】:',DYBLOCK)),STRCAT(' 【概念】:',GNBLOCK)));
DRAWTEXT_FIX(O 0,0.005,0.00,0,所属板块);{www.9m8.cn 九毛八公式指标网}
均价:AMOUNT/VOL/100,NODRAW,COLOR00FF00;
涨停:=(C+0.005-REF(C,1))/REF(C,1)*100
STICKLINE(涨停=1,O,C,3,0),COLORMAGENTA;
向上跳空:=MIN(C,O) REF(MAX(C,O),1);
明日涨停参考:C*1.1,NODRAW,COLORYELLOW;
STICKLINE(向上跳空=1,O,C,0.4,0),COLORYELLOW;
虚三一:MAX(H,L)-(H-L)/3,NODRAW,COLORFFFFFF;
虚二一:(L+H)/2,NODRAW,COLORFFFFFF;
虚三二:MIN(H,L)+(H-L)/3,NODRAW,COLORFFFFFF;
三一:MAX(O,C)-ABS(O-C)/3,NODRAW,COLOR00FFFF;
二一:(O+C)/2,NODRAW,COLOR00FFFF;
三二:MIN(O,C)+ABS(O-C)/3,NODRAW,COLOR00FFFF;
AA11:=MAX(O,C) (REFXV(C,1)+REFXV(C,2)+REFXV(C,3))/3;
高于实顶:IF(AA11,1,0),COLORFFFFFF,NODRAW;
收阴:=O C AND (O-C)/O 0.04;
收阳:=O C AND (C-O)/O 0.04;
实体大于4%:=IF(O C,收阴,收阳);
STICKLINE(实体大于4%,二一,二一,2,0),COLORGRAY;