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

添加条件标注文字 [文华财经]

  • 咨询内容:  老师:我想加个条件,在出现第一个 红(绿)柱后,第二根  K 线的收盘价  大于(小于)前  k 线的收盘价时,标注 “ 买(卖)‘’,谢谢!!!AA10:=MA(C,10);BB10:=ATAN((AA10-REF(AA10,1)))*180/3.1416;STICKLINE1(BB10>1 AND AA10>REF(AA10,1), AA10,REF(AA10,1),5,0),COLORRED;STICKLINE1(BB10<1 AND AA10<REF(AA10,1), AA10,REF(AA10,1),5,0),COLORGREEN;N:=BARSLAST(CROSS(BB10>1 AND AA10>REF(AA10,1),0.5))+1;M:=BARSLAST(CROSS(BB10<1 AND AA10<REF(AA10,1),0.5))+1;
     

     

     来源:程序化99

  • 文华技术人员:  参考:
    AA10:=MA(C,10); BB10:=ATAN((AA10-REF(AA10,1)))*180/3.1416; STICKLINE1(BB10>1 AND AA10>REF(AA10,1), AA10,REF(AA10,1),5,0),COLORRED; STICKLINE1(BB10<1 AND AA10<REF(AA10,1), AA10,REF(AA10,1),5,0),COLORGREEN; N:=BARSLAST(CROSS(BB10>1 AND AA10>REF(AA10,1),0.5))+1; M:=BARSLAST(CROSS(BB10<1 AND AA10<REF(AA10,1),0.5))+1; DRAWTEXT(REF(CROSS(BB10>1 AND AA10>REF(AA10,1),0.5),1)&&C>REF(C,1),H,''; DRAWTEXT(REF(CROSS(BB10<1 AND AA10<REF(AA10,1),0.5),1)&&C<REF(C,1),H,'';

     

     来源: WWW.CXH99.COM

  • 文华客服:  谢谢 来源: WWW.CXH99.COM
  • 文华客服:老师:如果  K线上穿(下穿) 来源: WWW.CXH99.COM
  • 文华客服:BB10 来源: WWW.CXH99.COM
  • 文华客服:,后,第二根  来源: WWW.CXH99.COM
  • 文华客服: K 线的收盘价  来源: WWW.CXH99.COM
  • 文华客服: 大于(小于)前  来源: WWW.CXH99.COM
  • 文华客服: k 线的收盘价时,标注 “ 买(卖)‘’,怎么写,  谢谢!!

     

  • 网友回复:

    参考:

     

    AA10:=MA(C,10);
    BB10:=ATAN((AA10-REF(AA10,1)))*180/3.1416;
    STICKLINE1(BB10>1 AND AA10>REF(AA10,1), AA10,REF(AA10,1),5,0),COLORRED;
    STICKLINE1(BB10<1 AND AA10<REF(AA10,1), AA10,REF(AA10,1),5,0),COLORGREEN;
    N:=BARSLAST(CROSS(BB10>1 AND AA10>REF(AA10,1),0.5))+1;
    M:=BARSLAST(CROSS(BB10<1 AND AA10<REF(AA10,1),0.5))+1;

    DRAWTEXT(REF(CROSS(C,BB10),1)&&C>REF(C,1),H,'';
    DRAWTEXT(REF(CROSSDOWN(C,BB10),1)&&C<REF(C,1),H,'';

     

  • 网友回复:  老师:没有显示了

 

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

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


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

相关文章

    没有相关内容