顶底线-精品通达信指标公式源码分享
主图
顶:HHV(HIGH,20),COLOR007FFF;
底:LLV(LOW,20),COLORYELLOW;
A20Y:EMA(SLOPE((CLOSE+HIGH+LOW)/3,25)*8+(CLOSE+HIGH+LOW)/3,21),COLORMAGENTA;
VAR1:=EMA(A20Y,3);
C20Y:EMA(VAR1,3),COLORMAGENTA;
D20:IF(A20Y<REF(A20Y,1),A20Y,DRAWNULL),COLORGREEN;
VAR2:=IF(VAR1<REF(VAR1,1),VAR1,DRAWNULL);
F20:IF(C20Y<REF(C20Y,1),C20Y,DRAWNULL),COLORGREEN;
VAR3:=MA(CLOSE,5);
VAR4:=MA(CLOSE,10);
VAR5:=MA(CLOSE,30);
VAR6:=IF(VAR4>VAR5,VAR4,VAR5);
VAR7:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR8:=SMA(VAR7,3,1);
VAR9:=SMA(VAR8,3,1);
VAR10:=3*VAR8-2*VAR9;
VAR11:=CLOSE-REF(CLOSE,1);
VAR12:=100*EMA(EMA(VAR11,6),6)/EMA(EMA(ABS(VAR11),6),6);
VAR13:=LLV(VAR12,2)=LLV(VAR12,7) AND COUNT(VAR12<0,2) AND CROSS(VAR12,MA(VAR12,2));
DRAWTEXT(FILTER(VAR13=1,5),LOW-0.05,1024),COLORWHITE;
STICKLINE(VAR13,OPEN,CLOSE,2,0),COLORWHITE;
VAR14:=HHV(VAR12,2)=HHV(VAR12,7) AND COUNT(VAR12>34,2) AND CROSS(MA(VAR12,2),VAR12);
DRAWTEXT(FILTER(VAR14=1,1),HIGH*1.01,6),COLOR99CC32;
副图
VAR1:=COST(0.001);
VAR2:=COST(99.999992);
VAR3:=(VAR2-VAR1)/10;
VAR4:=VAR1;
VAR5:=VAR1+VAR3*1;
VAR6:=VAR1+VAR3*2;
VAR7:=VAR1+VAR3*3;
VAR8:=VAR1+VAR3*4;
VAR9:=VAR1+VAR3*5;
VAR10:=VAR1+VAR3*6;
VAR11:=VAR1+VAR3*7;
VAR12:=VAR1+VAR3*8;
VAR13:=VAR1+VAR3*9;
VAR14:=VAR1+VAR3*10;
VAR15:=WINNER(VAR5)-WINNER(VAR4);
VAR16:=WINNER(VAR6)-WINNER(VAR5);
VAR17:=WINNER(VAR7)-WINNER(VAR6);
VAR18:=WINNER(VAR8)-WINNER(VAR7);
VAR19:=WINNER(VAR9)-WINNER(VAR8);
VAR20:=WINNER(VAR10)-WINNER(VAR9);
VAR21:=WINNER(VAR11)-WINNER(VAR10);
VAR22:=WINNER(VAR12)-WINNER(VAR11);
VAR23:=WINNER(VAR13)-WINNER(VAR12);
VAR24:=WINNER(VAR14)-WINNER(VAR13);
VAR25:=VAR5*VAR15+VAR6*VAR16+VAR7*VAR17+VAR8*VAR18+VAR9*VAR19+VAR10*VAR20+VAR11*VAR21+VAR12*VAR22+VAR13*VAR23+VAR14*VAR24-VAR3/2;
CYS∞:(CLOSE-VAR25)/VAR25*100*0.999;
0,DOTLINE,COLORYELLOW;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!