精准预测顶底公式文华期货软件文华财经指标公式源码期货指标.docx
《精准预测顶底公式文华期货软件文华财经指标公式源码期货指标.docx》由会员分享,可在线阅读,更多相关《精准预测顶底公式文华期货软件文华财经指标公式源码期货指标.docx(2页珍藏版)》请在冰豆网上搜索。
DIF1:
=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA1:
=EMA(DIF1,9);
MACD1:
=2*(DIF1-DEA1),STICK;
MACD2:
=EMA(MACD1,3);
STICKLINE(MACD1>MACD2ANDMACD1>0,0,MACD1,1,0),COLORRED;
STICKLINE(MACD1>MACD2ANDMACD1<0,0,MACD1,1,0),COLORWHITE;
STICKLINE(MACD1STICKLINE(MACD1>=0ORMACD1<=0,0,0,50,1),COLORWHITE;
DIF:
DIF1,COLOR33FF33;
DEA:
DEA1,COLORYELLOW;
MACD:
MACD1,NODRAW,COLORMAGENTA;
强:
IF(DIF1>=DEA1,DIF1,NULL),COLORRED,LINETHICK2;
STICKLINE(MACD<=REF(MACD,1)ANDMACD<0,0,MACD,0.8,0),COLORGREEN;
STICKLINE(MACD<=REF(MACD,1)ANDMACD<0,0,MACD,0.8,0),COLORGREEN;
STICKLINE(MACD<=REF(MACD,1)ANDMACD<0,0,MACD,0.8,0),COLORGREEN;
STICKLINE(MACD<=REF(MACD,1)ANDMACD<0,0,MACD,0.8,0),COLORGREEN;
STICKLINE(MACD<=REF(MACD,1)ANDMACD<0,0,MACD,0.8,0),COLORGREEN;
Q_1:
=C-REF(C,1);
Q_2:
=EMA(EMA(Q_1,6),6)/EMA(EMA(ABS(Q_1),6),6);
Q_3:
=CROSS(EMA(C,19),EMA(C,7));
Q_4:
=CROSS(EMA(C,7),EMA(C,19));
Z1:
=L=LLV(L,BARSLAST(Q_3)+1);
Z2:
=LLV(L,BARSLAST(Q_3)+1);
Z3:
=H=HHV(H,BARSLAST(Q_4)+1);
Z4:
=HHV(H,BARSLAST(Q_4)+1);
//VERTLINE(Z1,COLORRED);
//VERTLINE(Z3,COLORYELLOW);
XX1:
=BACKSET(Z1||ISLASTBAR,BARSLAST(Z3)+1);
XX2:
=BACKSET(Z3||ISLASTBAR,BARSLAST(Z1)+1);
AA:
=TRENDLINES(CROSS(XX1=1,0.5)||ISLASTBAR,Z4,CROSS(XX2=1,0.5)||ISLASTBAR,Z2);
BB:
=TRENDLINES(CROSS(XX2=1,0.5)||ISLASTBAR,Z2,CROSS(XX1=1,0.5)||ISLASTBAR,Z4);
ZZ1:
BARSLAST(CROSS(XX1=1,0.5))<=BARSLAST(CROSS(XX2=1,0.5)),NODRAW;
ZZ2:
BARSLAST(CROSS(XX1=1,0.5))>=BARSLAST(CROSS(XX2=1,0.5)),NODRAW;
Q_B:
IF(ZZ1||REF(ZZ1,1),AA,NULL),NODRAW;
Q_A:
IF(ZZ2||REF(ZZ2,1),BB,NULL),NODRAW;
X01:
=LLV(Q_2,2)=LLV(Q_2,7);
X2:
=COUNT(Q_2<0,2);
X3:
=CROSS(Q_2,MA(Q_2,2));
X4:
=REF(Q_B,1)X5:
=Q_A>REF(Q_B,1);
买进:
(X01ANDX2ANDX3)ANDX4ANDX5;
TJ0:
IF(Q_ATJ1:
IF(Q_B//持股:
IF(1,23,0),STICK,COLORRED,LINETHICK3;
STICKLINE(1,0,23,2,0),COLORLIGHTRED;
STICKLINE(Q_B买绝:
=IF(REF(TJ1,1)=0ANDTJ1>=1,80,0),COLORRED,LINETHICK3;
DRAWLINE(买绝=80,0,1,80,COLORCYAN),LINETHICK3;
卖绝:
=IF(REF(TJ0=0&&TJ1=1,1)&&TJ1=0,50,0),COLORCYAN,LINETHICK3;
DRAWLINE(卖绝=50,0,1,50,COLORRED),LINETHICK3;