★万众期待的金股格格自创AAA量线指标源码(通达信+飞狐)
金股格格所谓自创AAA量线指标实际上是将流传甚广的资金流向指标做成10条累加线,但是思路上很有创新,受启发。未经格格同意,擅自将源码放出,请见谅。再次感谢金股格格的创新精神!好指标大家分享。
通达信:
{CV:=CLOSE;
BBIBOLL:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;
UPR:=BBIBOLL+6*STD(BBIBOLL,11);
DWN:=BBIBOLL-6*STD(BBIBOLL,11);}
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2)));
HSL:=(XVL/20)/1.15;
攻击:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
LLJX:=EMA(攻击,3);0,POINTDOT,COLORWHITE;
B1:SUM(LLJX,1),COLORCYAN;
B2:SUM(LLJX,2),COLORCYAN;
B3:SUM(LLJX,3),COLORCYAN;
B4:SUM(LLJX,4),COLORCYAN;
B5:SUM(LLJX,5),COLORCYAN;
B6:SUM(LLJX,6),COLORCYAN;
B7:SUM(LLJX,7),COLORCYAN;
B8:SUM(LLJX,8),COLORCYAN;
B9:SUM(LLJX,9),COLORCYAN;
B10:SUM(LLJX,10),COLORCYAN;
A1:IF(B1>REF(B1,1),B1,DRAWNULL),COLORRED;
A2:IF(B2>REF(B2,1),B2,DRAWNULL),COLORRED;
A3:IF(B3>REF(B3,1),B3,DRAWNULL),COLORRED;
A4:IF(B4>REF(B4,1),B4,DRAWNULL),COLORRED;
A5:IF(B5>REF(B5,1),B5,DRAWNULL),COLORRED;
A6:IF(B6>REF(B6,1),B6,DRAWNULL),COLORRED;
A7:IF(B7>REF(B7,1),B7,DRAWNULL),COLORRED;
A8:IF(B8>REF(B8,1),B8,DRAWNULL),COLORRED;
A9:IF(B9>REF(B9,1),B9,DRAWNULL),COLORRED;
A10:IF(B10>REF(B10,1),B10,DRAWNULL),COLORRED;
{飞狐}
{CV:=CLOSE;
BBIBOLL:=(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;
UPR:=BBIBOLL+6*STD(BBIBOLL,11);
DWN:=BBIBOLL-6*STD(BBIBOLL,11);}
QJJ:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
XVL:=(IF(CLOSE>OPEN,QJJ*(HIGH-LOW),IF(CLOSE<OPEN,QJJ*(HIGH-OPEN+CLOSE-LOW),VOL/2))+IF(CLOSE>OPEN,0-QJJ*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,0-QJJ*(HIGH-LOW),0-VOL/2)));
HSL:=(XVL/20)/1.15;
攻击:=((HSL*0.55+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.22));
LLJX:=EMA(攻击,3);0,POINTDOT,COLORWHITE;
a1:SUM(LLJX,1),COLORCYAN;
a2:SUM(LLJX,2),COLORCYAN;
a3:SUM(LLJX,3),COLORCYAN;
a4:SUM(LLJX,4),COLORCYAN;
a5:SUM(LLJX,5),COLORCYAN;
a6:SUM(LLJX,6),COLORCYAN;
a7:SUM(LLJX,7),COLORCYAN;
a8:SUM(LLJX,8),COLORCYAN;
a9:SUM(LLJX,9),COLORCYAN;
a10:SUM(LLJX,10),COLORCYAN;
partline(a1>REF(a1,1),a1),COLORRED;
partline(a2>REF(a2,1),a2),COLORRED;
partline(a3>REF(a3,1),a3),COLORRED;
partline(a4>REF(a4,1),a4),COLORRED;
partline(a5>REF(a5,1),a5),COLORRED;
partline(a6>REF(a6,1),a6),COLORRED;
partline(a7>REF(a7,1),a7),COLORRED;
partline(a8>REF(a8,1),a8),COLORRED;
partline(a9>REF(a9,1),a9),COLORRED;
partline(a10>REF(a10,1),a10),COLORRED;
|