文章目录:
在通达信里怎么把公式指标源码写进条件选股
VA6:=(2*CLOSE+HIGH+LOW)/4;
VA8:=LLV(LOW,34);
VARB:=HHV(HIGH,34);
VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);
VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);
长趋势:=EMA(VARD,2);
长趋势30;
我想在通达信里建立一个指标 就显示f10里的行业和主营内容 怎么写这个指标
“所属行业”可以在公式内以文本方式引用HYBLOCK,在系统设置下的“设置4”下有选项可以直接在分时图上提示行业信息。“主营内容”没找到方法显示,财务数据中有“主营业务利润率”(FINANCE(23)/FINANCE(20)*100)的引用可供参考。 通达信行业资料F10资料公式源码。把这段话放在任何一个主图里看盘都会觉得方便,源码DRAWTEXT_FIX(1,0.07,0,0,"所属行业:")COLOR0080FF;DRAWTEXT_FIX(1,0.14,0,0,HYBLOCK)COLOR0080FF;DRAWTEXT_FIX(1,0.21,0,0,"所属地区:")COLOR00FFFF;DRAWTEXT_FIX(1,0.28,0,0,DYBLOCK)COLOR00FFFF;DRAWTEXT_FIX(1,0.35,0,0,"概念板块:")COLOR00FFFF;DRAWTEXT_FIX(1,0.43,0,0,GNBLOCK)COLOR00FFFF;DRAWTEXT_FIX(1,0.07,0.06,0,"重要参考:")COLOR0000FF;DRAWTEXT_FIX(1,0.13,0.06,0,"每股净资产:"),COLOR0000FF;
DRAWNUMBER_FIX(1,0.20,0.06,0,FINANCE(34));DRAWTEXT_FIX(1,0.25,0.06,0,"每股未分配利润:"),COLOR0000FF;DRAWNUMBER_FIX(1,0.34,0.06,0,FINANCE(32));DRAWTEXT_FIX(1,0.39,0.06,0,"每股公积金:"),COLOR0000FF;DRAWNUMBER_FIX(1,0.46,0.06,0,FINANCE(18));DRAWTEXT_FIX(1,0.50,0.06,0,"利润同比(43):"),COLOR0000FF;DRAWNUMBER_FIX(1,0.57,0.06,0,FINANCE(43)DRAWTEXT_FIX(1,0.63,0.06,0,"流通股亿(7):"),COLOR0000FF;DRAWNUMBER_FIX(1,0.69,0.06,0,FINANCE(7)/100000000);DRAWTEXT_FIX(1,0.78,0.06,0,"流现量(9):"),COLOR0000FF;DRAWNUMBER_FIX(1,0.83,0.06,0,FINANCE(9));DRAWTEXT_FIX(1,0.88,0.06,0,"振幅:"),COLOR0000FF;DRAWNUMBER_FIX(1,0.91,0.06,0,DYNAINFO(13)*100);
这个指标源码怎么写通达信
VAR1:=(CLOSE+HIGH+LOW+OPEN)/4;
VAR2:=SUMBARS(VOL,CAPITAL);
VAR3:=HHV(VAR1,VAR2);
VAR4:=LLV(VAR1,VAR2);
VAR5:=(2*VAR1-VAR4-REF(VAR4,1))/(VAR3-VAR4);
VAR6:=(VAR1-VAR4)/(VAR3-VAR4);
VAR7:=IF(VAR1=VAR4,VAR5*60,VAR6*60);
VAR8:=600*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30);
VAR9:=EMA(VAR8,7);
VARA:=(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))*100;
VARB:=(-100)*(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))+5;
VARC:=HHV(HIGH,9)-LLV(LOW,9);
VARD:=HHV(HIGH,9)-CLOSE;
VARE:=CLOSE-LLV(LOW,9);
VARF:=VARD/VARC*100-70;
VAR10:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR11:=(2*CLOSE+HIGH+LOW)/4;
VAR12:=SMA(VARE/VARC*100,3,1);
VAR13:=LLV(LOW,34);
VAR14:=SMA(VAR12,3,1)-SMA(VARF,9,1);
VAR15:=IF(VAR14100,VAR14-100,0);
VAR16:=HHV(HIGH,34);
VAR17:=EMA((VAR11-VAR13)/(VAR16-VAR13)*100,8);
VAR18:=EMA(VAR17,5);
XG:VAR17=VAR18 AND REF(VAR17VAR18,1) AND VAR1760;
STICKLINE(VAR17-VAR180,VAR17,VAR18,8,1), ,COLORRED ;
STICKLINE(VAR17-VAR180,VAR17,VAR18,8,1), ,COLORGREEN ;
NANCE(34));DRAWTEXT_FIX(1,0.25,0.06,0,"每股未分配利润:"),COLOR0000FF;DRAWNUMBER_FIX(1,0.34,0.06,0,FINANCE(32));DRAW
*VAR1-VAR4-REF(VAR4,1))/(VAR3-VAR4); VAR6:=(VAR1-VAR4)/(VAR3-VAR4); VAR7:=IF(VAR1=VAR4,VAR5*60,VAR6*60); VAR8:=600*(EMA(
(0.667*REF(VARC,1)+0.333*VARC,2);长趋势:=EMA(VARD,2);长趋势30;我想在通达信里建立一个指标 就显示f10里的行业和主营内容 怎么写这个指标“所属行业”可以在公式内
5); XG:VAR17=VAR18 AND REF(VAR17VAR18,1) AND VAR1760;STICKLINE(VAR17-VAR180,VAR17,VAR18,8,
1); VAR15:=IF(VAR14100,VAR14-100,0); VAR16:=HHV(HIGH,34); VAR17:=EMA((VAR11-VAR13)/(VAR16-VAR13)*100,8); VAR18:=