[原创]求大家帮忙修改下我这个公式错误句。。。自己不会。。谢谢大家 [通达信]
-
咨询内容:
公式如下:
EMA5:EMA(C,5),COLORWHITE;
EMA13:EMA(C,13),COLORYELLOW;
EMA34:EMA(C,34),COLORF00FF0;
EMA55:EMA(C,55),COLORGREEN;
AA05:=EMA5;
角度1:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;
AA051:=EMA13;
角度2:=ATAN((AA051/REF(AA051,1)-1)*100)*180/3.1416;
AA052:=EMA34;
角度3:=ATAN((AA052/REF(AA052,1)-1)*100)*180/3.1416;
IF(角度1>60,EMA5,DRAWNULL),COLORRED, LINE THICK1;
IF(角度2>45,EMA13,DRAWNULL),COLORRED,LINETHICK1;
IF(角度3>30,EMA34,DRAWNULL),COLORRED,LINETHICK1;
涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
STICKLINE(涨停, OPEN="OPEN" ,CLOSE,2.5,0),COLORYELLOW;
S1:="DMI.PDI";
S2:=S1>EMA(EMA(EMA(S1,2),2),2);
S3:= C/REF(C,1)>1.05;
DRAWTEXT(BETWEEN(DMI.PDI,37,45) AND S3 AND S2,L*0.98,‘↖亮剑‘),COLORYELLOW;
DRAWTEXT(BETWEEN(DMI.PDI,45,50)AND S3 AND S2,L*0.98,‘↖小牛‘),COLORYELLOW;
DRAWTEXT(BETWEEN(DMI.PDI,50,53)AND S3 AND S2,L*0.98,‘↖大牛‘),COLORYELLOW;
DRAWTEXT(DMI.PDI>53 AND S3 AND S2, L*0.98,‘↖疯牛‘),COLORYELLOW;
DRAWTEXT(REF(DMI.ADX,1)>50 AND CROSS(REF(DMI.ADX,1),DMI.ADX),H*1.01,‘↙变盘‘),COLORM AGEN TA;
DRAWTEXT(REF(DMI.PDI,1)>53 AND CROSS(REF(DMI.PDI,1),DMI.PDI),H*0.98,‘←大顶‘),COLORGREEN;
DRAWTEXT(REF(DMI.PDI,1)<7 AND="AND" CROSS(DMI.PDI,REF(DMI.PDI,1)),L*1.02,‘←大底‘),COLORRED;
{通达信文字指标}
所属板块:=STRCAT(‘所属板块: ‘,STRCAT(STRCAT(STRCAT(‘[行业]-‘,HYBLOCK),STRCAT(‘ [地域]-‘,DYBLOCK)),STRCAT(‘ [概念]-‘,GNBLOCK)));
总股本:=STRCAT(STRCAT(‘总股本: ‘,CON2STR(TOTALCAPITAL/1000000,3)),‘亿股‘);
流通盘:=STRCAT(STRCAT(‘流通盘: ‘,CON2STR(CAPITAL/1000000,3)),‘亿股‘);
每股收益:=STRCAT(STRCAT(‘每股收益: ‘,CON2STR(FINANCE(29)/FINANCE(1),2)),‘元‘);
每股未分配:=STRCAT(STRCAT(‘每股未分配: ‘,CON2STR(FINANCE(32),2)),‘元‘);
每股公积金:=STRCAT(STRCAT(‘每股公积金: ‘,CON2STR(FINANCE(18),2)),‘元‘);
每股净资产:=STRCAT(STRCAT(‘每股净资产: ‘,CON2STR(FINANCE(34),2)),‘元‘);
总市值:=STRCAT(STRCAT(‘总市值: ‘,CON2STR(FINANCE(1)*C/100000000,3)),‘亿元‘);
市值:=STRCAT(STRCAT(‘流通值: ‘,CON2STR((CAPITAL/1000000)*C,3)),‘亿元‘);
A1:=FINANCE(42);
A2:= DATE="DATE" TODAY(CONST(DATE));
A3:=A2-A1;
XDATE:=DAYTODATE(A3)+19000000;
上市日期:=STRCAT(‘ 上市日期: ‘,CON2STR(XDATE,0));
收入同比增长:=STRCAT(STRCAT(‘收入同比增长: ‘,CON2STR(FINANCE(44),2)),‘%‘);
市盈率:=STRCAT(‘市盈率: ‘,CON2STR(DYNAINFO(39),2));
主营毛利润率:=STRCAT(STRCAT(‘主营毛利润率: ‘,CON2STR((FINANCE(20)-FINANCE(21))/FINANCE(20)*100,2)),‘%‘);
主营净利润率:=STRCAT(STRCAT(‘主营净利润率: ‘,CON2STR(FINANCE(30)/FINANCE(20)*100,2)),‘%‘);
营业收入:=STRCAT(‘营业收入: ‘,STRCAT(CON2STR(FINANCE(20)/FINANCE(37)*4/100000000,2),‘亿元‘));
PS值:=STRCAT(‘PS值: ‘,CON2STR(C*FINANCE(1)/(FINANCE(20)/FINANCE(37)*4),2));
DRAWTEXT_FIX(ISLA STBA="STBA" R,0.001,0,0,上市日期),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.002,0.05,0,所属板块),COLORMA GENT="GENT" A;
DRAWTEXT_FIX(ISLASTBAR,0.002,0.10,0,总股本),COLOR CYAN="CYAN" ;
DRAWTEXT_FIX(ISLASTBAR,0.127,0.10,0,主营毛利润率),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.257,0.10,0,每股收益),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.002,0.15,0,流通盘),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.127,0.15,0,收入同比增长),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.257,0.15,0,每股净资产),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.002,0.20,0,总市值),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.127,0.20,0,营业收入),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.257,0.20,0,每股未分配),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.002,0.25,0,市值),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.127,0.25,0,PS值),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.257,0.25,0,每股公积金),COLORCYAN;
DRAWTEXT_FIX(ISLASTBAR,0.002,0.30,0,市盈率),COLORCYAN;
错误句:当前公式 : 财务显示 (指标画线公式)
错误句 :
IF(角度1>60,EMA5,DRAWNULL),COLORRED, LINE THICK1
详细信息 : 某个操作数没有相应的操作符匹配!
错误起始位置 : 402 ; 长度: 2
- 通达信技术部: 公式先换行。
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容