首页 > 编程语言 >通达信多用途量比指标公式源码

通达信多用途量比指标公式源码

时间:2024-03-10 11:45:42浏览次数:32  
标签:MA 多用途 VOL AMOUNT 通达信 源码 FI EMA REF

{ 通达信多用途量比指标公式源码 }

K:=2;
D:=Abs(AMOUNT-REF(AMOUNT,1));
E:=SUM(D,5)/5;
F:=REF(SUM(D,250)/250,1);
微元条件1:= E/F>0 AND E/F<3;
FI:=EMA(SLOPE(C,21)*21+C,39);
GI:=EMA(SLOPE(C,21)*21+C,55);
条件2:=EMA(C,3)>FI AND FI>REF(FI,1) AND FI>GI,NODRAW;
MTR:=EXPMEMA(MAX(MAX(ABS(HIGH-LOW),ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),39);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),39);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),39);
pdi:=DMP*100/MTR;
mdi:=DMM*100/MTR;
ADX:=EXPMEMA(ABS(PDI-MDI)/(MDI+PDI)*100,6);
ADXR:=EXPMEMA(ADX,6);
{引用macd}
DIF:=EMA(CLOSE,19)-EMA(CLOSE,39);
DEA:=EMA(DIF,9);
MacD:=(DIF-DEA)*2;
ZZ:=(CLOSE*2+H+L)/4,NODRAW;
VA:=IF(CLOSE>REF(ZZ,1),vol,-VOL);
obv:=SUM(IF(CLOSE=ZZ,0,VA),0);
MaoBV:=MA(OBV,39);
JBB:=EMA(OBV,3)/SUM(VOL,5)*100;
量:IF(K=1,AMOUNT/VOL/IF(CAPITAL,100,10000),AMOUNT/REF(MA(AMOUNT,5),1)),VOLSTICK;
平均线5:MA(量,5);
AG:=EMA(C,3)-FI;
条件调试:=OBV>MAOBV AND DIF>DEA AND PDI>MDI AND AMOUNT/VOL>MA(AMOUNT/VOL,35) AND 条件2 AND (AG-REF(AG,1))/REF(AG,1)>0 AND AMOUNT/VOL>MA(AMOUNT/VOL,250),NODRAW;
堆量:JBB>0 AND OBV>MAOBV AND DIF>DEA AND ADX>ADXR AND (ADX-ADXR)>REF((ADX-ADXR),1) AND MACD>REF(MACD,1) AND EMA(C,3)>FI AND FI>GI AND PDI>MDI AND MA(AMOUNT,5)/MA(AMOUNT,250)>1,NODRAW;
爆量: AMOUNT/REF(MA(AMOUNT,5),1)>5,COLORWHITE,NODRAW;
天量:HHV(AMOUNT,0)=AMOUNT,COLORYELLOW,NODRAW;
倍量:微元条件1 AND DIF>DEA AND PDI>MDI AND AMOUNT>MA(AMOUNT,35) AND AMOUNT/REF(MA(AMOUNT,5),1)>1 AND AMOUNT/REF(MA(AMOUNT,5),1)>1.9,COLORFF00FF,NODRAW;
STICKLINE(爆量>0 ,0,量,3,0),COLORWHITE;
STICKLINE( 堆量>0 AND 爆量=0 ,0,量,3,0),COLORRED;
STICKLINE( 倍量>0 AND 爆量=0 ,0,量,3,0),COLORMAGENTA;
STICKLINE(天量>0 ,0,量,3,0),COLORYELLOW;

 

标签:MA,多用途,VOL,AMOUNT,通达信,源码,FI,EMA,REF
From: https://www.cnblogs.com/zhibiao/p/18063918

