期货技术指标属于统计学的范畴,是一些数据指标,用来衡量一切以数据来论证期货趋向、买卖等。通过指标代码,期货软件可以用公式自动计算股票技术指标。文华期货指标源码来了解下。
文化期货指标源码
/*
{97-425}
VAR1:=(C-MA(C,50))/MA(C,50)*100<-23;
VAR2:=SMA(MAX(C-REF(C,1),0),3,1)/SMA(ABS(C-REF(C,1)),3,1)*100>16;
VAR3:=100*(HHV(H,27)-C)/(HHV(H,27)-LLV(L,27));
A97:VAR1 AND VAR2 AND CROSS(VAR3,79) AND (O>C OR O
(O-REF(C,1))/REF(C,1)<0.05 AND V>MA(V,23) AND DATE>940630,COLORWHITE ;
{97-520}
MA3:=MA(C,3);
C0:=REF(C,2)*0.865;
C1:=REF(C,13)*0.772;
BOT:=MIN(C0,C1);
HSL:=100*V/CAPITAL;
MA13:=MA(C,13);
B97:IF((C-BOT)/C<6/100 AND SUM(HSL,5)/5<1.8 AND WINNER(C)*100<0.1,1,0)
AND (C-MA(C,20))/MA(C,20)*100<-23,COLORYELLOW;
{98-2348}
VAR9:=INDEXC;
VARA:=MA(VAR9,6);
VARB:=MA(VAR9,24);
VARC:=MA(VAR9,32);
VARD:=MA(VAR9,62);
VARE:=MA(VAR9,105);
VARF:=VARD[
]VAR10:=VARC>VARA*1.11 AND VARB>VARA*1.095;
VAR11:=VARA>VAR9*0.95;
DARA:=(C-MA(C,28))/MA(C,28)*100<-23;
A98:(DARA AND VAR2 AND CROSS(VAR3,79) AND (O>C OR O
(O-REF(C,1))/REF(C,1)<0.05 AND V>MA(V,23) OR VARF AND VAR10 AND
VAR11 AND C/COST(8)<=0.8 AND COUNT(C>O OR C
{B97-3074}
VARA1:=C/MA(C,48)*100<67;
VARA2:=C/MA(C,50)*100<69;
VARA3:=H>L*1.078;
VARA4:=VARA3 AND COUNT(VARA3,4)>2;
C97:VARA4 AND (VARA1 OR VARA2) OR VARF AND VAR10 AND
VAR11 AND C/COST(8)<=0.8 AND COUNT(C>O OR C
{98-2436}
YAR1:=PWINNER(1,C);
YAR2:=FORCAST(YAR1,10);
YAR3:=MA(YAR2,3);
YAR4:=MA(YAR3,12);
YAR5:=MA(YAR4,16);
YAR6:=MA(YAR5,31);
YAR7:=MA(YAR6,55);
YAR8:=YAR6[
]YAR9:=YAR5>YAR3*1.11 AND YAR4>YAR3*1.095;
YARA:=YAR3>YAR2*0.95;
YAR11:=VARD
YAR14:=IF(H=L AND C=O AND L=C AND C>0 AND
REF(H,1)=REF(L,1) AND REF(C,1)=REF(O,1) AND
REF(H,1)=REF(C,1) AND REF(C,1)>0,0,1)>0;
B98:(YAR11 AND VAR10 AND VAR11 AND C/COST(8)<=0.799 AND
(COUNT(C=L,4)<3 OR C>REF(C,1)) AND YAR14 OR YAR8 AND YAR9
AND YARA AND C/COST(5)<=0.8 AND YAR2<>O AND
REF(YAR2,1)<>REF(O,1) AND YAR14),COLOR6699FF;
{96}
AA:=("1A0001$CLOSE"/REF("1A0001$CLOSE",20)-1)*100<-16
AND (C/REF(C,27)-1)*100<-35 ;
A96:FILTER(AA ,3 ),COLORBLUE;
{98}
VBR1:=(REF(C,2)-REF(C,1))/REF(C,2)>0.05;
VBR2:=(REF(C,3)-REF(C,2))/REF(C,3)>0.05;
VBR3:=REF(H,2)-REF(H,1);
VBR4:=REF(H,1)-VBR3;
VBR5:=V/CAPITAL*100;
VBR6:=1-(VBR5<15 AND (H-L)/C>0.045 AND C>VBR4 AND VBR1 AND VBR2 AND C>O AND MA(C,60)-MA(C,9)/2.68>C);
VBR7:=VBR6;
C98:CROSS(0.5,VBR7),COLOR99CCFF;
{98}
VBR11:=REF(O,1)[
]VBR12:=REF(C,1)[
]VBR13:=REF(L,1)[
]VBR14:=O>REF(C,1) AND O/REF(C,1)>=1.1;
VBR15:=C>O AND C/O>1.03;
D98: VBR11 AND VBR12 AND VBR13 AND VBR14 AND VBR15,COLORFFFF33;
{96-150}
VBR16:=AMOUNT;
VBR17:=IF(H*V<=VBR16,(L+H)/2*V*100,VBR16);
VBR18:=IF(C<200,VBR17/V/100,(H+L)/2);
VBR19:=MA(C,70)-MA(C,10)/2.5;
VBR20:=MA(C,60)-MA(C,10)/2.5;
VBR21:=MA(C,50)-MA(C,10)/2.36;
VBR22:=MA(VBR17,12)/1.39;
VBR23:=MA(VBR17,12)/1.09;
VBR24:=MA(VBR17,5);
VBRA:=MA(VBR22,360)/5.2;
VBRB:=MA(VBR17,150)/2;
VBRC:=MA(VBR22,360)/3.8;
E96:(CROSS(VBR22,VBRA) AND C
AND C
{98}VBR41:=1;VAR13:=V/CAPITAL;REC1:=REF(C,1);VBR42:=IF(EMA(C,5)/EMA(EMA(C,9),16)<=0.85 AND C/REC1>0.905 AND C/REC1<1.05 AND VAR13*100<5,50,0);VBR43:=(-100)*(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))+100;VBR44:=(-100)*(HHV(H,50)-C)/(HHV(H,50)-LLV(L,50))+100;VBR45:=(-100)*(HHV(H,70)-C)/(HHV(H,70)-LLV(L,70))+100;VBR46:=((C-MA(C,34))/MA(C,34)*100+10)*5;VBR47:=((C-MA(C,50))/MA(C,50)*100+10)*5;VBR48:=((C-MA(C,70))/MA(C,70)*100+10)*5;VBR49:=(VBR43+VBR44+VBR45+VBR46+VBR47+VBR48)/6;VBR60:=EMA(VBR49,3);VBR61:=ABS(VBR46-VBR48);VBR62:=(VBR49+VBR61)/2;VBR63:=(-1)*(EMA(100*(1-WINNER(C)),1)-50)+50;VBR64:=VBR63+VBR62;VBR65:=IF(VBR42>0 AND VBR64<0,200,0);VBR50:=IF(VBR62<0 AND C=LLV(C,5) AND C/REC1>0.905 AND C/REC1<1.05 AND VAR13*100<5,-50,0);VBR51:=IF(VBR64<0 AND VBR50=-50,100,0);VBR52:=MA(C,3);VBR53:=REF(C,2)*0.865;VBR54:=REF(C,13)*0.772;VBR55:=MIN(VBR53,VBR54);VBR56:=100*VAR13;VBR57:=MA(C,13);VBR58:=IF((C-VBR55)/C<0.03 AND SUM(VBR56,5)/5<1.8,1,0);VBR59:=IF(VBR58>0 AND (VBR50<0 OR VBR42>0),100,0);VBR1A:=VBR59;VBR1B:=IF(VBR65>0 AND VBR51>0 AND SUM(VAR13*100,5)/5<1 OR VBR58>0 AND REC1/REF(C,2)>0.902 OR (VBR65>0 AND VBR51>0 AND SUM(VAR13*100,5)/5<1 OR VBR58>0) AND (VBR50<0 OR VBR42>0) AND VBR59<10,50,0);VBR1C:=(VBR65>0 AND VBR51>0 AND SUM(VAR13*100,5)/5<1 OR VB
*/
本级别做多力度:=SMA((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9)) * 100,5,1) - 8;
本级别做空力度:=SMA((HHV(HIGH,36) - CLOSE) / (HHV(HIGH,36) - LLV(LOW,36)) * 100,2,1);
本级别多空差:=本级别做多力度-本级别做空力度;
本级别多空差均值:=MA(本级别多空差,IF(BARSCOUNT(CLOSE)<26,BARSCOUNT(CLOSE),26)),COLOR00FFFF;
本级别多空交叉均值:=MA(本级别多空差,IF(BARSCOUNT(CLOSE)<10,BARSCOUNT(CLOSE)*5,10));
本级别多空91均值:=SUM(本级别多空差,IF(BARSCOUNT(CLOSE)<26,BARSCOUNT(CLOSE),26));
本级别增减:=(本级别多空91均值-REF(本级别多空91均值,1))*3,COLORSTICK,COLOR00FFFF;
本级别金叉:=CROSS(本级别多空差,0);
本级别死叉:=CROSS(0,本级别多空差);
本级别金叉数值:=BARSLAST(本级别金叉);
本级别死叉数值:=BARSLAST(本级别死叉);
本级别金叉1:=CROSS(本级别增减,0);
本级别死叉1:=CROSS(0,本级别增减);
本级别金叉数值1:=BARSLAST(本级别金叉1);
本级别死叉数值1:=BARSLAST(本级别死叉1);
DRAWNUMBER1(本级别金叉,L,L,1),COLORRED;
DRAWNUMBER1(本级别死叉,H,H,1),COLORGREEN;
DRAWNUMBER1(本级别金叉1,L,L,1),COLORYELLOW;
DRAWNUMBER1(本级别死叉1,H,H,1),COLORYELLOW;
PARTLINE1(本级别多空差>0,H),COLORRED,POINTDOT,LINETHICK2;
PARTLINE1(本级别多空差<0,L),COLORGREEN,POINTDOT,LINETHICK2;
PARTLINE1(本级别增减>0,H),COLORYELLOW,POINTDOT,LINETHICK1;
PARTLINE1(本级别增减<0,L),COLORCYAN,POINTDOT,LINETHICK1;
想先人一步掌握更多期货行情?敬请关注上甲官网(www.shangjia.com);想解锁更多精彩期货内容,欢迎下载上甲APP!