首页 > 编程语言 >通达信风险提示指标公式源码副图

通达信风险提示指标公式源码副图

时间:2024-01-27 15:00:14浏览次数:30  
标签:20 中短 公式 DRAWTEXT LLV COLORGREEN 通达信 源码 100

ma20:=MA(CLOSE,20);
MA60:=MA(CLOSE,60);
MA120:=MA(CLOSE,120);
MA240:=MA(CLOSE,240);
P:=((2)*(CLOSE) + HIGH + LOW + OPEN)/(5);
中短A:=HHV(P,20);
中短B:=LLV(P,20);
中短C:=中短A - 中短B;
中短D:=(EMA((P - 中短B)/(中短C),2))*(100);
中A:=HHV(P,60);
中B:=LLV(P,60);
中C:=中A - 中B;
中D:=(EMA((P - 中B)/(中C),2))*(100);
中长A:=HHV(P,120);
中长B:=LLV(P,120);
中长C:=中长A - 中长B;
中长D:=(EMA((P - 中长B)/(中长C),2))*(100);
长A:=HHV(P,240);
长B:=LLV(P,240);
长C:=长A - 长B;
长D:=(EMA((P - 长B)/(长C),2))*(100);
N:=20;
RSV1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
K1A:=SMA(RSV1,10,1);
D1B:=SMA(K1A,5,1);
KKC:=INTPART(K1A);
DDC:=INTPART(D1B);
TFXXS:=KKC+DDC,LINETHICK0,COLORYELLOW;
TGLXS:=(TFXXS-REF(TFXXS,1))*10,LINETHICK0,COLORGREEN;
TYCFX:=TFXXS+TGLXS,LINETHICK0,COLORGREEN;
A0:=(L+H+C*2)/4;
A1C:=EMA(A0,N);
A1X:=(A1C-REF(A1C,1))/REF(A1C,1)*100;
XXX:=EMA((C-LLV(L,11))/(HHV(H,25)-LLV(L,11))*4,8)+1;
XX:=IF(1=1,POW(XXX,2)-10,DRAWNULL);
YYY:=EMA((INDEXC-LLV(INDEXL,11))/(HHV(INDEXH,25)-LLV(INDEXL,11))*4,8)+1;
YY:=POW(YYY,2)-10;
RSV2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
K:=SMA(RSV2,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
KL:=crOSS(J,0);
KH:=CROSS(100,J);
LC:=REF(C,1);
Wrsi:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(Abs(CLOSE-LC),6,1)*100;
RL:=CROSS(wrSI,20);
RH:=CROSS(80,WRSI);
cci背:=IF(LLV(CCI,2)>LLV(CCI,7) AND LLV(L,2)<=LLV(L,7) AND HHV(H,10)>MA(CLOSE,60),1,0),COLORWHITE;
T1:=IF((DATE<=1090314),1,0);
VAR7W:=REF(CLOSE,1);
VAR8W:=((SMA(MAX(CLOSE-VAR7W,0),7,1))/(SMA(ABS(CLOSE-VAR7W),7,1)))*(100);
VAR9W:=CROSS(70,VAR8W);
VARA:=(FILTER(VAR9W,4))*(T1);
bias1:=(C-MA(C,12))/MA(C,6)*100;
BIAS2:=(C-MA(C,24))/MA(C,12)*100;
BIAS3:=(C-MA(C,48))/MA(C,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,6);
stICKLINE(C,100,90,5,0),COLORFF4433;
STICKLINE(C,90,80,5,0),COLORFF6633;
STICKLINE(A1X>=0,20,80,4,0)COLOR000055;
STICKLINE(A1X<0,20,80,4,0)COLOR663300;
STICKLINE(C,20,10,4,0),COLORFF6633;
STICKLINE(C,10,0,4,0),COLORFF4433;
近期风险:TFXXS,NODRAW;
预测风险:TYCFX,NODRAW;
乖离系数:=TGLXS,NODRAW;
长线:长D,LINETHICK2,COLORWHITE;
中长线:中长D,LINETHICK2,COLOR990000;
中线:中D,LINETHICK2,COLORYELLOW;
中短线:中短D,LINETHICK2,COLORRED;
DRAWTEXT(ISLASTBAR,5,' 高安全区'),COLORWHITE;
DRAWTEXT(ISLASTBAR,15,' 安全区'),COLORWHITE;
DRAWTEXT(ISLASTBAR,85,' 风险区'),COLORWHITE;
DRAWTEXT(ISLASTBAR,95,' 高风险区'),COLORWHITE;
DRAWTEXT(CCI背 AND REF(CCI,1)<-150 AND C>O,2,'C'),COLORYELLOW;
DRAWTEXT(RL,8,'R'),COLORGREEN;
DRAWTEXT((CROSS(BIAS,乖离) AND 乖离<-9),14,'B'),COLORWHITE;
DRAWTEXT(KL,20,'K'),COLORWHITE;
DRAWTEXT(VARA,86,'S'),COLORFFFFFF;
DRAWTEXT(KH,92,'K'),COLORWHITE;
DRAWTEXT(RH,98,'R'),COLORGREEN;
STICKLINE(CURRBARSCOUNT=53 ,100,0,82,0),COLOR333344;
STICKLINE(CURRBARSCOUNT=53 ,100,90,82,0),COLORRED;
DRAWTEXT(CURRBARSCOUNT=59,75,'●风险与收益共存,时限与收益相关'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,65,'●股况趋势常分析,追涨杀跌风险大'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,55,'●不设止损不买股,分批买入降成本'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,45,'●年季月线压于底,留意低点才进货,'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,35,'●年季月线托于顶,风险已存需留心'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,25,'●风险偏大看量能,忙用量神保平安'),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=59,15,'■ B=BIAS C=CCI K=kdj R=RSI'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=59,5,'■ S卖出、尚可持有、短期减持为短期行为'),COLORGREEN;
DRAWTEXT(中短D<=8 AND 中D<=8 AND 中长D<=8 AND 长D<=8 AND ISLASTBAR,25,'关注底部'),COLORGREEN;
DRAWTEXT(中短D<=20 AND 中D<=20 AND 中长D<=20 AND 长D<=20 AND ISLASTBAR,35,'安全弱势'),COLORGREEN;
DRAWTEXT(中短D>=80 AND 中D>=80 AND 中长D>=80 AND 长D>=80 AND ISLASTBAR,75,'已有风险'),COLORGREEN;
DRAWTEXT(中短D>93 AND 中D>93 AND 中长D>93 AND 长D>93 AND ISLASTBAR,65,'风险极高'),COLORGREEN;
DRAWTEXT(近期风险/预测风险 >=1 AND ISLASTBAR,50,'短期减持'),COLORGREEN;
DRAWTEXT(近期风险/预测风险<1 AND ISLASTBAR,50,'尚可持有'),COLORGREEN;

 

