买入参考率-精品通达信指标公式源码分享
VAR3A:=((HHV(H,21)-C)/(HHV(H,21)-LLV(L,21)))*100-10;
VAR4A:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
VAR5A:=SMA(VAR4A,13,8);
VAR6A:=SMA(VAR3A,21,8);
VAR7A:=MA(C,80)-MA(C,10)/7;
VAR13A:=SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100;
趋势:CEILING(SMA(VAR5A,13,8)),LINETHICK1,COLORRED;
操作:MA(3*SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1)-2*SMA (SMA((C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100,5,1),3, 1),5),LINETHICK1,COLORYELLOW;
顶峰:IF((趋势-VAR6A>85),95,100),COLORF0F000;
看底:IF((趋势-VAR6A<(-65)),0,10),COLOR00FF00;
M5:=MA(C,5);M10:=MA(C,10);
DRAWICON(M5>REF(M5,1),-10,3);
DRAWICON(M5>REF(M5,1) AND M10>REF(M10,1),-10,5);
DRAWICON(M5<REF(M5,1) AND M10<REF(M10,1),-10,6);
DRAWICON(趋势>REF(趋势,1),-25,1);
TT1:=IF(趋势>REF(趋势,1),100,0);
TT2:=FINDHIGH(C,0,20,1);
TT3:=(TT2-C)/C;
买入参考率:IF(ISLASTBAR AND M5>REF(M5,1),TT1*TT3,DRAWNULL),CIRCLEDOT,COLORBLUE;
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!