: | : | :期货量化学习 | :期货量化 |
返回列表 发帖

[文华源码] 博弈大师指标改成文华财经[文华财经公式]

[文华源码] 博弈大师指标改成文华财经[文华财经公式]

  • 咨询内容:以下为博易指标源码  麻烦改编成  文华财经
    LC:=REF(CLOSE,1);
    RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
    VARB:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
    VARC:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;
    VARD:=BARSCOUNT(CLOSE);
    底部初显:(VARB< 20 AND VARC< 25 AND VARD> 50)*30,LINETHICK2, COLORFF9933;
    LK:EMA( (CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2),LINETHICK3 ,COLORRED;
    LD:EMA( (CLOSE-MA(CLOSE,10))/MA(CLOSE,10)*480,10),LINETHICK3 ,COLORGREEN;
    DRAWTEXT(CROSS(LK,LD) AND LK<-10,-20,'要反弹'),COLORYELLOW;  
    DRAWICON(CROSS(LK,LD) AND LK<-10 AND LD>REF(LD,1)OR CROSS(LK,LD) AND LD<-35 ,-15,1);
    MAV:=(2*C+H+L)/4;
    VAR1:=LLV(LOW,4);
    VAR2:=HHV(HIGH,7);
    SK:EMA((MAV-VAR1)/(VAR2-VAR1)*100,13);
    SD:EMA(0.667*REF(SK,1)+0.333*SK,2);
    DRAWTEXT(CROSS(SK,SD),SK,'多 '),COLORRED;
    DRAWTEXT(CROSS(SD,SK),SD,'空 '),COLORGREEN;

    DIR:=ABS(CLOSE-REF(CLOSE,10));
    VIR:=SUM(ABS(CLOSE-REF(CLOSE,1)),10);
    ER:=DIR/VIR;
    CS:=ER*(2/3-2/31)+2/31;
    CQ:=CS*CS;
    AMA:DMA(CLOSE,CQ),COLORGREEN,LINETHICK0;
    持股:(CLOSE>AMA),COLORGREEN;
    持币:(CLOSE<AMA),COLORRED;
    STICKLINE(CLOSE<AMA,0,2,8,0),COLORRED;
    STICKLINE(CLOSE>AMA,0,2,8,0),COLORGREEN;

    {个股15分钟}

    A15:=MAX(MA(C,5),MA(C,10));
    B15:=MIN(MA(C,5),MA(C,10));
    STICKLINE(C>A15,-2,-1,4,0),COLORGREEN;
    STICKLINE(C<B15,-2,-1,4,0),COLORRED;
    STICKLINE(A15>=C AND C>=B15,-2,-1,4,0),COLORYELLOW;
    {个股30分钟}
    A30:=MAX(MA(C,10),MA(C,20));
    B30:=MIN(MA(C,10),MA(C,20));
    STICKLINE(C>A30,-4,-3,4,0),COLORGREEN;
    STICKLINE(C<B30,-4,-3,4,0),COLORRED;
    STICKLINE(A30>=C AND C>=B30,-4,-3,4,0),COLORYELLOW;

    {个股60分钟}
    A60:=MAX(MA(C,20),MA(C,28));
    B60:=MIN(MA(C,20),MA(C,28));
    STICKLINE(C>A60,-6,-5,4,0),COLORGREEN;
    STICKLINE(C<B60,-6,-5,4,0),COLORRED;
    STICKLINE(A60>=C AND C>=B60,-6,-5,4,0),COLORYELLOW;
  • 客服人员回复:
    为您改写如下:

  • A15:=MAX(MA(C,5),MA(C,10));
    B15:=MIN(MA(C,5),MA(C,10));
    STICKLINE(C>A15,-2,-1,COLORGREEN,0);
    STICKLINE(C<B15,-2,-1,COLORRED,0);
    STICKLINE(A15>=C AND C>=B15,-2,-1,COLORYELLOW,0);

    A30:=MAX(MA(C,10),MA(C,20));
    B30:=MIN(MA(C,10),MA(C,20));
    STICKLINE(C>A30,-4,-3,COLORGREEN,0);
    STICKLINE(C<B30,-4,-3,COLORRED,0);
    STICKLINE(A30>=C AND C>=B30,-4,-3,COLORYELLOW,0);


    A60:=MAX(MA(C,20),MA(C,28));
    B60:=MIN(MA(C,20),MA(C,28));
    STICKLINE(C>A60,-6,-5,COLORGREEN,0);
    STICKLINE(C<B60,-6,-5,COLORRED,0);
    STICKLINE(A60>=C AND C>=B60,-6,-5,COLORYELLOW,0);
    LC:=REF(CLOSE,1);
    RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
    VARB:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
    VARC:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;
    VARD:=BARSCOUNT(CLOSE);
    DBCX:(VARB< 20 AND VARC< 25 AND VARD> 50)*30,COLORBLUE;
    LK:EMA((CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*480,2),COLORRED;
    LD:EMA((CLOSE-MA(CLOSE,10))/MA(CLOSE,10)*480,10),COLORGREEN;
    DRAWTEXT(CROSS(LK,LD) AND LK<-10,-20,'YFT'),COLORYELLOW;  
    DRAWICON(CROSS(LK,LD)&&LK<-10 &&LD>REF(LD,1)||CROSS(LK,LD)&&LD<-35 ,-15,'ICO1');
    MAV:=(2*C+H+L)/4;
    VAR1:=LLV(LOW,4);
    VAR2:=HHV(HIGH,7);
    SKK:EMA((MAV-VAR1)/(VAR2-VAR1)*100,13);
    SD:EMA(0.667*REF(SK,1)+0.333*SKK,2);
    DRAWTEXT(CROSS(SK,SD),SK,'多');
    DRAWTEXT(CROSS(SD,SK),SD,'空');

    模型仅供参考

论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
 
期货论坛 - 版权/免责声明   1.本站发布源码(包括函数、指标、策略等)均属开放源码,用意在于让使用者学习程序化语法撰写,使用者可以任意修改语法內容并调整参数。仅限用于个人学习使用,请勿转载、滥用,严禁私自连接实盘账户交易
  2.本站发布资讯(包括文章、视频、历史记录、教材、评论、资讯、交易方案等)均系转载自网络主流媒体,内容仅为作者当日个人观点,本网转载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。本网不对该类信息或数据做任何保证。不对您构成任何投资建议,不能依靠信息而取代自身独立判断,不对因使用本篇文章所诉信息或观点等导致的损失承担任何责任。
  3.本站发布资源(包括书籍、杂志、文档、软件等)均从互联网搜索而来,仅供个人免费交流学习,不可用作商业用途,本站不对显示的内容承担任何责任。请在下载后24小时内删除。如果喜欢,请购买正版,谢谢合作!
  4.龙听期货论坛原创文章属本网版权作品,转载须注明来源“龙听期货论坛”,违者本网将保留追究其相关法律责任的权力。本论坛除发布原创文章外,亦致力于优秀财经文章的交流分享,部分文章推送时若未能及时与原作者取得联系并涉及版权问题时,请及时联系删除。联系方式:http://www.qhlt.cn/thread-262-1-1.html
如何访问权限为100/255贴子:/thread-37840-1-1.html;注册后仍无法回复:/thread-23-1-1.html;微信/QQ群:/thread-262-1-1.html;网盘链接失效解决办法:/thread-93307-1-1.html

厉害

TOP

謝謝分享

TOP

返回列表