顶底警戒源码 (通达信)
股价趋势:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),LINETHICK0;
底部警戒:10,colorred,linethick2;
买入警戒:STICKLINE(股价趋势=10,0,20,2,0),color008364,linethick2;
买入信号:STICKLINE(CROSS(股价趋势,底部警戒),0,30,3,0),colorred,linethick5;
顶部警戒:90,colorffbb66,linethick2;
卖出警戒:STICKLINE(股价趋势=85,100,80,2,0),STICK,colorF00FF0,linethick2;
止损出局:STICKLINE(CROSS(顶部警戒,股价趋势),100,70,3,0),colorfff666,linethick5;
多方趋势:7*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1)
-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1)
-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*30,4,1),3,1),2,1),Color8811FF;
突击套利线:=14;
套利阻力线:=78.89;
抄底:=CROSS(多方趋势,突击套利线);
逃顶:=CROSS(套利阻力线,多方趋势);
DRAWICON(抄底,多方趋势,1);
DRAWICON(逃顶,多方趋势,2);
买:=MA(CLOSE,1);
卖:=(LOW+HIGH+CLOSE)/3;
奇:=MA(卖,5);
准:=HHV(奇,10);
急卖奇准:IF(HHV((买准),5),50,10),COLORFF6699;
STICKLINE(急卖奇准=10,50,10,1,1),COLORFF6699;
短卖奇准:IF(HHV((买准),10),50,20),COLORGREEN;
STICKLINE(短卖奇准=20,50,20,1,0),COLORGREEN;
TR:=SUM(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((LOW-
REF(CLOSE,1)))),5);
HD:=(HIGH-REF(HIGH,1));
LD:=(REF(LOW,1)-LOW);
DMP:=(SUM(IF(((HD0)AND(HDLD)),HD,0),5));
DMM:=SUM(IF(((LD0)AND(LDHD)),LD,0),5);
神偷线:=(((DMP)*100)/TR);
辅助线:=((DMM*100)/TR);
XXX:=(MA(((ABS((辅助线-神偷线))/(辅助线+神偷线))*100),3));
奇准:=MA(卖,5);
买卖:=LLV(奇准,10);
底部关注:IF(((XXX88)AND(神偷线5.8)),95,50),LINETHICK1,COLORYELLOW;
STICKLINE(底部关注=95,50,95,1.5,0),COLORYELLOW,LINETHICK1;
急买奇准:IF(LLV((买买卖),5),75,50),COLORRED,LINETHICK1;
STICKLINE(急买奇准=75,50,75,1.5,0),COLORRED,LINETHICK1;
短买奇准:IF(LLV((买买卖),10),85,50),COLORred,LINETHICK1;
STICKLINE(短买奇准=85,50,85,1.5,0),COLORred,LINETHICK1;
ADXR:=((XXX+REF(XXX,3))/2);
VAR1:=MA(LOW,1);
VAR2:=MA(HIGH,2);
VAR3:=MA(CLOSE,2);
VAR7:=REF(VAR3,1);
动向趋势线:XXX,LINETHICK2,COLORFFAA66;
多谢楼主分享,持续学习中 学习学习学习 谢谢分享。
页:
[1]