VARA:=BARSCOUNT(CLOSE)*3.142/180;
A2: SIN(VARA*8)*100,LINETHICK2;
A3: COS(VARA*8)*100,LINETHICK2;
X1: 0;
VAR1:=MA(CLOSE,5);
VAR2:=MA(CLOSE,10);
VAR3:=MA(CLOSE,20);
VAR4:=MA(CLOSE,30);
VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;
VAR6:=(VAR5-REF(VAR5,5))/REF(VAR5,5)*1500;
VAR7:=(VAR5-REF(VAR5,5))/REF(VAR5,5)*1500;
VAR8:=EMA(VAR6,8);
注意: STICKLINE(VAR6>REF(VAR6,1) AND VAR6<0 AND VAR6<VAR8,VAR6,0,5,0);
转强: STICKLINE(VAR8>REF(VAR8,1) AND VAR6<0 AND VAR6>VAR8,VAR8,0,5,0),COLORYELLOW;
买点: STICKLINE(VAR6>REF(VAR6,1) AND VAR6>0 AND VAR8<0,VAR6,VAR8,10,0);
DRAWICON(FILTER(VAR6>REF(VAR6,1) AND VAR6>0 AND VAR8<0,30),-140,4);
DRAWTEXT(FILTER(VAR6>REF(VAR6,1) AND VAR6>0 AND VAR8<0,30),-40,'买点'),COLORFFFFFF;
持股: STICKLINE(VAR8>REF(VAR8,1) AND VAR8>0,VAR6,0,5,0),COLORRED;
观望: STICKLINE(VAR6<REF(VAR6,1) AND VAR8>REF(VAR8,1) AND VAR6>0,VAR6,VAR8,10,0);
持币: STICKLINE(VAR6<REF(VAR6,1) AND VAR6<VAR8,VAR6,VAR8,5,1),COLORFFFF00;
牛熊:EMA(CLOSE,60),COLORGREEN,LINETHICK3;
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,8);
A11:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B11:=REF(C,A11+1)>C AND REF(DIFF,A11+1)<DIFF AND CROSS(DIFF,DEA);
DRAWTEXT(IF(B11>0,1,0), 50,'买'), COLORRED,LINETHICK2;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
A22:=BARSLAST(REF(CROSS(K,D),1));
B22:=REF(C,A22+1)>C AND REF(K,A22+1)<K AND CROSS(K,D);
DRAWTEXT(IF(B22>0,1,0), 50,'买'), COLORRED,LINETHICK2;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
A33:=BARSLAST(REF(CROSS(RSI1,RSI2),1));
B33:=REF(C,A33+1)>C AND REF(RSI1,A33+1)<RSI1 AND CROSS(RSI1,RSI2);
DRAWTEXT(IF(B33>0,1,0), 50,'买'), COLORRED,LINETHICK2;
C11:=BARSLAST(REF(CROSS(DEA,DIFF),1));
D11:=REF(C,C11+1)<C AND REF(DIFF,C11+1)>DIFF AND CROSS(DEA,DIFF);
DRAWTEXT(IF(D11>0,1,0),50,'卖'), COLOR00FF00,LINETHICK2;
C22:=BARSLAST(REF(CROSS(D,K),1));
D22:=REF(C,C22+1)<C AND REF(K,C22+1)>K AND CROSS(D,K);
DRAWTEXT(IF(D22>0,1,0),50, '卖'), COLOR00FF00,LINETHICK2;
C33:=BARSLAST(REF(CROSS(RSI2,RSI1),1));
D33:=REF(C,C33+1)<C AND REF(RSI1,C33+1)>RSI1 AND CROSS(RSI2,RSI1);
DRAWTEXT(IF(D33>0,1,0),50,'卖'), COLOR00FF00,LINETHICK2;
注意底部:0,,COLORFFFFFF;
低位转强:0,,COLORYELLOW;
坚决持股:0,,COLORRED;
谨慎观望:0,,COLOR400080;
果断持币:0,,COLORFFFF00;
|