n:=30;
AA:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,N))/MA(CLOSE,N);
济安线:DMA((2*CLOSE+LOW+HIGH)/4,AA),LINETHICK1,colorFFFFFF;
CC:=(CLOSE/济安线);
MA1:=MA(CC*(2*CLOSE+HIGH+LOW)/4,3);
MAAA:=((MA1-济安线)/济安线)/3;
TMP:=MA1-MAAA*MA1;
A:TMP,LINETHICK1,coloryellow;
PARTLINE(济安线,TMP<=济安线,RGB(0,255,255),1,RGB(255,0,255)),LINETHICK2;
PARTLINE(TMP,TMP<=济安线,RGB(0,255,0),1,RGB(255,0,0)),LINETHICK2;
买线:=ZIG(3,4);//www.fxjgsw.com
卖线:=MA(买线,2);
STICKLINE(买线>=卖线,LOW,HIGH,0.1,0),color0000CC;
STICKLINE(买线>=卖线,CLOSE,OPEN,7,0),color0000CC;
STICKLINE(买线<卖线,CLOSE,OPEN,7,0),colorCCCC00;
STICKLINE(买线<卖线,LOW,HIGH,0.1,0),colorCCCC00;
STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,7,0),color00AAFF;
STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,7,0),color00DD00;
STICKLINE(CROSS(买线,卖线),LOW,HIGH,0.1,0),color00AAFF;
STICKLINE(CROSS(卖线,买线),LOW,HIGH,0.1,0),color00DD00;
DRAWICON(CROSS(买线,卖线),LOW*1,1);
DRAWICON(CROSS(卖线,买线),HIGH*1,2);
DRAWICON((ZIG(3,4)>REF(ZIG(3,4),1)) AND (REF(ZIG(3,4),1)<=REF(ZIG(3,4),2)) AND (REF(ZIG(3,4),2)<=REF(ZIG(3,4),3)),LOW*1,1) ;
DRAWICON((ZIG(3,4)<REF(ZIG(3,4),1)) AND (REF(ZIG(3,4),1)>=REF(ZIG(3,4),2)) AND (REF(ZIG(3,4),2)>=REF(ZIG(3,4),3)),HIGH*1,2);
|
