【资料名称】:多功能黄金分割线 波段黄金分割介绍【资料描述】:
多功能黄金分割线 波段黄金分割
多功能黄金分割线,会用的你会发现很方便,我个人认为这是目前最优的。
参数默认6好了,通过调整参数来量度你想要的波段。
{波段黄金分割}
BC1:=IF(L=LLV(L,10*P),L,DRAWNULL);
BC2:=CONST(BARSLAST(BC1!=DRAWNULL));
BC3:=IF(BC2=0,L,REF(L,BC2));
TC1:=IF(H=HHV(H,10*P),H,DRAWNULL);
TC2:=CONST(BARSLAST(TC1!=DRAWNULL));
TC3:=IF(TC2=0,H,REF(H,TC2));
BZ:=MAX(BC2,TC2);
LOWER:IF(CURRBARSCOUNT<=BZ+1,CONST(BC3),DRAWNULL),LINETHICK2;
UPPER:IF(CURRBARSCOUNT<=BZ+1,CONST(TC3),DRAWNULL),LINETHICK2;
IF(CURRBARSCOUNT<=BC2+1,IF(L=LLV(L,10*P),L,DRAWNULL),DRAWNULL),CIRCLEDOT,COLOR0000BF;
IF(CURRBARSCOUNT<=TC2+1,IF(H=HHV(H,10*P),H,DRAWNULL),DRAWNULL),CIRCLEDOT,COLOR0071E1;
X1:IF( CURRBARSCOUNT<=BZ+1,UPPER-(UPPER-LOWER)*0.191,DRAWNULL),POINTDOT,COLORWHITE;
X2:IF( CURRBARSCOUNT<=BZ+1,UPPER-(UPPER-LOWER)*0.382,DRAWNULL),POINTDOT,COLORWHITE;
X3:IF(CURRBARSCOUNT<=BZ+1,UPPER-(UPPER-LOWER)*0.5,DRAWNULL),COLORRED;
X4:IF( CURRBARSCOUNT<=BZ+1,UPPER-(UPPER-LOWER)*0.618,DRAWNULL),POINTDOT,COLORWHITE;
X5:IF(CURRBARSCOUNT<=BZ+1,UPPER-(UPPER-LOWER)*0.809,DRAWNULL),POINTDOT,COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=5,UPPER,'UPPER');
DRAWTEXT(CURRBARSCOUNT=5,LOWER,'LOWER');
DRAWTEXT(CURRBARSCOUNT=5,X1,IF(TC2<BC2,'0.191','0.809'));
DRAWTEXT(CURRBARSCOUNT=5,X2,IF(TC2<BC2,'0.382','0.618'));
DRAWTEXT(CURRBARSCOUNT=5,X3,'0.5');
DRAWTEXT(CURRBARSCOUNT=5,X4,IF(TC2<BC2,'0.618','0.382'));
DRAWTEXT(CURRBARSCOUNT=5,X5,IF(TC2<BC2,'0.809','0.191'));
{底部确认}
CB1:=CONST(IF(TC2>BC2,LOWER,LLV(L,TC2+1)));
CB2:=CONST(BARSLAST(L=CB1));
CB3:=CONST(REF(BARSLAST(O>C),CB2+1)+CB2+1);
CB4:=IF(CB1<UPPER-(UPPER-LOWER)*0.52,CONST(IF(REF(O,CB2)>REF(C,CB2),REF(C,CB2),REF(C,CB3))),DRAWNULL);
参考线:IF(CURRBARSCOUNT<=CB2+65 AND CURRBARSCOUNT>CB2 AND C>1000,CB4,DRAWNULL);
DRAWTEXT(CURRBARSCOUNT=CB2+65,参考线,'参考线');
确底线:参考线*1.06;
DRAWTEXT(CURRBARSCOUNT=CB2+65,确底线,'确底线');
确防线:确底线*1.06;
DRAWTEXT(CURRBARSCOUNT=CB2+65,确防线,'确防线');
LCB1:=CONST(IF(TC2<BC2,LOWER,DRAWNULL));
LCB2:=CONST(BARSLAST(L=LCB1));
LCB3:=CONST(REF(BARSLAST(O>C),LCB2+1)+LCB2+1);
LCB4:=CONST(IF(REF(O,LCB2)>REF(C,LCB2),REF(C,LCB2),REF(C,LCB3)));
前参考线:IF(CURRBARSCOUNT<=BC2+65 AND CURRBARSCOUNT>BC2 AND C>1000,LCB4,DRAWNULL);
DRAWTEXT(CURRBARSCOUNT=BC2+65,前参考线,'参考线');
前确底线:前参考线*1.06;
DRAWTEXT(CURRBARSCOUNT=BC2+65,前确底线,'确底线');
前确防线:前确底线*1.06;
DRAWTEXT(CURRBARSCOUNT=BC2+65,前确防线,'确防线');
DRAWTEXT(C>1000 AND CURRBARSCOUNT=IF(BC2>TC2,BC2+65,CB2+65),IF(BC2>TC2,CONST(BC3)*1.6,CONST(TC3)*0.98),'■确底线仅仅适用于指数'),COLOR3171D0;
DRAWTEXT(C>1000 AND CURRBARSCOUNT=IF(BC2>TC2,BC2+65,CB2+65),IF(BC2>TC2,CONST(BC3)*1.55,CONST(TC3)*0.95),'■请确认已跌去前一波大行情涨幅的百分之52以上'),COLOR3171D0;
DRAWTEXT(C>1000 AND CURRBARSCOUNT=IF(BC2>TC2,BC2+65,CB2+65),IF(BC2>TC2,CONST(BC3)*1.5,CONST(TC3)*0.92),'■跌幅不够百分之52仅仅作为反弹看待而不是新底'),COLOR3171D0;
多功能,第一,它是黄金分割线,第二,它可以度量大致的调整、反弹幅度,第三它的顶、底和自然波段是吻合的。
我是另一个路子。但只要你稍微细心,会发现和传统的也很一致。
调整(下跌),以前一波行情的涨幅为标准计算。
反弹(反转),以前一波行情的跌幅为标准计算。
是否有道理,有待验证,但个人认为是目前最好的,仅代表个人观点。
gd6953
【下载地址隐藏】: 点:回复可见地址