支撑压力线,无未来,源码分享,选择时选副图叠加k线
源码
VAR0:=(CLOSE - LLV(LOW,32)) / (HHV(HIGH,32) - LLV(LOW,32)) * CLOSE;
VAR1:=EMA(VAR0,3);
VAR3:=EMA(VAR0,7);
HH:=HHV(VAR3,64);
LL:=LLV(VAR3,64);
VARHIGH:IF(VAR1<=REF(HH,1),REF(H,BARSLAST(VAR1>=REF(HH,1))),DRAWNULL),COLORYELLOW;
NOTEXTGH:IF(VAR1>REF(HH,1),REF(VARHIGH,BARSLAST(CROSS(REF(HH,1),REF(VAR1,1)))),DRAWNULL),COLORYELLOW;
STICKLINE(1,NOTEXTGH,NOTEXTGH,10,0),COLORYELLOW;
VARLOW:IF(VAR1>REF(LL,1),REF(L,BARSLAST(VAR1<=REF(LL,1))),DRAWNULL),COLORGREEN,LINETHICK2;
B3:MA(C,21),COLORFF00FF,LINETHICK2;