以下是通达信财神副图指标公式(无源码的请下载附件导入)
财神源码
Q_1:=CLOSE-REF(CLOSE,1);
Q_2:=100*EMA(EMA(Q_1,6),6)/EMA(EMA(ABS(Q_1),6),6);
Q_3:=CROSS(EMA(CLOSE,19),EMA(CLOSE,7));
Q_4:=CROSS(EMA(CLOSE,7),EMA(CLOSE,19));
Z1:=LOW=LLV(LOW,BARSLAST(Q_3)+1);
Z2:=LLV(LOW,BARSLAST(Q_3)+1);
Z3:=HIGH=HHV(HIGH,BARSLAST(Q_4)+1);
Z4:=HHV(HIGH,BARSLAST(Q_4)+1);
Q_A:=DRAWLINE(Z1,Z2,Z3,Z4,0);
Y1:=HIGH=HHV(HIGH,BARSLAST(Q_4)+1);
Y2:=HHV(HIGH,BARSLAST(Q_4)+1);
Y3:=LOW=LLV(LOW,BARSLAST(Q_3)+1);
Y4:=LLV(LOW,BARSLAST(Q_3)+1);
Q_B:=DRAWLINE(Y1,Y2,Y3,Y4,0);
X1:=LLV(Q_2,2)=LLV(Q_2,7);
X2:=COUNT(Q_2<0,2);
X3:=CROSS(Q_2,MA(Q_2,2));
X4:=REF(Q_B,1)<REF(Q_B,2);
X5:=Q_A>REF(Q_B,1);
买进:=X1 AND X2 AND X3 AND X4 AND X5;
TJ:=IF(Q_B<REF(Q_B,1) AND Q_B=Q_A,1,0);
堪称一绝:IF(REF(TJ,1)=0 AND TJ>=1,80,10),STICK,COLORRED;
持币:IF(Q_B<REF(Q_B,1) AND Q_B=Q_A,0,10),STICK,COLORGREEN;
地狱底:0,COLORGRAY;
地狱线:10,COLORGRAY;
地平线:20,COLORLIMAGENTA;
天际线:80,COLORGRAY;
RSV:=(CLOSE-LLV(LOW,33))/(HHV(HIGH,33)-LLV(LOW,33))*100;
神仙:SMA(RSV,7,1),COLORWHITE;
魔鬼:SMA(SMA(RSV,7,1),3,1),COLORYELLOW;
轨迹:SMA(SMA(SMA(RSV,6,1),5,1),3,1),COLORMAGENTA;
财神到:IF(CROSS(神仙,20),20,0),POINTDOT;
TDXSTEP209:DRAWICON(CROSS(神仙,20),5,1);
65277171.jpg
|