通达信【快进与快跑】副图指标 被套风险线贯彻黄白线 多空参照 源码分享
LC:=REF(CLOSE,1);
N1:=6;N2:=12;
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=LLV(LOW,34);
VAR3:=HHV(HIGH,34);
XX:EMA((VAR1-VAR2)/(VAR3-VAR2)*100,13);
YY:EMA(0.667*REF(XX,1)+0.333*XX,2);
DRAWICON(CROSS(XX,YY),XX,1);
{DRAWICON(XX>YY AND RSI1<=REF(RSI1,1) AND RSI2<=REF(RSI2,1) AND ABS(((XX-YY)-(REF(XX,1)-REF(YY,1)))/(REF(XX,1)-REF(YY,1)))<0.25,YY,2);}
{DRAWICON(RSI1>85 AND XX>YY AND RSI1<=REF(RSI1,1) AND RSI2<=REF(RSI2,1) AND ABS(((XX-YY)-(REF(XX,1)-REF(YY,1)))/(REF(XX,1)-REF(YY,1)))<0.25,YY,2);}
被套风险:100-WINNER(C)*100,COLORRED;
VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
DRAWTEXT(CROSS(82,VARR1),XX+10,'快跑'),COLORRED;
{本文技术支持:好公式网www.goodgongshi.com}
联系客服