相關(guān)標(biāo)簽:
?
原理解析:
源碼:
?
?
P1:=13;
P2:=5;
強(qiáng)弱線:0,COLOR663399;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0), 4, 1)/SMA(ABS(CLOSE-LC),4,1)*100;
RSI2:=SMA(MAX(CLOSE-LC,0), 8, 1)/SMA(ABS(CLOSE-LC),8,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100;
Var1:=(RSI1+RSI2+RSI3)/3,COLORWHITE;
Var2:=MA(CLOSE, 5);
Var3:=MA(CLOSE,10);
Var4:=MA(CLOSE,20);
Var5:=MA(CLOSE,30);
Var6:=(Var2+Var3+Var4+Var5)/4;
Var7:=(Var6-REF(Var6, p1 ))/REF(Var6, 13)*100;
Var8:=(Var6-REF(Var6, p1 ))/REF(Var6, 13)*100;
Var9:=EMA(Var7, p2);
趨勢:Var9,COLORblue POINTDOT;
反轉(zhuǎn):STICKLINE(Var9>1*REF(Var9, 1), Var7, 0, 0.1, 0),COLOR663399;
持股:STICKLINE(Var7>1*REF(Var7, 1), Var7,Var9, 7, 1), COLOR5050ff;
持幣:STICKLINE(Var7<1*REF(Var7, 1), Var7,Var9, 7, 1), COLORGREEN;
離場或持股觀望:STICKLINE(趨勢>=0 AND Var7<1*REF(Var7, 1) ,var7,趨勢,7,1),COLORC0C0C0;
預(yù)警:STICKLINE(趨勢>=20 AND 趨勢>REF(趨勢 ,1),Var7 ,趨勢,7 ,0 ),COLORYELLOW;
風(fēng)險(xiǎn):STICKLINE(趨勢>=40 AND 趨勢>REF(趨勢 ,1),Var7,趨勢 ,7 ,0 ),COLOREE00EE;
相對頭部:STICKLINE(趨勢>5 AND CROSS(80,Var1),Var7 ,趨勢 ,7 ,0 ),COLORFFB97A;{來源:www.kzuj.com.cn 程序化交易}
?
公式導(dǎo)入教程: 【通達(dá)信公式源碼導(dǎo)入方法教程】 【同花順公式源碼導(dǎo)入方法教程】 【大智慧新一代公式源碼導(dǎo)入方法教程】
?