大盘趋势 通达信副图 指标源码

HHV8:=HHV(INDEXH,30);
LLV8:=LLV(INDEXL,30);
V5:=(HHV8-INDEXC)/(HHV8-LLV8)*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);
VB:=(V9-VA)/2;
VAR5:=(INDEXH+INDEXL+3*INDEXC+INDEXO)/6;
VAR6:=(VAR5-MA(VAR5,14))/(0.015*AVEDEV(VAR5,14));
VAR7:=(VAR5-MA(VAR5,70))/(0.015*AVEDEV(VAR5,70));
VAR8:=IF(VAR6>=150 AND VAR6<200 AND VAR7>=150 AND VAR7<200,10,0);
VAR9:=IF(VAR6<=-150 AND VAR6>-200 AND VAR7<=-150 AND VAR7>-200,-10,VAR8);
预警系统:=IF(VAR7>=200 AND VAR6>=150,15,IF(VAR7<=-200 AND VAR6<=-150,-15,VAR9));
调整:IF(预警系统>0,预警系统 + 80,0),COLORGREEN;
反弹:IF(预警系统<0,ABS(预警系统)+80,0),COLORRED;
DRAWTEXT(调整>0 AND FILTER(调整>0,5),调整,'大盘调整啦,先撤'),COLOR0099FF;
DRAWTEXT(反弹>0 AND FILTER(反弹>0,5),反弹,'坚决抢反弹'),COLOR0099FF;
N:=55;
LLVN:=LLV(INDEXL,N);
HHVN:=HHV(INDEXH,N);
NPR:=INDEXC;
V11:=MA((NPR-LLVN)/(HHVN-LLVN)*100,5);
INDEXI:=(INDEXL+2*INDEXC+INDEXO)/4;
MA5:=MA(INDEXC,5);
VAR3:=3*SMA((INDEXC-LLVN)/(HHVN-LLVN)*100,5,1)-2*SMA(SMA((INDEXC-LLVN)/(HHVN-LLVN)*100,5,1),3,1);
VAR4:=3*SMA((INDEXI-LLVN)/(HHVN-LLVN)*100,5,1)-2*SMA(SMA((INDEXI-LLVN)/(HHVN-LLVN)*100,5,1),3,1);
趋势线:EMA(VAR3,3);


V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
准备现金:STICKLINE(趋势线<=13,0,20,5,0),COLORCC9900;
AA:=(趋势线<=13) AND FILTER((趋势线<=13),15);
DRAWTEXT (AA,30,'准备现金'),COLORCC9900;
买入股票: STICKLINE(趋势线<=13 AND V12>13,0,50,5,0),COLOR0099FF;
BB:= (趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10) ;
DRAWTEXT (BB,60,'买入股票'),COLOR0099FF;
CON:=(REF(趋势线,1)>=90 AND V12) AND INDEXI<=MA5;
CC:=CON AND FILTER(CON,10);
见顶清仓: STICKLINE(CON,0,50,5,0),COLORRED;
DRAWTEXT (CC,60,'见顶回落'),COLOR0099FF;
RATE:=100*(INDEXL-REF(INDEXC,1))/REF(INDEXC,1);
KP:CON AND FILTER((调整>0),1);
DRAWTEXT(RATE<=-6 AND CON,70,'大盘极度危险,再次见顶跑'),COLOR0099FF;
NIU:=COUNT(趋势线>=80,30)=30;
DRAWTEXT((COUNT(趋势线>=80,30)=30 AND FILTER((COUNT(趋势线>=80,30)=30),30)) ,100,'大牛市啊,卖房cao股啦'),COLOR0099FF;






来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图