同花顺公式 多空生命线 VAR1:=EMA(CLOSE,15);
VAR2:=EMA(CLOSE,60);
红多:(CLOSE-VAR1)*2/(15+1)+VAR1,LINETHICK2, colorred;
VAR3:=(CLOSE-VAR2)*2/(60+1)+VAR2;
蓝空:IF(红多>VAR3,VAR3,红多),LINETHICK2, colorgreen;
生命线:VAR3,LINETHICK2, coloryellow;
DRAWICON(FILTER(CROSS(红多,VAR3),30),红多,1);
DRAWICON(FILTER(CROSS(VAR3,红多),30),红多,2);
//www.fxjgsw.com
VAR5:=LLV(LOW,27);
VAR6:=HHV(HIGH,34);
VAR7:=EMA((CLOSE-VAR5)/(VAR6-VAR5)*4,4)*25;
VAR8:=HHV(H,30);
VAR9:=LLV(L,30);
VAR10:=HHV(H,60);
VAR11:=LLV(L,60);
VAR12:=100*EMA(C,50);
VAR13:=100*C;
F:=VAR8-VAR9;
F1:=VAR10-VAR11;
A1:=(C-VAR9)/F*10000;
B1:=(VAR8-C)/F*10000;
A2:=(C-VAR11)/F1*10000;
B2:=(VAR10-C)/F1*10000;
A:=EMA(A1,2);
B:=EMA(B1,250);
STICKLINE(A<B OR VAR13<VAR12,C,O,-1,0),colorgreen;
STICKLINE(A>=B AND VAR13>=VAR12,C,O,-1,0),colorred;
STICKLINE(A<B OR VAR13<VAR12,L,H,0,0),colorgreen;
STICKLINE(A>=B AND VAR13>=VAR12,L,H,0,0),colorred;
|
