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

这个能改吗 谢谢大大 [文华财经]

  • 咨询内容:

    B1:=CLOSE[1];B2:=CLOSE[2];
    SS:=IF(CLOSE>CLOSE[1] AND CLOSE[1]>=CLOSE[2],1,IF(CLOSE<CLOSE[1] AND CLOSE[1]<=CLOSE[2],-1,IF(CLOSE>CLOSE[2] AND CLOSE[2] >CLOSE[1],2,IF(CLOSE<CLOSE[2] AND CLOSE[2]<CLOSE[1],-2,0))));


    SM:=IF(CLOSE[SS]<>0,CLOSE[SS],IF(CLOSE[SS-1]<>0,CLOSE[SS-1],IF(CLOSE[SS-2]<>0,CLOSE[SS-2],IF(CLOSE[SS-3]<>0,CLOSE[SS-3],IF (CLOSE[SS-4]<>0,CLOSE[SS-4],IF(CLOSE[SS-5]<>0,CLOSE[SS-4],0))))));

    TOW1:=IF(CLOSE>CLOSE[1], CLOSE,CLOSE[1]),POINTDOT,colorwhite;
    tow2:=IF((SS=-1 OR SS=-2) AND SM>0, B2,TOW1),POINTDOT,colorwhite;
    TOWER:IF(tow1>tow2, tow1,TOW2),POINTDOT,colorgray;

    STICKLINE(CLOSE>=REF(C,1),CLOSE,REF(C,1),9,1),colorred;
    STICKLINE(CLOSE<REF(C,1),CLOSE,REF(C,1),9,0),colorgreen;
    STICKLINE(REF(C,1)>=REF(C,2) AND CLOSE<REF(C,1),REF(C,1),MAX(REF(C,2),CLOSE),9,1),colorred;
    STICKLINE(REF(C,1)<REF(C,2) AND CLOSE>=REF(C,1),REF(C,1),MIN(REF(C,2),CLOSE),9,0),colorgreen;

     

  • 文华技术人员:  

     B1:=REF(C,1);
    B2:=REF(C,2);
    SS:=IFELSE(CLOSE>REF(C,1) AND REF(C,1)>=REF(C,2),1,IFELSE(CLOSE<REF(C,1) AND REF(C,1)<=REF(C,2),-1,IFELSE(CLOSE>REF(C,2) AND REF(C,2) >REF(C,1),2,IFELSE(CLOSE<REF(C,2) AND REF(C,2)<REF(C,1),-2,0))));
    SM:=IFELSE(REF(C,SS)<>0,REF(C,SS),IFELSE(REF(C,SS-1)<>0,REF(C,SS-1),IFELSE(REF(C,SS-2)<>0,REF(C,SS-2),IFELSE(REF(C,SS-3)<>0,REF(C,SS-3),IFELSE (REF(C,SS-4)<>0,REF(C,SS-4),IFELSE(REF(C,SS-5)<>0,REF(C,SS-4),0))))));
    TOW1:=IFELSE(CLOSE>REF(C,1), CLOSE,REF(C,1)),COLORWHITE;
    TOW2:=IFELSE((SS=-1 OR SS=-2) AND SM>0, B2,TOW1),COLORWHITE;
    TOWER1:IFELSE(TOW1>TOW2, TOW1,TOW2),COLORGREEN;
    STICKLINE(CLOSE>=REF(C,1),CLOSE,REF(C,1),9,1),COLORRED;
    STICKLINE(CLOSE<REF(C,1),CLOSE,REF(C,1),9,0),COLORGREEN;
    STICKLINE(REF(C,1)>=REF(C,2) AND CLOSE<REF(C,1),REF(C,1),MAX(REF(C,2),CLOSE),9,1),COLORRED;
    STICKLINE(REF(C,1)<REF(C,2) AND CLOSE>=REF(C,1),REF(C,1),MIN(REF(C,2),CLOSE),9,0),COLORGREEN;

    模型仅供参考

     

  • 文华客服:

    指标没错 为什么加载出来都是黑白的.............

     

  • 网友回复:

     B1:=REF(C,1);
    B2:=REF(C,2);
    SS:=IFELSE(CLOSE>REF(C,1) AND REF(C,1)>=REF(C,2),1,IFELSE(CLOSE<REF(C,1) AND REF(C,1)<=REF(C,2),-1,IFELSE(CLOSE>REF(C,2) AND REF(C,2) >REF(C,1),2,IFELSE(CLOSE<REF(C,2) AND REF(C,2)<REF(C,1),-2,0))));
    SM:=IFELSE(REF(C,SS)<>0,REF(C,SS),IFELSE(REF(C,SS-1)<>0,REF(C,SS-1),IFELSE(REF(C,SS-2)<>0,REF(C,SS-2),IFELSE(REF(C,SS-3)<>0,REF(C,SS-3),IFELSE (REF(C,SS-4)<>0,REF(C,SS-4),IFELSE(REF(C,SS-5)<>0,REF(C,SS-4),0))))));
    TOW1:=IFELSE(CLOSE>REF(C,1), CLOSE,REF(C,1)),COLORWHITE;
    TOW2:=IFELSE((SS=-1 OR SS=-2) AND SM>0, B2,TOW1),COLORWHITE;
    TOWER1:IFELSE(TOW1>TOW2, TOW1,TOW2),COLORGREEN;
    STICKLINE(CLOSE>=REF(C,1),CLOSE,REF(C,1),COLORRED,1);
    STICKLINE(CLOSE<REF(C,1),CLOSE,REF(C,1),COLORGREEN,0);
    STICKLINE(REF(C,1)>=REF(C,2) AND CLOSE<REF(C,1),REF(C,1),MAX(REF(C,2),CLOSE),COLORRED,1);
    STICKLINE(REF(C,1)<REF(C,2) AND CLOSE>=REF(C,1),REF(C,1),MIN(REF(C,2),CLOSE),COLORGREEN,0);

     

    模型仅供参考


     

  • 网友回复:  版主 这个跟我们使用的宝塔线 有点区别 能帮我改的跟宝塔线一样嘛

 

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

可联系技术人员 QQ: 1145508240  有需要帮忙请点击这里留言!!!进行 有偿 编写!不贵!点击查看价格!


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

相关文章

    没有相关内容