文华财经期货精准买卖点指标公式大全:多空趋势线,支撑压力实时画线,多空均线转折变色
VAR1:EMA(C,30),COLORWHITE,LINETHICK1;
上翘:IF(VAR1>REF(VAR1,1),VAR1,NULL),COLORRED,LINETHICK2;
下拐:IF(VAR1<REF(VAR1,1),VAR1,NULL),COLORGREEN,LINETHICK2;
VAR2:EMA(C,60),COLORWHITE,LINETHICK1;
上升:IF(VAR2>REF(VAR2,1),VAR2,NULL),COLORRED,LINETHICK2;
下降:IF(VAR2<REF(VAR2,1),VAR2,NULL),COLORGREEN,LINETHICK2;
A:=EMA((EMA(CLOSE,90)+EMA(CLOSE,120)+EMA(CLOSE,250))/3,5);
B:=REF(A,1);
DRAWTEXT(A>B,(A+B)/2,’★’), COLORRED;
DRAWTEXT(A<=B,(A+B)/2,’☆’), COLORGREEN;
影响时长:=60;
实体涨跌幅:=(MAX(CLOSE,OPEN)/MIN(CLOSE,OPEN)-1)*100,NODRAW;
标志性K线:IF(实体涨跌幅=HHV(实体涨跌幅,影响时长),1,0),NODRAW,COLORYELLOW;
影响时间:=BARSLAST(标志性K线)+1,NODRAW;
上轨:IF(BETWEEN(影响时间,1,影响时长),REF(HIGH,影响时间-1),NULL),NODRAW,COLORRED,LINETHICK2;
下轨:IF(BETWEEN(影响时间,1,影响时长),REF(LOW ,影响时间-1),NULL),NODRAW,COLORGREEN,LINETHICK2;
冗余过滤:=BETWEEN(影响时间,2,59),NODRAW;
STICKLINE(上轨,上轨,上轨,12,0),COLORRED,LINETHICK2;
STICKLINE(下轨,下轨,下轨,12,0),COLORGREEN,LINETHICK2;
STICKLINE(标志性K线 AND CLOSE>OPEN,CLOSE,OPEN,8,0),COLORRED;
STICKLINE(标志性K线 AND CLOSE<OPEN,CLOSE,OPEN,8,0),COLORGREEN;