博易的工程师有几个呀,请教问题太不给力了,在处理系统问题没有文华财经给力啊? [博易POBO]
咨询内容:
1.
AA跨:=(MOD(DAYBARPOS,15)=0||ISLASTBAR||REFX(DAYBARPOS=1,1));
N跨:=(BARSLAST(MOD(DAYBARPOS,15)=1)+1);
OO跨:=(REF(O,N跨-1));
CC跨:=(VALUEWHEN(AA跨,C));
HH跨:=(VALUEWHEN(AA跨,HHV(H,N跨)));
LL跨:=(VALUEWHEN(AA跨,LLV(L,N跨)));
DRAWLINE(AA跨,CC跨,CC跨>=OO跨,OO跨,COLORYELLOW),LINETHICK2;
DRAWLINE3(AA跨&&CC跨>=OO跨,CC跨,N跨-1,AA跨&&CC跨>=OO跨,OO跨,N跨-1,0),COLORYELLOW,LINETHICK2;
DRAWSL(AA跨&&CC跨>=OO跨,CC跨,0,-N跨+1,0,COLORYELLOW),LINETHICK2;
DRAWSL(AA跨&&CC跨>=OO跨,OO跨,0,-N跨+1,0,COLORYELLOW),LINETHICK2;
DRAWLINE(AA跨,CC跨,CC跨<OO跨,OO跨,COLORGREEN),LINETHICK2;
DRAWLINE3(AA跨&&CC跨<OO跨,CC跨,N跨-1,AA跨&&CC跨<OO跨,OO跨,N跨-1,0),COLORGREEN,LINETHICK2;
DRAWSL(AA跨&&CC跨<OO跨,CC跨,0,-N跨+1,0,COLORGREEN),LINETHICK2;
DRAWSL(AA跨&&CC跨<OO跨,OO跨,0,-N跨+1,0,COLORGREEN),LINETHICK2;
DRAWLINE3(AA跨&&CC跨>=OO跨,HH跨,(N跨-1)/2,AA跨&&CC跨>=OO跨,CC跨,(N跨-1)/2,0),COLORYELLOW,LINETHICK2;
DRAWLINE3(AA跨&&CC跨>=OO跨,LL跨,(N跨-1)/2,AA跨&&CC跨>=OO跨,OO跨,(N跨-1)/2,0),COLORYELLOW,LINETHICK2;
DRAWLINE3(AA跨&&CC跨<OO跨,HH跨,(N跨-1)/2,AA跨&&CC跨<OO跨,OO跨,(N跨-1)/2,0),COLORGREEN,LINETHICK2;
DRAWLINE3(AA跨&&CC跨<OO跨,LL跨,(N跨-1)/2,AA跨&&CC跨<OO跨,CC跨,(N跨-1)/2,0),COLORGREEN,LINETHICK2;
2//大K中分线
AA中分:=(VALUEWHEN(H-L>60*MINPRICE,(H+L)/2));
BB中分:=(MAX(C,O)>AA中分&&MIN(C,O)<AA中分&&COUNT(MAX(C,O)>AA中分&&MIN(C,O)<AA中分,BARSLAST(H-L>60*MINPRICE)+1)=1);
DRAWSL(REFX1(BB中分,1)||ISLASTBAR,AA中分,0,-BARSLAST(H-L>60*MINPRICE),0,COLORRED),DASH;
3.
//
轮回线属性开关:=0;//1
均线显示开关:=0;//1
角度线显示开关:=0;//1
轮低高线显示开关:=1;//1
比较线显示开关:=0;
空间分割开关:=1;
短期均线周期:=5;
中期均线周期:=13;
长期均线周期:=120;
超长期均线周期:=250;
时间窗开关:=0;//3
幅度:=40;
DEA:=(EMA(EMA(CLOSE,12)-EMA(CLOSE,26),9)),LINETHICK1;
轮回DIFF:=(EMA(C,12)-EMA(C,26));
轮回DEA:=(EMA(轮回DIFF,9));
上穿S:=CROSS(轮回DEA,0);
下穿S:=CROSS(0,轮回DEA);
上穿:=上穿SANDREF(下穿S,1)=0ANDREFX(下穿S,1)=0;
下穿:=下穿SANDREF(上穿S,1)=0ANDREFX(上穿S,1)=0;
上穿周期:=BARSLAST(上穿);
下穿周期:=BARSLAST(下穿),LINETHICK1;
低点条件:=L=LLV(L,下穿周期)AND轮回DEA<0,LINETHICK1;
最低点周期:=BARSLAST(L=LLV(L,下穿周期)AND轮回DEA<0),LINETHICK1;
最高点周期:=BARSLAST(H=HHV(H,最低点周期)),LINETHICK1;
轮高点TJ1:=下穿;
轮高点TJ2:=BACKSET(轮高点TJ1,最高点周期+1);
轮高点:=(轮高点TJ2>REF(轮高点TJ2,1)),LINETHICK1;
轮低最高点周期:=BARSLAST(H=HHV(H,上穿周期)AND轮回DEA>0),LINETHICK1;
轮低最低点周期:=BARSLAST(L=LLV(L,轮低最高点周期)),LINETHICK1;
高点条件:=L=LLV(L,轮低最高点周期),LINETHICK1;
轮低点TJ1:=上穿;
轮低点TJ2:=BACKSET(轮低点TJ1,轮低最低点周期+1);
轮低点:=(轮低点TJ2>REF(轮低点TJ2,1));
DRAWLINE1(轮高点*轮低高线显示开关,H,轮低点*轮低高线显示开关,L,0),DOT,COLORWHITE,LINETHICK1;//{画下轮回线}
DRAWLINE1(轮低点*轮低高线显示开关,L,轮高点*轮低高线显示开关,H,0),DOT,COLORYELLOW,LINETHICK1;//{画上轮回线}
H轮H1:=VALUEWHEN(轮高点,H);
L轮L1:=VALUEWHEN(轮低点,L);
DRAWNUMBER(轮高点,H,(H轮H1-L轮L1)/L轮L1*100,2,COLORRED),VALIGN1;
DRAWNUMBER(轮低点,L,(H轮H1-L轮L1)/L轮L1*100,2,COLORGREEN),VALIGN1;
轮回点:=轮高点OR轮低点;
NZ1:=BARSLAST(轮回点);
{最近转折点到现在的时间,如果现在是轮回点,值为0}
NZ2:=REF(NZ1,NZ1+1)+NZ1+1;
NZ3:=REF(NZ2,NZ2)+NZ2;
NZ4:=REF(NZ2,NZ3)+NZ3;
最后点TJ:=BACKSET(ISLASTBAR,BARSLAST(轮低点OR轮高点)+1);
最后点:=最后点TJ>REF(最后点TJ,1);
轮低点斜率1:=IF(轮低点,(REF(H,NZ2)-L)/NZ2,0),LINETHICK1;
轮低点斜率2:=IF(轮低点,(REF(H,NZ2)-REF(L,NZ3))/(NZ3-NZ2),0),LINETHICK1;
轮低点斜率3:=IF(轮低点,(REF(H,NZ4)-REF(L,NZ3))/(NZ4-NZ3),0),LINETHICK1;
轮高点斜率1:=IF(轮高点,(H-REF(L,NZ2))/NZ2,0),LINETHICK1;
轮高点斜率2:=IF(轮高点,(REF(H,NZ3)-REF(L,NZ2))/(NZ3-NZ2),0),LINETHICK1;
轮高点斜率3:=IF(轮高点,(REF(H,NZ3)-REF(L,NZ4))/(NZ4-NZ3),0),LINETHICK1;
//轮低点情况
DRAWTEXT(轮低点AND轮回线属性开关,L,'时:'),ALIGN2;
DRAWNUMBER1(轮低点AND轮回线属性开关,L,NZ2,0),COLORWHITE,ALIGN0;//{显示轮回线时间}
DRAWTEXT(轮低点AND轮回线属性开关,L,'空:'),ALIGN2;
DRAWNUMBER1(轮低点AND轮回线属性开关,L,REF(H,NZ2)-L,2),COLORWHITE,ALIGN0;//{显示轮回线空间}
DRAWTEXT(轮低点AND轮回线属性开关,L,'斜率:'),COLOR00FFFF,ALIGN2;
DRAWNUMBER1(轮低点AND轮回线属性开关,L,轮低点斜率1*10,2),COLORWHITE,ALIGN0;//{显示轮回线斜率}
DRAWTEXT(轮高点AND轮回线属性开关,H,'时:'),ALIGN2;
DRAWNUMBER1(轮高点AND轮回线属性开关,H,NZ2,0),COLORWHITE,ALIGN0;//{显示轮回线时间}
DRAWTEXT(轮高点AND轮回线属性开关,H,'空:'),ALIGN2;
DRAWNUMBER1(轮高点AND轮回线属性开关,H,H-REF(L,NZ2),2),COLORWHITE,ALIGN0;//{显示轮回线空间}
DRAWTEXT(轮高点AND轮回线属性开关,H,'斜率:'),COLOR00FF00,ALIGN2;
DRAWNUMBER1(轮高点AND轮回线属性开关,H,轮高点斜率1*10,2),COLORWHITE,ALIGN0;//{显示轮回线斜率}
最后低点TJ:=(BACKSET(ISLASTBAR,BARSLAST(轮低点)+1));
最后低点:=(最后低点TJ>REF(最后低点TJ,1));
DRAWSL1(最后低点AND角度线显示开关,L,轮低点斜率1,0,5),COLORYELLOW,LINETHICK1;
DRAWSL1(最后低点AND角度线显示开关,L,轮低点斜率1*2,0,5),COLORYELLOW,LINETHICK1,DASH;
DRAWSL1(最后低点AND角度线显示开关,L,轮低点斜率1/2,0,5),COLORYELLOW,LINETHICK1,DASH;
最后高点TJ:=(BACKSET(ISLASTBAR,BARSLAST(轮高点)+1));
最后高点:=(最后高点TJ>REF(最后高点TJ,1));
DRAWSL1(最后高点AND角度线显示开关,H,-轮高点斜率1,0,5),COLORGREEN,LINETHICK1;
DRAWSL1(最后高点AND角度线显示开关,H,-轮高点斜率1*2,0,5),COLORGREEN,LINETHICK1,DASH;
DRAWSL1(最后高点AND角度线显示开关,H,-轮高点斜率1/2,0,5),COLORGREEN,LINETHICK1,DASH;
DRAWSL1(最后低点AND比较线显示开关,L,轮低点斜率2,0,5),COLORWHITE,ALIGN0,LINETHICK1;
DRAWSL1(最后高点AND比较线显示开关,H,-1*轮高点斜率2,0,5),COLORWHITE,ALIGN0,LINETHICK1;
FROMOPEN:=(IF(HOUR<12,60*(HOUR-9)-30+MINUTE,120+60*(HOUR-13)+MINUTE));
倍量TJ:=(IF(ISLASTBAR=1,V*240/FROMOPEN/REF(V,1),V/REF(V,1)));
回调量:=(IF(C>=O,0,V));
黄金线TJ:=(倍量TJ>=1.9AND倍量TJ<=3ANDREFX(C,1)>OANDREFX(C,2)>OANDREFX(C,3)>OANDREFX(回调量,1)/V<1ANDREFX(回调量,2)/V<1ANDREFX(回调量,3)/V<1);
黄金线WZ:=(MIN(MIN(REFX(C,1),REFX(C,2)),REFX(C,3)));
黄金线XS:=(IF(黄金线WZ>=C,O,黄金线WZ));
STICKLINE1(黄金线TJANDC>O,O,C,2,0),COLORYELLOW;
DRAWSL1(黄金线TJANDC>O,黄金线WZ,0,10,0),COLORYELLOW;
DRAWTEXT(黄金线TJANDC>O,黄金线WZ,'金尺线:'),COLOR00DDDD,ALIGN2;
DRAWNUMBER1(黄金线TJANDC>O,黄金线WZ,黄金线WZ,2),COLOR00DDDD,ALIGN0;
//画空间黄金分割线
//轮低点划线
DRAWTEXT(最后点AND轮低点AND空间分割开关,L,'【轮低点】↑'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮低点AND空间分割开关,L,L,2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮低点AND空间分割开关,L,0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWTEXT(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.191,'【0.191】↑'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.191,L+(REF(H,NZ2)-L)*0.191,2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.191,0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWTEXT(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.382,'【0.382】↑'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.382,L+(REF(H,NZ2)-L)*0.382,2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.382,0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWTEXT(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.5,'【0.5】↑'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.5,L+(REF(H,NZ2)-L)*0.5,2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.5,0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWTEXT(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.618,'【0.618】↑'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.618,L+(REF(H,NZ2)-L)*0.618,2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.618,0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWTEXT(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.809,'【0.809】↑'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.809,L+(REF(H,NZ2)-L)*0.809,2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.809,0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWTEXT(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L),'【黄金分割】'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L),L+(REF(H,NZ2)-L),2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L),0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWSL1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*1.382,0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWNUMBER1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*1.382,L+(REF(H,NZ2)-L)*1.382,2),COLORWHITE,ALIGN0;
DRAWTEXT(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*1.382,'【上1.382】'),COLORWHITE,ALIGN2;
//轮高点划线
DRAWTEXT(最后点AND轮高点AND空间分割开关,H,'【轮高点】↓'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H,H,2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮高点AND空间分割开关,H,0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWTEXT(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.191,'【0.191】↓'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.191,H-(H-REF(L,NZ2))*0.191,2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.191,0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWTEXT(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.382,'【0.382】↓'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.382,H-(H-REF(L,NZ2))*0.382,2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.382,0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWTEXT(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.5,'【0.5】↓'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.5,H-(H-REF(L,NZ2))*0.5,2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.5,0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWTEXT(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.618,'【0.618】↓'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.618,H-(H-REF(L,NZ2))*0.618,2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.618,0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWTEXT(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.809,'【0.809】↓'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.809,H-(H-REF(L,NZ2))*0.809,2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.809,0,0,0),COLORWHITE,ALIGN0,DOT;
DRAWTEXT(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L),'【黄金分割】'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L),L+(REF(H,NZ2)-L),2),COLORWHITE,ALIGN0,ALIGN0;
DRAWSL1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L),0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
//轮高点划线
DRAWTEXT(最后点AND轮高点AND空间分割开关,H,'【轮高点】↓'),COLOR009999,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H,H,2),COLOR009999,ALIGN0;
DRAWSL1(最后点AND轮高点AND空间分割开关,H,0,0,0),COLOR666666,DOT;
DRAWTEXT(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.191,'【0.191】↓'),COLOR009999,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.191,H-(H-REF(L,NZ2))*0.191,2),COLOR009999,ALIGN0;
DRAWSL1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.191,0,0,0),COLOR666666,DOT;
DRAWTEXT(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.382,'【0.382】↓'),COLOR009999,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.382,H-(H-REF(L,NZ2))*0.382,2),COLOR009999,ALIGN0;
DRAWSL1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.382,0,0,0),COLOR666666,DOT;
DRAWTEXT(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.5,'【0.5】↓'),COLOR009999,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.5,H-(H-REF(L,NZ2))*0.5,2),COLOR009999,ALIGN0;
DRAWSL1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.5,0,0,0),COLOR666666,DOT;
DRAWTEXT(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.618,'【0.618】↓'),COLOR009999,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.618,H-(H-REF(L,NZ2))*0.618,2),COLOR009999,ALIGN0;
DRAWSL1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.618,0,0,0),COLOR666666,DOT;
DRAWTEXT(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.809,'【0.809】↓'),COLOR009999,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.809,H-(H-REF(L,NZ2))*0.809,2),COLOR009999,ALIGN0;
DRAWSL1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.809,0,0,0),RGB(128,0,255),COLOR666666,DASHDOTDOT;
DRAWTEXT(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2)),'【黄金分割】'),COLOR009999,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2)),H-(H-REF(L,NZ2)),2),COLOR009999,ALIGN0;
DRAWSL1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2)),0,0,0),RGB(128,0,255),COLOR666666,DASHDOTDOT;
DRAWSL1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*1.382,0,0,0),RGB(128,0,255),ALIGN0,DASHDOTDOT;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*1.382,H-(H-REF(L,NZ2))*1.382,2),COLOR009999,ALIGN0;
DRAWTEXT(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*1.382,'【下1.382】'),COLOR009999,ALIGN2;
MA(C,短期均线周期*均线显示开关),COLORFFFFFF;
MA(C,中期均线周期*均线显示开关),COLOR40FF00;
MA(C,长期均线周期*均线显示开关);
MA(C,超长期均线周期*均线显示开关);
VAR2:=IF(轮高点,1,IF(轮低点,-1,0));
A1:=BARSLAST(VAR2<>0),LINETHICK1;
A2:=REF(VAR2,A1),LINETHICK1;
AA1:=REF(A1+1,1),LINETHICK1;
AA2:=-REF(A2,1),LINETHICK1;
方向:=AA2,LINETHICK1,COLORFFFFFF;
H1:=BARSLAST(VAR2=1),LINETHICK1;
HH1:=REF(H1+1,1),LINETHICK1;
L1:=BARSLAST(VAR2=-1);
LL1:=REF(L1+1,1);
HH2:=HH1+REF(HH1,HH1),LINETHICK1;
LL2:=LL1+REF(LL1,LL1),LINETHICK1;
日期1001:=IF(方向=1,ABS(LL1-LL2),ABS(HH1-HH2)),LINETHICK1;
日期1002:=IF(方向=1,ABS(HH1-LL2),ABS(LL1-HH2)),LINETHICK1;
日期1003:=IF(方向=1,ABS(LL1-HH1),ABS(HH1-LL1)),LINETHICK1;
日期100:=IF(时间窗开关=1,日期1001,IF(时间窗开关=2,日期1002,IF(时间窗开关=3,日期1003,0))),LINETHICK1;
日期0:=IF(方向=1,LL1,HH1),LINETHICK1;
{起始时间}
时间窗:=IF(CEILING(日期100*0.382-日期0,1)>0,CEILING(日期100*0.382-日期0,1),IF(CEILING(日期100*0.500-日期0,1)>0,CEILING(日期100*0.500-日期0,1),
IF(CEILING(日期100*0.618-日期0,1)>0,CEILING(日期100*0.618-日期0,1),IF(CEILING(日期100*0.809-日期0,1)>0,CEILING(日期100*0.809-日期0,1),
IF(CEILING(日期100*1.000-日期0,1)>0,CEILING(日期100*1.000-日期0,1),
IF(CEILING(日期100*1.500-日期0,1)>0,CEILING(日期100*1.500-日期0,1),
IF(CEILING(日期100*1.618-日期0,1)>0,CEILING(日期100*1.618-日期0,1),100)))))))-1,LINETHICK1;
VERTLINE1((时间窗=1ORREF(时间窗,1)=0)ANDBARPOS>=DATACOUNT-10AND时间窗开关>0),DOT;
来源 程序化久久网
博易的工程师有几个呀,请教问题太不给力了,在处理系统问题没有文华财经给力啊?
我在文华里面有问题不说秒回吧,在上班时间里有问题都没有超出60分钟就能够看见处理结果,博易的系统里面的函数是不是太少了,有好多指标都不能兼容,系统也不稳定,经常出现卡顿闪屏现象,连点击几下就会发脾气给崩溃,分钟的周期想历史复盘没有,有好多功能缺失,希望博易的后台工程师去测试一下文华的后台工程师处理提问的速度,在系统后台处理问题这方面如果满分是100分,我最多只给40分,系统应该多优化,要想拉期货公司的队伍,在后台维护应该多给力处理系统的不足,有用户的好评才是长久发展的根本。
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 您好,请问您的软件是在哪里下载的?看下软件的菜单帮助关于里的版本号是多少。不同软件指标不兼容这是正常现象,而且博易大师和一些软件的定位不一样,指标系统并不会什么函数都增加。博易大师5是个稳定的产品,如果您说系统不稳定,经常卡顿闪屏,这个问题确实目前没有户反馈,如果您那里真有这个现象,我们需要立刻处理,但是上述情况也和电脑的系统和配置有关系,您能否描述下您的情况,谢谢。 转博易用请老师帮忙修改1.
AA跨:=(MOD(DAYBARPOS,15)=0||ISLASTBAR||REFX(DAYBARPOS=1,1));
N跨:=(BARSLAST(MOD(DAYBARPOS,15)=1)+1);
OO跨:=(REF(O,N跨-1));
CC跨:=(VALUEWHEN(AA跨,C));
HH跨:=(VALUEWHEN(AA跨,HHV(H,N跨)));
LL跨:=(VALUEWHEN(AA跨,LLV(L,N跨)));
DRAWLINE(AA跨,CC跨,CC跨>=OO跨,OO跨,COLORYELLOW),LINETHICK2;
DRAWLINE3(AA跨&&CC跨>=OO跨,CC跨,N跨-1,AA跨&&CC跨>=OO跨,OO跨,N跨-1,0),COLORYELLOW,LINETHICK2;
DRAWSL(AA跨&&CC跨>=OO跨,CC跨,0,-N跨+1,0,COLORYELLOW),LINETHICK2;
DRAWSL(AA跨&&CC跨>=OO跨,OO跨,0,-N跨+1,0,COLORYELLOW),LINETHICK2;
DRAWLINE(AA跨,CC跨,CC跨<OO跨,OO跨,COLORGREEN),LINETHICK2;
DRAWLINE3(AA跨&&CC跨<OO跨,CC跨,N跨-1,AA跨&&CC跨<OO跨,OO跨,N跨-1,0),COLORGREEN,LINETHICK2;
DRAWSL(AA跨&&CC跨<OO跨,CC跨,0,-N跨+1,0,COLORGREEN),LINETHICK2;
DRAWSL(AA跨&&CC跨<OO跨,OO跨,0,-N跨+1,0,COLORGREEN),LINETHICK2;
DRAWLINE3(AA跨&&CC跨>=OO跨,HH跨,(N跨-1)/2,AA跨&&CC跨>=OO跨,CC跨,(N跨-1)/2,0),COLORYELLOW,LINETHICK2;
DRAWLINE3(AA跨&&CC跨>=OO跨,LL跨,(N跨-1)/2,AA跨&&CC跨>=OO跨,OO跨,(N跨-1)/2,0),COLORYELLOW,LINETHICK2;
DRAWLINE3(AA跨&&CC跨<OO跨,HH跨,(N跨-1)/2,AA跨&&CC跨<OO跨,OO跨,(N跨-1)/2,0),COLORGREEN,LINETHICK2;
DRAWLINE3(AA跨&&CC跨<OO跨,LL跨,(N跨-1)/2,AA跨&&CC跨<OO跨,CC跨,(N跨-1)/2,0),COLORGREEN,LINETHICK2;
2//大K中分线
AA中分:=(VALUEWHEN(H-L>60*MINPRICE,(H+L)/2));
BB中分:=(MAX(C,O)>AA中分&&MIN(C,O)<AA中分&&COUNT(MAX(C,O)>AA中分&&MIN(C,O)<AA中分,BARSLAST(H-L>60*MINPRICE)+1)=1);
DRAWSL(REFX1(BB中分,1)||ISLASTBAR,AA中分,0,-BARSLAST(H-L>60*MINPRICE),0,COLORRED),DASH;
3.
//
轮回线属性开关:=0;//1
均线显示开关:=0;//1
角度线显示开关:=0;//1
轮低高线显示开关:=1;//1
比较线显示开关:=0;
空间分割开关:=1;
短期均线周期:=5;
中期均线周期:=13;
长期均线周期:=120;
超长期均线周期:=250;
时间窗开关:=0;//3
幅度:=40;
DEA:=(EMA(EMA(CLOSE,12)-EMA(CLOSE,26),9)),LINETHICK1;
轮回DIFF:=(EMA(C,12)-EMA(C,26));
轮回DEA:=(EMA(轮回DIFF,9));
上穿S:=CROSS(轮回DEA,0);
下穿S:=CROSS(0,轮回DEA);
上穿:=上穿SANDREF(下穿S,1)=0ANDREFX(下穿S,1)=0;
下穿:=下穿SANDREF(上穿S,1)=0ANDREFX(上穿S,1)=0;
上穿周期:=BARSLAST(上穿);
下穿周期:=BARSLAST(下穿),LINETHICK1;
低点条件:=L=LLV(L,下穿周期)AND轮回DEA<0,LINETHICK1;
最低点周期:=BARSLAST(L=LLV(L,下穿周期)AND轮回DEA<0),LINETHICK1;
最高点周期:=BARSLAST(H=HHV(H,最低点周期)),LINETHICK1;
轮高点TJ1:=下穿;
轮高点TJ2:=BACKSET(轮高点TJ1,最高点周期+1);
轮高点:=(轮高点TJ2>REF(轮高点TJ2,1)),LINETHICK1;
轮低最高点周期:=BARSLAST(H=HHV(H,上穿周期)AND轮回DEA>0),LINETHICK1;
轮低最低点周期:=BARSLAST(L=LLV(L,轮低最高点周期)),LINETHICK1;
高点条件:=L=LLV(L,轮低最高点周期),LINETHICK1;
轮低点TJ1:=上穿;
轮低点TJ2:=BACKSET(轮低点TJ1,轮低最低点周期+1);
轮低点:=(轮低点TJ2>REF(轮低点TJ2,1));
DRAWLINE1(轮高点*轮低高线显示开关,H,轮低点*轮低高线显示开关,L,0),DOT,COLORWHITE,LINETHICK1;//{画下轮回线}
DRAWLINE1(轮低点*轮低高线显示开关,L,轮高点*轮低高线显示开关,H,0),DOT,COLORYELLOW,LINETHICK1;//{画上轮回线}
H轮H1:=VALUEWHEN(轮高点,H);
L轮L1:=VALUEWHEN(轮低点,L);
DRAWNUMBER(轮高点,H,(H轮H1-L轮L1)/L轮L1*100,2,COLORRED),VALIGN1;
DRAWNUMBER(轮低点,L,(H轮H1-L轮L1)/L轮L1*100,2,COLORGREEN),VALIGN1;
轮回点:=轮高点OR轮低点;
NZ1:=BARSLAST(轮回点);
{最近转折点到现在的时间,如果现在是轮回点,值为0}
NZ2:=REF(NZ1,NZ1+1)+NZ1+1;
NZ3:=REF(NZ2,NZ2)+NZ2;
NZ4:=REF(NZ2,NZ3)+NZ3;
最后点TJ:=BACKSET(ISLASTBAR,BARSLAST(轮低点OR轮高点)+1);
最后点:=最后点TJ>REF(最后点TJ,1);
轮低点斜率1:=IF(轮低点,(REF(H,NZ2)-L)/NZ2,0),LINETHICK1;
轮低点斜率2:=IF(轮低点,(REF(H,NZ2)-REF(L,NZ3))/(NZ3-NZ2),0),LINETHICK1;
轮低点斜率3:=IF(轮低点,(REF(H,NZ4)-REF(L,NZ3))/(NZ4-NZ3),0),LINETHICK1;
轮高点斜率1:=IF(轮高点,(H-REF(L,NZ2))/NZ2,0),LINETHICK1;
轮高点斜率2:=IF(轮高点,(REF(H,NZ3)-REF(L,NZ2))/(NZ3-NZ2),0),LINETHICK1;
轮高点斜率3:=IF(轮高点,(REF(H,NZ3)-REF(L,NZ4))/(NZ4-NZ3),0),LINETHICK1;
//轮低点情况
DRAWTEXT(轮低点AND轮回线属性开关,L,'时:'),ALIGN2;
DRAWNUMBER1(轮低点AND轮回线属性开关,L,NZ2,0),COLORWHITE,ALIGN0;//{显示轮回线时间}
DRAWTEXT(轮低点AND轮回线属性开关,L,'空:'),ALIGN2;
DRAWNUMBER1(轮低点AND轮回线属性开关,L,REF(H,NZ2)-L,2),COLORWHITE,ALIGN0;//{显示轮回线空间}
DRAWTEXT(轮低点AND轮回线属性开关,L,'斜率:'),COLOR00FFFF,ALIGN2;
DRAWNUMBER1(轮低点AND轮回线属性开关,L,轮低点斜率1*10,2),COLORWHITE,ALIGN0;//{显示轮回线斜率}
DRAWTEXT(轮高点AND轮回线属性开关,H,'时:'),ALIGN2;
DRAWNUMBER1(轮高点AND轮回线属性开关,H,NZ2,0),COLORWHITE,ALIGN0;//{显示轮回线时间}
DRAWTEXT(轮高点AND轮回线属性开关,H,'空:'),ALIGN2;
DRAWNUMBER1(轮高点AND轮回线属性开关,H,H-REF(L,NZ2),2),COLORWHITE,ALIGN0;//{显示轮回线空间}
DRAWTEXT(轮高点AND轮回线属性开关,H,'斜率:'),COLOR00FF00,ALIGN2;
DRAWNUMBER1(轮高点AND轮回线属性开关,H,轮高点斜率1*10,2),COLORWHITE,ALIGN0;//{显示轮回线斜率}
最后低点TJ:=(BACKSET(ISLASTBAR,BARSLAST(轮低点)+1));
最后低点:=(最后低点TJ>REF(最后低点TJ,1));
DRAWSL1(最后低点AND角度线显示开关,L,轮低点斜率1,0,5),COLORYELLOW,LINETHICK1;
DRAWSL1(最后低点AND角度线显示开关,L,轮低点斜率1*2,0,5),COLORYELLOW,LINETHICK1,DASH;
DRAWSL1(最后低点AND角度线显示开关,L,轮低点斜率1/2,0,5),COLORYELLOW,LINETHICK1,DASH;
最后高点TJ:=(BACKSET(ISLASTBAR,BARSLAST(轮高点)+1));
最后高点:=(最后高点TJ>REF(最后高点TJ,1));
DRAWSL1(最后高点AND角度线显示开关,H,-轮高点斜率1,0,5),COLORGREEN,LINETHICK1;
DRAWSL1(最后高点AND角度线显示开关,H,-轮高点斜率1*2,0,5),COLORGREEN,LINETHICK1,DASH;
DRAWSL1(最后高点AND角度线显示开关,H,-轮高点斜率1/2,0,5),COLORGREEN,LINETHICK1,DASH;
DRAWSL1(最后低点AND比较线显示开关,L,轮低点斜率2,0,5),COLORWHITE,ALIGN0,LINETHICK1;
DRAWSL1(最后高点AND比较线显示开关,H,-1*轮高点斜率2,0,5),COLORWHITE,ALIGN0,LINETHICK1;
FROMOPEN:=(IF(HOUR<12,60*(HOUR-9)-30+MINUTE,120+60*(HOUR-13)+MINUTE));
倍量TJ:=(IF(ISLASTBAR=1,V*240/FROMOPEN/REF(V,1),V/REF(V,1)));
回调量:=(IF(C>=O,0,V));
黄金线TJ:=(倍量TJ>=1.9AND倍量TJ<=3ANDREFX(C,1)>OANDREFX(C,2)>OANDREFX(C,3)>OANDREFX(回调量,1)/V<1ANDREFX(回调量,2)/V<1ANDREFX(回调量,3)/V<1);
黄金线WZ:=(MIN(MIN(REFX(C,1),REFX(C,2)),REFX(C,3)));
黄金线XS:=(IF(黄金线WZ>=C,O,黄金线WZ));
STICKLINE1(黄金线TJANDC>O,O,C,2,0),COLORYELLOW;
DRAWSL1(黄金线TJANDC>O,黄金线WZ,0,10,0),COLORYELLOW;
DRAWTEXT(黄金线TJANDC>O,黄金线WZ,'金尺线:'),COLOR00DDDD,ALIGN2;
DRAWNUMBER1(黄金线TJANDC>O,黄金线WZ,黄金线WZ,2),COLOR00DDDD,ALIGN0;
//画空间黄金分割线
//轮低点划线
DRAWTEXT(最后点AND轮低点AND空间分割开关,L,'【轮低点】↑'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮低点AND空间分割开关,L,L,2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮低点AND空间分割开关,L,0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWTEXT(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.191,'【0.191】↑'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.191,L+(REF(H,NZ2)-L)*0.191,2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.191,0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWTEXT(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.382,'【0.382】↑'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.382,L+(REF(H,NZ2)-L)*0.382,2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.382,0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWTEXT(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.5,'【0.5】↑'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.5,L+(REF(H,NZ2)-L)*0.5,2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.5,0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWTEXT(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.618,'【0.618】↑'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.618,L+(REF(H,NZ2)-L)*0.618,2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.618,0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWTEXT(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.809,'【0.809】↑'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.809,L+(REF(H,NZ2)-L)*0.809,2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.809,0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWTEXT(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L),'【黄金分割】'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L),L+(REF(H,NZ2)-L),2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L),0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWSL1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*1.382,0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWNUMBER1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*1.382,L+(REF(H,NZ2)-L)*1.382,2),COLORWHITE,ALIGN0;
DRAWTEXT(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*1.382,'【上1.382】'),COLORWHITE,ALIGN2;
//轮高点划线
DRAWTEXT(最后点AND轮高点AND空间分割开关,H,'【轮高点】↓'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H,H,2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮高点AND空间分割开关,H,0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWTEXT(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.191,'【0.191】↓'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.191,H-(H-REF(L,NZ2))*0.191,2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.191,0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWTEXT(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.382,'【0.382】↓'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.382,H-(H-REF(L,NZ2))*0.382,2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.382,0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWTEXT(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.5,'【0.5】↓'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.5,H-(H-REF(L,NZ2))*0.5,2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.5,0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWTEXT(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.618,'【0.618】↓'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.618,H-(H-REF(L,NZ2))*0.618,2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.618,0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
DRAWTEXT(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.809,'【0.809】↓'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.809,H-(H-REF(L,NZ2))*0.809,2),COLORWHITE,ALIGN0;
DRAWSL1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L)*0.809,0,0,0),COLORWHITE,ALIGN0,DOT;
DRAWTEXT(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L),'【黄金分割】'),COLORWHITE,ALIGN2;
DRAWNUMBER1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L),L+(REF(H,NZ2)-L),2),COLORWHITE,ALIGN0,ALIGN0;
DRAWSL1(最后点AND轮低点AND空间分割开关,L+(REF(H,NZ2)-L),0,0,0),COLORWHITE,ALIGN0,DASHDOTDOT;
//轮高点划线
DRAWTEXT(最后点AND轮高点AND空间分割开关,H,'【轮高点】↓'),COLOR009999,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H,H,2),COLOR009999,ALIGN0;
DRAWSL1(最后点AND轮高点AND空间分割开关,H,0,0,0),COLOR666666,DOT;
DRAWTEXT(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.191,'【0.191】↓'),COLOR009999,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.191,H-(H-REF(L,NZ2))*0.191,2),COLOR009999,ALIGN0;
DRAWSL1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.191,0,0,0),COLOR666666,DOT;
DRAWTEXT(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.382,'【0.382】↓'),COLOR009999,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.382,H-(H-REF(L,NZ2))*0.382,2),COLOR009999,ALIGN0;
DRAWSL1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.382,0,0,0),COLOR666666,DOT;
DRAWTEXT(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.5,'【0.5】↓'),COLOR009999,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.5,H-(H-REF(L,NZ2))*0.5,2),COLOR009999,ALIGN0;
DRAWSL1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.5,0,0,0),COLOR666666,DOT;
DRAWTEXT(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.618,'【0.618】↓'),COLOR009999,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.618,H-(H-REF(L,NZ2))*0.618,2),COLOR009999,ALIGN0;
DRAWSL1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.618,0,0,0),COLOR666666,DOT;
DRAWTEXT(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.809,'【0.809】↓'),COLOR009999,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.809,H-(H-REF(L,NZ2))*0.809,2),COLOR009999,ALIGN0;
DRAWSL1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*0.809,0,0,0),RGB(128,0,255),COLOR666666,DASHDOTDOT;
DRAWTEXT(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2)),'【黄金分割】'),COLOR009999,ALIGN2;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2)),H-(H-REF(L,NZ2)),2),COLOR009999,ALIGN0;
DRAWSL1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2)),0,0,0),RGB(128,0,255),COLOR666666,DASHDOTDOT;
DRAWSL1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*1.382,0,0,0),RGB(128,0,255),ALIGN0,DASHDOTDOT;
DRAWNUMBER1(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*1.382,H-(H-REF(L,NZ2))*1.382,2),COLOR009999,ALIGN0;
DRAWTEXT(最后点AND轮高点AND空间分割开关,H-(H-REF(L,NZ2))*1.382,'【下1.382】'),COLOR009999,ALIGN2;
MA(C,短期均线周期*均线显示开关),COLORFFFFFF;
MA(C,中期均线周期*均线显示开关),COLOR40FF00;
MA(C,长期均线周期*均线显示开关);
MA(C,超长期均线周期*均线显示开关);
VAR2:=IF(轮高点,1,IF(轮低点,-1,0));
A1:=BARSLAST(VAR2<>0),LINETHICK1;
A2:=REF(VAR2,A1),LINETHICK1;
AA1:=REF(A1+1,1),LINETHICK1;
AA2:=-REF(A2,1),LINETHICK1;
方向:=AA2,LINETHICK1,COLORFFFFFF;
H1:=BARSLAST(VAR2=1),LINETHICK1;
HH1:=REF(H1+1,1),LINETHICK1;
L1:=BARSLAST(VAR2=-1);
LL1:=REF(L1+1,1);
HH2:=HH1+REF(HH1,HH1),LINETHICK1;
LL2:=LL1+REF(LL1,LL1),LINETHICK1;
日期1001:=IF(方向=1,ABS(LL1-LL2),ABS(HH1-HH2)),LINETHICK1;
日期1002:=IF(方向=1,ABS(HH1-LL2),ABS(LL1-HH2)),LINETHICK1;
日期1003:=IF(方向=1,ABS(LL1-HH1),ABS(HH1-LL1)),LINETHICK1;
日期100:=IF(时间窗开关=1,日期1001,IF(时间窗开关=2,日期1002,IF(时间窗开关=3,日期1003,0))),LINETHICK1;
日期0:=IF(方向=1,LL1,HH1),LINETHICK1;
{起始时间}
时间窗:=IF(CEILING(日期100*0.382-日期0,1)>0,CEILING(日期100*0.382-日期0,1),IF(CEILING(日期100*0.500-日期0,1)>0,CEILING(日期100*0.500-日期0,1),
IF(CEILING(日期100*0.618-日期0,1)>0,CEILING(日期100*0.618-日期0,1),IF(CEILING(日期100*0.809-日期0,1)>0,CEILING(日期100*0.809-日期0,1),
IF(CEILING(日期100*1.000-日期0,1)>0,CEILING(日期100*1.000-日期0,1),
IF(CEILING(日期100*1.500-日期0,1)>0,CEILING(日期100*1.500-日期0,1),
IF(CEILING(日期100*1.618-日期0,1)>0,CEILING(日期100*1.618-日期0,1),100)))))))-1,LINETHICK1;
VERTLINE1((时间窗=1ORREF(时间窗,1)=0)ANDBARPOS>=DATACOUNT-10AND时间窗开关>0),DOT;
来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容