通达信平台支撑线划线主图指标 源码分享 附图
{强势板块副图源码如下}
DRAWGBK(C>0,RGB(0,50,70),RGB(0,0,0),0,'2 ',0);
涨家:ADVANCE,NODRAW;
跌家:DECLINE,NODRAW;
Z:=涨家+1;
D:=跌家+1;
涨幅:(C-REF(C,1))/REF(C,1)*100,NODRAW,COLOR00FFFF;
涨比:Z/(Z+D)*100,NODRAW;
YX:=C>O OR (C=O AND C>REF(C,1));
沪涨幅:("999999$C"-REF("999999$C",1))/REF("999999$C",1)*100,NODRAW;
深涨幅:("399001$C"-REF("399001$C",1))/REF("399001$C",1)*100,NODRAW;
HSZ:=(沪涨幅+深涨幅)/2;
强势:涨比>80 {AND REF(EVERY(涨比<80,2),1)} AND YX AND 涨幅>HSZ+1;
沪深涨家:DYNAINFO(60),NODRAW,COLOR8080FF;
沪深跌家:DYNAINFO(61),NODRAW,COLOR00FF00;
涨跌净家:DYNAINFO(60)-DYNAINFO(61),NODRAW,COLORFFFF00;
沪深涨比:DYNAINFO(60)/(DYNAINFO(60)+DYNAINFO(61))*100,NODRAW,COLORFF00FF ;
沪深涨停家:"880006$C" NODRAW, COLOR0000FF;
沪深跌停家:"880006$O" NODRAW, COLOR00FF00;
DRAWTEXT_FIX(C>O,0.01,0.1,0,'选取原则:'),COLORRED;
DRAWTEXT_FIX(C>O,0.01,0.2,0,'1.当天板块内上涨个股比例80%以上'),COLORRED;
DRAWTEXT_FIX(C>O,0.01,0.3,0,'2.当天板块指数涨幅大于沪深平均涨幅1%'),COLORRED;
{强势板块主图源码如下}
DRAWGBK(C>0,RGB(0,50,70),RGB(0,0,0),0,'2 ',0);
MA5:MA(C,5),COLORRED;
NOTEXT1:IF(MA5<REF(MA5,1) OR C<MA5,MA5,DRAWNULL),COLORGREEN;
DRAWKLINE(H,O,L,C);
涨家:ADVANCE,NODRAW;
跌家:DECLINE,NODRAW;
Z:=涨家+1;
D:=跌家+1;
涨幅:(C-REF(C,1))/REF(C,1)*100,NODRAW,COLOR00FFFF;
涨比:Z/(Z+D)*100,NODRAW;
YX:=C>O OR (C=O AND C>REF(C,1));
沪涨幅:("999999$C"-REF("999999$C",1))/REF("999999$C",1)*100,NODRAW;
深涨幅:("399001$C"-REF("399001$C",1))/REF("399001$C",1)*100,NODRAW;
HSZ:=(沪涨幅+深涨幅)/2;
DRAWICON(涨比>80 {AND REF(EVERY(涨比<80,2),1)} AND YX AND 涨幅>HSZ+1,L*0.99,1);
沪深涨家:DYNAINFO(60),NODRAW,COLOR8080FF;
沪深跌家:DYNAINFO(61),NODRAW,COLOR00FF00;
涨跌净家:DYNAINFO(60)-DYNAINFO(61),NODRAW,COLORFFFF00;
沪深涨比:DYNAINFO(60)/(DYNAINFO(60)+DYNAINFO(61))*100,NODRAW,COLORFF00FF ;
沪深涨停家:"880006$C" NODRAW, COLOR0000FF;
沪深跌停家:"880006$O" NODRAW, COLOR00FF00;
DRAWTEXT_FIX(C>O,0.01,0.05,0,'选取原则:'),COLORRED;
DRAWTEXT_FIX(C>O,0.01,0.1,0,'1.当天板块内上涨个股比例80%以上'),COLORRED;
DRAWTEXT_FIX(C>O,0.01,0.15,0,'2.当天板块指数涨幅大于沪深平均涨幅1%'),COLORRED;
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
{强势板块副图源码如下}DRAWGBK(C>0,RGB(0,50,70),RGB(0,0,0),0,'2 ',0)
输出涨家:ADVANCE,NODRAW
输出跌家:DECLINE,NODRAW
Z赋值:涨家+1
D赋值:跌家+1
输出涨幅:(C-1日前的C)/1日前的C*100,NODRAW,COLOR00FFFF
输出涨比:Z/(Z+D)*100,NODRAW
YX赋值:C>O OR (C=O AND C>1日前的C)
沪输出涨幅:("999999$C"-1日前的"999999$C")/1日前的"999999$C"*100,NODRAW
深输出涨幅:("399001$C"-1日前的"399001$C")/1日前的"399001$C"*100,NODRAW
HSZ赋值:(沪涨幅+深涨幅)/2
输出强势:涨比>80 {AND 1日前的涨比<80最近2日一直存在} AND YX AND 涨幅>HSZ+1
沪深输出涨家:DYNAINFO(60),NODRAW,COLOR8080FF
沪深输出跌家:DYNAINFO(61),NODRAW,COLOR00FF00
输出涨跌净家:DYNAINFO(60)-DYNAINFO(61),NODRAW,COLORFFFF00
沪深输出涨比:DYNAINFO(60)/(DYNAINFO(60)+DYNAINFO(61))*100,NODRAW,COLORFF00FF
输出沪深涨停家:"880006$C" NODRAW, COLOR0000FF
输出沪深跌停家:"880006$O" NODRAW, COLOR00FF00
当满足条件C>O时,在横轴0.01纵轴0.1位置书写文字
当满足条件C>O时,在横轴0.01纵轴0.2位置书写文字
当满足条件C>O时,在横轴0.01纵轴0.3位置书写文字
{强势板块主图源码如下}DRAWGBK(C>0,RGB(0,50,70),RGB(0,0,0),0,'2 ',0)
输出MA5:C的5日简单移动平均,COLORRED
输出NOTEXT1:IF(MA5<1日前的MA5 OR CDRAWKLINE(H,O,L,C)
输出涨家:ADVANCE,NODRAW
输出跌家:DECLINE,NODRAW
Z赋值:涨家+1
D赋值:跌家+1
输出涨幅:(C-1日前的C)/1日前的C*100,NODRAW,COLOR00FFFF
输出涨比:Z/(Z+D)*100,NODRAW
YX赋值:C>O OR (C=O AND C>1日前的C)
沪输出涨幅:("999999$C"-1日前的"999999$C")/1日前的"999999$C"*100,NODRAW
深输出涨幅:("399001$C"-1日前的"399001$C")/1日前的"399001$C"*100,NODRAW
HSZ赋值:(沪涨幅+深涨幅)/2
DRAWICON(涨比>80 {AND 1日前的涨比<80最近2日一直存在} AND YX AND 涨幅>HSZ+1,L*0.99,1)
沪深输出涨家:DYNAINFO(60),NODRAW,COLOR8080FF
沪深输出跌家:DYNAINFO(61),NODRAW,COLOR00FF00
输出涨跌净家:DYNAINFO(60)-DYNAINFO(61),NODRAW,COLORFFFF00
沪深输出涨比:DYNAINFO(60)/(DYNAINFO(60)+DYNAINFO(61))*100,NODRAW,COLORFF00FF
输出沪深涨停家:"880006$C" NODRAW, COLOR0000FF
输出沪深跌停家:"880006$O" NODRAW, COLOR00FF00
当满足条件C>O时,在横轴0.01纵轴0.05位置书写文字
当满足条件C>O时,在横轴0.01纵轴0.1位置书写文字
当满足条件C>O时,在横轴0.01纵轴0.15位置书写文字