文华期货多空红绿柱波段买卖点提示幅图指标公式源码:
VAR1:=((CLOSE - LLV(LOW,60))/(HHV(HIGH,60) - LLV(LOW,60)))*(100);
VAR2:=REVERSE(VAR1);
VAR3:=SMA(VAR1,6,1);
K:=SMA(VAR3,4,1);
D:=SMA(K,4,1);
DRAWTEXT(CROSS(K,D) AND MA(CLOSE,5) CLOSE,D, 买 ),COLORWHITE;
DRAWTEXT(CROSS(D,K) AND MA(CLOSE,5) CLOSE,D, 卖 ),COLORWHITE;
STICKLINE1((K = D),K,D,3.3,0),COLORAA0000;
STICKLINE1((K = D),K,D,2.60,0),COLORAA0000;
STICKLINE1((K = D),K,D,1.90,0),COLORCC0000;
STICKLINE1((K = D),K,D,1.1,0),COLOREE0000;
STICKLINE1((K = D),K,D,2,0),COLORRED;
STICKLINE1((K = D),K,D,1.5,0),COLORRED;
STICKLINE1((K = D),K,D,3.2,0),COLOR008800;
STICKLINE1((K = D),K,D,2.6,0),COLOR009900;
STICKLINE1((K = D),K,D,1.90,0),COLOR00AA00;
STICKLINE1((K = D),K,D,1.1,0),COLOR00BB00;
STICKLINE1((K = D),K,D,2,0),COLOR00CC00;
STICKLINE1((K = D),K,D,1.50,0),COLOR00DD00;
MA11:EMA(VAR3,8),COLORWHITE ;