孔雀开花像不像不只孔雀是不是真的开屏
M3:=MA(CLOSE,3);
M10:=MA(CLOSE,10);
DRAWBAND(M10,RGB(0,324,324),M3,RGB(200,96,96));
MA1:=MA(C,1),COLORFFFF00,NODRAW;
MA30:=MA(C,30),COLORFFFF00,NODRAW;
K20:3*MA30-2*MA1,COLOR888888;
K18:2.8*MA30-1.8*MA1,COLOR777777;
K16:2.6*MA30-1.6*MA1,COLOR666666;
K14:2.4*MA30-1.4*MA1,COLOR656565;
K12:2.2*MA30-1.2*MA1,COLOR555555;
K10:2*MA30-1*MA1,COLOR454545;
K8:1.8*MA30-0.8*MA1,COLOR444444;
K6:1.6*MA30-0.6*MA1,COLOR353535;
K4:1.4*MA30-0.4*MA1,COLOR333333;
K1:1.1*MA30-0.1*MA1,COLOR353535,LINETHICK1;
MMV:=EMA(((SLOPE(CLOSE,22) * 20) + CLOSE),55);
MM:=(IF(((PERIOD > 5) AND (PERIOD < 9)),MA(MMV,1),IF((PERIOD = 5), MA(MMV,4),IF((PERIOD = 4),MA(MMV,8),IF((PERIOD = 3),MA(MMV,16), IF((PERIOD = 2),MA(MMV,32),0))))) );
SSL:=EMA(CLOSE,3);
STICKLINE(K1>K20,K20,K1,0,0),COLOR333333;
STICKLINE(K1< K20,K20,K1,0,0),COLOR333333;
X_1:=(C+0.809*H+0.618*L+O/2)/2.927;
MA_5:=MA(X_1,5),LINETHICK3;
SMA_5:=SMA(C,5,1);
SMA_D3:=SMA(H,3,1) ;
SMA_D5:=SMA(H,5,1);
SMA_D7:=SMA(H,7,1);
SMA_D9:=SMA(H,9,1);
SMA_D11:=SMA(H,11,1);
IF(SMA_D3< REF(SMA_D3,1),SMA_D3,DRAWNULL),POINTDOT,COLORFFAA11;
IF(SMA_D5< REF(SMA_D5,1),SMA_D5,DRAWNULL),POINTDOT,COLORFFBB33;
IF(SMA_D7< REF(SMA_D7,1),SMA_D7,DRAWNULL),POINTDOT,COLORFFCC55;
IF(SMA_D9< REF(SMA_D9,1),SMA_D9,DRAWNULL),POINTDOT,COLORFFDD66;
IF(SMA_D11< REF(SMA_D11,1),SMA_D11,DRAWNULL),POINTDOT,COLORFFEE55;
IF(SMA_D3>REF(SMA_D3,1),SMA_D3,DRAWNULL),POINTDOT,COLORFF00FF;
IF(SMA_D5>REF(SMA_D5,1),SMA_D5,DRAWNULL),POINTDOT,COLORFF99FF;
IF(SMA_D7>REF(SMA_D7,1),SMA_D7,DRAWNULL),POINTDOT,COLORFF66FF;
IF(SMA_D9>REF(SMA_D9,1),SMA_D9,DRAWNULL),POINTDOT,COLORFF33FF;
IF(SMA_D11>REF(SMA_D11,1),SMA_D11,DRAWNULL),POINTDOT,COLORFF66FF;
WMA_3: (3*MA_5+2*REF(MA_5,1)+REF(MA_5,2))/(1+2+3),COLOR00AA00,LINETHICK1;
WMA_5: (5*MA_5+4*REF(MA_5,1)+3*REF(MA_5,2)+2*REF(MA_5,3)+REF(MA_5,4))/(5+4+3+2+1),COLOR00BB00,LINETHICK1;
WMA_7: (7*MA_5+6*REF(MA_5,1)+5*REF(MA_5,2)+4*REF(MA_5,3)+3*REF(MA_5,4)+2*REF(MA_5,5)+REF(MA_5,6))/(7+6+5+4+3+2+1),COLOR00CC00,LINETHICK1;
WMA_9: (9*MA_5+8*REF(MA_5,1)+7*REF(MA_5,2)+6*REF(MA_5,3)+5*REF(MA_5,4)+4*REF(MA_5,5)+3*REF(MA_5,6)+2*REF(MA_5,7)+REF(MA_5,8))/(9+8+7+6+5+4+3+2+1),COLOR00DD00,LINETHICK1;
WMA_11: (11*MA_5+10*REF(MA_5,1)+9*REF(MA_5,2)+8*REF(MA_5,3)+7*REF(MA_5,4)+6*REF(MA_5,5)+5*REF(MA_5,6)+4*REF(MA_5,7)+3*REF(MA_5,8)+2*REF(MA_5,9)+REF(MA_5,10))/(11+10+9+8+7+6+5+4+3+2+1),COLOR00EE00,LINETHICK1;
IF(WMA_3>REF(WMA_3,1),WMA_3,DRAWNULL),COLOR0000AA,LINETHICK1;
IF(WMA_5>REF(WMA_5,1),WMA_5,DRAWNULL),COLOR0000BB,LINETHICK1;
IF(WMA_7>REF(WMA_7,1),WMA_7,DRAWNULL),COLOR0000CC,LINETHICK1;
IF(WMA_9>REF(WMA_9,1),WMA_9,DRAWNULL),COLOR0000DD,LINETHICK1;
IF(WMA_11>REF(WMA_11,1),WMA_11,DRAWNULL),COLOR0000EE,LINETHICK1;
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>REF(CLOSE,1),LOW,HIGH,0,0),COLORRED;
STICKLINE(CLOSE>OPEN OR CLOSE=OPEN AND CLOSE>REF(CLOSE,1),OPEN,CLOSE,3,0),COLORRED;
STICKLINE(CLOSE< OPEN OR CLOSE=OPEN AND CLOSE<=REF(CLOSE,1),LOW,HIGH,0,0),COLORFFFF00;
STICKLINE(CLOSE< OPEN OR CLOSE=OPEN AND CLOSE<=REF(CLOSE,1),OPEN,CLOSE,3,0),COLORFFFF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLORFFFF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORFFFF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,1) ,COLORRED;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,1) ,COLORRED;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
M3赋值:收盘价的3日简单移动平均
M10赋值:收盘价的10日简单移动平均
DRAWBAND(M10,RGB(0,324,324),M3,RGB(200,96,96))
MA1赋值:C的1日简单移动平均,COLORFFFF00,NODRAW
MA30赋值:C的30日简单移动平均,COLORFFFF00,NODRAW
输出K20:3*MA30-2*MA1,COLOR888888
输出K18:2.8*MA30-1.8*MA1,COLOR777777
输出K16:2.6*MA30-1.6*MA1,COLOR666666
输出K14:2.4*MA30-1.4*MA1,COLOR656565
输出K12:2.2*MA30-1.2*MA1,COLOR555555
输出K10:2*MA30-1*MA1,COLOR454545
输出K8:1.8*MA30-0.8*MA1,COLOR444444
输出K6:1.6*MA30-0.6*MA1,COLOR353535
输出K4:1.4*MA30-0.4*MA1,COLOR333333
输出K1:1.1*MA30-0.1*MA1,COLOR353535,LINETHICK1
MMV赋值:EMA(((SLOPE(收盘价,22) * 20) + 收盘价),55)
MM赋值:(IF(((PERIOD > 5) AND (PERIOD < 9)),MMV的1日简单移动平均,IF((PERIOD = 5), MMV的4日简单移动平均,IF((PERIOD = 4),MMV的8日简单移动平均,IF((PERIOD = 3),MMV的16日简单移动平均, IF((PERIOD = 2),MMV的32日简单移动平均,0))))) )
SSL赋值:收盘价的3日指数移动平均
当满足条件K1>K20时,在K20和K1之间画柱状线
当满足条件K1< K20时,在K20和K1之间画柱状线
X_1赋值:(C+0.809*H+0.618*L+O/2)/2.927
MA_5赋值:X_1的5日简单移动平均, 线宽为3
_5赋值:C的5日[1日权重]移动平均
_D3赋值:H的3日[1日权重]移动平均
_D5赋值:H的5日[1日权重]移动平均
_D7赋值:H的7日[1日权重]移动平均
_D9赋值:H的9日[1日权重]移动平均
_D11赋值:H的11日[1日权重]移动平均
IF(SMA_D3< 1日前的SMA_D3,SMA_D3,DRAWNULL),POINTDOT,COLORFFAA11
IF(SMA_D5< 1日前的SMA_D5,SMA_D5,DRAWNULL),POINTDOT,COLORFFBB33
IF(SMA_D7< 1日前的SMA_D7,SMA_D7,DRAWNULL),POINTDOT,COLORFFCC55
IF(SMA_D9< 1日前的SMA_D9,SMA_D9,DRAWNULL),POINTDOT,COLORFFDD66
IF(SMA_D11< 1日前的SMA_D11,SMA_D11,DRAWNULL),POINTDOT,COLORFFEE55
IF(SMA_D3>1日前的SMA_D3,SMA_D3,DRAWNULL),POINTDOT,COLORFF00FF
IF(SMA_D5>1日前的SMA_D5,SMA_D5,DRAWNULL),POINTDOT,COLORFF99FF
IF(SMA_D7>1日前的SMA_D7,SMA_D7,DRAWNULL),POINTDOT,COLORFF66FF
IF(SMA_D9>1日前的SMA_D9,SMA_D9,DRAWNULL),POINTDOT,COLORFF33FF
IF(SMA_D11>1日前的SMA_D11,SMA_D11,DRAWNULL),POINTDOT,COLORFF66FF
输出WMA_3: (3*MA_5+2*1日前的MA_5+2日前的MA_5)/(1+2+3),COLOR00AA00,LINETHICK1
W输出MA_5: (5*MA_5+4*1日前的MA_5+3*2日前的MA_5+2*3日前的MA_5+4日前的MA_5)/(5+4+3+2+1),COLOR00BB00,LINETHICK1
输出WMA_7: (7*MA_5+6*1日前的MA_5+5*2日前的MA_5+4*3日前的MA_5+3*4日前的MA_5+2*5日前的MA_5+6日前的MA_5)/(7+6+5+4+3+2+1),COLOR00CC00,LINETHICK1
输出WMA_9: (9*MA_5+8*1日前的MA_5+7*2日前的MA_5+6*3日前的MA_5+5*4日前的MA_5+4*5日前的MA_5+3*6日前的MA_5+2*7日前的MA_5+8日前的MA_5)/(9+8+7+6+5+4+3+2+1),COLOR00DD00,LINETHICK1
输出WMA_11: (11*MA_5+10*1日前的MA_5+9*2日前的MA_5+8*3日前的MA_5+7*4日前的MA_5+6*5日前的MA_5+5*6日前的MA_5+4*7日前的MA_5+3*8日前的MA_5+2*9日前的MA_5+10日前的MA_5)/(11+10+9+8+7+6+5+4+3+2+1),COLOR00EE00,LINETHICK1
IF(WMA_3>1日前的WMA_3,WMA_3,DRAWNULL),COLOR0000AA,LINETHICK1
IF(WMA_5>1日前的WMA_5,WMA_5,DRAWNULL),COLOR0000BB,LINETHICK1
IF(WMA_7>1日前的WMA_7,WMA_7,DRAWNULL),COLOR0000CC,LINETHICK1
IF(WMA_9>1日前的WMA_9,WMA_9,DRAWNULL),COLOR0000DD,LINETHICK1
IF(WMA_11>1日前的WMA_11,WMA_11,DRAWNULL),COLOR0000EE,LINETHICK1
STICKLINE(收盘价>开盘价 OR 收盘价=开盘价 AND 收盘价>1日前的收盘价,最低价,最高价,0,0),画红色
STICKLINE(收盘价>开盘价 OR 收盘价=开盘价 AND 收盘价>1日前的收盘价,开盘价,收盘价,3,0),画红色
STICKLINE(收盘价< 开盘价 OR 收盘价=开盘价 AND 收盘价<=1日前的收盘价,最低价,最高价,0,0),COLORFFFF00
STICKLINE(收盘价< 开盘价 OR 收盘价=开盘价 AND 收盘价<=1日前的收盘价,开盘价,收盘价,3,0),COLORFFFF00
当满足条件开盘价>=收盘价 时,在收盘价 和开盘价之间画柱状线
当满足条件开盘价>=收盘价 时,在收盘价 和开盘价之间画柱状线
当满足条件收盘价>开盘价时,在收盘价和开盘价之间画柱状线
当满足条件收盘价>开盘价时,在收盘价和开盘价之间画柱状线