絕好的指標(biāo)出入財(cái)神源碼如下:
{出入財(cái)神}
{參數(shù):N1 1 60 3
N2 1 90 10
M1 1 60 5
M2 1 90 20}
LC:= REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
買:EMA(RSI1,M1),COLORRED,LINETHICK2;
賣:EMA(RSI2,M2),LINETHICK2,COLORFFFF00;
VAR1:=REF(CLOSE,1);
VAR2:=SMA(MAX(CLOSE-VAR1,0),6,1)/SMA(ABS(CLOSE-VAR1),6,1)*100;
好財(cái)神:(CROSS(80,VAR2)),COLORF00FF0,LINETHICK2;
DRAWICON(好財(cái)神>0,買*1.15,2);
DRAWTEXT(好財(cái)神>0,買,'財(cái)神跑'),COLOR00FF00;
VAR3:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
VAR4:SMA(SMA(VAR3,3,1),3,1),COLOR00FF00;
VAR5:=EMA(VAR4,5);
VAR7:3*VAR4-2*VAR5,COLORGREEN;
惡財(cái)神:CROSS(VAR7,VAR4),COLORYELLOW,STICK;
DRAWTEXT(CROSS(VAR7,VAR4) AND
VAR7<21,VAR4,'財(cái)神到'),COLORYELLOW;
DRAWICON(CROSS(VAR7,VAR4)>0 AND
VAR7<21,VAR4,1);
分界:45,COLORFF0000;
頂:90,COLORYELLOW,LINETHICK2;
|