相关简介:通达信徐文明短线点金王牌指标公式源码分享
通达信指标公式源码概况:
指标类别:通达信指标公式
授权方式:免费版
指标评级:★★★★★
指标分类:策略
画线方法:主图
指标用法:主图指标适用于超短线,基本出现的提示都是比较精准的,指标的更多用法这里就不一一说明了
通达信指标公式源码:
LC:=REF((O+H+L+2*C)/5,1);
RSI:=SMA(MAX(C-LC,0),7,1)/SMA(ABS(C-LC),7,1)*10;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,23))/(0.015*AVEDEV(TYP,23));
买:=CROSS(RSI,7.1)ANDMA(V,5)>MA(V,10),COLORRED;
DRAWTEXT(CROSS(RSI,7.1)ANDMA(V,5)>MA(V,10),L,’◆◆短线擒黑码◆◆’),COLORWHITE;
DRAWICON(买,(LOW*0.98),17);
卖:=CROSS(7.1,RSI)ANDMA(V,10)>MA(V,5),COLORGREEN;
DRAWTEXT(CROSS(7.1,RSI)ANDMA(V,10)>MA(V,5),H*1.04,’■■■逃跑■■■’),COLORGREEN;
DRAWICON(卖,(H*1.03),28);
AA:=REF(CLOSE,1);
BBB:=SMA(MAX(CLOSE-AA,0),21,1)/SMA(ABS(CLOSE-AA),21,1)*1000;
HHH:=BBB-LLV(BBB,27);
CCC:=LLV(BBB,27)-BBB;
QQ:=(MA(HHH,2)*3+HHH*13)/16,COLORFF00FF,LINETHICK2;
SS:=(MA(CCC,2)*3+CCC*13)/16,COLORFF00FF,LINETHICK2;
GG:=MA(HHH,5),LINETHICK2,COLORGREEN;
MM:=MA(CCC,5),LINETHICK2,COLORGREEN;
WW:=IF(QQ<GG,SS,MM),LINETHICK2,COLOR0000FF;
EE:=IF(SS<MM,GG,QQ),COLORFFFFCC,LINETHICK2;
★买:=IF(EE-WW<5.6,200,0);
RSVV:=(CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100;
VARB2:=(RSVV/2+22)*1;
量:=EMA(VOL,13);
资金:=EMA(AMOUNT,13);
过滤:=((资金/量)/100);
提纯:=(((CLOSE-过滤)/过滤)*100);
黄金:=((提纯<(0))),COLORRED;
买AA:=黄金ANDRSVV<VARB2-2;
精准:=买AA>0;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
买:=IF(LLV(DX,2)=LLV(DX,7)ANDCOUNT(DX<0,2)ANDCROSS(DX,MA(DX,2)),1,0);
七胜:=FILTER(买=1,5);
DIFA:=EMA(CLOSE,6)-EMA(CLOSE,13);
DEA:=EMA(DIFA,5);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
MK日金叉:=CROSS(DIFA,DEA)ANDCROSS(K,D);
关注:REF(精准,1)AND七胜;
DRAWTEXT(关注,0.6,’–关注’);
MK金叉共振:IF(MK日金叉,1,0);
DRAWTEXT(MK金叉共振,0.8,’–共振’),COLORYELLOW;
var1:=REF(CLOSE,1);
var2:=SMA(MAX(CLOSE-var1,0),7,1)/SMA(ABS(CLOSE-var1),7,1)*100,COLORYELLOW;
var21:IF(var2<20,40,20),COLORRED;
var22:IF(var2>80,60,80),COLORFFFF50;
var2↑:STICKLINE(FILTER(REF(var2,1)<20ANDvar2>REF(var2,1),5),20,40,8,0),COLORRED;
var2↓:STICKLINE(FILTER(REF(var2,1)>80ANDvar2<REF(var2,1),5),60,80,8,0),COLORFFFF50;
DRAWTEXT(FILTER(REF(var2,1)<20ANDvar2>REF(var2,1),5),40,’买入’),COLORFFFFFF;
DRAWTEXT(FILTER(REF(var2,1)>80ANDvar2<REF(var2,1),5),60,’卖出’),COLORFFFFFF;
80,COLORGREEN;
20,COLORRED;
[源码注释]通达信公式动态翻译结果
DIF赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均
DEA赋值:DIF的9日指数移动平均
输出XG:上次DEA<0ANDCROSS(DIF,DEA)距今天数<5
评论(0)