请老师帮忙把通达信的这个公式改成赢顺的公式 [文华财经]
- 咨询内容:
公式一 三角
{设置参数N 0 200 30}
A1:=MA(C,5);
A2:=LLV(A1,N);
高:=A1-A2;
底长:=N*0.825;
S三角:底长*高/2,COLORWHITE,LINETHICK3;
MS1:=MA(S三角,10);
DRAWBAND(S三角,120,MS1,RGB(36,136,36));
DRAWBAND(S三角,120,2,RGB(36,136,36));
MS5:MA(S三角,5)COLORYELLOW;
MS10:MA(S三角,10)COLORMAGENTA;
A0:=MA(C,1);
A02:=LLV(A1,N);
高1:=A0-A02;
底长1:=N*0.825;
S三角1:=底长1*高1/2,COLORWHITE,LINETHICK1;
STICKLINE(C>=REF(C,1),REF(S三角1,1),S三角1,2,1),COLORRED;
STICKLINE(C<REF(C,1),REF(S三角1,1),S三角1,2,1),COLORCYAN;公式二 股圣
DIFF:=EMA(CLOSE,N)-EMA(CLOSE,M);
DEA:=EMA(DIFF,9);
MA(C,8),COLORWHITE;
MA(C,21),COLORYELLOW;
多头:STICKLINE(DIFF>DEA,C,O,3,-1),COLORRED;
STICKLINE(DIFF>DEA,H,L,0,0),COLORWHITE;
空头:STICKLINE(DIFF<=DEA,C,O,3,0),COLORWHITE;
STICKLINE(DIFF<=DEA,H,L,0,0),COLORWHITE;
DRAWTEXT(CROSS(DIFF,DEA),L*0.98,'买'),COLORYELLOW;
DRAWTEXT(CROSS(DEA,DIFF),H*1.02,'卖'),COLORGREEN;
DIFF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA1:=EMA(DIFF1,9);
MA(C,8),COLORWHITE;
MA(C,21),COLORYELLOW;
多头1:STICKLINE(DIFF1>DEA1,C,O,3,0),COLORRED;
STICKLINE(DIFF>DEA1,H,L,0,0),COLORRED;
空头1:STICKLINE(DIFF1<=DEA1,C,O,3,0),COLORBLUE;
STICKLINE(DIFF1<=DEA1,H,L,0,0),COLORBLUE;
DRAWTEXT(CROSS(DIFF1,DEA1),L*0.98,'买'),COLORWHITE;
DRAWTEXT(CROSS(DEA1,DIFF1),H*1.02,'卖'),COLORGREEN;谢谢老师
- 文华技术人员:
您可以参考这个帖子改写http://help.shwebstock.com.cn/dispbbs.asp?boardid=14&Id=253941&page=2
- 文华客服: 谢谢你老师
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 1145508240 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容