今我提供的分时选股源码就是上述第5步我自创自用的下单操作前的分时选股盯盘系统,是结合慢牛老师讲课内容经典部分编写的,其特点是分时线同时罗列四天日线K线,设有当天的3日,5日,7日,13日均线的支撑线,还设有昨日K线最高和最低价位的警戒线。还有其他功能请自己分析吧。注:3日,5日,7日,13日均线的支撑线是慢牛老师是选股经常使用支撑线是实站中对股研判的主要依据。此系统共三只公式,分别是“小散之家引用”“小散之家分时主图”“小散之家分时副图”,其中“小散之家引用”必须安装。 1.{小散之家引用副图} ZTJ:IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(C,1)) AND C=H,1,0); ZT1:IF((REF(C,1)-REF(C,2))*100/REF(C,2)>=(10-0.01*100/REF(C,2)) AND REF(C,1)=REF(H,1),1,0); ZT2:IF((REF(C,2)-REF(C,3))*100/REF(C,3)>=(10-0.01*100/REF(C,3)) AND REF(C,2)=REF(H,2),1,0); ZT3:IF((REF(C,3)-REF(C,4))*100/REF(C,4)>=(10-0.01*100/REF(C,4)) AND REF(C,3)=REF(H,3),1,0); DTJ:IF((REF(C,1)-C)*100/REF(C,1)>=(10-0.01*100/REF(C,1)) AND C=L,1,0); DT1:IF((REF(REF(C,1),2)-REF(C,1))*100/REF(REF(C,1),2)>=(10-0.01*100/REF(REF(C,1),2)) AND REF(C,1)=REF(L,1),1,0); DT2:IF((REF(REF(C,1),2)-REF(C,1))*100/REF(REF(C,1),2)>=(10-0.01*100/REF(REF(C,1),2)) AND REF(C,1)=REF(L,1),1,0); DT3:IF((REF(REF(C,1),2)-REF(C,1))*100/REF(REF(C,1),2)>=(10-0.01*100/REF(REF(C,1),2)) AND REF(C,1)=REF(L,1),1,0); HJ:HIGH; LJ:LOW; OJ:OPEN; CJ:CLOSE; ZS:REF(CLOSE,1); H0:REF(HIGH,1); L0:REF(LOW,1); O0:REF(OPEN,1); C0:REF(CLOSE,1); O1:REF(OPEN,1); C1:REF(CLOSE,1); H1:REF(HIGH,1); L1:REF(LOW,1); O2:REF(OPEN,2); C2:REF(CLOSE,2); H2:REF(HIGH,2); L2:REF(LOW,2); O3:REF(OPEN,3); C3:REF(CLOSE,3); H3:REF(HIGH,3); L3:REF(LOW,3); 宗MA3:MA(C,3),COLOR00005C; 红MA5:MA(C,5),COLOR0000FF; 橙MA7:MA(C,7),COLOR0060FF; 黄MA13:MA(C,13),COLOR00FFFF; 2.{小散之家分时主图} H0:=REF(HIGH,1); L0:=REF(LOW,1); O0:=REF(OPEN,1); C0:=REF(CLOSE,1); OJ:="SS.OJ#DAY"; CJ:="SS.CJ#DAY"; HJ:="SS.HJ#DAY"; LJ:="SS.LJ#DAY"; O1:="SS.O1#DAY"; C1:="SS.C1#DAY"; H1:="SS.H1#DAY"; L1:="SS.L1#DAY"; O2:="SS.O2#DAY"; C2:="SS.C2#DAY"; H2:="SS.H2#DAY"; L2:="SS.L2#DAY"; O3:="SS.O3#DAY"; C3:="SS.C3#DAY"; H3:="SS.H3#DAY"; L3:="SS.L3#DAY"; ZTJ:="SS.ZTJ#DAY"; ZT1:="SS.ZT1#DAY"; ZT2:="SS.ZT2#DAY"; ZT3:="SS.ZT3#DAY"; DTJ:="SS.DTJ#DAY"; DT1:="SS.DT1#DAY"; DT2:="SS.DT2#DAY"; DT3:="SS.DT3#DAY"; {均线间彩带} EEF3:=IF(BETWEEN(TIME,093100,150000),"SS.宗MA3#DAY",DRAWNULL); EEF5:=IF(BETWEEN(TIME,093100,150000),"SS.红MA5#DAY",DRAWNULL); EEF7:=IF(BETWEEN(TIME,093100,150000),"SS.橙MA7#DAY",DRAWNULL); EEF13:=IF(BETWEEN(TIME,093100,150000),"SS.黄MA13#DAY",DRAWNULL); ZGD:=(HJ+H1+H2+H3)/4; DRAWBAND(EEF3,RGB(40,40,250),EEF13,RGB(40,40,250)); DRAWBAND(EEF5,RGB(40,40,250),EEF13,RGB(40,40,250)); DRAWBAND(EEF7,RGB(40,40,250),EEF13,RGB(40,40,250)); {彩色框} DRAWTEXT_FIX(1,0.05,0.26,0,'跌停K线白色'),COLORFFFFFF; DRAWTEXT_FIX(1,0.13,0.26,0,'涨停K线粉色'),COLORFF00FF; DRAWRECTREL(230,250,340,330,RGB(0,180,100)); DRAWTEXT_FIX(1,0.235,0.26,0,STRCAT(STRCAT('宗色3日线',CON2STR(EEF3,2)),'元')),COLOR000000; DRAWRECTREL(355,250,465,330,RGB(0,180,100)); DRAWTEXT_FIX(1,0.360,0.26,0,STRCAT(STRCAT('红色5日线',CON2STR(EEF5,2)),'元')),COLOR000000; DRAWRECTREL(480,250,590,330,RGB(0,180,100)); DRAWTEXT_FIX(1,0.485,0.26,0,STRCAT(STRCAT('橙色7日线',CON2STR(EEF7,2)),'元')),COLOR000000; DRAWRECTREL(605,250,725,330,RGB(0,180,100)); DRAWTEXT_FIX(1,0.610,0.26,0,STRCAT(STRCAT('黄s13日线',CON2STR(EEF13,2)),'元')),COLOR000000; DRAWRECTREL(740,250,860,330,RGB(150,10,200)); DRAWTEXT_FIX(1,0.745,0.26,0,STRCAT(STRCAT('绿色昨最低',CON2STR("SS.L0#DAY",2)),'元')),COLOR000000; DRAWRECTREL(865,250,985,330,RGB(150,10,200)); DRAWTEXT_FIX(1,0.870,0.26,0,STRCAT(STRCAT('绿色昨最高',CON2STR("SS.H0#DAY",2)),'元')),COLOR000000; 回调昨日:=C<="SS.L0#DAY"; 超昨低点:=CROSS(回调昨日,0.01); 昨低点:"SS.L0#DAY",COLOR00FF00; 昨高点:"SS.H0#DAY",COLOR00FF00; E14:=IF(BETWEEN(TIME,094500,094500),OJ,DRAWNULL); E24:=IF(BETWEEN(TIME,094500,094500),CJ,DRAWNULL); E1:=IF(BETWEEN(TIME,094000,094000),O1,DRAWNULL); E2:=IF(BETWEEN(TIME,094000,094000),C1,DRAWNULL); E12:=IF(BETWEEN(TIME,093600,093600),O2,DRAWNULL); E22:=IF(BETWEEN(TIME,093600,093600),C2,DRAWNULL); E13:=IF(BETWEEN(TIME,093200,093200),O3,DRAWNULL); E23:=IF(BETWEEN(TIME,093200,0932000),C3,DRAWNULL); {均线支撑} EE3:IF(BETWEEN(TIME,93100,200000),"SS.宗MA3#DAY",DRAWNULL),COLOR0052A3,LINETHICK4; EE5:IF(BETWEEN(TIME,93100,200000),"SS.红MA5#DAY",DRAWNULL),COLOR0000FF,LINETHICK4; EE7:IF(BETWEEN(TIME,93100,200000),"SS.橙MA7#DAY",DRAWNULL),COLOR0060FF,LINETHICK4; EE13:IF(BETWEEN(TIME,93100,200000),"SS.黄MA13#DAY",DRAWNULL),COLOR00FFFF,LINETHICK4; {K线最高与最低} STICKLINE(TIME=093800 AND CJ>OJ,HJ,LJ,0,0),COLOR0000CC; STICKLINE(TIME=093800 AND CJ>OJ,OJ,CJ,8,0),COLOR0000CC; STICKLINE(TIME=093800 AND ZTJ,HJ,LJ,0,0),COLORFF00FF; STICKLINE(TIME=093800 AND ZTJ,OJ,CJ,8,0),COLORFF00FF; STICKLINE(TIME=093800 AND CJ<OJ,HJ,LJ,0,0),COLORFFFF54; STICKLINE(TIME=093800 AND CJ<OJ,OJ,CJ,8,0),COLORFFFF54; STICKLINE(TIME=093800 AND DTJ,OJ,CJ,8,0),COLORFFFFFF; STICKLINE(TIME=093800 AND DTJ,HJ,LJ,0,0),COLORFFFFFF; STICKLINE(TIME=093800 AND CJ=OJ,HJ,LJ,0,0),COLORWHITE; STICKLINE(TIME=093800 AND CJ=OJ,OJ+0.005,CJ,8,0),COLORWHITE; DRAWBAND(IF(CJ>OJ,E24,DRAWNULL),RGB(204,0,0),E14,RGB(204,0,0)); DRAWBAND(IF(CJ<OJ,E24,DRAWNULL),RGB(84,255,255),E14,RGB(84,255,255)); DRAWBAND(IF(CJ=OJ,E24,DRAWNULL),RGB(255,255,255),E14,RGB(255,255,255)); {昨前天最高与最低} STICKLINE(TIME=093600 AND C1>O1,H1,L1,0,0),COLOR0000CC; STICKLINE(TIME=093600 AND C1>O1,C1,O1,8,0),COLOR0000CC; STICKLINE(TIME=093600 AND ZT1,H1,L1,0,0),COLORFF00FF; STICKLINE(TIME=093600 AND ZT1,O1,C1,8,0),COLORFF00FF; STICKLINE(TIME=093600 AND C1<O1,H1,L1,0,0),COLORFFFF54; STICKLINE(TIME=093600 AND C1<O1,C1,O1,8,0),COLORFFFF54; STICKLINE(TIME=093800 AND DT1,O1,C1,8,0),COLORFFFFFF; STICKLINE(TIME=093800 AND DT1,H1,L1,0,0),COLORFFFFFF; STICKLINE(TIME=093600 AND C1=O1,H1,L1,0,0),COLORWHITE; STICKLINE(TIME=093600 AND C1=O1,C1+0.005,O1,8,0),COLORWHITE; DRAWBAND(IF(C1>O1,E2,DRAWNULL),RGB(204,0,0),E1,RGB(204,0,0)); DRAWBAND(IF(C1<O1,E2,DRAWNULL),RGB(84,255,255),E1,RGB(84,255,255)); DRAWBAND(IF(C1=O1,E2,DRAWNULL),RGB(255,255,255),E1,RGB(255,255,255)); {前天最高与最低} STICKLINE(TIME=093400 AND C2>O2,H2,L2,0,0),COLOR0000CC; STICKLINE(TIME=093400 AND C2>O2,C2,O2,8,0),COLOR0000CC; STICKLINE(TIME=093400 AND ZT2,H2,L2,0,0),COLORFF00FF; STICKLINE(TIME=093400 AND ZT2,O2,C2,8,0),COLORFF00FF; STICKLINE(TIME=093400 AND C2<O2,H2,L2,0,0),COLORFFFF54; STICKLINE(TIME=093400 AND C2<O2,C2,O2,8,0),COLORFFFF54; STICKLINE(TIME=093800 AND DT2,O2,C2,8,0),COLORFFFFFF; STICKLINE(TIME=093800 AND DT2,H2,L2,0,0),COLORFFFFFF; STICKLINE(TIME=093400 AND C2=O2,H2,L2,0,0),COLORWHITE; STICKLINE(TIME=093400 AND C2=O2,C2+0.005,O2,8,0),COLORWHITE; DRAWBAND(IF(C2>O2,E22,DRAWNULL),RGB(204,0,0),E12,RGB(204,0,0)); DRAWBAND(IF(C2<O2,E22,DRAWNULL),RGB(84,255,255),E12,RGB(84,255,255)); DRAWBAND(IF(C2=O2,E22,DRAWNULL),RGB(255,255,255),E12,RGB(255,255,255)); {大前天最高与最低} STICKLINE(TIME=093200 AND C3>O3,H3,L3,0,0),COLOR0000CC; STICKLINE(TIME=093200 AND C3>O3,C3,O3,8,0),COLOR0000CC; STICKLINE(TIME=093200 AND ZT3,H3,L3,0,0),COLORFF00FF; STICKLINE(TIME=093200 AND ZT3,O3,C3,8,0),COLORFF00FF; STICKLINE(TIME=093200 AND C3<O3,H3,L3,0,0),COLORFFFF54; STICKLINE(TIME=093200 AND C3<O3,C3,O3,8,0),COLORFFFF54; STICKLINE(TIME=093800 AND DT3,O3,C3,8,0),COLORFFFFFF; STICKLINE(TIME=093800 AND DT3,H3,L3,0,0),COLORFFFFFF; STICKLINE(TIME=093200 AND C3=O3,H3,L3,0,0) |
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!