标签:20,中短,公式,DRAWTEXT,LLV,COLORGREEN,通达信,源码,100
From: https://www.cnblogs.com/zhibiao/p/17991434

相关文章

  • 通达信王子主图和王子新量指标公式源码
    王子主图和王子新量王子主图的价托信号和拐点信号还是可以的,有一定的参考价值。配合副图使用效果更好。主图源码:MA5:MA(C,5);MA10:MA(C,10);MA20:MA(C,20);MA40:MA(C,40);MA60:MA(C,60);MA120:MA(C,120),STICK;STICKLINE(MA5>=MA60ANDMA60>=MA10,MA10,MA60,4,0),COL......
  • 一对一源码,前端页面权限和按钮权限控制
    一对一源码,前端页面权限和按钮权限控制页面权限是一对一源码后台系统中非常常见的需求,在前端实现页面权限和按钮权限是为了确保用户只能访问其有权访问的页面,并执行其有权执行的操作。本文介绍前端实现页面权限和按钮权限控制的流程和逻辑。1.获取用户当前权限并且存在全......
  • 通达信主力抄底副图指标公式源码
    VAR1:=HHV(HIGH,3);VAR2:=(IF(WINNER(1.1*CLOSE)<0,0,WINNER(1.1*CLOSE))-IF(WINNER(0.9*CLOSE)<0,0,WINNER(0.9*CLOSE)))*100;VAR3:=IF(VAR1<0,0,VAR1);VAR4:=IF(VAR2<0,0,VAR2);VAR5:=COST(10);VAR6:=(CLOSE-VAR5)/VAR5*100;VAR7:=COUNT(VAR6<-2.05,3)......
  • 通达信黑马全景主图指标公式源码
    上:=(SMA(HIGH,21,2)*1.05);下轨道:(Sma(LOW,21,2)*0.969),POINTDOT,COLOR00FFFF;BMA:=MA(CLOSE,118);阻挡:=(SMA(HIGH,21,2)*1.05);RSV:=(((CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13)))*100);K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=((3*K)-(2*D));R......
  • 通达信鼎牛涨停主图指标公式源码
    ma3D:=MA(C,3);MA5D:=MA(C,5);ZX:=(MA3D+MA5D)/2;MA20D:=MA(C,20),NODRAW;MA30D:=MA(C,30),NODRAW;QSXS:=MA5D>=MA30DANDMA30D>REF(MA30D,1);GD:=ZX>=REF(ZX,1)ANDREF(ZX,1)<ref(zx,2);YB:=C>REF((O-C)/2+C,2);买:=crOSS(C,ZX)AND(GDORYB)AND......
  • 通达信分时启动指标公式源码副图
    BGTYU:=IF(DATE<=1150530,1,1);GHYJKU:=BETWEEN((DCLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((DCLOSE*BGTYU)))/SUM(vol*100,BARSCOUNT((DCLOSE*BGTYU)))),1.05,0.95);VBNH:=IF(GHYJKU=0,ma((DCLOSE*BGTYU),BARSCOUNT((DCLOSE*BGTYU))),(SUM(AMOUNT,BARSCOUNT((DCLOSE*BGTYU))......
  • 通达信探底擒妖指标公式源码副图
    {指标公式:加速起爆点出现时,在“灭庄一根线”副图中,主力线(红色)与操作线(黄色)均位于青色水平线附近,数值10左右,且尽量要求主力、操作线均紧挨青色水平线(10),一旦出现此现象,上涨空间很大;反之,如果离青色水平线越远,成功率会降低很多!!放宽条件:主力线15以内,操作线21以内。}VAR2:=REF(L......
  • 通达信分时起爆预警主图指标公式源码
    现价:=C,COLORWHITE,LINETHICK2;均价11:=SUM(C*V,240)/SUM(V,240),COLORRED,LINETHICK2;TT:=BARSCOUNT(C);前高:=REF(HHV(H,TT),1);突破:=crOSS(C,REF(HHV(H,TT),1))ANDC/均价11<1.09ANDTT>1ANDTT<240;主力扫盘:=COUNT(突破,13)>=3ANDCROSS(C,REF(HHV(H,TT),1));已......
  • 通达信王子新量指标公式源码
    V1:=V/CAPITAL*100;maV5:=EMA(V/CAPITAL*100,5);MAV10:=EMA(V/CAPITAL*100,10);量能:((V1-MAV5)/MAV5*2+(V1-MAV10)/MAV10)*10;SZ:=C>0ANDC>REF(C,1);放量上涨:((crOSS(量能,20)OR(量能-REF(量能,1))>=10)ANDSZ)*10,COLORRED;stICKLINE(放量上涨,0,vol,3,0),COLORRED;......
  • 通达信【掘金红筹】全套公式 共29个指标 暴利到极致 底部连续涨停 捉妖抄底指标 源码
    通达信【掘金红筹】全套公式底部连续涨停捉妖抄底指标黑马启动源码文件分享指标包括主图附图选股指标在内,一共29个指标标准启动:股票启动连续涨停的第一日,发出‘标准启动信号强力启动:标准信号发出信号偏多,强力启动会进行筛选和屏蔽超级启动:标准启动信号多,强力启动信号少,超......