牛熊操盘 BS分时主图 主力动向 公式组 {公式名称: 主力动向}
VAR1:=CAPITAL*100/100000000;
VAR2:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,0),FROMOPEN);
VAR3:=-SUM(IF(CLOSE<REF(CLOSE,1),VOL,0),FROMOPEN);
VAR4:=VAR2+VAR3;{http://www.fxjgsw.com/}
VAR5:=2400;
VAR6:=HHV(VAR4,VAR5);
VAR7:=LLV(VAR4,VAR5);
VAR8:=CONST(VAR6);
VAR9:=CONST(VAR7);
VAR10:=VAR8;
VAR11:=VAR9;
VAR12:=(VAR10+VAR11)/2;
VAR13:=VAR10-VAR11;
VAR14:=(100-0)/2*1.3;
VAR15:=(100-0)/1*1.3;
VAR16:=(50-VAR14)*VAR13/VAR15+VAR12;
VAR17:=VAR8-VAR9;
DRAWBAND(VAR4,RGB(150,0,150),0,RGB(0,100,0));
资金流量:VAR4,COLORWHITE;
资金比:VAR4/SUM(VOL,FROMOPEN)*100,COLORYELLOW;
VAR18:=IF(资金比>=0,(资金比+100)/2,100-ABS((资金比-100)/2));
{BS分时主图}
{主图叠加}
均价:SUM(CLOSE*VOL,0)/SUM(VOL,0),COLORYELLOW;
VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE/均价>1+0.015;
VAR2:=CLOSE<REF(CLOSE,1) AND CLOSE/均价<1-0.015;
VAR3:=CROSS(SUM(VAR1,0),0.5);
VAR4:=CROSS(SUM(VAR2,0),0.5);
VAR5:=SUM(VAR3,0)*CROSS(COUNT(CLOSE<REF(CLOSE,1),BARSLAST(VAR3)),0.5);
VAR6:=SUM(VAR4,0)*CROSS(COUNT(CLOSE>REF(CLOSE,1),BARSLAST(VAR4)),0.5);
VAR7:=CONST(SUM(IF(VAR5,REF(CLOSE,1),DRAWNULL),0));
VAR8:=CONST(SUM(IF(VAR6,REF(CLOSE,1),DRAWNULL),0));
VAR9:=CROSS(SUM(VAR1 AND CLOSE>VAR7*(1+0.015),0),0.5);
VAR10:=CROSS(SUM(VAR2 AND CLOSE<VAR8*(1-0.015),0),0.5);
VAR11:=CROSS(SUM(VAR9,0),0.5);
{http://www.fxjgsw.com/} VAR12:=CROSS(SUM(VAR10,0),0.5);
VAR13:=SUM(VAR11,0)*CROSS(COUNT(CLOSE<REF(CLOSE,1),BARSLAST(VAR11)),0.5);
VAR14:=SUM(VAR12,0)*CROSS(COUNT(CLOSE>REF(CLOSE,1),BARSLAST(VAR12)),0.5);
VAR15:=CONST(SUM(IF(VAR13,REF(CLOSE,1),DRAWNULL),0));
VAR16:=CONST(SUM(IF(VAR14,REF(CLOSE,1),DRAWNULL),0));
VAR17:=CROSS(SUM(VAR1 AND CLOSE>VAR15*(1+0.03),0),0.5);
VAR18:=CROSS(SUM(VAR2 AND CLOSE<VAR16*(1+0.03),0),0.5);
VAR19:=SUM(VAR17,0)*CROSS(COUNT(CLOSE<REF(CLOSE,1),BARSLAST(VAR17)),0.5);
VAR20:=SUM(VAR18,0)*CROSS(COUNT(CLOSE>REF(CLOSE,1),BARSLAST(VAR18)),0.5);
VAR21:=CONST(SUM(IF(VAR19,REF(CLOSE,1),DRAWNULL),0));
VAR22:=CONST(SUM(IF(VAR20,REF(CLOSE,1),DRAWNULL),0));
DRAWICON(VAR3 OR VAR11 OR VAR17,CLOSE*1.01,16);
DRAWICON(VAR4 OR VAR12 OR VAR18,CLOSE*0.99,18);
DRAWICON(VAR6 OR VAR14 OR VAR20,REF(CLOSE,1)*0.99,22);
DRAWICON(VAR5 OR VAR13 OR VAR19,REF(CLOSE,1)*1.01,21);
DRAWNUMBER(VAR5 OR VAR13 OR VAR19,CLOSE*1.03,CLOSE),COLORGREEN;
DRAWNUMBER(VAR6 OR VAR14 OR VAR20,CLOSE*0.97,CLOSE),COLORRED;
VAR23:=BARSLAST(TIME=93100);
VAR24:=HHV(HIGH,VAR23+1);
VAR25:=LLV(LOW,VAR23+1);
VAR26:=BETWEEN(TIME2,93100,100000);
VAR27:=IF(VAR26,VAR24,DRAWNULL)=CLOSE;
VAR28:=IF(VAR26,VAR25,DRAWNULL)=CLOSE;
VAR29:=BARSLAST(IF(FILTERX(VAR27,VAR23),1,0));
VAR30:=BARSLAST(IF(FILTERX(VAR28,VAR23),1,0));
T6E:CONST(REF(CLOSE,VAR29)),DOTLINE,COLORMAGENTA;
T6F:CONST(REF(CLOSE,VAR30)),DOTLINE,COLORGREEN;
{公式名称: 牛熊操盘}
{主图叠加}
VAR1:=MA(CLOSE,18);
VAR2:=MA(CLOSE,72);
STICKLINE(CLOSE>=0,HIGH,LOW,0,0),COLORLIMAGENTA;
STICKLINE(CLOSE>=0 AND CLOSE>=OPEN,OPEN,CLOSE,(-1),1),COLORLIMAGENTA;
STICKLINE(CLOSE>=0 AND CLOSE<=OPEN,OPEN,CLOSE,(-1),0),COLORLIMAGENTA;
STICKLINE(CLOSE>VAR1 AND VAR1>REF(VAR1,1),HIGH,LOW,0,0),COLOR0000A8;
STICKLINE(CLOSE>VAR1 AND VAR1>REF(VAR1,1) AND CLOSE>=OPEN,OPEN,CLOSE,(-1),1),COLOR0000A8;
STICKLINE(CLOSE>VAR1 AND VAR1>REF(VAR1,1) AND CLOSE<=OPEN,OPEN,CLOSE,(-1),0),COLOR0000A8;
STICKLINE(CLOSE<VAR1 AND CLOSE>VAR2,HIGH,LOW,0,0),COLORFFFF80;
STICKLINE(CLOSE<VAR1 AND CLOSE>VAR2 AND CLOSE>=OPEN,OPEN,CLOSE,(-1),1),COLORFFFF80;
STICKLINE(CLOSE<VAR1 AND CLOSE>VAR2 AND CLOSE<=OPEN,OPEN,CLOSE,(-1),0),COLORFFFF80;
STICKLINE(CLOSE<VAR2,HIGH,LOW,0,0),COLOR804000;
STICKLINE(CLOSE<VAR2 AND CLOSE>=OPEN,OPEN,CLOSE,(-1),1),COLOR804000;
STICKLINE(CLOSE<VAR2 AND CLOSE<=OPEN,OPEN,CLOSE,(-1),0),COLOR804000;
STICKLINE(CLOSE>VAR1 AND VAR1<VAR2,HIGH,LOW,0,0),COLORGRAY;
STICKLINE(CLOSE>VAR1 AND VAR1<VAR2 AND CLOSE>=OPEN,OPEN,CLOSE,(-1),1),COLORGRAY;
STICKLINE(CLOSE>VAR1 AND VAR1<VAR2 AND CLOSE<=OPEN,OPEN,CLOSE,(-1),0),COLORGRAY;
VAR3:=NAMELIKE(8) OR NAMELIKE(9) OR NAMELIKE(10);
VAR4:=REF(CLOSE,1);{http://www.fxjgsw.com/}
VAR5:=IF(1.05*VAR4-CLOSE<0.005,1,0) AND VAR3;
VAR6:=IF(1.1*VAR4-CLOSE<0.005,1,0);
VAR7:=VAR5 OR VAR6;
STICKLINE(VAR7,OPEN,CLOSE,(-1),0),COLORYELLOW;
STICKLINE(VAR7,HIGH,LOW,0,0),COLORYELLOW;
STICKLINE(VAR7,OPEN*1.005,CLOSE*0.995,1,(-1)),COLORYELLOW;
STICKLINE(CLOSE>=0 AND CLOSE>=OPEN AND VAR7,OPEN*1.006,CLOSE*0.994,0.8,0),COLORLIMAGENTA;
STICKLINE(CLOSE>=0 AND CLOSE<=OPEN AND VAR7,OPEN*0.994,CLOSE*1.006,0.8,0),COLORLIMAGENTA;
STICKLINE(CLOSE>VAR1 AND VAR1>REF(VAR1,1) AND CLOSE>=OPEN AND VAR7,OPEN*1.006,CLOSE*0.994,0.8,0),COLOR0000A8;
STICKLINE(CLOSE>VAR1 AND VAR1>REF(VAR1,1) AND CLOSE<=OPEN AND VAR7,OPEN*0.994,CLOSE*1.006,0.8,0),COLOR0000A8;
STICKLINE(CLOSE<VAR1 AND CLOSE>VAR2 AND CLOSE>=OPEN AND VAR7,OPEN*1.006,CLOSE*0.994,0.8,0),COLORFFFF80;
STICKLINE(CLOSE<VAR1 AND CLOSE>VAR2 AND CLOSE<=OPEN AND VAR7,OPEN*0.994,CLOSE*1.006,0.8,0),COLORFFFF80;
STICKLINE(CLOSE<VAR2 AND CLOSE>=OPEN AND VAR7,OPEN*1.006,CLOSE*0.994,0.8,0),COLOR804000;
STICKLINE(CLOSE<VAR2 AND CLOSE<=OPEN AND VAR7,OPEN*0.994,CLOSE*1.006,0.8,0),COLOR804000;
STICKLINE(CLOSE>VAR1 AND VAR1<VAR2 AND CLOSE>=OPEN AND VAR7,OPEN*1.006,CLOSE*0.994,0.8,0),COLORGRAY;
STICKLINE(CLOSE>VAR1 AND VAR1<VAR2 AND CLOSE<=OPEN AND VAR7,OPEN*0.994,CLOSE*1.006,0.8,0),COLORGRAY;
VAR8:=IF(CLOSE-0.95*VAR4<0.005,1,0) AND VAR3;
VAR9:=IF(CLOSE-0.9*VAR4<0.005,1,0);
VAR10:=VAR8 OR VAR9;
STICKLINE(VAR10,OPEN,CLOSE,(-1),0),COLORGREEN;
STICKLINE(VAR10,HIGH,LOW,0,1),COLORGREEN;
STICKLINE(VAR10,OPEN*0.995,CLOSE*1.005,1,(-1)),COLORGREEN;
STICKLINE(CLOSE>=0 AND CLOSE>=OPEN AND VAR10,OPEN*1.006,CLOSE*0.994,0.8,0),COLORLIMAGENTA;
STICKLINE(CLOSE>=0 AND CLOSE<=OPEN AND VAR10,OPEN*0.994,CLOSE*1.006,0.8,0),COLORLIMAGENTA;
STICKLINE(CLOSE>VAR1 AND VAR1>REF(VAR1,1) AND CLOSE>=OPEN AND VAR10,OPEN*1.006,CLOSE*0.994,0.8,0),COLOR0000A8;
STICKLINE(CLOSE>VAR1 AND VAR1>REF(VAR1,1) AND CLOSE<=OPEN AND VAR10,OPEN*0.994,CLOSE*1.006,0.8,0),COLOR0000A8;
STICKLINE(CLOSE<VAR1 AND CLOSE>VAR2 AND CLOSE>=OPEN AND VAR10,OPEN*1.006,CLOSE*0.994,0.8,0),COLORFFFF80;
STICKLINE(CLOSE<VAR1 AND CLOSE>VAR2 AND CLOSE<=OPEN AND VAR10,OPEN*0.994,CLOSE*1.006,0.8,0),COLORFFFF80;
STICKLINE(CLOSE<VAR2 AND CLOSE>=OPEN AND VAR10,OPEN*1.006,CLOSE*0.994,0.8,0),COLOR804000;
STICKLINE(CLOSE<VAR2 AND CLOSE<=OPEN AND VAR10,OPEN*0.994,CLOSE*1.006,0.8,0),COL |
评论内容只代表网友观点,与本站立场无关!
本网提供的公式文件说明:
* alg格式飞狐股票公式,可以用飞狐交易师或者交易师软件导入;
* fnc格式大智慧新一代公式指标,可以用大智慧股票软件使用,少部分可以用分析家股票软件引入使用;
* exp格式大智慧经典版股票公式,仅可以用大智慧经典版股票软件引入使用;
* tni和tnc格式通达信股票公式,仅可以用通达信新引入使用,例如可以用通达信股票软件引入使用;
* tne,tn6格式通达信公式,可以用通达信公式编辑器5.0版导入,推荐通达信金融终端版本;
* hxf格式同花顺股票公式,仅可以用同花顺股票软件引入使用。
以上的各种软件都可以在本网股票软件栏目找到!
* 关于股票公式时间限制,如果在引入大智慧公式,交易师公式或者飞狐公式的时候,发现公式名称栏是空白的,这时候调整电脑时间到1997年,又能出现公式名称,并且能正常显示,可能是公式使用期限已过。
* 关于还原公式源码如果你忘记了自己编写的大智慧公式,通达信公式,同花顺公式,操盘手公式,飞狐公式,博易大师公式,金字塔公式,文华公式和交易师公式等等公式的密码,本网可帮恢复源码,有.偿.服.务无意勿扰,点击在线咨询联系我。
* 关于股票公式源码编辑
本网提供的源码,一般都可以编辑成公式,如果不明白公式的编辑,在本页右侧教程录像可参考,或者找公式教程资料学习,请搜索:教程
* 如果您发现软件内容或者链接错误,请点击报告错误谢谢!
* 站内提供的所有软件包含源码均是由网上搜集,若侵犯了你的版权利益,请联系通知我们!