底部波浪 通达信副图,源码

B1:=(HHV(H,9)-C)/(HHV(H,9)-LLV(LOW,9))*100- 70;
B2:=SMA(B1,9,1)+100;
B3:=(C-LLV(L,9))/(HHV(H,9)- LLV(L,9))*100;
B4:=SMA(B3,3,1);
B5:=SMA(B4,3,1)+100;
B6:=B5-B2;
B7:IF(B6>60,B6-60,0);
持有:STICKLINE(REF(B7,1)<B7,B7,REF(B7,1),2,0),COLORMAGENTA;
A:0,POINTDOT,COLORMAGENTA,LINETHICK3;
{永不倒}
获利盘:WINNER(CLOSE)*100,COLORRED,LINETHICK1;
买入:CROSS(B7,1),LINETHICK0,COLORMAGENTA;
持股:B7>REF(B7,1),LINETHICK0,COLORMAGENTA;
卖出:CROSS(REF(B7,1),B7),LINETHICK0,COLORGREEN;


{醒目MACD,LCY编辑}
{INPUT:SHORT(12),LONG(26),M(9),N(55);}
DIFF:((EMA(CLOSE,12)-EMA(CLOSE,26))),LINETHICK2,COLORGREEN;
{IF(DIFF>=REF(DIFF,1),DIFF,DRAWNULL),LINETHICK2,COLORRED;}
DEA:EMA(DIFF,9),COLORWHITE;
MACD:(DIFF-DEA)*2,COLORSTICK,COLORMAGENTA;
{DRAWBAND(MACD,RGB(180,87,22),0,RGB(0,30,255));}
{IF(DIFF>0 AND DIFF>DEA AND DIFF>REF(DIFF,1),DIFF,DRAWNULL),LINETHICK2,COLORRED;
IF(DIFF<0 AND DIFF>DEA AND DIFF>REF(DIFF,1),DIFF,DRAWNULL),LINETHICK2,COLORYELLOW;}


建仓:=DIFF<0 AND REF(DIFF,1)<REF(DIFF,2) AND (DIFF>REF(DIFF,1)) AND MACD>REF(MACD,1),COLORLIRED,NODRAW;
M买:DIFF<0 AND CROSS(DIFF,DEA),COLORYELLOW,NODRAW;
M上买:DIFF>=0 AND CROSS(DIFF,DEA),COLORYELLOW,NODRAW;


{加仓:DIFF<0 AND DIFF>DEA AND MACD>REF(MACD,1),NODRAW,COLORYELLOW;
持股:DIFF>0 AND DIFF>DEA AND MACD>REF(MACD,1),NODRAW,COLORRED;
减仓:MACD>0 AND REF(MACD,1)>REF(MACD,2) AND MACD<REF(MACD,1),NODRAW,COLORGREEN;}
M卖:DIFF>0 AND REF(DIFF,1)>REF(DIFF,2) AND DIFF<REF(DIFF,1),COLORGREEN,NODRAW;
{持币:DIFF<DEA AND MACD<REF(MACD,1);
清仓:DIFF>0 AND CROSS(DEA,DIFF),COLORGREEN,NODRAW;
清仓1:DIFF>0 AND REF(DIFF,1)>REF(DIFF,2) AND (DIFF<REF(DIFF,1));}
DRAWICON(M买,DIFF*1.06,34);
DRAWTEXT(建仓,DIFF*1.25,'M建仓'),COLORLIRED;
DRAWTEXT(M买,DEA*1.100,'M买'),COLORYELLOW;
DRAWTEXT(M上买,DEA*1.200,'M上买'),COLORYELLOW;
DRAWICON(M卖,DIFF*1.10,2);
DRAWTEXT(M卖,DEA*1.30,'M卖'),COLORGREEN;
{DRAWICON(清仓,DIFF*1.06,35);}


净利润同比:=FINANCE(43),COLORYELLOW,NODRAW;
预报净利增长率:=FINVALUE(285),COLORRED,NODRAW;
DRAWTEXT_FIX(1,0.000,0.000,0,STRCAT(STRCAT('【净利润同比:】 ',CON2STR(净利润同比,2)),' %')),COLORYELLOW;
DRAWTEXT_FIX(1,0.160,0.000,0,STRCAT(STRCAT('【预报净利增长率:】 ',CON2STR(预报净利增长率,2)),' %')),COLORYELLOW;
DRAWTEXT_FIX(1,0.34,0.00,0,STRCAT(STRCAT('【自由流通市值:】',CON2STR(FINANCE(46)*C/100000000,2)),'亿元'))COLORYELLOW;


DRAWTEXT_FIX(1,0.00,0.78,0,'所属概念:')COLOR00FFFF;
DRAWTEXT_FIX(1,0.06,0.78,0,GNBLOCK),COLORYELLOW;
DRAWTEXT_FIX(1,0.00,0.86,0,'所属风格:')COLOR00FFFF;
DRAWTEXT_FIX(1,0.06,0.86,0,FGBLOCK),COLORYELLOW; 






未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

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

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