红色柱状线持股;绿色柱状线持币 属于趋势指标
VAR1:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),25);
VAR2:=HIGH-REF(HIGH,1);
VAR3:=REF(LOW,1)-LOW;
VAR4:=SUM(IF(VAR2>0 AND VAR2>VAR3,VAR2,0),25);
VAR5:=SUM(IF(VAR3>0 AND VAR3>VAR2,VAR3,0),25);
VAR6:=VAR4*100/VAR1;
VAR7:=VAR5*100/VAR1;
VAR8:=MA(ABS(VAR7-VAR6)/(VAR7+VAR6)*100,15);
VAR9:=(VAR8+REF(VAR8,15))/2;
买:ZIG(3,15);
卖:MA(买,3);
DRAWICON(CROSS(买,卖),L-CLOSE/100,"buy");
DRAWICON(CROSS(卖,买),H+CLOSE/100,"sell");
STICKLINE(买>卖 AND CLOSE>=OPEN,OPEN,CLOSE,10,1),colorred;
STICKLINE(买>卖 AND CLOSE>=OPEN,OPEN,LOW,0,0),colorred;
STICKLINE(买>卖 AND CLOSE>=OPEN,CLOSE,HIGH,0,0),colorred;
STICKLINE(买>卖 AND CLOSE<OPEN,OPEN,CLOSE,10,0),colorred;
STICKLINE(买>卖 AND CLOSE<OPEN,LOW,HIGH,0,0),colorred;
STICKLINE(买<卖 AND CLOSE<=OPEN,OPEN,CLOSE,10,0),colorcyan;
STICKLINE(买<卖 AND CLOSE<=OPEN,LOW,HIGH,0,0),colorcyan;
STICKLINE(买<卖 AND CLOSE>OPEN,OPEN,CLOSE,10,1),colorcyan;
STICKLINE(买<卖 AND CLOSE>OPEN,OPEN,LOW,0,0),colorcyan;
STICKLINE(买<卖 AND CLOSE>OPEN,CLOSE,HIGH,0,0),colorcyan;
STICKLINE(买=卖 AND CLOSE>=OPEN,OPEN,CLOSE,10,1),colorblue;
STICKLINE(买=卖 AND CLOSE>=OPEN,OPEN,LOW,0,0),colorblue;
STICKLINE(买=卖 AND CLOSE>=OPEN,CLOSE,HIGH,0,0),colorblue;
STICKLINE(买=卖 AND CLOSE<OPEN,OPEN,CLOSE,10,0),colorblue;
STICKLINE(买=卖 AND CLOSE<OPEN,LOW,HIGH,0,0),colorblue;
STICKLINE((买='-' OR 卖='-') AND CLOSE>=OPEN,OPEN,CLOSE,10,1),colorblue;
STICKLINE((买='-' OR 卖='-') AND CLOSE>=OPEN,OPEN,LOW,0,0),colorblue;
STICKLINE((买='-' OR 卖='-') AND CLOSE>=OPEN,CLOSE,HIGH,0,0),colorblue;
STICKLINE((买='-' OR 卖='-') AND CLOSE<OPEN,OPEN,CLOSE,10,0),colorblue;
STICKLINE((买='-' OR 卖='-') AND CLOSE<OPEN,LOW,HIGH,0,0),colorblue;
MA5:MA(C,5),colorwhite;///www.fxjgsw.com
MA13:MA(C,13),colorgreen;
MA20:MA(C,20),coloryellow;
MA34:MA(C,34),colorcyan;
MA55:MA(C,55),colorlired;
MA89:MA(C,89),colorblue;
MA144:MA(CLOSE,144),colorlicyan;
MA260:MA(CLOSE,260),colorred;
STICKLINE(C<0.905*REF(C,1),C,O,5,0),colorwhite;
STICKLINE(C>1.095*REF(C,1),C,O,5,0),coloryellow;
DRAWTEXT(CROSS(ZIG(3,5),REF(ZIG(3,5),1)),LOW*0.99,'★买入') ,LINETHICK1,colorred;
DRAWTEXT(CROSS(REF(ZIG(3,5),1),ZIG(3,5)),HIGH*1.01,'★卖出'),colorgreen;
|
