1、▼底1 资金抄底
有“手”就下手,红箭头已上涨。
日线资金抄底
IF(PERIODNAME<>"日线")
{
统计:"该指标只在日线周期下有效。";
RETURN;
}
//大单净量
r:=((ZDMR[-1]+BDMR[-1])-(ZDMC[-1]+BDMC[-1]))/SHGZG*100;
//相对强弱
LC := REF(CLOSE,1);//前一日收盘价;
RSI$1:=SMA(MAX(CLOSE-LC,0),3,1)/SMA(ABS(CLOSE-LC),3,1)*100;
RSI$2:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
RSI$3:=SMA(MAX(CLOSE-LC,0),8,1)/SMA(ABS(CLOSE-LC),8,1)*100;
相对强弱:=0.5*RSI$1+0.31*RSI$2+0.19*RSI$3;
wave$1:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),3,1);
wave$2:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),5,1);
wave$3:=SMA(100*(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8)),8,1);
短线波段:=0.5*wave$1+0.31*wave$2+0.19*wave$3;
机会区:20,POINTDOT,colorred;
风险区:80,POINTDOT,colorgreen;
风险系数:0.5*相对强弱+0.5*短线波段,coloryellow;
//买入条件;
CD1:=IF(风险系数<20 AND CLOSE>OPEN AND r>0,1,0);//波段小于20,股价翻红;
CD2:=IF(风险系数<20 AND LOW>=REF(LOW,1) AND CLOSE>LOW AND r>0,1,0);//波段小于20,股价未翻红,但未创新低;
CD3:=IF(REF(风险系数,1)<20 AND 风险系数>REF(风险系数,1),1,0);//前一日波段小于20,今日转向;
SIGNALBUY=(CD1=1 OR CD2=1 OR CD3=1);
X=(SIGNALBUY AND COUNT(SIGNALBUY,3)=1);
DRAWICON(X,机会区,11);
//buy 2;
机会区xx:24,POINTDOT,colorwhite;
CDxx1:=IF(风险系数<24 AND 风险系数>=20 AND CLOSE>OPEN AND r>0,1,0);//波段小于20,股价翻红;
CDxx2:=IF(风险系数<24 AND 风险系数>=20 AND LOW>=REF(LOW,1) AND CLOSE>LOW AND r>0,1,0);//波段小于20,股价未翻红,但未创新低;
CDxx3:=IF(REF(风险系数,1)<24 AND REF(风险系数,1)>=20 AND 风险系数>REF(风险系数,1),1,0);//前一日波段小于20,今日转向;
SIGNALBUYxx=(CDxx1=1 OR CDxx2=1 OR CDxx3=1);
Xxx=(SIGNALBUYxx AND COUNT(SIGNALBUYxx,3)=1);
DRAWICON(Xxx,机会区xx,"buy");
2、红买绿卖篮短线反弹
红买,绿卖。篮短线反弹。红和蓝一起强势上。绿和蓝是强势下。适用中线。( 顶尖财经 股票学院: )
N1:=7;N2:=27;
STICKLINE(C>0,40,60,10,0),COLOR999999;
RSV:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;
短K:SMA(RSV,3,1),COLORF580F5,LINETHICK0;
短D:SMA(短K,3,1),COLORCCDD33,LINETHICK0;
RSV1:=(CLOSE-LLV(LOW,N2))/(HHV(HIGH,N2)-LLV(LOW,N2))*100;
中K:SMA(RSV1,5,1),colorred,LINETHICK0;
中D:SMA(中K,10,1),COLOR33AA33,LINETHICK0;
底线:10,colorwhite;
顶线:90,COLOR00FFFF;
STICKLINE(短K>短D,短K,短D,8,1),COLORF580F5;
STICKLINE(短K<=短D,短K,短D,8,1),COLORCCDD33;
STICKLINE(中K>中D,中K,中D,6,0),COLOR0000EF;
STICKLINE(中K<=中D,中K,中D,6,0),COLOR33AA33;
3、小刀K线分时
VAR1:=NEW>REF(NEW,1) AND NEW>REF(NEW,2);
VAR2:=REF(VAR1,1) AND NEW<=REF(NEW,1) AND NEW>=REF(NEW,2);
VAR3:=REF(VAR2,1) AND NEW>=REF(NEW,1) AND NEW<=REF(NEW,2);
VAR4:=REF(VAR3,1) AND NEW<=REF(NEW,1) AND NEW>=REF(NEW,2);
VAR5:=REF(VAR4,1) AND NEW>=REF(NEW,1) AND NEW<=REF(NEW,2);
VAR6:=REF(VAR5,1) AND NEW<=REF(NEW,1) AND NEW>=REF(NEW,2);
VAR7:=REF(VAR6,1) AND NEW>=REF(NEW,1) AND NEW<=REF(NEW,2);
VAR8:=REF(VAR7,1) AND NEW<=REF(NEW,1) AND NEW>=REF(NEW,2);
VAR9:=REF(VAR8,1) AND NEW>=REF(NEW,1) AND NEW<=REF(NEW,2);
VARA:=REF(VAR9,1) AND NEW<=REF(NEW,1) AND NEW>=REF(NEW,2);
VARB:=REF(VARA,1) AND NEW>=REF(NEW,1) AND NEW<=REF(NEW,2);
VARC:=REF(VARB,1) AND NEW<=REF(NEW,1) AND NEW>=REF(NEW,2);
STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR
VAR8 OR VAR9 OR VARA OR VARB OR VARC,NEW,REF(NEW,1),3,1),colorred;
VARD:=NEWVARE:=REF(VARD,1) AND NEW>=REF(NEW,1) AND NEW<=REF(NEW,2);
VARF:=REF(VARE,1) AND NEW<=REF(NEW,1) AND NEW>=REF(NEW,2);
VAR10:=REF(VARF,1) AND NEW>=REF(NEW,1) AND NEW<=REF(NEW,2);
VAR11:=REF(VAR10,1) AND NEW<=REF(NEW,1) AND NEW>=REF(NEW,2);
VAR12:=REF(VAR11,1) AND NEW>=REF(NEW,1) AND NEW<=REF(NEW,2);
VAR13:=REF(VAR12,1) AND NEW<=REF(NEW,1) AND NEW>=REF(NEW,2);
VAR14:=REF(VAR13,1) AND NEW>=REF(NEW,1) AND NEW<=REF(NEW,2);
VAR15:=REF(VAR14,1) AND NEW<=REF(NEW,1) AND NEW>=REF(NEW,2);
VAR16:=REF(VAR15,1) AND NEW>=REF(NEW,1) AND NEW<=REF(NEW,2);
VAR17:=REF(VAR16,1) AND NEW<=REF(NEW,1) AND NEW>=REF(NEW,2);
VAR18:=REF(VAR17,1) AND NEW>=REF(NEW,1) AND NEW<=REF(NEW,2);
STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR
VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,NEW,REF(NEW,1),3,0),colorgreen;
VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR
VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1;
VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR
VAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;
STICKLINE(VAR19,REF(NEW,1),REF(NEW,2),3,0),colorred;
STICKLINE(VAR1A,REF(NEW,1),REF(NEW,2),3,0),colorwhite;
箱底30:LLV(MA((NEW),5),30),colorwhite;
箱底60:LLV(MA((NEW),5),120),colorgreen;
箱顶30:HHV(MA((NEW),6),30),coloryellow;
[股票入门基础知识]同花顺源码:▼底1 资金抄底,红买绿卖篮短线反弹,小刀K线分时
特别声明:文章内容仅供参考,不造成任何投资建议。投资者据此操作,风险自担。