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

可以把最右侧的数值固定在一个区域间吗? 比如-100 0 100 或者 其他固定数值都可以 [文华财经]

  • 咨询内容: 涨势有效区间2:100,COLORRED;跌势有效区间2:-100,COLORYELLOW;
    VAR1:=EMA(EMA(C,9),9);VAR2:=REF(VAR1,1);控盘:=(VAR1-VAR2)/VAR2*100000;AA:=EMA(控盘,8);DRAWBMP(控盘<0,MA(0+ABS(控盘-REF(控盘,1)),100),'绿.BMP',COLORGREEN;DRAWBMP(控盘>REF(控盘,1) AND 控盘>0,MA(0-ABS(控盘-REF(控盘,1)),100),'红.BMP',COLORRED;DRAWBMP(控盘<REF(控盘,1) AND 控盘>0,MA(0-ABS(控盘-REF(控盘,1)),100),'黄.BMP',COLORYELLOW;STICKLINE1(控盘>AA AND 控盘>0 AND AA>0,控盘,AA,4.5,0),COLOR030163;STICKLINE1(控盘>AA AND 控盘>0 AND AA>0,控盘,AA,3.5,0),COLOR040187;STICKLINE1(控盘>AA AND 控盘>0 AND AA>0,控盘,AA,3,0),COLORRED;STICKLINE1(控盘>AA AND 控盘>0 AND AA>0,控盘,AA,2.5,0),COLORRED;STICKLINE1(控盘>AA AND 控盘>0 AND AA>0,控盘,AA,2,0),COLORRED;STICKLINE1(控盘>AA AND 控盘>0 AND AA>0,控盘,AA,1.5,0),COLORRED;STICKLINE1(控盘>AA AND 控盘>0 AND AA<0,控盘,0,4.5,0),COLOR030163;STICKLINE1(控盘>AA AND 控盘>0 AND AA<0,控盘,0,3.5,0),COLOR040187;STICKLINE1(控盘>AA AND 控盘>0 AND AA<0,控盘,0,3,0),COLORRED;STICKLINE1(控盘>AA AND 控盘>0 AND AA<0,控盘,0,2.5,0),COLORRED;STICKLINE1(控盘>AA AND 控盘>0 AND AA<0,控盘,0,2,0),COLORRED;STICKLINE1(控盘>AA AND 控盘>0 AND AA<0,控盘,0,1.5,0),COLORRED;STICKLINE1(控盘<0 AND AA>控盘 AND AA<0,控盘,AA,4.5,0),COLOR125A05;STICKLINE1(控盘<0 AND AA>控盘  AND AA<0,控盘,AA,3.8,0),COLOR155500;STICKLINE1(控盘<0 AND AA>控盘  AND AA<0,控盘,AA,3.1,0),COLOR208000;STICKLINE1(控盘<0 AND AA>控盘  AND AA<0,控盘,AA,2.4,0),COLOR2BAA00;STICKLINE1(控盘<0 AND AA>控盘  AND AA<0,控盘,AA,1.7,0),COLOR35D500;STICKLINE1(控盘<0 AND AA>控盘 AND AA>0,控盘,0,4.5,0),COLOR125A05;STICKLINE1(控盘<0 AND AA>控盘  AND AA>0,控盘,0,3.8,0),COLOR155500;STICKLINE1(控盘<0 AND AA>控盘  AND AA>0,控盘,0,3.1,0),COLOR208000;STICKLINE1(控盘<0 AND AA>控盘  AND AA>0,控盘,0,2.4,0),COLOR2BAA00;STICKLINE1(控盘<0 AND AA>控盘  AND AA>0,控盘,0,1.7,0),COLOR35D500;STICKLINE1((AA<=0 AND AA>控盘) OR (AA>0 AND AA<控盘),AA,0,4.5,0),COLOR959595;STICKLINE1((AA<=0 AND AA>控盘) OR (AA>0 AND AA<控盘),AA,0,3.8,0),COLORB4B4B4;STICKLINE1((AA<=0 AND AA>控盘) OR (AA>0 AND AA<控盘),AA,0,3.1,0),COLORD0D0D0;STICKLINE1((AA<=0 AND AA>控盘) OR (AA>0 AND AA<控盘),AA,0,2.4,0),COLORF0F0F0;STICKLINE1((AA<=0 AND AA>控盘) OR (AA>0 AND AA<控盘),AA,0,1.7,0),COLORFCFCFC;A10:=CROSS(控盘,0);STICKLINE1((控盘<=0 AND AA<控盘) OR (控盘>0 AND AA>控盘) ,控盘,0,4.5,0),COLOR030163;STICKLINE1((控盘<=0 AND AA<控盘) OR (控盘>0 AND AA>控盘) ,控盘,0,3.8,0),COLORYELLOW;STICKLINE1((控盘<=0 AND AA<控盘) OR (控盘>0 AND AA>控盘),控盘,0,3.1,0),COLORYELLOW;STICKLINE1((控盘<=0 AND AA<控盘) OR (控盘>0 AND AA>控盘) ,控盘,0,2.4,0),COLORYELLOW;STICKLINE1((控盘<=0 AND AA<控盘) OR (控盘>0 AND AA>控盘) ,控盘,0,1.7,0),COLORYELLOW;

     

     来源:程序化99

  • 文华技术人员:  参考;
    涨势有效区间2:100,COLORRED; 跌势有效区间2:-100,COLORYELLOW;
    VAR1:=EMA(EMA(C,9),9); VAR2:=REF(VAR1,1); 控盘:=(VAR1-VAR2)/VAR2*100000; AA:=EMA(控盘,8); DRAWBMP(控盘<0,MA(0+ABS(控盘-REF(控盘,1)),100),'绿.BMP',COLORGREEN; DRAWBMP(控盘>REF(控盘,1) AND 控盘>0,MA(0-ABS(控盘-REF(控盘,1)),100),'红.BMP',COLORRED; DRAWBMP(控盘<REF(控盘,1) AND 控盘>0,MA(0-ABS(控盘-REF(控盘,1)),100),'黄.BMP',COLORYELLOW; STICKLINE1(控盘>AA AND 控盘>0 AND AA>0,控盘,AA,4.5,0),COLOR030163; STICKLINE1(控盘>AA AND 控盘>0 AND AA>0,控盘,AA,3.5,0),COLOR040187; STICKLINE1(控盘>AA AND 控盘>0 AND AA>0,控盘,AA,3,0),COLORRED; STICKLINE1(控盘>AA AND 控盘>0 AND AA>0,控盘,AA,2.5,0),COLORRED; STICKLINE1(控盘>AA AND 控盘>0 AND AA>0,控盘,AA,2,0),COLORRED; STICKLINE1(控盘>AA AND 控盘>0 AND AA>0,控盘,AA,1.5,0),COLORRED; STICKLINE1(控盘>AA AND 控盘>0 AND AA<0,控盘,0,4.5,0),COLOR030163; STICKLINE1(控盘>AA AND 控盘>0 AND AA<0,控盘,0,3.5,0),COLOR040187; STICKLINE1(控盘>AA AND 控盘>0 AND AA<0,控盘,0,3,0),COLORRED; STICKLINE1(控盘>AA AND 控盘>0 AND AA<0,控盘,0,2.5,0),COLORRED; STICKLINE1(控盘>AA AND 控盘>0 AND AA<0,控盘,0,2,0),COLORRED; STICKLINE1(控盘>AA AND 控盘>0 AND AA<0,控盘,0,1.5,0),COLORRED; STICKLINE1(控盘<0 AND AA>控盘 AND AA<0,控盘,AA,4.5,0),COLOR125A05; STICKLINE1(控盘<0 AND AA>控盘  AND AA<0,控盘,AA,3.8,0),COLOR155500; STICKLINE1(控盘<0 AND AA>控盘  AND AA<0,控盘,AA,3.1,0),COLOR208000; STICKLINE1(控盘<0 AND AA>控盘  AND AA<0,控盘,AA,2.4,0),COLOR2BAA00; STICKLINE1(控盘<0 AND AA>控盘  AND AA<0,控盘,AA,1.7,0),COLOR35D500; STICKLINE1(控盘<0 AND AA>控盘 AND AA>0,控盘,0,4.5,0),COLOR125A05; STICKLINE1(控盘<0 AND AA>控盘  AND AA>0,控盘,0,3.8,0),COLOR155500; STICKLINE1(控盘<0 AND AA>控盘  AND AA>0,控盘,0,3.1,0),COLOR208000; STICKLINE1(控盘<0 AND AA>控盘  AND AA>0,控盘,0,2.4,0),COLOR2BAA00; STICKLINE1(控盘<0 AND AA>控盘  AND AA>0,控盘,0,1.7,0),COLOR35D500; STICKLINE1((AA<=0 AND AA>控盘) OR (AA>0 AND AA<控盘),AA,0,4.5,0),COLOR959595; STICKLINE1((AA<=0 AND AA>控盘) OR (AA>0 AND AA<控盘),AA,0,3.8,0),COLORB4B4B4; STICKLINE1((AA<=0 AND AA>控盘) OR (AA>0 AND AA<控盘),AA,0,3.1,0),COLORD0D0D0; STICKLINE1((AA<=0 AND AA>控盘) OR (AA>0 AND AA<控盘),AA,0,2.4,0),COLORF0F0F0; STICKLINE1((AA<=0 AND AA>控盘) OR (AA>0 AND AA<控盘),AA,0,1.7,0),COLORFCFCFC; A10:=CROSS(控盘,0); STICKLINE1((控盘<=0 AND AA<控盘) OR (控盘>0 AND AA>控盘) ,控盘,0,4.5,0),COLOR030163; STICKLINE1((控盘<=0 AND AA<控盘) OR (控盘>0 AND AA>控盘) ,控盘,0,3.8,0),COLORYELLOW; STICKLINE1((控盘<=0 AND AA<控盘) OR (控盘>0 AND AA>控盘),控盘,0,3.1,0),COLORYELLOW; STICKLINE1((控盘<=0 AND AA<控盘) OR (控盘>0 AND AA>控盘) ,控盘,0,2.4,0),COLORYELLOW; STICKLINE1((控盘<=0 AND AA<控盘) OR (控盘>0 AND AA>控盘) ,控盘,0,1.7,0),COLORYELLOW;
    REFLINE:100,0,-100;

 

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

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

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

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


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

相关文章

    没有相关内容