小圆点线变色公式
-
相关简介:编写要求: 股旁网解答: 网友求助: 以下是大智慧股软输出公式语句: CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20); DD:=DMA(CLOSE,CC); 上轨:(1+7/100)*DD,POINTDOT,LINETHICK3,COLORred; 下轨:(1-7/100)*DD,POINTDOT,LINETHICK3,COLORred; 中轨:(上轨+下轨)/2,POINTDOT,LINETHICK3,COLOR0099FF; 需
-
文章来源:股海网作者:股海网发布时间:2016-04-12浏览次数:
编写要求:
股旁网解答:
网友求助:
以下是大智慧股软输出公式语句:
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
上轨:(1+7/100)*DD,POINTDOT,LINETHICK3,COLORred;
下轨:(1-7/100)*DD,POINTDOT,LINETHICK3,COLORred;
中轨:(上轨+下轨)/2,POINTDOT,LINETHICK3,COLOR0099FF;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
上轨:(1+7/100)*DD,POINTDOT,LINETHICK3,COLORred;
下轨:(1-7/100)*DD,POINTDOT,LINETHICK3,COLORred;
中轨:(上轨+下轨)/2,POINTDOT,LINETHICK3,COLOR0099FF;
需要解决的问题:
当 上轨 下轨 中轨的数值 小于 同一数值的上一日数值时,均用绿色输出,请问如何解决?谢谢!
解答如下:
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
上轨:=(1+7/100)*DD;
下轨:=(1-7/100)*DD;
中轨:=(上轨+下轨)/2;
PARTLINE(上轨,上轨>REF(上轨,1),rgb(255,0,0),上轨<REF(上轨,1),rgb(0,255,0)),POINTDOT,LINETHICK3;
PARTLINE(下轨,下轨>REF(下轨,1),rgb(255,0,0),下轨<REF(下轨,1),rgb(0,255,0)),POINTDOT,LINETHICK3;
PARTLINE(中轨,中轨>REF(中轨,1),rgb(255,0,0),中轨<REF(中轨,1),rgb(0,255,0)),POINTDOT,LINETHICK3;
DD:=DMA(CLOSE,CC);
上轨:=(1+7/100)*DD;
下轨:=(1-7/100)*DD;
中轨:=(上轨+下轨)/2;
PARTLINE(上轨,上轨>REF(上轨,1),rgb(255,0,0),上轨<REF(上轨,1),rgb(0,255,0)),POINTDOT,LINETHICK3;
PARTLINE(下轨,下轨>REF(下轨,1),rgb(255,0,0),下轨<REF(下轨,1),rgb(0,255,0)),POINTDOT,LINETHICK3;
PARTLINE(中轨,中轨>REF(中轨,1),rgb(255,0,0),中轨<REF(中轨,1),rgb(0,255,0)),POINTDOT,LINETHICK3;
上一篇:涨停板后第一次回抽20日均线公式
下一篇:低开收阳指标