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

写个指标代码 [文华财经]

  • 咨询内容:  趋势顶底(博易专用)
    S1:80,COLOR996699,PRECIS0;B1:20,COLORGREEN,PRECIS0;A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COLORRED;B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2;长期线:A+100,COLOR9900FF;短期线:B+100,COLOR888888;中期线:D+100,COLORYELLOW,LINETHICK2;见顶:(REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线),PRECIS0;顶部区域:(中期线<REF(中期线,1) AND REF(中期线,1)>80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5 AND 短期线<中期线 AND 短期线<长期线+4,PRECIS0;顶部:=FILTER(顶部区域,4);底部区域:(长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1))) OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1),PRECIS0;STICKLINE(顶部,98,103,20,1),COLORRED;STICKLINE(底部区域,-4,0,22,0),COLORGREEN;STICKLINE(底部区域,40,44,22,0),COLORGREEN;低位金叉:长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线>中期线 AND (REF(短期线,1)<5 OR REF(短期线,2)<5) AND (中期线>=长期线 OR REF(短期线,1)<1),PRECIS0;PARTLINE(中期线>REF(中期线,1),中期线),COLORMAGENTA,LINETHICK2;PARTLINE(长期线<=REF(长期线,1),长期线),COLORFFFF00,LINETHICK1;STICKLINE(低位金叉,0,4,11,0 ),COLORRED;S0:10,COLORCC6633,LINETHICK2,PRECIS0;B0:90,COLOR9966BB,LINETHICK2,PRECIS0;查看更多精彩内容请进论坛首页将本文分享至:||||||将文本:生成长微博回复 | 引用 | 收藏 | 复制链接 | 举报   1楼:胜者无招 发表于:[2009-09-15 16:00:38][查看资料] [发送纸条] [博客] [微博]趋势顶底(通达信用)
    S1:80,COLOR996699,;B1:20,COLORGREEN,;A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COLORRED;B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2;长期线:A+100,COLOR9900FF;短期线:B+100,COLOR888888;中期线:D+100,COLORYELLOW,LINETHICK2;见顶:((REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线))*10,;顶部区域:((中期线<REF(中期线,1) AND REF(中期线,1)>80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5 AND 短期线<中期线 AND 短期线<长期线+4)*10;顶部:=FILTER(顶部区域,4);底部区域:((长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1))) OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1))*10,;STICKLINE(顶部,98,103,20,1),COLORRED;
    STICKLINE(底部区域,40,44,22,0),COLORGREEN;低位金叉:长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线>中期线 AND (REF(短期线,1)<5 OR REF(短期线,2)<5) AND (中期线>=长期线 OR REF(短期线,1)<1),;IF(中期线>REF(中期线,1),中期线,DRAWNULL),COLORMAGENTA,LINETHICK2;IF(长期线<=REF(长期线,1),长期线,DRAWNULL),COLORFFFF00,LINETHICK1;STICKLINE(低位金叉,0,4,11,0 ),COLORRED;S0:10,COLORCC6633,LINETHICK2,;B0:90,COLOR9966BB,LINETHICK2,;回复 | 引用 | 举报   2楼:胜者无招 发表于:[2009-09-15 16:01:40][查看资料] [发送纸条] [博客] [微博]趋势顶底(通达信用二)

    S1:80;B1:20;A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COLORRED;B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2;长期线:A+100,COLOR9900FF;短期线:B+100,COLOR888888;中期线:D+100,COLORYELLOW,LINETHICK2;见顶:(REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线);顶部区域:(中期线<REF(中期线,1) AND REF(中期线,1)>80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5 AND 短期线<中期线 AND 短期线<长期线+4;顶部:=FILTER(顶部区域,4);底部区域:(长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1))) OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1);STICKLINE(顶部,98,103,5,1),COLORRED;STICKLINE(底部区域,-4,0,3,1),COLORGREEN;低位金叉:长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线>中期线 AND (REF(短期线,1)<5 OR REF(短期线,2)<5) AND (中期线>=长期线 OR REF(短期线,1)<1);PA1:IF(中期线>REF(中期线,1),中期线,DRAWNULL),COLORMAGENTA,LINETHICK3;PA2:IF(长期线>REF(长期线,1),长期线,DRAWNULL),COLORFFFF00,LINETHICK2;STICKLINE(低位金叉,0,4,11,0 ),COLORRED;S0:10,COLORCC6633,LINETHICK2;B0:90,COLOR9966BB,LINETHICK2;回复 | 引用 | 举报   3楼:胜者无招 发表于:[2009-09-15 16:02:45][查看资料] [发送纸条] [博客] [微博]趋势顶底(飞狐用)
    S1:80,COLOR996699,;B1:20,COLORGREEN,;A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COLORRED;B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2;长期线:A+100,COLOR9900FF;短期线:B+100,COLOR888888;中期线:D+100,COLORYELLOW,LINETHICK2;见顶:(REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线),;顶部区域:(中期线<REF(中期线,1) AND REF(中期线,1)>80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5 AND 短期线<中期线 AND 短期线<长期线+4,;顶部:=FILTER(顶部区域,4);底部区域:(长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1))) OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1),;STICKLINE(顶部,98,103,20,1),COLORRED;STICKLINE(底部区域,-4,0,22,0),COLORGREEN;//STICKLINE(底部区域,40,44,22,0),COLORGREEN;低位金叉:长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线>中期线 AND (REF(短期线,1)<5 OR REF(短期线,2)<5) AND (中期线>=长期线 OR REF(短期线,1)<1),;PARTLINE(中期线>REF(中期线,1),中期线),COLORMAGENTA,LINETHICK2;PARTLINE(长期线<=REF(长期线,1),长期线),COLORFFFF00,LINETHICK1;STICKLINE(低位金叉,0,4,11,0 ),COLORRED;S0:10,COLORCC6633,LINETHICK2,;B0:90,COLOR9966BB,LINETHICK2,;

     

  • 文华技术人员:

    这样编写。

    S1:80,COLOR996699,PRECIS0;
    B1:20,COLORGREEN,PRECIS0;
    A:=MA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),19),COLORRED;
    B:=-100*(HHV(HIGH,14)-CLOSE)/(HHV(HIGH,14)-LLV(LOW,14));
    D:=EMA(-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34)),4),LINETHICK2;
    长期线:A+100,COLOR9900FF;
    短期线:B+100,COLOR888888;
    中期线:D+100,COLORYELLOW,LINETHICK2;
    见顶:(REF(中期线,1)>85 AND REF(短期线,1)>85 AND REF(长期线,1)>65) AND CROSS(长期线,短期线),PRECIS0;
    顶部区域:(中期线<REF(中期线,1) AND REF(中期线,1)>80) AND (REF(短期线,1)>95 OR REF(短期线,2)>95 ) AND 长期线>60 AND 短期线<83.5 AND 短期线<中期线 AND 短期线<长期线+4,PRECIS0;
    顶部:=FILTER(顶部区域,4);
    底部区域:(长期线<12 AND 中期线<8 AND (短期线<7.2 OR REF(短期线,1)<5) AND (中期线>REF(中期线,1) OR 短期线>REF(短期线,1))) OR (长期线<8 AND 中期线<7 AND 短期线<15 AND 短期线>REF(短期线,1)) OR (长期线<10 AND 中期线<7 AND 短期线<1),PRECIS0;
    STICKLINE1(顶部,98,103,20,1),COLORRED;
    STICKLINE1(底部区域,-4,0,22,0),COLORGREEN;
    STICKLINE1(底部区域,40,44,22,0),COLORGREEN;
    低位金叉:长期线<15 AND REF(长期线,1)<15 AND 中期线<18 AND 短期线>REF(短期线,1) AND CROSS(短期线,长期线) AND 短期线>中期线 AND (REF(短期线,1)<5 OR REF(短期线,2)<5) AND (中期线>=长期线 OR REF(短期线,1)<1),PRECIS0;
    PARTLINE1(中期线>REF(中期线,1),中期线),COLORMAGENTA,LINETHICK2;
    PARTLINE1(长期线<=REF(长期线,1),长期线),COLORFFFF00,LINETHICK1;
    STICKLINE1(低位金叉,0,4,11,0 ),COLORRED;
    S0:10,COLORCC6633,LINETHICK2,PRECIS0;
    B0:90,COLOR9966BB,LINETHICK2,PRECIS0;

     

     

 

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

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


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

相关文章

    没有相关内容