量在價先(能量、換手)-指標公式源碼
;N1:=16;
N2:=26;
N3:=9;
SAT:=(AMOUNT/CLOSE)/HHV((AMOUNT/CLOSE),26);
能量:=IF(SAT>1,1,SAT)*100,COLORYELLOW,LINETHICK0;
換手:=VOL/CAPITAL*100,COLORWHITE,LINETHICK0;
①量:=EMA(換手,N1)-EMA(換手,N2);
、诹:=EMA(①量,N3);
、賰r:=EMA(CLOSE,N1)-EMA(CLOSE,N2);
、趦r:=EMA(①價,N3);
柱能:=(①價-②價)*2;
坑:IF(②價<0,②價,0),COLORRED,LINETHICK0;
STICKLINE(CROSS(①量,②量),HHV(①量,60),0,0,0),COLORMAGENTA;
STICKLINE((①價-②價)*2>0,(①價-②價)*2,0,2.5,0),COLORRED;
STICKLINE((①價-②價)*2<0,(①價-②價)*2,0,2.5,0),COLORFF8A15;
STICKLINE((①價-②價)*2<REF((①價-②價)*2,1) AND (①價-②價)*2>0,(①價-②價)*2,0,2.5,0),COLOR6F51E3;
STICKLINE((①價-②價)*2>REF((①價-②價)*2,1) AND (①價-②價)*2<0,(①價-②價)*2,0,2.5,0),COLORCECE00;
DRAWTEXT(CROSS(②價,0),REVERSE(柱能),'☆'),COLORYELLOW;
STICKLINE(CROSS(②價,0),0,REVERSE(柱能),0,0),COLORFFFF68;
DRAWTEXT(CROSS(0,②價),REVERSE(柱能),'☆'),COLORGREEN;
STICKLINE(CROSS(0,②價),0,REVERSE(柱能),0,0),COLORWHITE;
STICKLINE(①量>②量,①量,②量,1,1),COLORYELLOW;
STICKLINE(①量<=②量,①量,②量,0.5,0),COLORWHITE;
STICKLINE(①價>②價,①價,②價,1,0),COLORBLUE; STICKLINE(①價>②價 AND ①價>REF(①價,1),①價,②價,1,0),COLORMAGENTA;
STICKLINE(①價<=②價,①價,②價,1,0),COLORBROWN;
(南方財富網(wǎng)SOUTHMONEY.COM)