优化综合指标(主图指标 源码 贴图 简单 说明)
指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2012-05-14 08:35:00
公式简介:
{主图综合指标}
{设参数}
{RQA(1990,3000,2011),RQB(1,12,1),RQC(1,31,1), GF(0,4,0),GE(0,2,0),N1(0,255,5),N2(0,255,10),N3(0,255,20),N4(0,255,55),N5(0,255,120)}
RQD:=(RQA-1900)*10000+RQB*100+RQC;
DJ:=REF(L,BARSLAST(DATE<=RQD )),NODRAW;
低价:IF(DATE>=RQD AND GF>=1,DJ,DRAWNULL),COLOREEEE00,LINETHICK3;
FU:=C-低价;
低到当前幅度%:FU/低价*100,NODRAW,COLOR00FFFF;
区间高:HHV(H,BARSLAST(DATE=RQD )),NODRAW,COLOR00DD00;
FUGA:=区间高-C;
高到当前幅度%:FUGA/区间高*100,NODRAW,COLORFFFF00;
时间:=CURRBARSCOUNT<100 AND BARSLAST(DATE<=RQD)<11 AND (LLV(L,BARSLAST(DATE<=RQD))<DJ OR LLV(L,BARSLAST(DATE<=RQD))=DJ OR LLV(L,BARSLAST(DATE<=RQD))>DJ);
AB1:=BARSLAST(DATE<=RQD)=1 AND 时间 AND GF>=1;
AB2:=BARSLAST(DATE<=RQD)=2 AND 时间 AND GF>=1;
AB3:=BARSLAST(DATE<=RQD)=3 AND 时间 AND GF>=1;
AB4:=BARSLAST(DATE<=RQD)=4 AND 时间 AND GF>=1;
AB5:=BARSLAST(DATE<=RQD)=5 AND 时间 AND GF>=1;
AB6:=BARSLAST(DATE<=RQD)=6 AND 时间 AND GF>=1;
AB7:=BARSLAST(DATE<=RQD)=7 AND 时间 AND GF>=1;
AB8:=BARSLAST(DATE<=RQD)=8 AND 时间 AND GF>=1;
AB9:=BARSLAST(DATE<=RQD)=9 AND 时间 AND GF>=1;
AB10:=BARSLAST(DATE<=RQD)=10 AND 时间 AND GF>=1;
数字:=IF(AB1=1,'1',IF(AB2=1,'2',IF(AB3=1,'3',IF(AB4=1,'4',IF(AB5=1,'5',IF(AB6=1,'6',
IF(AB7=1,'7',IF(AB8=1,'8',IF(AB9=1,'9',IF(AB10=1,'10',DRAWNULL))))))))));
DRAWTEXT(AB1=1 OR AB2=1 OR AB3=1 OR AB4=1 OR AB5=1 OR AB6=1 OR AB7=1 OR AB8=1 OR AB9=1 OR AB10=1,DJ*0.999,数字),COLORGREEN;
低价A:=IF(DATE>=RQD AND GF>=1,DJ*1.03,DRAWNULL);
低价B:=IF(DATE>=RQD AND GF>=1,DJ*1.05,DRAWNULL);
低价C:=IF(DATE>=RQD AND GF>=2,DJ*1.08,DRAWNULL);
低价D:=IF(DATE>=RQD AND GF>=2,DJ*1.13,DRAWNULL);
低价E:=IF(DATE>=RQD AND GF>=3,DJ*1.18,DRAWNULL);
低价F:=IF(DATE>=RQD AND GF>=3,DJ*1.25,DRAWNULL);
低价G:IF(DATE>=RQD AND GF>=4,DJ*1.33,DRAWNULL),COLOR999999;
低价H:=IF(DATE>=RQD AND GF>=4,DJ*1.37,DRAWNULL);
DRAWBAND(低价,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));
DRAWTEXT(ISLASTBAR AND GF>=1,DJ*1.03,'3'),COLOR208FFF;
DRAWTEXT(ISLASTBAR AND GF>=1,DJ*1.05,'5'),COLOR208FFF;
DRAWTEXT(DATE<=RQD AND GF>=2,低价C,'8'),COLOR208FFF;
DRAWTEXT(DATE<=RQD AND GF>=2,低价D,'13'),COLOR208FFF;
DRAWTEXT(DATE<=RQD AND GF>=3,低价E,'18'),COLOR208FFF;
DRAWTEXT(DATE<=RQD AND GF>=3,低价F,'25'),COLOR208FFF;{
DRAWTEXT(DATE<=RQD AND GF>=3,低价G,'33'),COLOR208FFF;{
DRAWTEXT(DATE<=RQD AND GF>=3,低价H,'37'),COLOR208FFF;}
DRAWKLINE(H,O,L,C);{K线}
AS:=(O+H+L+C)/4;
MMA5:=EMA(AS,N1);
SYAA:=EMA(AS,N2);
SYAB:=EMA(AS,N3);
SYAC:=EMA(AS,N4);
SYAD:=EMA(AS,N5);
BMA5:IF(GE=1,MMA5,DRAWNULL),LINETHICK1,COLORFFFFFF;
BMA10:IF(GE=1,SYAA,DRAWNULL),LINETHICK1,COLOR00FFFF;
BMA20:IF(GE=1,SYAB,DRAWNULL),LINETHICK1,COLORFF99FF;
BMA55:IF(GE=1,SYAC,DRAWNULL),LINETHICK1,COLOR209FFF;
BMAX:IF(GE=1,SYAD,DRAWNULL),LINETHICK1,COLORFFFF00;
BL:=EMA(AS,17);
BLS:= BL+2.58*STDP(C,20);
BL2:= BL+1.96*STDP(C,20);
BL3A:=BL-1.96*STDP(C,20);
BLXA:=BL-2.58*STDP(C,20);
BMA:IF(GE>=2,BLS,DRAWNULL),LINETHICK1,COLOR00FFFF;
BMB:IF(GE>=2,BL2,DRAWNULL),LINETHICK1,COLORFF99FF;
BMC:IF(GE>=2,BL3A,DRAWNULL),LINETHICK1,COLORF0FF00;
BMD:IF(GE>=2,BLXA,DRAWNULL),LINETHICK1,COLOR00FF00;
BME:IF(GE>=2,BL,DRAWNULL),LINETHICK1,COLOR00FF00;
DRAWICON(CROSS(H,BLS),H,2);
DRAWICON(CROSS(H,BL2),H*1.007,8);
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
GB:IF(RSI1>76,H*1.001,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORFFFF00;
GBB:IF(RSI1>80,H*1.002,DRAWNULL),CROSSDOT,LINETHICK3,COLOR0000FF;
阳涨幅:=4;
阳倍量:=2;
单阳:=C>O*(1+阳涨幅/100) AND VOL>REF(VOL,1)*阳倍量;
DRAWTEXT(CURRBARSCOUNT<100 AND 单阳,L*0.998,'阳'),COLOR00FFFF;
低不破价:=REF(L,BARSLAST(单阳));
单阳不破:=CURRBARSCOUNT<100 AND BARSLAST(单阳)<11 AND (LLV(L,BARSLAST(单阳))>低不破价 OR LLV(L,BARSLAST(单阳))=低不破价);
阳低:IF(单阳不破 AND GF>=0,低不破价,DRAWNULL),COLORRED;
QKB:=IF(C>O,O,C);
QKAB:=IF(C>O,O+(C-O)*0.75,O+(C-O)*0.75);
STICKLINE(CURRBARSCOUNT<100 AND 单阳,QKB,QKAB,2,0),COLORFF2693;
实体幅度2:=REF((O+(C-O)*0.667),BARSLAST(单阳));
实体幅度1:=REF((O+(C-O)*0.333),BARSLAST(单阳));
幅度的1二:=REF((L+(H-L)/2),BARSLAST(单阳));
幅度:IF(单阳不破 AND GF>=0,幅度的1二,DRAWNULL),COLOR209FFF,DOTLINE;
幅度A:IF(单阳不破 AND GF>=0,实体幅度2,DRAWNULL),COLORFFFF00,DOTLINE;
幅度B:IF(单阳不破 AND GF>=0,实体幅度1,DRAWNULL),COLORFFFF00,DOTLINE;
AC1:=(BARSLAST(单阳)=1 AND 单阳不破 AND GF>=0);
AC2:=(BARSLAST(单阳)=2 AND 单阳不破 AND GF>=0);
AC3:=(BARSLAST(单阳)=3 AND 单阳不破 AND GF>=0);
AC4:=(BARSLAST(单阳)=4 AND 单阳不破 AND GF>=0);
AC5:=(BARSLAST(单阳)=5 AND 单阳不破 AND GF>=0);
AC6:=(BARSLAST(单阳)=6 AND 单阳不破 AND GF>=0);
AC7:=(BARSLAST(单阳)=7 AND 单阳不破 AND GF>=0);
AC8:=(BARSLAST(单阳)=8 AND 单阳不破 AND GF>=0);
AC9:=(BARSLAST(单阳)=9 AND 单阳不破 AND GF>=0);
AC10:=(BARSLAST(单阳)=10 AND 单阳不破 AND GF>=0);
数字2:=IF(AC1=1,'1',IF(AC2=1,'2',IF(AC3=1,'3',IF(AC4=1,'4',IF(AC5=1,'5',IF(AC6=1,'6',
IF(AC7=1,'7',IF(AC8=1,'8',IF(AC9=1,'9',IF(AC10=1,'10',DRAWNULL))))))))));
DRAWTEXT(AC1=1 OR AC2=1 OR AC3=1 OR AC4=1 OR AC5=1 OR AC6=1 OR AC7=1 OR AC8=1 OR AC9=1 OR AC10=1,低不破价*0.999,数字2),COLOR209FFF;
MA2:=EMA(C,2);
MA5:=EMA(C,5),COLORFFFFFF;
MA13:=EMA(C,13),COLOR00FFFF;
MA34:=EMA(C,34),COLORFF00FF;
MA55:=EMA(C,55),COLOR00FF00;
YCX:=MA5>=REF(MA5,1);
H1:=MAX(MAX(MA5,MA13),MA34);
L1:=MIN(MIN(MA5,MA13),MA34);
QK:=IF(C>O,O,C);
QKA:=IF(C>O,O+(C-O)*0.35,O+(C-O)*0.25);
一阳穿三线:= H1<C AND O<L1 AND YCX AND MA2>REF(MA2,1);
STICKLINE(一阳穿三线,QK,QKA,2,0),COLORYELLOW;
BDGD:=C=HHV(C,6),LINETHICK0;
BDDD:=C=LLV(C,6),LINETHICK0;
N10:=BARSLAST(BDGD);
N20:=BARSLAST(BDDD);
高S:IF(N10,REF(C,N10),REF(C,N10))*1.005,POINTDOT,COLORFFFF00,LINETHICK3;
低S:IF(N20,REF(C,N20),REF(C,N20))*0.995,COLOR00FFFF,LINETHICK3,POINTDOT;
STICKLINE(C=C,O+((C-O)*0.667),(O+(C-O)*0.667),1.5,0),COLORFF0000,LINETHICK1;
STICKLINE(C=C,O+((C-O)*0.333),(O+(C-O)*0.333),1.5,0),COLORFF0000,LINETHICK1;
STICKLINE(C=C,O+((C-O)/2),(O+(C-O)/2),2,0),COLOR00FFFF,LINETHICK1;
STICKLINE(C=C,L+((H-L)/2),(L+(H-L)/2),2.5,0),COLOR208FFF,LINETHICK1;
STICKLINE(C=C,IF(C>O,H-((H-C)/2),H-((H-O)/2)),IF(C>O,H-((H-C)/2),H-((H-O)/2)),0.5,0),COLORYELLOW,LINETHICK1;
STICKLINE(C=C,IF(C<O,L+((C-L)/2),L+((O-L)/2)),IF(C<O,L+((C-L)/2),L+((O-L)/2)),0.5,0),COLORYELLOW,LINETHICK1;
涨停:=C>REF(C,1)*1.099;
开盘价:REF(O,BARSLAST(涨停)),COLORWHITE,DOTLINE;
{添加到参数精灵
请设置计算参数:
时间低定位: Param#0 (调整年度)
时间低定位: Param#1 (调整月份)
时间低定位: Param#2 (调整日期)
涨幅度调整: Param#3 (调整数值0-4)
转换 调整: Param#4 (均价线与布林线)
调整数值1-255: Param#5 (显示任意均价线)
调整数值2-255: Param#6 (显示任意均价线)
调整数值3-255: Param#7 (显示任意均价线)
调整数值4-255: Param#8 (显示任意均价线)
调整数值5-255: Param#9 (显示任意均价线)}
[url=http://www.goodgupiao.com/gupiaogongshi/20166.html][B]优化综合指标(主图指标 源码 贴图 简单 说明)[/B][/url]