文华怎么加上神奇九转指标源码(文华指标公式源码)
本文目录一览:
谁能帮我将通达信的指标源代码转化成文华财经的?
你这段代码从通达信转成文化财经文华怎么加上神奇九转指标源码,只需要把颜色,线文华怎么加上神奇九转指标源码的粗细,和用不上文华怎么加上神奇九转指标源码的代码都删除文华怎么加上神奇九转指标源码了,就可以了
上收:=C;
箱顶:MA(REF(HHV(上收,60),3),5);
箱底:MA(REF(LLV(上收,60),3),5);
变成这样就可以了
求助,将这个通达信的sar源代码,转换为博易大师或文华指标源码
改博易大师SAR如下:
X:=SAR(4,2,20);
PARTLINE(CX,X),COLORMAGENTA,CIRCLEDOT,LINETHICK3;
PARTLINE(CX,X),COLORGREEN,CIRCLEDOT,LINETHICK3;
文华有SAR
请高手帮忙破解文华公式源码,一经验证加到200分
1.
HH1:=IFELSE(HREF(H,2)REF(H,1)REF(H,2),REF(H,2),0); LL1:=IFELSE(LREF(L,2)REF(L,1)REF(L,2),REF(L,2),0); HH2:=VALUEWHEN(HH10,HH1); LL2:=VALUEWHEN(LL10,LL1); K1:=IFELSE(CLOSEHH2,-3,IFELSE(CLOSELL2,1,0)); K2:=VALUEWHEN(K10,K1); G:=IFELSE(K2=1,HH2,LL2); G1:=VALUEWHEN(ISLASTBAR,G); DRAWNUMBER(L0,G1,G1,0,COLORCYAN); W1:=K2; W2:=OPEN-CLOSE; HT:=IFELSE(OPENCLOSE,OPEN,CLOSE); LT:=IFELSE(OPENCLOSE,OPEN,CLOSE); DRAWLINE(W1=1,HIGH,W1=1,HT,COLORCYAN); DRAWLINE(W1=1,LOW,W1=1,LT,COLORCYAN); DRAWLINE(W1=-3,HIGH,W1=-3,HT,COLORRED); DRAWLINE(W1=-3,LOW,W1=-3,LT,COLORRED); STICKLINE(W10,OPEN,CLOSE,COLORCYAN,1); STICKLINE(W1=0,OPEN,CLOSE,COLORRED,1); STICKLINE(W20W1=0,OPEN,CLOSE,COLORRED,0); STICKLINE(W20W10,OPEN,CLOSE,COLORCYAN,0); DRAWLINE(W1=1REF(W1,1)=1,G,W1=1REF(W1,1)=1,REF(G,1),COLORGREEN); DRAWLINE(W1=-3REF(W1,1)=-3,G,W1=-3REF(W1,1)=-3,REF(G,1),COLORYELLOW); DRAWSL(K2=1,G,0,1,0,COLORGREEN); DRAWSL(K2=-3,G,0,1,0,COLORYELLOW);
HH:=IFELSE(HREF(H,1)HREF(H,2)HREF(H,3)HREF(H,4)HREF(H,5)LREF(L,1)LREF(L,2)
LREF(L,3)LREF(L,4)LREF (L,5),H-(H-L)*0.333,H); LL:=IFELSE(HREF(H,1)HREF(H,2)HREF(H,3)HREF(H,4)HREF(H,5)LREF(L,1)LREF(L,2)
LREF(L,3)LREF(L,4)LREF (L,5),(H-L)*0.333+L,L); H1:=IFELSE(H=REF(H,1)H=REF(H,2)H=REF(H,3)H=REF(H,4)H=REF(H,5) HREFX(H,1)
HREFX(H,2)HREFX(H,3)HREFX(H,4) HREFX(H,5),HH,0); L1:=IFELSE(L=REF(L,1)L=REF(L,2)L=REF(L,3)L=REF(L,4)L=REF(L,5) LREFX(L,1)
LREFX(L,2)LREFX(L,3)LREFX(L,4) LREFX(L,5),LL,0); H2:=BARSLAST(H1); L2:=BARSLAST(L1); H3:=REFX(REF(H1,H2),2); L3:=REFX(REF(L1,L2),2); H4:=ZIGZAG(H3,0,0); L4:=ZIGZAG(L3,0,0); H5:=VALUEWHEN(H4REF(H4,1)REF(H4,1)REF(H4,2),HH); L5:=VALUEWHEN(L4REF(L4,1)REF(L4,1)REF(L4,2),LL); POLYLINE(H50,H5,COLORWHITE); POLYLINE(L50,L5,COLORWHITE); DRAWNUMBER(H5REF(H5,1),H5,H5-L5,0,COLORMAGENTA); DRAWNUMBER(L5REF(L5,1),L5,H5-L5,0,COLORMAGENTA); D:=VALUEWHEN(ISLASTBAR,H5); E:=VALUEWHEN(ISLASTBAR,L5); DRAWNUMBER(LOW0,D,D,0,COLORWHITE); DRAWNUMBER(LOW0,E,E,0,COLORWHITE);
=======================================================================================
2.
N:0 50 2
N1:0 5 2
Q:0 1000 0
Q1:0 9000 0
HH:=HHV(HIGH,N);
LH:=LLV(LOW,N);
H1:=IFELSE(HHREF(HH,1)LHREF(LH,1)REF(OPEN,1) CLOSEOPENCLOSE(HHV(OPEN,Q)-CLOSE)Q1,REF(HH,N1),0);
L1:=IFELSE(LHREF(LH,1)HHREF(HH,1)REF(OPEN,1) CLOSEOPENCLOSE(CLOSE-LLV(OPEN,Q))Q1,REF(LH,N1),0);
H2:=VALUEWHEN(H10,H1);
L2:=VALUEWHEN(L10,L1);
K1:=IFELSE(CLOSEH2,-3,IFELSE(CLOSEL2,1,0));
K2:=VALUEWHEN(K10,K1);
G:=IFELSE(K2=1,H2,L2);
G1:=VALUEWHEN(ISLASTBAR,G);
DRAWNUMBER(LH0,G1,G1,0,COLORCYAN);
TMP:=K2;W1:=K2;
W2:=OPEN-CLOSE;
HT:=IFELSE(OPENCLOSE,OPEN,CLOSE);
LT:=IFELSE(OPENCLOSE,OPEN,CLOSE);
DRAWLINE(W1=1,HIGH,W1=1,HT,COLORCYAN);
DRAWLINE(W1=1,LOW,W1=1,LT,COLORCYAN);
DRAWLINE(W1=-3,HIGH,W1=-3,HT,COLORRED);
DRAWLINE(W1=-3,LOW,W1=-3,LT,COLORRED);
STICKLINE(W10,OPEN,CLOSE,COLORCYAN,1);
STICKLINE(W1=0,OPEN,CLOSE,COLORRED,1);
STICKLINE(W20W1=0,OPEN,CLOSE,COLORRED,0);
STICKLINE(W20W10,OPEN,CLOSE,COLORCYAN,0);
DRAWLINE(TMP=1REF(TMP,1)=1,G,TMP=1REF(TMP,1)=1,REF (G,1),COLORCYAN);DRAWLINE(TMP=-3REF(TMP,1)=-3,G,TMP=-3REF (TMP,1)=-3,REF(G,1),COLORRED);DRAWSL(K2=1,G,0,1,0,COLORCYAN);DRAWSL (K2=-3,G,0,1,0,COLORRED);
DRAWTEXT(CROSS(TMP,0),HH,'卖↓');
DRAWTEXT(CROSS(0,TMP),LH,'买↑');
MA55:=MA(CLOSE,55);
DRAWTEXT(CROSS(TMP,0)CLOSE=MA55,HH,'卖↓');
DRAWTEXT(CROSS(0,TMP)CLOSE=MA55,LH,'买↑');
=======================================================================================
3.
VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
VAR6:=(VAR3+VAR4+VAR5)/3;
VAR7:=EMA(VAR6,5);
ZHIB: EMA(EMA(VAR3,5),5)*3, COLORSTICK;
VAR8:=IFELSE(VAR6=-20,10,0);
VAR9:=HHV(VAR8,10);
STICKLINE(VAR8=10,20,10,COLORRED,0);
VARA:=IFELSE(VAR9 CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
K:EMA(VAR7,5)*2,COLORGREEN;
D:EMA(K,5), COLORWHITE;
J:K*3-D*2, COLORYELLOW;
VARB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) J10;
DRAWTEXT(VARA=20,15,'底部');
STICKLINE((VARA=20),0,10,COLORWHITE,0);
VARC:=(ZIGZAG(CLOSE,5,1)REF(ZIGZAG(CLOSE,5,1),1)) (REF(ZIGZAG(CLOSE,5,1),1)=REF(ZIGZAG(CLOSE,5,1),2)) (REF(ZIGZAG
(CLOSE,5,1),2)=REF(ZIGZAG(CLOSE,5,1),3));
VARD:=(ZIGZAG(CLOSE,5,1)REF(ZIGZAG(CLOSE,5,1),1)) (REF(ZIGZAG(CLOSE,5,1),1)=REF(ZIGZAG(CLOSE,5,1),2)) (REF(ZIGZAG
(CLOSE,5,1),2)=REF(ZIGZAG(CLOSE,5,1),3));
STICKLINE((VARC=1),(-14),0,COLORMAGENTA,0);
DRAWTEXT((VARC=1),(-14),'买');
STICKLINE((VARD=1),14,0,COLORGREEN,0);
DRAWTEXT((VARD=1),18,'卖');
VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR11:=VARFREF(VAR10,1) VOLREF(VOL,1) CLOSEREF(CLOSE,1);
VAR12:=(HIGH+LOW+CLOSE)/3;
VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));
VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));
VAR15:=IFELSE(VAR13=150 VAR13200 VAR14=150 VAR14200,10,0);
VAR16:=IFELSE(VAR13=-150 VAR13-200 VAR14=-150 VAR14-200,-10,VAR15);
VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR18:=100-ABS(VAR17);
VAR19:=IFELSE(VAR1890,VAR18,100);
VAR1A:=IFELSE(VARE0,VARE,0);
VAR1B:=IFELSE(VAR14=200 VAR13=150,15,IFELSE(VAR14=-200 VAR13=-150,-15,VAR16))+60;
VAR1C:=VAR1A48 VAR1B60 VAR19100;
这个应该是飞狐的, ""通达信里应该是用and