日:=100;昨前:=3; 高1:=REF(HHV(H,日),昨前); 低1:=REF(LLV(L,日),昨前); 低:REFDATE(低1,DATE),COLORRED,LINETHICK2; DRAWKLINE(低+(低-LOW), 低+(低-OPEN), 低+(低-HIGH),低+ (低-CLOSE)); VARC:=低+(低-OPEN); WR1:=低+(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5)); WR2:=低-(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5)); M1:MA(C,7),COLORYELLOW; M2:MA(C,15),COLORMAGENTA; M3:MA(C,30),COLORGREEN; M4:MA(C,60),COLORLIGRAY; M5:MA(C,120),COLORBLUE; M1A:MA(VARC,14); M2B:MA(VARC,14); M3C:MA(VARC,30); M4D:MA(VARC,60); M5E:MA(VARC,120);
爱约股解答:
日:=100;昨前:=3;
高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
低:LLVALL((BARSTATUS=2)*低1),COLORRED,LINETHICK2;
VARC:=低+(低-OPEN);
WR1:=低+(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5));
WR2:=低-(HHV(HIGH,5)-CLOSE)/(HHV(HIGH,5)-LLV(LOW,5));
M1:MA(C,7),COLORYELLOW;
M2:MA(C,15),COLORMAGENTA;
M3:MA(C,30),COLORGREEN;
M4:MA(C,60),COLORGRAY;
M5:MA(C,120),COLORBLUE;
M1A:MA(VARC,14);
M2B:MA(VARC,14);
M3C:MA(VARC,30);
M4D:MA(VARC,60);
M5E:MA(VARC,120);
STICKLINE(CLOSE>OPEN,REVERSE(OPEN),REVERSE(CLOSE),7,0),COLORCYAN;
STICKLINE(CLOSE>OPEN,REVERSE(HIGH),REVERSE(LOW),0.5,0),COLORCYAN;
STICKLINE(CLOSE<=OPEN,REVERSE(OPEN),REVERSE(CLOSE),7,1),COLORRED;
STICKLINE(CLOSE<=OPEN,REVERSE(CLOSE),REVERSE(LOW),0.5,0),COLORRED;
STICKLINE(CLOSE<=OPEN,REVERSE(HIGH),REVERSE(OPEN),0.5,0),COLORRED;