「翔博精选指标」买卖一线牵(通达信公式 副图 源码 测试图)无
2022-04-25原创 编 辑:翔博软件
买卖一线牵,无未来函数,源码分享
一条红线引导买卖清仓,特意奉献给各位同学,请细细琢磨使用
{买卖一线牵}
M:=55;N:=34;
LCCC:=REF(CLOSE,1);
RSII:=((SMA(MAX((CLOSE-LCCC),0),3,1)/SMA(ABS((CLOSE-LCCC)),3,1))*100);
VAR1:=IF(YEAR>=2038 AND MONTH>=1,1,1);
VAR2:=REF(LOW,1)*VAR1;
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100*VAR1;
VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3)*VAR1;
VAR5:=LLV(LOW,30)*VAR1;
VAR6:=HHV(VAR4,30)*VAR1;
VAR7:=IF(MA(CLOSE,58),1,0)*VAR1;
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7*VAR1;
AAAA:=IF(VAR8>100,100,VAR8)*VAR1,COLORRED;
RSVV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
KKKK:=SMA(RSVV,3,1);
DDDD:=SMA(KKKK,3,1);
幸运线:90,COLORYELLOW;
风险线:15,DOTLINE,COLORCYAN;
清仓线:5,COLORGREEN;
操作线:100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)),COLORMAGENTA;
DRAWICON(CROSS(操作线,幸运线),90,1);
DRAWTEXT(CROSS(操作线,幸运线),92,'买入'),COLORRED;
DRAWICON(CROSS(操作线,风险线),15,2);
DRAWTEXT(CROSS(操作线,风险线),17,'卖出'),COLORGREEN;
DRAWICON(CROSS(操作线,清仓线) OR 操作线=清仓线,5,37);
DRAWTEXT(CROSS(操作线,清仓线) OR 操作线=清仓线,4,'清仓'),COLORYELLOW;