/* 主'),COLORGREEN,VALIGN1,ALIGN0,FONTSIZE25;
DRAWTEXT((多空线>=XCLOSE),多空线,'●'),COLORGREEN,VALIGN2,ALIGN1,FONTSIZE20;
DRAWTEXT((多空线<XCLOSE),多空线,'●'),COLORRED,VALIGN0,ALIGN1,FONTSIZE20;
DRAWTEXT(CROSS((多空线>=XCLOSE),),H,'开空'),VALIGN2,FONTSIZE20;
DRAWTEXT(CROSS((多空线<XCLOSE),),L,'开多'),VALIGN0,FONTSIZE20;
TY:=C;
A1:=REF(TY,10)=HHV(TY,2*10+1);
VB1:=FILTER(A1,10);
C1:=BACKSET(VB1,10+1);
HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1);
VB2:=FILTER(A2,10);
C2:=BACKSET(VB2,10+1);
LD:=FILTER(C2,10);
AAD:=REF(C,BARSLAST(HD));
BA:=REF(C,BARSLAST(LD));
T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;
T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
A31:=LLV(LOW,1);
A4:=LLV(LOW,5);
A5:=LLV(LOW,8);
T1:=TROUGH(L,K*N2,1,1);
T2:=TROUGH(L,K*N2,2,1);
WT1:=TROUGHBARS(L,K*N2,1,1);
WT2:=TROUGHBARS(L,K*N2,2,1);
TJ1:=P1>T1 AND P2>T2 ;
ZD:=MAX(T1,T2);
ZG:=MIN(P1,P2);
LL:=MIN(T1,T2);
HH:=MAX(P1,P2);
TJ2:=FILTER(ZG>ZD,2);
TJ3:=ZG=REF(ZG,BARSLAST(TJ2)) OR ZD=REF(ZD,BARSLAST(TJ2));
TJ4:=TJ1&&TJ2&&NOT(TJ3);
TJ5:=BETWEEN(ZD,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1)));
TJ6:=BETWEEN(ZG,REF(ZD,REF(BARSLAST(TJ4),1)),REF(ZG,REF(BARSLAST(TJ4),1)));
TJ7:=ZG>REF(ZG,REF(BARSLAST(TJ4),1))&&ZD<REF(ZD,REF(BARSLAST(TJ4),1));
TJ8:=TJ4&&NOT(TJ5 OR TJ6 OR TJ7);
ZSD:=IF(TJ8,ZD,NULL);
ZSG:=IF(TJ8,ZG,NULL);
ZSH:=IF(TJ8,HH,NULL);
ZSL:=IF(TJ8,LL,NULL);
STICKLINE(TJ8,ZSH,ZSL,0,-1
准确率最高的期货指标文华财经期货软件指标公式源码准确率最高的期货指标 来自淘豆网m.daumloan.com转载请标明出处.