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

以现价向历史做成交量加权均价线 [文华财经]

  • 咨询内容:  以最新价为起点,向历史数30根K画30根K均价线,
    以最新价为起点,向历史数60根K画60根K均价线,
    以最新价为起点,向历史数120根K画120根K均价线,
    以最新价为起点,向历史数250根K画250根K均价线,

    以最新价为起点,向历史数500根K画500根K均价线,
    以最新价为起点,向历史数1000根K画1000根K均价线,

    麻烦老师

     

     来源:程序化99

  • 文华技术人员: 参考:
    DRAWSL(ISLASTBAR,SUM(AVPRICE*V,30)/SUM(V,30),0,-30,0,COLORYELLOW); DRAWSL(ISLASTBAR,SUM(AVPRICE*V,60)/SUM(V,60),0,-60,0,COLORYELLOW); DRAWSL(ISLASTBAR,SUM(AVPRICE*V,120)/SUM(V,120),0,-120,0,COLORYELLOW); DRAWSL(ISLASTBAR,SUM(AVPRICE*V,250)/SUM(V,250),0,-250,0,COLORYELLOW); DRAWSL(ISLASTBAR,SUM(AVPRICE*V,500)/SUM(V,500),0,-500,0,COLORYELLOW); DRAWSL(ISLASTBAR,SUM(AVPRICE*V,1000)/SUM(V,1000),0,-1000,0,COLORYELLOW);

     

     来源: WWW.CXH99.COM

  • 文华客服:  齐老师,1楼是要往回写  均价线,不是直线
    麻烦老师改下,再在各自均价线的最左端标注 收盘价在线上线下的K线根数。

     

  • 网友回复:  参考:
    CUR:=DATACOUNT-BARPOS+1,NODRAW;
    S30:IF(CUR<=30,SUM(AVPRICE*V,BARSLAST(CUR=30)+1)/SUM(V,BARSLAST(CUR=30)+1),NULL); S60:IF(CUR<=60,SUM(AVPRICE*V,BARSLAST(CUR=60)+1)/SUM(V,BARSLAST(CUR=60)+1),NULL); S120:IF(CUR<=120,SUM(AVPRICE*V,BARSLAST(CUR=120)+1)/SUM(V,BARSLAST(CUR=120)+1),NULL); S250:IF(CUR<=250,SUM(AVPRICE*V,BARSLAST(CUR=250)+1)/SUM(V,BARSLAST(CUR=250)+1),NULL); S500:IF(CUR<=500,SUM(AVPRICE*V,BARSLAST(CUR=500)+1)/SUM(V,BARSLAST(CUR=500)+1),NULL); S1000:IF(CUR<=1000,SUM(AVPRICE*V,BARSLAST(CUR=1000)+1)/SUM(V,BARSLAST(CUR=1000)+1),NULL);
    DRAWNUMBER(CUR=30,S30,REFX1(COUNT(C>S30,30),10000),0,COLORYELLOW),VALIGN2; DRAWNUMBER(CUR=30,S30,REFX1(COUNT(C<S30,30),10000),0,COLORGREEN),VALIGN0;
    DRAWNUMBER(CUR=60,S60,REFX1(COUNT(C>S60,60),10000),0,COLORYELLOW),VALIGN2; DRAWNUMBER(CUR=60,S60,REFX1(COUNT(C<S60,60),10000),0,COLORGREEN),VALIGN0;
    DRAWNUMBER(CUR=120,S120,REFX1(COUNT(C>S120,120),10000),0,COLORYELLOW),VALIGN2; DRAWNUMBER(CUR=120,S120,REFX1(COUNT(C<S120,120),10000),0,COLORGREEN),VALIGN0;
    DRAWNUMBER(CUR=250,S250,REFX1(COUNT(C>S250,250),10000),0,COLORYELLOW),VALIGN2; DRAWNUMBER(CUR=250,S250,REFX1(COUNT(C<S250,250),10000),0,COLORGREEN),VALIGN0;
    DRAWNUMBER(CUR=500,S500,REFX1(COUNT(C>S500,500),10000),0,COLORYELLOW),VALIGN2; DRAWNUMBER(CUR=500,S500,REFX1(COUNT(C<S500,500),10000),0,COLORGREEN),VALIGN0;
    DRAWNUMBER(CUR=1000,S1000,REFX1(COUNT(C>S1000,1000),10000),0,COLORYELLOW),VALIGN2; DRAWNUMBER(CUR=1000,S1000,REFX1(COUNT(C<S1000,1000),10000),0,COLORGREEN),VALIGN0;

     

  • 网友回复: 不是这样的,将4楼倒过来,所有均价线以最新价为起点,往历史数数作均价线。均价线向左边发散。
    4楼是以历史为起点,向右作均价线
     

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信号:cxh99cxh99  进行 有偿收费 编写!

怎么收费,代编流程等详情请点击阅读!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)


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

相关文章

    没有相关内容