通达信公式源码概况:
指标类别:通达信公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
公式解读:
VAR2:=LLV(LOW,33);
VAR3:=HHV(HIGH,21);
VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,20)*0.998;
100,STICK,LINETHICK7,COLORFFCC33;
80,STICK,LINETHICK7,COLORFF9933;
50,STICK,LINETHICK7,COLORBLUE;
20,STICK,LINETHICK7,COLORCC0033;
20,,COLORWHITE;
50,,COLORYELLOW;
80,,COLORCYAN;
DRAWTEXT(FILTER(CLOSE 0,25),10, 极度危险区 ),,COLORWHITE;
DRAWTEXT(FILTER(CLOSE 0,25),30, 危险区 ),,COLORWHITE;
DRAWTEXT(FILTER(CLOSE 0,25),65, 安全区 ),,COLORWHITE;
DRAWTEXT(FILTER(CLOSE 0,25),88, 高安全区 ),,COLORWHITE;
当前安全度:100-EMA(0.667*REF(VAR4,1)+0.333*VAR4,1),CIRCLEDOT,LINETHICK2,COLORRED;
上线:=sma(c,6.5,1);
下线:=sma(c,13.5,1);
上线1:=sma(c,3,1);
下线1:=sma(c,10,1);
STICKLINE(上线 下线,上线,下线,2.5,0),colorred,linethick2;
stickline(下线 上线,上线,下线,2.5,0),linethick2,colorblue;
DRAWTEXT(cross(上线,下线),low*0.98, 全仓 ),colorred;
drawtext(cross(下线1,上线1),h*1.02, 清仓 ),colorblue;
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
UPR:=BBI+3*STD(BBI,13);
DWN:=BBI-3*STD(BBI,13);
安全线:MA(CLOSE,60);
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
DRAWTEXT(CROSS(82,RSI),HIGH*1.02, 减仓 ),linethick2,colorblue;
A7:=(2*C+H+L)/4;
操作:=MA(a7,5);
操作1:=MA(a7,5)*1.03;
操作2:=MA(a7,5)*0.97;
Var1:=LLV(a7,21);
Var2:=HHV(a7,21);
SK:=EMA((A7-Var1)/(Var2-Var1)*100,7);
SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
DRAWTEXT(IF(count(close6/10and =1.5*ma(vol,5)andcount(sk =sd,3)andref(low,1)=LLV(Low,120),1,0),LOW*0.98, 买进
DRAWTEXT(IF(count(close6/10andcount(sk sd,6)andref(low,5)=LLV(Low,120)andref(close =open,4)andref(close open,3)andREF(CLOSE OPEN,2)ANDref(open close,1)andopen ref(close,1),1,0),LOW*0.98, 买进
D:=MA(CLOSE,80)-MA(CLOSE,10)/3;
DRAWTEXT(if(CLOSEMA(VOL,5)/240ANDCLOSE REF(CLOSE,1)*1.08ANDCLOSE MA(CLOSE,13)*1.3,1,0),LOW*0.98,
bu:=cross(high,SAR(3,1,20));
sel:=cross(SAR(3,1,20),low);
var1:=last(high SAR(3,1,20));
var2:=last(low sar(3,1,20));
drawflagtext(bu,high, 买入
drawflagtext(sel,low, 卖出
drawtext(bu,LOW, B ),valign0,align1,coloryellow,linethick2;
drawtext(sel,HIGH, S ),valign2,align1,colorgreen,linethick2;
STICKLINE(low SAR(3,1,20)andisdown,high,open,0.5,1),colorred;
STICKLINE(low SAR(3,1,20)andisdown,close,open,7.5,1),colorred;
STICKLINE(low SAR(3,1,20)andisdown,close,low,0.5,1),colorred;
STICKLINE(high SAR(3,1,20)andisup,high,close,0.5,1),colorcyan;
STICKLINE(high SAR(3,1,20)andisup,close,open,7.5,1),colorcyan;
STICKLINE(high SAR(3,1,20)andisup,open,low,0.5,1),colorcyan;
drawflagtext(high=ref(high,1),high, 明日 +forcast(sar(3,1,20),max(var1,2))+ 建议关注
drawflagtext(high SAR(3,1,20)andhigh ref(high,1),high, 持币观望
drawflagtext(low SAR(3,1,20)andlow =ref(low,1),low, 明日跌破 +forcast(sar(3,1,20),max(var2,2))+ 注意止盈
drawflagtext(low SAR(3,1,20)andlow ref(low,1),low, 继续持股
年:=YEAR;
月:=MONTH;
星期:=WEEKDAY;
日1:=DATETOD1970(DATE);
上市日:=REF(DATE,BARPOS-1);
自然日:=日1-DATETOD1970(上市日)+1;
ZB:=(自然日-REF(自然日,1)) 星期-REF(星期,1)ORBARPOS=1;
本周第几天:=BARSLAST(ZB)+1;
本月第几天:=BARSLAST(年*100+月 REF(年*100+月,1))+1;
MA1:=REF(C,本周第几天);
MA2:=REF(MA1,本周第几天);
MA3:=REF(MA2,本周第几天);
MA4:=REF(MA3,本周第几天);
Ma5:=REF(MA4,本周第几天);
MA6:=REF(MA5,本周第几天);
MA7:=REF(MA6,本周第几天);
MA8:=REF(MA7,本周第几天);
MA9:=REF(MA8,本周第几天);
十周价:=(C+MA1+MA2+MA3+MA4+MA5+MA6+MA7+MA8+MA9)/10;
出击突破:HHVALL(IF(DISPSTATUS=2,十周价,0)),DOTLINE,COLORYELLOW;
bu1:=cross(c,出击突破);
bu2:=cross(出击突破,c);
drawtext(bu1,LOW, BB ),valign0,align1,coloryellow,linethick2;
drawtext(bu2,HIGH, SS ),valign2,align1,colorgreen,linethick2;
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*10,VAR3/10),3);
VAR5:=LLV(LOW,30);
VAR6:=HHV(VAR4,30);
VAR7:=IF(LLV(LOW,58),1,0);
VAR8:=EMA(IF(LOW =VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=IF(VAR8 100,100,VAR8);
VAR5X:=LLV(LOW,75);
VAR6X:=HHV(HIGH,75);
VAR7X:=(VAR6X-VAR5X)/100;
VAR8X:=SMA((CLOSE-VAR5X)-VAR7X,20,1);
VARA:=3*VAR8X-2*SMA(VAR8X,15,1);
VAR26:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
VAR28:=SMA(VAR26,3,1);
红包吸筹买入:(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLOR00FF00;
底部吸筹指标:(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100,COLOR00FF00;
STICKLINE(VAR8,0,VAR8,6,1),COLOR00FF00;