均线上红绿副图指标

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

K:=SMA(RSV,3,1);

D:=SMA(K,3,1);

J:=3*K-2*D;

VAR1:=REF(OPEN,1);

VAR2:=SMA(MAX(OPEN-VAR1,0),6,1)/SMA(ABS(OPEN-VAR1),6,1)*100;

VAR3:=REF(CLOSE,1);

VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;

VAR5:=REF(HIGH,1);

VAR6:=SMA(MAX(HIGH-VAR5,0),6,1)/SMA(ABS(HIGH-VAR5),6,1)*100;

VAR7:=REF(LOW,1);

VAR8:=SMA(MAX(LOW-VAR7,0),6,1)/SMA(ABS(LOW-VAR7),6,1)*100;

均线上红:=VAR4>=VAR2 AND C>MA(C,8);

STICKLINE(均线上红,VAR2,VAR4,9,0),COLORRED;

STICKLINE(均线上红 AND VAR6>VAR8 AND VAR8>VAR4,VAR4,VAR6,0.5,1),COLORRED;

V1:=STICKLINE(均线上红 AND VAR6>VAR8 AND VAR8<VAR4,VAR4,VAR6,0.5,1),COLORRED;

V2:=STICKLINE(均线上红 AND VAR6<VAR8 AND VAR6>VAR4,VAR4,VAR8,0.5,1),COLORRED;

V3:=STICKLINE(均线上红 AND VAR6>VAR8 AND VAR6<VAR2,VAR2,VAR8,0.5,1),COLORRED;

V4:=STICKLINE(均线上红 AND VAR6>VAR8 AND VAR6>VAR2,VAR2,VAR8,0.5,1),COLORRED;

V5:=STICKLINE(均线上红 AND VAR6<VAR8 AND VAR8<VAR2,VAR2,VAR6,0.5,1),COLORRED;

STICKLINE(均线上红 AND VAR6<VAR8 AND VAR8>VAR2,VAR2,VAR6,0.5,1),COLORRED;

均线上绿:=VAR4<VAR2 AND C>MA(C,8);

STICKLINE(均线上绿,VAR2,VAR4,9,0),COLORGREEN;

STICKLINE(均线上绿 AND VAR6>VAR8 AND VAR6<VAR4,VAR4,VAR8,0.5,1),COLORGREEN ;

V6:=STICKLINE(均线上绿 AND VAR6<VAR8 AND VAR8<VAR4,VAR4,VAR6,0.5,1),COLORGREEN ;

V7:=STICKLINE(均线上绿 AND VAR6<VAR8 AND VAR6>VAR4,VAR4,VAR8,0.5,1),COLORGREEN ;

V8:=STICKLINE(均线上绿 AND VAR6>VAR8 AND VAR6<VAR4,VAR2,VAR8,0.5,1),COLORGREEN ;

V9:=STICKLINE(均线上绿 AND VAR6>VAR8 AND VAR6>VAR4,VAR2,VAR8,0.5,1),COLORGREEN ;

V10:=STICKLINE(均线上绿 AND VAR6<VAR8 AND VAR8<VAR2,VAR2,VAR6,0.5,1), COLORGREEN;

STICKLINE(均线上绿 AND VAR6<VAR8 AND VAR8>VAR2,VAR2,VAR6,0.5,1),COLORGREEN;

RSI1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;

RSI2:=SMA(MAX(CLOSE-REF(C,1),0),12,1)/SMA(ABS(CLOSE-REF(C,1)),12,1)*100;

STICKLINE(C,50,50,5,0),COLOR00FFFF;

STICKLINE(C,100,100,5,0),COLORLIRED;

STICKLINE(C,0,0,5,0),COLORLIGREEN;

WR:100-100*(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21));

(0)

相关推荐