以下是通达信白帝飞天主图指标公式源码
以下是通达信白帝飞天主图指标公式源码
N:=3;
KKK:=SMA(H,11,1);
CX:=IF(KKK>REF(KKK,1),KKK,HHV(KKK,63));
GGG:=Sma(L,11,1);
DD:=IF(GGG成仙黄色线上涨:IF(C>=CX,CX,DRAWNULL),LINETHICK2,COLORYELLOW;
得道
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1); B1:=FILTER(A1,10); C1:=BacKSET(B1,10+1); HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1); B2:=FILTER(A2,10); C2:=BACKSET(B2,10+1); LD:=FILTER(C2,10);
A:=REF(C,BArslAst(HD)); B:=REF(C,BARSLAST(LD));
T1:=BARSLAST(HD)
波峰:IF(N>=1 AND T1,A,DRAWNULL),COLORYELLOW,POINTDOT,LINETHICK4;
STICKLINE(T1,A,A,9,0),COLORFF00FF;
波谷:IF(N>=1 AND T2,B,DRAWNULL),COLORLIGREEN,POINTDOT,LINETHICK4;
R:=MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1);
XQ:=IF(MA(CLOSE,17)
龙线,COLORYELLOW;
MX:=EMA(C,2);
XM:=EMA(SLOPE(C,21)*20+C,42);
BU:=crOSS(MX,XM);
SEL:=CROSS(XM,MX);
DRAWICON(BU,0.96*L,7);{
DRAWICON(SEL,1.03*H,2);}
{顶部}
DFQS:=7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1);
TX:=78.89;