软件名称:[B]主图用【组合公式】用于研判买卖[/B]
软件类型:国产软件
运行环境:Win2000/WinXP/Win2003/WinVista
软件语言:简体中文
授权方式:共享软件
软件大小:9.00 KB
官方主页:Home Page
更新时间:2015-07-15 04:01:46
软件简介:
本指标可根据自己嗜好调用组合进行研判。如图
{组合公式}
{RQ1(1990,3000,2010),RQ2(1,12,1),RQ3(1,31,1),RQA(1990,3000,2010),RQB(1,12,1),RQC(1,31,1),XG(0,3,0),HF(0,1,0),GF(0,5,0),GE(0,3,0),M1(0,255,3),M2(0,255,3),M2(0,255,3),M3(0,255,3),D(0,5,3),持股天数A(0,500,1),持股天数G(0,2000,1)}
RQG:=(RQ1-1900)*10000+RQ2*100+RQ3;
AH:=REF(H,BARSLAST(DATE<=RQG )),NODRAW;
高价:IF(DATE>=RQG AND XG>=1,AH,DRAWNULL),COLOR00FFFF;
RQD:=(RQA-1900)*10000+RQB*100+RQC;
DJ:=REF(L,BARSLAST(DATE<=RQD )),NODRAW;
低价:IF(DATE>=RQD AND XG>=1,DJ,DRAWNULL),COLORFFFF00;
FU:=C-低价;
低到当前幅度:FU/低价*100,NODRAW,COLOR00FFFF;
FUGA:=高价-低价;
高到低价幅度%:FUGA/高价*100,NODRAW,COLOR00FFFF;
高点周期:=CONST(BARSLAST(DATE=RQG))+1;
底点周期:=CONST(BARSLAST(DATE=RQD))+1;
高底点周期:=ABS(高点周期-底点周期);
高点到当前:=STRCAT(' 高点到当前周期: ',CON2STR(高点周期,0));
底点到当前:=STRCAT(' 底点到当前周期: ',CON2STR(底点周期,0));
高底点周期A:=STRCAT(' 高点到底点周期: ',CON2STR(高底点周期,0));
DRAWTEXT_FIX(ISLASTBAR,0.01,0.05,0,高点到当前),COLOREEAAEE;
DRAWTEXT_FIX(ISLASTBAR,0.13,0.05,0,' 天'),COLORFFCC99;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.1,0,底点到当前),COLOR00EEEE;
DRAWTEXT_FIX(ISLASTBAR,0.13,0.1,0,' 天'),COLORFFCC99;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.15,0,高底点周期A),COLOR00DD00;
DRAWTEXT_FIX(ISLASTBAR,0.13,0.15,0,' 天'),COLORFFCC99;
天数A:=持股天数G;
GGJ:=CONST(HHV(H,持股天数G));
最高价X:DRAWLINE(CURRBARSCOUNT =天数A,GGJ,ISLASTBAR ,GGJ,2),COLORGREEN;
高价AX:=IF(最高价X AND D>=1,GGJ*0.92,DRAWNULL);
高价BX:=IF(最高价X AND D>=1,GGJ*0.87,DRAWNULL);
高价CX:=IF(最高价X AND D>=2,GGJ*0.82,DRAWNULL);
高价DX:=IF(最高价X AND D>=2,GGJ*0.75,DRAWNULL);
高价EX:=IF(最高价X AND D>=3,GGJ*0.67,DRAWNULL);
高价FX:=IF(最高价X AND D>=3,GGJ*0.63,DRAWNULL);
高价GX:=IF(最高价X AND D>=4,GGJ*0.50,DRAWNULL),COLOR999999;
高价HX:=IF(最高价X AND D>=4,GGJ*0.40,DRAWNULL);
DRAWBAND(GGJ,RGB(80,0,0),高价AX,RGB(110,11,115));
DRAWBAND(高价,RGB(11,99,11),高价AX,RGB(0,0,0));
DRAWBAND(高价AX,RGB(66,66,66),高价BX,RGB(0,0,0));
DRAWBAND(高价BX,RGB(77,77,77),高价CX,RGB(0,0,0));
DRAWBAND(高价CX,RGB(88,88,88),高价DX,RGB(0,0,0));
DRAWBAND(高价DX,RGB(66,6,6),高价EX,RGB(0,0,0));
DRAWBAND(高价EX,RGB(88,7,7),高价FX,RGB(0,0,0));
DRAWBAND(高价FX,RGB(66,66,66),高价GX,RGB(0,0,0));
DRAWBAND(高价GX,RGB(77,77,77),高价HX,RGB(0,0,0));
DRAWTEXT(DATE<=RQG AND D>=1,高价AX,'8'),COLOR208FFF;
DRAWTEXT(DATE<=RQG AND D>=1,高价BX,'13'),COLOR208FFF;
DRAWTEXT(DATE<=RQG AND D>=2,高价CX,'18'),COLOR208FFF;
DRAWTEXT(DATE<=RQG AND D>=2,高价DX,'25'),COLOR208FFF;
DRAWTEXT(DATE<=RQG AND D>=3,高价EX,'33'),COLOR208FFF;
DRAWTEXT(DATE<=RQG AND D>=3,高价FX,'37'),COLOR208FFF;
DRAWTEXT(DATE<=RQG AND D>=4,高价GX,'50'),COLOR208FFF;
DRAWTEXT(DATE<=RQG AND D>=4,高价HX,'60'),COLOR208FFF;
天数:=持股天数A+1;
DDJ:=CONST(LLV(L,持股天数A));
最低价:DRAWLINE(CURRBARSCOUNT =天数,DDJ,ISLASTBAR ,DDJ,2),COLORGREEN;
低价A:=IF(最低价 AND D>=1,DDJ*1.03,DRAWNULL);
低价B:=IF(最低价 AND D>=1,DDJ*1.05,DRAWNULL);
低价C:=IF(最低价 AND D>=2,DDJ*1.08,DRAWNULL);
低价D:=IF(最低价 AND D>=2,DDJ*1.13,DRAWNULL);
低价E:=IF(最低价 AND D>=3,DDJ*1.18,DRAWNULL);
低价F:=IF(最低价 AND D>=3,DDJ*1.25,DRAWNULL);
低价G:=IF(最低价 AND D>=4,DDJ*1.33,DRAWNULL),COLOR999999;
低价H:=IF(最低价 AND D>=4,DDJ*1.37,DRAWNULL);
低价K:=IF(最低价 AND D>=4,DDJ*1.50,DRAWNULL);
DRAWBAND(DDJ,RGB(80,0,0),低价A,RGB(110,11,115));
DRAWBAND(低价A,RGB(80,0,0),低价B,RGB(66,166,66));
DRAWBAND(低价B,RGB(80,0,0),低价C,RGB(77,77,77));
DRAWBAND(低价C,RGB(80,0,0),低价D,RGB(88,88,88));
DRAWBAND(低价D,RGB(80,0,0),低价E,RGB(6,55,66));
DRAWBAND(低价E,RGB(80,0,0),低价F,RGB(8,8,99));
DRAWBAND(低价F,RGB(80,0,0),低价G,RGB(87,88,9));
DRAWBAND(低价H,RGB(80,0,0),低价G,RGB(87,8,9));
DRAWBAND(低价K,RGB(80,0,180),低价H,RGB(87,18,9));
DRAWTEXT(ISLASTBAR AND D>=1,低价A,'3%'),COLOR208FFF;
DRAWTEXT(ISLASTBAR AND D>=1,低价B,'5%'),COLOR208FFF;
DRAWTEXT(ISLASTBAR AND D>=2,低价C,'8%'),COLOR208FFF;
DRAWTEXT(ISLASTBAR AND D>=2,低价D,'13%'),COLOR208FFF;
DRAWTEXT(ISLASTBAR AND D>=3,低价E,'18%'),COLOR208FFF;
DRAWTEXT(ISLASTBAR AND D>=3,低价F,'25%'),COLOR208FFF;
DRAWTEXT(ISLASTBAR AND D>=4,低价G,'33%'),COLOR208FFF;
DRAWTEXT(ISLASTBAR AND D>=4,低价H,'37%'),COLOR208FFF;
DRAWTEXT(ISLASTBAR AND D>=4,低价K,'50%'),COLOR208FFF;
STICKLINE(DATE<=RQG,低价,高价,0,0),COLOR00FF00;
STICKLINE(DATE<=RQD,高价,低价,0,0),COLORFF00FF;
Q1:=(低价+(高价 - DJ) * 0.191)/高价;
Q2:=(低价+(高价 - DJ) * 0.382)/高价;
Q3:=(低价+(高价 - DJ) * 0.50)/高价;
Q4:=(低价+(高价 - DJ) * 0.618)/高价;
Q5:=(低价+(高价 - DJ) * 0.809)/高价;
Q6:=(低价+(高价 - DJ) * 0.333)/高价;
Q7:=(低价+(高价 - DJ) * 0.667)/高价;
QG1:=(低价+(高价 - DJ) * 1.191)/高价;
QG2:=(低价+(高价 - DJ) * 1.382)/高价;
QG3:=(低价+(高价 - DJ) * 1.50)/高价;
QG4:=(低价+(高价 - DJ) * 1.03)/高价;
QG5:=(低价+(高价 - DJ) * 1.08)/高价;
QG6:=(低价+(高价 - DJ) * 1.125)/高价;
QG7:=(低价+(高价 - DJ) * 1.618)/高价;
ZH:=IF(HF,DATE<=RQG,DATE<=RQD),NODRAW;
高价A:IF(DATE>=RQD AND XG>=2,AH*Q1,DRAWNULL),COLOR007777,DOTLINE;
高价B:IF(DATE>=RQD AND XG>=2,AH*Q2,DRAWNULL),COLOR007777,DOTLINE;
高价C:IF(DATE>=RQD AND XG>=2,AH*Q3,DRAWNULL),COLOR990099,DOTLINE;
高价D:IF(DATE>=RQD AND XG>=2,AH*Q4,DRAWNULL),COLOR007777,DOTLINE;
高价E:IF(DATE>=RQD AND XG>=2,AH*Q5,DRAWNULL),COLOR007777,DOTLINE;
高价F:IF(DATE>=RQD AND XG>=2,AH*Q6,DRAWNULL),COLOR007700,LINETHICK3;
高价G:IF(DATE>=RQD AND XG>=2,AH*Q7,DRAWNULL),COLOR007700,LINETHICK3;
高价GA:IF(DATE>=RQD AND GF>=2,AH*QG1,DRAWNULL),COLOR007777,DOTLINE;
高价GB:IF(DATE>=RQD AND GF>=2,AH*QG2,DRAWNULL),COLOR007777,DOTLINE;
高价GC:IF(DATE>=RQD AND GF>=3,AH*QG3,DRAWNULL),COLOR007777,DOTLINE;
高价GD:IF(DATE>=RQD AND GF>=1,AH*QG4,DRAWNULL),COLOR777700,DOTLINE;
高价GE:IF(DATE>=RQD AND GF>=1,AH*QG5,DRAWNULL),COLOR777700,DOTLINE;
高价GF:IF(DATE>=RQD AND GF>=1,AH*QG6,DRAWNULL),COLOR770077,DOTLINE;
高价GG:IF(DATE>=RQD AND GF>=4,AH*QG7,DRAWNULL),COLOR007777,DOTLINE;
DRAWNUMBER(ZH,高价*Q1,高价*Q1),COLOR00FFFF;
DRAWNUMBER(ZH,高价*Q2,高价*Q2),COLOR00FFFF;
DRAWNUMBER(ZH,高价*Q3,高价*Q3),COLOREEAAEE;
DRAWNUMBER(ZH,高价*Q4,高价*Q4),COLOR00FFFF;
DRAWNUMBER(ZH,高价*Q5,高价*Q5),COLOR00FFFF;
DRAWNUMBER(ZH,高价*Q6,高价*Q6),COLOR00FF00;
DRAWNUMBER(ZH,高价*Q7,高价*Q7),COLOR00FF00;
高QG3:=STRCAT(' 50%: ',CON2STR(高价*QG3,2));
高QG4:=STRCAT(' 1.03%: ',CON2STR(高价*QG4,2));
高QG5:=STRCAT(' 1.08%: ',CON2STR(高价*QG5,2));
高QG6:=STRCAT(' 1.125%: ',CON2STR(高价*QG6,2));
高QG2:=STRCAT(' 1.382%: ',CON2STR(高价*QG2,2));
高QG7:=STRCAT(' 1.618%: ',CON2STR(高价*QG7,2));
高QG1:=STRCAT(' 1.191%: ',CON2STR(高价*QG1,2));
DRAWTEXT(ZH AND GF>=1,高价*QG4,高QG4),COLORDDDD00;
DRAWTEXT(ZH AND GF>=1,高价*QG5,高QG5),COLORDDDD00;
DRAWTEXT(ZH AND GF>=1,高价*QG6,高QG6),COLORFFAAFF;
DRAWTEXT(ZH AND GF>=2,高价*QG1,高QG1),COLOR00FFFF;
[url=http://www.70822.com/soft/sort013/sort05/down-86576.html]主图用【组合公式】用于研判买卖[/url]