以下是通达信做期货的主图交易指标公式源码和截图
通达信做期货的主图交易指标公式源码:
M125010A:=(3*C+L+O+H)/6;攻击线:(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210,LINETHICK2,COLORMAGENTA;生命线:MA(攻击线,M),LINETHICK2,COLORGREEN;
N:=50;
Var1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
Var2:=SMA(Var1,3,1);
Var3:=SMA(Var2,3,1);
Var4:=SMA(Var3,3,1);
波:Var3;
段:Var4;
Var6:=CROSS(Var3,Var4)ANDVar3
DRAWTEXT(FILTER(Var6,10)=1,40,''),LINETHICK3,;
STICKLINE(FILTER(Var6,10)=1,0,30,10,0),colorgreen,;
Var7:=CROSS(Var4,Var3)ANDVar3
STICKLINE(FILTER(Var7,5)=1,80,100,10,0),coloryellow,;
DRAWTEXT(FILTER(Var7,5)=1,70,''),LINETHICK3,coloryellow,;
Var8:=CROSS(Var2,Var3)ANDVar3 80ANDVar3 Var4;
STICKLINE(Var8,85,100,10,0),,;
90;
0;DRAWRECTABS(0,0,30,32,rgb(250,60,80)),color000099;
DRAWRECTABS(0,30,30,33,rgb(250,250,80)),colorred;
DRAWTEXTABS(2,18,'王平家'),colorFFFFFF,LINETHICK1;
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
:=2*(DIFF-DEA);
drawicon(ref(macd,1)=llv(macd,3),l,1),align1;
V1:=EMA(EMA(EMA(CLOSE,8),13),55);
V2:=(REF(HIGH,1)+REF(LOW,1))/2;
V3:=MA(CLOSE,20)+2*STD(CLOSE,20);
DRAWICON(CROSS(V2,V3),HIGH*1.035,10);
DRAWTEXT(CROSS(V2,V3),HIGH*1.02,'绝卖'),COLORblue;
V4:=REF(CLOSE,1);
V5:=SMA(MAX(CLOSE-V4,0),7,1)/SMA(ABS(CLOSE-V4),7,1)*100;
V6:=CROSS(79,V5);
V7:=FILTER(V6,4);
DRAWICON(V7,HIGH*1.035,10);
DRAWTEXT(V7,HIGH*1.02,'绝卖'),COLORgreen;
a1:=ref(c,5) ref(O,5)andref(c,4) ref(O,4)andref(c,3) ref(O,3);
DRAWTEXT((a1ANDall(C O,2))OR(a1ANDC OANDREF(C,1) REF(O,1)ANDREF(C,2) REF(O,2)),L*0.965,'绝密买点');
通达信做期货的主图交易指标公式截图