根据指标画线 [文华财经]
-
咨询内容:
指标中的白线和黄线的高低点点差比,,如果白线大于黄线,在白线低点做波浪尺,分别为0.618,1,1.618,2
,,,,,,,,,,,,,,,,,,,,,,,,,,,,在白线低点做回撤0.38的波浪尺
反之,,,,,,,,,,,,,,,,,,黄线大于白线,在黄线高点做
只做第一个黄线大于白线或白线大于黄线,挨着的不做,就是只取第一波
下面是指标
MA5:=MA(C,20),COLORRED,NOTEXT;MA10:=MA(C,100),COLORGREEN,NOTEXT;T1:=BARSLAST(CROSS(MA5,MA10))+1;T2:=BARSLAST(CROSSDOWN(MA5,MA10))+1;Q1:=BACKSET(CROSSDOWN(MA5,MA10),HHVBARS(H,T1)+1);Q2:=BACKSET(CROSS(MA5,MA10),LLVBARS(L,T2)+1);DRAWLINE1(CROSS(Q1,0.5),H,CROSS(Q2,0.5),L,0),COLORWHITE;DRAWLINE1(CROSS(Q2,0.5),L,CROSS(Q1,0.5),H,0),COLORYELLOW;AA:=BACKSET(ISLASTBAR && MA5<MA10,REF(HHVBARS(H,T1),T2)+1+T2);BB:=BACKSET(ISLASTBAR && MA5<MA10,LLVBARS(L,T2)+1);DRAWLINE1(CROSS(AA,0.5),H,CROSS(BB,0.5),L,0),COLORWHITE;CC:=BACKSET(ISLASTBAR && MA5>MA10,REF(LLVBARS(L,T2),T1)+1+T1);DD:=BACKSET(ISLASTBAR && MA5>MA10,HHVBARS(H,T1)+1);DRAWLINE1(CROSS(CC,0.5),L,CROSS(DD,0.5),H,0),COLORYELLOW;
来源:程序化99
-
文华技术人员:
第二,当白线成的时候,做一条黄线的平行线,反之,,,,,红线,,,,,,,,白线的平行线长度和他一样长
来源: WWW.CXH99.COM
-
文华客服:
2楼问题没有理解您的意思,当白线成什么的时候,在哪里画一条黄线的平行线?
回复一楼:
您是指只根据历史第一次的形态判断并画线?参考:
MA5:=MA(C,20),COLORRED,NOTEXT;MA10:=MA(C,100),COLORGREEN,NOTEXT;T1:=BARSLAST(CROSS(MA5,MA10))+1;T2:=BARSLAST(CROSSDOWN(MA5,MA10))+1;Q1:=BACKSET(CROSSDOWN(MA5,MA10),HHVBARS(H,T1)+1);Q2:=BACKSET(CROSS(MA5,MA10),LLVBARS(L,T2)+1);DRAWLINE1(CROSS(Q1,0.5),H,CROSS(Q2,0.5),L,0),COLORWHITE;DRAWLINE1(CROSS(Q2,0.5),L,CROSS(Q1,0.5),H,0),COLORYELLOW;AA:=BACKSET(ISLASTBAR && MA5<MA10,REF(HHVBARS(H,T1),T2)+1+T2);BB:=BACKSET(ISLASTBAR && MA5<MA10,LLVBARS(L,T2)+1);DRAWLINE1(CROSS(AA,0.5),H,CROSS(BB,0.5),L,0),COLORWHITE;CC:=BACKSET(ISLASTBAR && MA5>MA10,REF(LLVBARS(L,T2),T1)+1+T1);DD:=BACKSET(ISLASTBAR && MA5>MA10,HHVBARS(H,T1)+1);DRAWLINE1(CROSS(CC,0.5),L,CROSS(DD,0.5),H,0),COLORYELLOW;N:=BARSLAST(CROSS(Q1,0.5));M:=BARSLAST(CROSS(Q2,0.5));NN:=COUNT(CROSS(Q2,0.5)&&REF(H,N)-L>REF(H,N)-REF(L,SUMBARS(CROSS(Q2,0.5),2)-1)||CROSS(Q1,0.5)&&H-REF(L,M)>REF(H,SUMBARS(CROSS(Q1,0.5),2)-1)-REF(L,M),BARPOS);DRAWWAVERULER(COUNT(NN=1,BARPOS)=1&&CROSS(Q2,0.5),L,CROSS(Q1,0.5),H,CROSS(Q2,0.5),L,0.618,COLORRED);DRAWWAVERULER(COUNT(NN=1,BARPOS)=1&&CROSS(Q2,0.5),L,CROSS(Q1,0.5),H,CROSS(Q2,0.5),L,1,COLORRED);DRAWWAVERULER(COUNT(NN=1,BARPOS)=1&&CROSS(Q2,0.5),L,CROSS(Q1,0.5),H,CROSS(Q2,0.5),L,1.618,COLORRED);DRAWWAVERULER(COUNT(NN=1,BARPOS)=1&&CROSS(Q2,0.5),L,CROSS(Q1,0.5),H,CROSS(Q2,0.5),L,2,COLORRED);DRAWWAVERULER(COUNT(NN=1,BARPOS)=1&&CROSS(Q2,0.5),L,CROSS(Q1,0.5),H,CROSS(Q2,0.5),L,-0.38,COLORRED);
DRAWWAVERULER(COUNT(NN=1,BARPOS)=1&&CROSS(Q1,0.5),H,CROSS(Q2,0.5),L,CROSS(Q1,0.5),H,0.618,COLORGREEN);DRAWWAVERULER(COUNT(NN=1,BARPOS)=1&&CROSS(Q1,0.5),H,CROSS(Q2,0.5),L,CROSS(Q1,0.5),H,1,COLORGREEN);DRAWWAVERULER(COUNT(NN=1,BARPOS)=1&&CROSS(Q1,0.5),H,CROSS(Q2,0.5),L,CROSS(Q1,0.5),H,1.618,COLORGREEN);DRAWWAVERULER(COUNT(NN=1,BARPOS)=1&&CROSS(Q1,0.5),H,CROSS(Q2,0.5),L,CROSS(Q1,0.5),H,2,COLORGREEN);DRAWWAVERULER(COUNT(NN=1,BARPOS)=1&&CROSS(Q1,0.5),H,CROSS(Q2,0.5),L,CROSS(Q1,0.5),H,-0.38,COLORGREEN);
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
相关文章
-
没有相关内容