相关文章

  • 通达信进出变盘提示主图指标公式源码
    {通达信进出变盘提示主图指标公式源码}MA13:MA(C,13);MA30:MA(C,30);MA60:MA(C,60);MA120:MA(C,120);MA240:MA(C,240);XL1:=((LLV(LOW,3)=LLV(LOW,60))AND((CLOSE/REF(CLOSE,1))>=1.04));XL2:=(((CLOSE-EMA(CLOSE,21))/EMA(CLOSE,21))*100);XL3:=crOSS(X......
  • 通达信月周共振三角主图指标公式源码
    {通达信月周共振三角主图指标公式源码}DRAWTEXT_FIX(1,0.4,0,0,'当主图出现共振信号后1~10个交易日内,观察副图对应的几日内,有无黄金坑,有则最佳'),COLORGRAY;DRAWTEXT_FIX(1,0.4,0.1,0,'当随后某日,5日线上穿10日线为第一买点;k线放量上穿60均线,则视为是大涨在即,为第二买点'),CO......
  • 通达信洞察主力主图指标公式源码
    {通达信洞察主力主图指标公式源码}DRAWGBK(CLOSE>0,RGB(150,50,175),RGB(0,25,100),0,2,0);DRAWTEXT_FIX(CURRBARSCOUNT=1,0.5,0,0,1),COLORCYAN;赚钱轨道:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORRED,LINETHICK2;X_1:=MA(CLOSE,20);DRAWBAND(赚钱轨......
  • 通达信回调选升级选股指标公式源码
    {通达信回调选升级选股指标公式源码}T:=IF(NAMELIKE('ST'),0,1)ANDIF(NAMELIKE('*'),0,1);T2:=NOT(CODELIKE('688'));T3:=NOT(CODELIKE('3'));T5:=NOT(CODELIKE('4'));T6:=NOT(CODELIKE('8'));T7:=NOT(INBLOCK('......
  • 通达信牛股强势异动指标公式源码
    {通达信牛股强势异动指标公式源码}VAR1:=MA(CLOSE,5);VAR2:=MA(CLOSE,10);VAR3:=MA(CLOSE,60);VAR4:=MA(CLOSE,120);VAR7:=EMA(HHV(HIGH,1),8);VAR8:=EMA(CLOSE,8);VAR9:=VAR8<ref(var8,1)and=""close<var8;<br="">VAR10:=IF(VAR7<ref(var7,......
  • 通达信波浪风险系数指标公式源码
    {通达信波浪风险系数指标公式源码}VAR13:=IF(YEAR>=2018ANDMONTH>=11ANDDAY>=1,0,1);AA:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;BB:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;CC:=EMA(AA,2);DD:=EMA(BB,5);VAR14:=MAX(EMA(AA,2)-EMA(BB,5),0)*1.2;VAR......
  • 通达信中波01号指标公式源码副图
    {通达信中波01号指标公式源码副图}X_1:=(MA(AMOUNT,5)/MA(vol,5)/100-MA(AMOUNT,125)/MA(VOL,125)/100)/(MA(AMOUNT,5)/MA(VOL,5)/100);X_2:=MA((LLV(LOW,28)-CLOSE)/(HHV(HIGH,28)-LLV(LOW,28))*100,5);X_3:=IF(NAMELIKE(1),0,1)ANDIF(NAMELIKE(2),0,1);X_4:=(CLOSE-MA(......
  • 通达信买入翻倍指标公式源码副图
    {通达信买入翻倍指标公式源码副图}{指标介绍:当多空线上穿0轴以后并且沿着45度向上运行时可视为有效突破,此时的信号可视为有效信号。信号出现在平台盘整期间,或者是小多头回调之后向上拉升之际,此时的信号最为有效,其它时间的信号要仔细辨别,下跌趋势中信号或者是高位钝化中的信号......
  • 通达信九转主图指标公式源码主图
    {通达信九转主图指标公式源码主图}买线:=EMA(C,1);卖线:=EMA(SLOPE(C,10)*10+C,20);STICKLINE(买线>=卖线,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR442233;STICKLINE(买线<卖线,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR224056;DRAWKL......
  • 通达信平台支撑线主图指标公式源码
    {通达信平台支撑线主图指标公式源码}N日平台:=20;所属板块:=STRCAT('【所属板块】',STRCAT(STRCAT(STRCAT('【行业】',HYBLOCK),STRCAT('【概念】',GNBLOCK)),STRCAT('【地区】',DYBLOCK)));DRAWTEXT_FIX(ISLASTBAR,0.00,0.0,0,所属板块),COLORBLUE;MA5:MA(CLOSE,5),COLORD......