/*
L4:=LZ OR ISLASTBAR OR BARSCOUNT(C)=1;
X4:=REF(BARSLAST(L4),1)+1;
F4:=BACKSET(L4 AND COUNT(HH,X4)>0,HHVBARS(IF(HH,H,-POW(10,20)),X4));
G4:=F4>REF(F4,1);
I4:=BACKSET(G4,2);
HZ:=I4>REF(I4,1);
{长期高点,也可供引用}
K1:=BACKSET(ISLASTBAR,MIN(BARSLAST(HZ),BARSLAST(LZ))+1);
K2:=K1>REF(K1,1);
UU:=BACKSET(ISLASTBAR,BARSLAST(LD)+1);
VV:=UU>REF(UU,1);
WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);
XX:=WW>REF(WW,1);
UU2:=BACKSET(ISLASTBAR,BARSLAST(HD)+1);
VV2:=UU2>REF(UU2,1);
WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);
XX2:=WW2>REF(WW2,1);
前一低:REF(L,BARSLAST(VV)),COLOR99FF66,LINETHICK1;
前二低:REF(L,BARSLAST(XX)),COLOR99FF66,LINETHICK1;
前一高:REF(H,BARSLAST(VV2)),COLORCYAN,LINETHICK1;
前二高:REF(H,BARSLAST(XX2)),COLORCYAN,LINETHICK1;
DRAWLINE1(XX,L,VV,L,1),COLORMAGENTA,LINETHICK1;
DRAWLINE1(XX2,H,VV2,H,1),COLORMAGENTA,LINETHICK1;
CURRBARSCOUNT:=DATACOUNT-BARPOS+1;
DRAWTEXT(CURRBARSCOUNT=5,前一低*,'前一低'),COLOR99FF66;
DRAWTEXT(CURRBARSCOUNT=5,前二低*,'前二低'),COLOR99FF66;
;
DEA:DEA1,COLORWHITE,LINETHICK2;
DIF升:IF(DIF>=REF(DIF,1),DIF,NULL),COLORMAGENTA,LINETHICK2;
DEA升:IF(DEA>=REF(DEA,1),DEA,NULL),COLORRED,LINETHICK2;
MACD:MACD1,COLORSTICK,COLORYELLOW,LINETHICK2;
金叉:=CROSS(DIF,DEA);
轴上金叉:=金叉 AND DEA>0;
轴上周期:=BARSLAST(CROSS(0,DEA));
轴上金叉数:=COUNT(轴上金叉,轴上周期);
二次金叉:=轴上金叉 AND 轴上金叉数=2;
DRAWICON(二次金叉,*DEA,1);
DRAWICON(二次金叉,*DEA,1);
A1:=BARSLAST(REF(CROS
文华期货软件指标公式源码期货软件最准指标期货傻瓜式买卖指标 来自淘豆网m.daumloan.com转载请标明出处.