您现在的位置:程序化交易>> 期货公式>> 文华财经>> 文华财经知识>>正文内容

金叉要向上的箭头,死叉要向下的箭头 [文华财经]

  • 咨询内容:  B:MA(C,10); D:MA(C,20);   C1:=REF(CLOSE,1); C2:=REF(CLOSE,2); C3:=REF(CLOSE,3); C4:=REF(CLOSE,4); CMAX:=HHV(CLOSE,4); CMIN:=LLV(CLOSE,4); STICKLINE(CLOSE=CMAX && (C1>=C2 || C1>=C3) || C1=CMAX && (C2=CMIN || C3=CMIN)&& CLOSE>=C2 ||C2=CMAX && C3=CMIN && CLOSE>=C1 || C3=CMAX && CLOSE>=C1&& CLOSE>=C2,C1,CLOSE,COLORRED,1); STICKLINE(CLOSE=CMAX && C1=CMIN,C2,CLOSE,COLORRED,1); STICKLINE(CLOSE=CMIN && (C1<C2 || C1<C3) || C1=CMIN && (C2=CMAX || C3=CMAX) && CLOSE<C2 ||C2=CMIN && C3=CMAX && CLOSE<C1 || C3=CMIN && CLOSE<C1 && CLOSE<C2,C1,CLOSE,COLORLIGHTGREEN,0); STICKLINE(C1=CMAX && CLOSE=CMIN,C2,CLOSE,COLORRED,0); STICKLINE(C1=CMIN && CLOSE>=C2 || (C2=CMIN && C1<=C3 ||C3=CMIN && C1<=C2) && C2<C4 && CLOSE>=C1,C1,C2,COLORLIGHTGREEN,0); STICKLINE(C1=CMAX && CLOSE<C2 || (C2=CMAX && C1>C3 ||C3=CMAX && C1>C2) && C2>=C4 && CLOSE<C1,C1,C2,COLORLIGHTGREEN,1);   LL:=MIN1(C1,C2,C); T:=BARSLAST(EVERY(LL=REF(LL,1),1))+1; LLL:=VALUEWHEN(EVERY(LL=REF(LL,1),1),LL); A1:BACKSET(ISLASTBAR&&BARSLAST(CROSS(B,D))<BARSLAST(CROSS(D,B)),BARSLAST(CROSS(B,D))+1),NODRAW; DRAWSL(A1=1&&T,LLL,0,-T,0,RGB(255,166,255)); TT:=BARSLAST(EVERY(LL=REF(LL,1),1)&&CROSS(B,D))+1; TTT:=BACKSET(A1=1&&T,TT+1); CROSS(TTT,0.5),ICON(0,'ICO4');

    老师改一下,金叉的第一平台,要向上的箭头,死叉的第一平台要向下的箭头 

     

  • 文华技术人员: B:MA(C,10);D:MA(C,20);C1:=REF(CLOSE,1);C2:=REF(CLOSE,2);C3:=REF(CLOSE,3);C4:=REF(CLOSE,4);CMAX:=HHV(CLOSE,4);CMIN:=LLV(CLOSE,4);STICKLINE(CLOSE=CMAX && (C1>=C2 || C1>=C3) || C1=CMAX && (C2=CMIN || C3=CMIN)&& CLOSE>=C2 ||C2=CMAX && C3=CMIN && CLOSE>=C1 || C3=CMAX && CLOSE>=C1&& CLOSE>=C2,C1,CLOSE,COLORRED,1);STICKLINE(CLOSE=CMAX && C1=CMIN,C2,CLOSE,COLORRED,1);STICKLINE(CLOSE=CMIN && (C1<C2 || C1<C3) || C1=CMIN && (C2=CMAX || C3=CMAX) && CLOSE<C2 ||C2=CMIN && C3=CMAX && CLOSE<C1 || C3=CMIN && CLOSE<C1 && CLOSE<C2,C1,CLOSE,COLORLIGHTGREEN,0);STICKLINE(C1=CMAX && CLOSE=CMIN,C2,CLOSE,COLORRED,0);STICKLINE(C1=CMIN && CLOSE>=C2 || (C2=CMIN && C1<=C3 ||C3=CMIN && C1<=C2) && C2<C4 && CLOSE>=C1,C1,C2,COLORLIGHTGREEN,0);STICKLINE(C1=CMAX && CLOSE<C2 || (C2=CMAX && C1>C3 ||C3=CMAX && C1>C2) && C2>=C4 && CLOSE<C1,C1,C2,COLORLIGHTGREEN,1);LL:=MIN1(C1,C2,C);T:=BARSLAST(EVERY(LL=REF(LL,1),1))+1;LLL:=VALUEWHEN(EVERY(LL=REF(LL,1),1),LL);A1:BACKSET(ISLASTBAR&&BARSLAST(CROSS(B,D))<BARSLAST(CROSS(D,B)),BARSLAST(CROSS(B,D))+1),NODRAW;DRAWSL(A1=1&&T,LLL,0,-T,0,RGB(255,166,255));TT:=BARSLAST(EVERY(LL=REF(LL,1),1)&&CROSS(B,D))+1;TTT:=BACKSET(A1=1&&T,TT+1);CROSS(TTT,0.5),ICON(0,'ICO4');HH:=MAX1(C1,C2,C);T1:=BARSLAST(EVERY(HH=REF(HH,1),1))+1;HHH:=VALUEWHEN(EVERY(HH=REF(HH,1),1),HH);A11:BACKSET(ISLASTBAR&&BARSLAST(CROSSDOWN(B,D))<BARSLAST(CROSSDOWN(D,B)),BARSLAST(CROSSDOWN(B,D))+1),NODRAW;DRAWSL(A11=1&&T1,HHH,0,-T1,0,RGB(255,166,255));TT1:=BARSLAST(EVERY(HH=REF(HH,1),1)&&CROSSDOWN(B,D))+1;TTT1:=BACKSET(A11=1&&T1,TT1+1);CROSS(TTT1,0.5),ICON(1,'ICO5');

     

  • 文华客服:

    此主题相关图片如下:赢顺截图20160719154458.jpg



    老师帮忙改一下 
    B:MA(C,5); 

  • 文华客服:

    有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友

    可联系技术人员 QQ: 511411198  点击这里给我发消息进行 有偿 编写!不贵!点击查看价格!


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容