DRAWGBK(C>0, RGB(0,0,0),RGB(10,10,0),0,'0',0); {自用成交量} 预测量:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,预测量,0,-1,-1),COLOR00C0C0; 量:=VOL; V0001:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN)); 主买:IF(CLOSE>OPEN,V0001*(HIGH-LOW),IF(CLOSE<OPEN,V0001*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLOR6D0076,NODRAW; 主卖:IF(CLOSE>OPEN,0-V0001*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-V0001*(HIGH-LOW),0-VOL/2)),COLORFFD1BE,NODRAW; 净买:主买+主卖,COLORMAGENTA,NODRAW; 换手率:=VOL/CAPITAL*100; HS:=换手率; 量比:IF(ISLASTBAR,DYNAINFO(17),VOL/REF(MA(VOL,5),1)),LINETHICK0,COLORYELLOW; A:=MA(换手率,2); X:=LLV(A,20),LINETHICK; X1:=(A-LLV(A,20))=0; 换手最小:=IF(EVERY (A>0,5) AND FILTERX(X1,5),X1,0),COLORRED; 小天:BARSLAST(换手最小),LINETHICK,COLOR008888; X2:=HHV(A,20); X3:=(A-X2)=0; 换手最大:=IF(EVERY(REF(A,1)<X2,5) AND FILTERX(X3,5),1,0),COLORGREEN; STICKLINE(CLOSE<=REF(CLOSE,1) , VOL,0,3,0), COLOR808040; STICKLINE(CLOSE>REF(CLOSE,1), VOL,0,3,1),COLORFF87FF; STICKLINE(净买>0,0,主买,3,0),COLOR1020BB; STICKLINE(净买>0,0,主买,2,0),COLOR1020BB; STICKLINE(净买>0,0,主买,1,0),COLOR1020DD; STICKLINE(净买>0,0,主买,0,0),COLOR1020EE; STICKLINE(净买<=0,0,主买,3,0),COLOR1020BB; STICKLINE(净买<=0,0,主买,2,0),COLOR1020CC; STICKLINE(净买<=0,0,主买,1,0),COLOR1020DD; STICKLINE(净买<=0,0,主买,0,0),COLOR1020EE; STICKLINE(净买>0,V,主买,3,0),COLORFFAA22; STICKLINE(净买>0,V,主买,2,0),COLORFFBB33; STICKLINE(净买>0,V,主买,1,0),COLORFFDD44; STICKLINE(净买>0,V,主买,0,0),COLORFFFF55; STICKLINE(净买<=0,V,主买,3,0),COLORFFAA22; STICKLINE(净买<=0,V,主买,2,0),COLORFFBB33; STICKLINE(净买<=0,V,主买,1,0),COLORFFDD44; STICKLINE(净买<=0,V,主买,0,0),COLORFFFF55; STICKLINE(C,量比*15000,0,3,0),COLOR00AAAA; STICKLINE(C,量比*15000,0,2,0),COLOR00CCCC; STICKLINE(C,量比*15000,0,1,0),COLOR00EEEE; STICKLINE(C,量比*15000,0,0,0),COLOR00FFFF; {线形} H13:=HHV(MA(VOL,13),13),COLORGREEN; L13:=LLV(MA(VOL,5),13),COLORBROWN,LINETHICK2; MV5:MA(VOL,5),COLOR8888FF; MV13:MA(VOL,13),COLORMAGENTA; MV34:MA(VOL,34),COLORWHITE; {信号和文字提示} DRAWICON(MA(SUM(主买,34),10)>REF(MA(SUM(主买,34),10),1),-300,2); DRAWICON(MA(SUM(主买,34),10)<=REF(MA(SUM(主买,34),10),1),-300,1); {} DRAWRECTREL(0,0,285,999.2,IF(120,RGB(0,10,10),0)); {} 上涨家数:=INDEXADV,COLOR0080FF,NODRAW; 下跌家数:=INDEXDEC,COLORGREEN,NODRAW; 今日人气:=上涨家数/下跌家数; 波段高:=(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*2.3+XMA(XMA(H,60),60); 波段低:=XMA(XMA(L,60),60)-(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*2.3; 高:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25); 低:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1; 大单动向:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7); 涨跌动因:=IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0); 大单差分:=IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM*100,0); 主力净流入:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*AMO/V/10000; 超B:=L2_AMO(0,2)/10000.0; 大B:=L2_AMO(1,2)/10000.0; 中B:=L2_AMO(2,2)/10000.0; 小B:=L2_AMO(3,2)/10000.0; 超S:=L2_AMO(0,3)/10000.0; 大S:=L2_AMO(1,3)/10000.0; 中S:=L2_AMO(2,3)/10000.0; 小S:=L2_AMO(3,3)/10000.0; 资金流向:=(超B+大B+中B+小B)-(超S+大S+中S+小S); 资金比:=(超B+大B+中B+小B)/(超S+大S+中S+小S); 大单比:=(超B+大B+中B)/(超S+大S+中S); 超大单比:=(超B+大B)/(超S+大S); TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1))))); MTIME:=MOD(FROMOPEN,TOTAL); CTIME:=IF(MTIME<0.5,TOTAL,MTIME); 虚拟量:=IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRAWNULL); 虚拟量比:=虚拟量/REF(VOL,1),COLORWHITE,LINETHICK0; 止盈价:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),COLORMAGENTA,LINETHICK1; 获利率:=(止盈价-C)/C*100,COLORWHITE,LINETHICK0; 止损价:=C-(高-低)/2,LINETHICK1,COLORWHITE; 止损率:=(止损价-C)/C*100,COLORWHITE,LINETHICK0; EMAH3:=REF(EMA(H,3),1); EMAL3:=REF(EMA(L,3),1); 止盈价1:=EMAH3+(EMAH3-EMAL3)/4; 获利率2:=(止盈价1-C)/C*100; 止损价1:=EMAL3-(EMAH3-EMAL3)/4; 止损率2:=(止损价1-C)/C*100; PBXHH:=(EXPMA(H,2)+EMA(H,2*2)+EMA(H,2*4))/3,COLORGREEN,LINETHICK1; PBXLL:=(EXPMA(L,2)+EMA(L,2*2)+EMA(L,2*4))/3,COLORRED,LINETHICK1; PBX高:=REF(PBXHH,1),COLORGREEN,LINETHICK1; PBX低:=REF(PBXLL,1),COLORRED,LINETHICK1; PMX差:=PBX高-PBX低; 起爆止盈价:=PBX高+PMX差*2,COLORWHITE,LINETHICK1; 起爆获利率:=(起爆止盈价-PBX高)/PBX高*100; 起爆止损价:=PBX低-PMX差*0.7,COLORWHITE; 起爆止损率:=(起爆止损价-PBX高)/PBX高*100; DRAWTEXT_FIX(1,0,0,0,'【大盘人气】:'),COLORYELLOW; DRAWNUMBER_FIX(1,0.07,0,0,CONST(今日人气)),COLORYELLOW; DRAWTEXT_FIX(1,0,0.07,0,'【上涨家数】:'),COLORYELLOW; DRAWNUMBER_FIX(1,0.07,0.07,0,CONST(上涨家数)),COLORYELLOW; DRAWTEXT_FIX(1,0,0.14,0,'【下跌家数】:'),COLORYELLOW; DRAWNUMBER_FIX(1,0.07,0.14,0,CONST(下跌家数)),COLORYELLOW; {DRAWTEXT_FIX(1,0.1,0,0,'【量比】:'),COLORRED; DRAWNUMBER_FIX(1,0.145,0,0,CONST(虚拟量比)),COLORRED;} DRAWTEXT_FIX(1,0,0.21,0,'【DDX】:'),COLORMAGENTA; DRAWNUMBER_FIX(1,0.07,0.21,0,CONST(大单动向)),COLORMAGENTA; DRAWTEXT_FIX(1,0,0.28,0,'【DDY】:'),COLORMAGENTA; DRAWNUMBER_FIX(1,0.07,0.28,0,CONST(涨跌动因)),COLORMAGENTA; DRAWTEXT_FIX(1,0,0.35,0,'【DDZ】:'),COLORMAGENTA; DRAWNUMBER_FIX(1,0.07,0.35,0,CONST(大单差分)),COLORMAGENTA; DRAWTEXT_FIX(1,0,0.42,0,'【资金流】:'),COLORMAGENTA; DRAWNUMBER_FIX(1,0.07,0.42,0,CONST(资金流向)),COLORMAGENTA; DRAWTEXT_FIX(1,0,0.49,0,'【资金比】:'),COLORMAGENTA; DRAWNUMBER_FIX(1,0.07,0.49,0,CONST(资金比)),COLORMAGENTA; DRAWTEXT_FIX(1,0,0.58,0,'【大单比】:'),COLORMAGENTA; DRAWNUMBER_FIX(1,0.07,0.58,0,CONST(大单比)),COLORMAGENTA; DRAWTEXT_FIX(1,0,0.65,0,'【超大单比】:'),COLORMAGENTA; DRAWNUMBER_FIX(1,0.07,0.65,0,CONST(超大单比)),COLORMAGENTA; DRAWTEXT_FIX(1,0,0.72,0,'【主力资金】:'),COLORMAGENTA; DRAWNUMBER_FIX(1,0.07,0.72,0,CONST(主力净流入)),COLORMAGENTA; DRAWTEXT_FIX(1,0.15,0,0,'【红军起爆点选股操作】'),COLORCYAN; DRAWTEXT_FIX(1,0.15,0.07,0,'【止盈价】:'),COLORCYAN; DRAWNUMBER_FIX(1,0.21,0.07,0,CONST(起爆止盈价)),COLORCYAN; DRAWTEXT_FIX(1,0.15,0.14,0,'【止盈率】:'),COLORCYAN; DRAWNUMBER_FIX(1,0.21,0.14,0,CONST(起爆获利率)),COLORCYAN; DRAWTEXT_FIX(1,0.15,0.21,0,'【止损价】:'),COLORCYAN; DRAWNUMBER_FIX(1,0.21,0.21,0,CONST(起爆止损价)),COLORCYAN; DRAWTEXT_FIX(1,0.15,0.28,0,'【止损率】:'),COLORCYAN; DRAWNUMBER_FIX(1,0.21,0.28,0,CONST(起爆止损率)),COLORCYAN; DRAWTEXT_FIX(1,0.15,0.35,0,'【红军牛股猎杀选股操作】'),COLORYELLOW; DRAWTEXT_FIX(1,0.15,0.42,0,'【止盈价】:'),COLORYELLOW; DRAWNUMBER_FIX(1,0.22,0.42,0,CONST(止盈价)),COLORYELLOW; DRAWTEXT_FIX(1,0.15,0.49,0,'【盈利率】:'),COLORYELLOW; DRAWNUMBER_FIX(1,0.22,0.49,0,CONST(获利率)),COLORYELLOW; DRAWTEXT_FIX(1,0.15,0.56,0,'【止损价】:'),COLORYELLOW; DRAWNUMBER_FIX(1,0.22,0.56,0,CONST(止损价)),COLORYELLOW; DRAWTEXT_FIX(1,0.15,0.63,0,'【止损率】:'),COLORYELLOW; DRAWNUMBER_FIX(1,0.22,0.63,0,CONST(止损率)),COLORYELLOW; DRAWTEXT_FIX(1,0.15,0.70,0,'【红军今买明卖选股操作】'),COLORWHITE; DRAWTEXT_FIX(1,0.15,0.76,0,'【止盈价】:'),COLORWHITE; DRAWNUMBER_FIX(1,0.22,0.76,0,CONST(止盈价1)),COLORWHITE; DRAWTEXT_FIX(1,0.15,0.82,0,'【止盈率】:'),COLORWHITE; DRAWNUMBER_FIX(1,0.22,0.82,0,CONST(获利率2)),COLORWHITE; DRAWTEXT_FIX(1,0.15,0.88,0,'【止损价】:'),COLORWHITE; DRAWNUMBER_FIX(1,0.22,0.88,0,CONST(止损价1)),COLORWHITE; DRAWTEXT_FIX(1,0.15,0.98,0,'【止损率】:'),COLORWHITE; DRAWNUMBER_FIX(1,0.22,0.98,0,CONST(止损率2)),COLORWHITE; DRAWTEXT_FIX(1,0,0.79,0,'【波段顶阻力位】:'),COLORGREEN; DRAWNUMBER_FIX(1,0.10,0.79,0,CONST(波段高)),COLORGREEN; DRAWTEXT_FIX(1,0,0.86,0,'【波段底支撑位】:'),COLORRED; DRAWNUMBER_FIX(1,0.10,0.86,0,CONST(波段低)),COLORRED; |
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!